add:bugfix

This commit is contained in:
chenbo 2023-09-08 12:20:55 +08:00
parent 178203bae6
commit e53d20a596

View File

@ -435,9 +435,9 @@ class IndexController extends BaseApiController
$redis = RedisLogic::getInstance(); $redis = RedisLogic::getInstance();
$cache = $redis->get('authentication_company_id_'.$parmas['id']); $cache = $redis->get('authentication_company_id_'.$parmas['id']);
if (!empty($cache)) { if (!empty($cache)) {
$data = json_decode($cache, true); $cacheData = json_decode($cache, true);
$data['is_callback'] = 1; $cacheData['is_callback'] = 1;
$redis->set('authentication_company_id_'.$parmas['id'], json_encode($data)); $redis->set('authentication_company_id_'.$parmas['id'], json_encode($cacheData));
} }
if($data['status']==1){ if($data['status']==1){
Company::where('id', $parmas['id'])->update(['is_authentication' => 1]); Company::where('id', $parmas['id'])->update(['is_authentication' => 1]);