add:bugfix

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

@ -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]);