Commit d111c54f authored by hujun's avatar hujun

拨号缓存

parent de8f7732
......@@ -86,7 +86,7 @@ class CallPhoneService
if (!empty($user_id)) {
$this->user_id = $user_id;
$user_data = $this->getUserData();
$user_data = $this->getUserDataV2();
if (empty($user_data['user_phone'])) {
$result['status'] = 'fail';
$result['msg'] = '没有用户信息';
......@@ -250,7 +250,7 @@ class CallPhoneService
if (empty($phone_b)) {
if (!empty($user_id)) {
$this->user_id = $user_id;
$user_data = $this->getUserData();
$user_data = $this->getUserDataV2();
if (empty($user_data['user_phone'])) {
$data['status'] = 'failed';
$data['msg'] = '没有客户信息,可以忽略。';
......@@ -345,7 +345,7 @@ class CallPhoneService
if (empty($phone_b)) {
if (!empty($user_id)) {
$this->user_id = $user_id;
$user_data = $this->getUserData();
$user_data = $this->getUserDataV2();
if (empty($user_data['user_phone'])) {
$data['status'] = 'fail';
$data['msg'] = '没有客户信息,可以忽略。';
......@@ -552,6 +552,16 @@ class CallPhoneService
return $data;
}
/**
* @return array|bool|false|mixed|\PDOStatement|string|\think\Model
*/
public function getUserDataV2()
{
$redis_cache = new RedisCacheService();
$data = $redis_cache->getRedisCache(1, $this->user_id);
return $data;
}
/**
* 查询经纪人与客户绑定数量
*
......
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