更新
This commit is contained in:
parent
3ae85d4625
commit
e41413c6ab
@ -370,16 +370,17 @@ class IndexController extends BaseApiController
|
|||||||
public function notifyAuthentication()
|
public function notifyAuthentication()
|
||||||
{
|
{
|
||||||
$parmas = Request()->param();
|
$parmas = Request()->param();
|
||||||
Log::error($parmas);
|
Log::info('认证回调:'.$parmas);
|
||||||
try {
|
try {
|
||||||
Log::error('notifyAuthentication' . json_encode($parmas));
|
|
||||||
|
|
||||||
if ($parmas) {
|
if ($parmas) {
|
||||||
Company::where('id', $parmas['id'])->update(['is_authentication' => 1]);
|
$data=json_decode($parmas['data'],true);
|
||||||
|
if($data['status']==2){
|
||||||
|
Company::where('id', $parmas['id'])->update(['is_authentication' => 2]);
|
||||||
|
}
|
||||||
return json(['success' => true, 'msg' => '成功']);
|
return json(['success' => true, 'msg' => '成功']);
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
Log::error($e->getMessage());
|
Log::error('认证回调错误:'.$e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return json(['success' => false, 'msg' => '失败,没有参数']);
|
return json(['success' => false, 'msg' => '失败,没有参数']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user