Commit 4fa680d0 authored by hujun's avatar hujun

1

parent e8610432
......@@ -126,23 +126,18 @@ class CallPhoneService
$phone_x = $this->redis->get($call_key);
$bind = new BindingPhone();
if (empty($phone_x)) {
if (empty($phone_x) && $this->is_privacy == 1) {
$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,a.subsId', $where); //已经绑定的返回隐私号码
if ($this->is_privacy == 1) {
if (!empty($phone_x_arr['subsId']) && $phone_x_arr['phone_x']) {
//兼容
$check_data = PlsDemo::querySubscriptionDetail($phone_x_arr['subsId'], $phone_x_arr['phone_x']);
if ($check_data->Code == 'OK' && $check_data->SecretBindDetailDTO->Status == 1) {
$phone_x = $phone_x_arr['phone_x'];
}
if (!empty($phone_x_arr['subsId']) && $phone_x_arr['phone_x']) {
//兼容
$check_data = PlsDemo::querySubscriptionDetail($phone_x_arr['subsId'], $phone_x_arr['phone_x']);
if ($check_data->Code == 'OK' && $check_data->SecretBindDetailDTO->Status == 1) {
$phone_x = $phone_x_arr['phone_x'];
}
} else {
$phone_x = $phone_x_arr['phone_x'];
}
}
......
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