Commit b8dce155 authored by hujun's avatar hujun

更新经纪人缓存

parent 15e893c1
...@@ -612,6 +612,8 @@ class Broker extends Basic ...@@ -612,6 +612,8 @@ class Broker extends Basic
$message_data['agent_id'] = $ids; $message_data['agent_id'] = $ids;
$push->record(4, 0, 0, $this->userId, $message_data); $push->record(4, 0, 0, $this->userId, $message_data);
} }
$redis = new RedisCacheService();
$redis->agentCache($ids);
return $this->response(200, '成功', $data); return $this->response(200, '成功', $data);
} else { } else {
return $this->response(100, '失败', $data); return $this->response(100, '失败', $data);
...@@ -662,6 +664,8 @@ class Broker extends Basic ...@@ -662,6 +664,8 @@ class Broker extends Basic
if (!empty($ids) && !empty($data['group_id'])) { if (!empty($ids) && !empty($data['group_id'])) {
if ($table->saveStatus('auth_group_id', $data['group_id'], $ids)) { if ($table->saveStatus('auth_group_id', $data['group_id'], $ids)) {
$redis = new RedisCacheService();
$redis->agentCache($ids);
$msg = '成功'; $msg = '成功';
} else { } else {
$code = 101; $code = 101;
......
...@@ -283,6 +283,9 @@ class BrokerService ...@@ -283,6 +283,9 @@ class BrokerService
$push->record(4, 0, [$data['id']], $operation_id, $message_data); $push->record(4, 0, [$data['id']], $operation_id, $message_data);
} }
$redis = new RedisCacheService();
$redis->agentCache($id);
return ; return ;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment