From e41413c6aba60f37d75fcd0325252886fca9730c Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 4 Sep 2023 14:09:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/IndexController.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/api/controller/IndexController.php b/app/api/controller/IndexController.php index c0d011a19..d2ed0138d 100755 --- a/app/api/controller/IndexController.php +++ b/app/api/controller/IndexController.php @@ -370,16 +370,17 @@ class IndexController extends BaseApiController public function notifyAuthentication() { $parmas = Request()->param(); - Log::error($parmas); + Log::info('认证回调:'.$parmas); try { - Log::error('notifyAuthentication' . json_encode($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' => '成功']); } } catch (\Exception $e) { - Log::error($e->getMessage()); + Log::error('认证回调错误:'.$e->getMessage()); } return json(['success' => false, 'msg' => '失败,没有参数']);