Commit 18a7b49e authored by hujun's avatar hujun

隐私号码细节调整

parent 780a0bbb
......@@ -125,19 +125,24 @@ class CallPhoneService
$call_key = 'call_'.$agent_id.'_'.$this->phone_a.'_'.$this->phone_b;
$phone_x = $this->redis->get($call_key);
$bind = new BindingPhone();
if (empty($phone_x)) {
$where['a.status'] = 1;
$where['a.phone_a'] = $phone_a;
$where['a.phone_b'] = $phone_b;
$where['a.type'] = $this->is_privacy;
$phone_x_arr = $bind->getPhoneX('b.phone_x', $where); //已经绑定的返回隐私号码
$phone_x = $phone_x_arr['phone_x'];
$phone_x_arr = $bind->getPhoneX('b.phone_x,a.subsId', $where); //已经绑定的返回隐私号码
//兼容
$check_data = PlsDemo::querySubscriptionDetail($phone_x_arr['subsId'], $phone_x_arr['phone_x']);
if ($check_data->Code == 'OK') {
$phone_x = $phone_x_arr['phone_x'];
}
}
if (!empty($phone_x['phone_x'])) {
if (!empty($phone_x)) {
$result['status'] = 'success';
$result['phone'] = $phone_x['phone_x'];
$result['phone'] = $phone_x;
$result['msg'] = '已绑定,返回隐私号码。';
return $result; //绑定过了,返回隐号
}
......
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