更新
This commit is contained in:
parent
ba65c7c102
commit
28ec5a6fb2
@ -191,11 +191,12 @@ class CompanyController extends BaseAdminController
|
|||||||
'business_license' => 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/561f8202305171526091317.png', //$qualification['business_license'],
|
'business_license' => 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/561f8202305171526091317.png', //$qualification['business_license'],
|
||||||
'master_name' => $company['master_name'],
|
'master_name' => $company['master_name'],
|
||||||
'master_email' => $company['master_email'],
|
'master_email' => $company['master_email'],
|
||||||
|
'id'=>$company['id'],
|
||||||
];
|
];
|
||||||
$res = app(JunziqianController::class)->EnterpriseCertification($data);
|
$res = app(JunziqianController::class)->EnterpriseCertification($data);
|
||||||
if ($res->success == true) {
|
if ($res->success == true) {
|
||||||
Db::name('company')->where('id', $params['id'])->update(['master_email' => $res->data, 'is_authentication' => 1]);
|
Db::name('company')->where('id', $params['id'])->update(['master_email' => $res->data]);
|
||||||
return $this->success('认证成功', ['email' => $res->data], 1, 1);
|
return $this->success('系统认证中,请稍后刷新页面查看', ['email' => $res->data], 1, 1);
|
||||||
} else {
|
} else {
|
||||||
return $this->fail($res->msg);
|
return $this->fail($res->msg);
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ namespace app\api\controller;
|
|||||||
|
|
||||||
|
|
||||||
use app\api\logic\IndexLogic;
|
use app\api\logic\IndexLogic;
|
||||||
|
use app\common\model\Company;
|
||||||
use app\common\model\company\CompanyProperty;
|
use app\common\model\company\CompanyProperty;
|
||||||
use think\facade\Db;
|
use think\facade\Db;
|
||||||
use think\facade\Log;
|
use think\facade\Log;
|
||||||
@ -153,4 +154,17 @@ class IndexController extends BaseApiController
|
|||||||
}
|
}
|
||||||
return json(['success' => false, 'msg' => '失败,没有参数']);
|
return json(['success' => false, 'msg' => '失败,没有参数']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 资产回调
|
||||||
|
*/
|
||||||
|
public function notifyAuthentication()
|
||||||
|
{
|
||||||
|
$parmas = Request()->param();
|
||||||
|
Log::info('notifyAuthentication', $parmas);
|
||||||
|
if ($parmas) {
|
||||||
|
Company::where('id',$parmas['id'])->update(['is_authentication'=>1]);
|
||||||
|
}
|
||||||
|
return json(['success' => false, 'msg' => '失败,没有参数']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,8 @@ class JunziqianController extends BaseApiController
|
|||||||
if (isset($data['master_email'])) {
|
if (isset($data['master_email'])) {
|
||||||
$request->emailOrMobile = $data['master_email']; //邮箱
|
$request->emailOrMobile = $data['master_email']; //邮箱
|
||||||
}
|
}
|
||||||
// $request->emailOrMobile = ; //邮箱
|
$request->notifyUrl = 'https://worker-task.lihaink.cn/notify_authentication?id=' . $data['id'];
|
||||||
|
// $request->emailOrMobile = ; //邮箱
|
||||||
//发起创建企业请求
|
//发起创建企业请求
|
||||||
$response = $requestUtils->doPost("/v2/user/organizationCreate", $request);
|
$response = $requestUtils->doPost("/v2/user/organizationCreate", $request);
|
||||||
return $response;
|
return $response;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user