add:bugfix
This commit is contained in:
parent
178203bae6
commit
e53d20a596
@ -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]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user