From e53d20a5964231507a4941343ca1541c5ca9be22 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Fri, 8 Sep 2023 12:20:55 +0800 Subject: [PATCH] add:bugfix --- app/api/controller/IndexController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/controller/IndexController.php b/app/api/controller/IndexController.php index a493102c7..153820528 100755 --- a/app/api/controller/IndexController.php +++ b/app/api/controller/IndexController.php @@ -435,9 +435,9 @@ class IndexController extends BaseApiController $redis = RedisLogic::getInstance(); $cache = $redis->get('authentication_company_id_'.$parmas['id']); if (!empty($cache)) { - $data = json_decode($cache, true); - $data['is_callback'] = 1; - $redis->set('authentication_company_id_'.$parmas['id'], json_encode($data)); + $cacheData = json_decode($cache, true); + $cacheData['is_callback'] = 1; + $redis->set('authentication_company_id_'.$parmas['id'], json_encode($cacheData)); } if($data['status']==1){ Company::where('id', $parmas['id'])->update(['is_authentication' => 1]);