Commit e023db39 authored by zw's avatar zw

Merge branch 'test'

parents 85110be8 a7a2384a
...@@ -122,21 +122,22 @@ class CallPhoneService ...@@ -122,21 +122,22 @@ class CallPhoneService
$result['phone'] = $phone_b; $result['phone'] = $phone_b;
return $result; return $result;
} }
$call_key = 'call_'.$agent_id.'_'.$this->phone_a.'_'.$this->phone_b; $call_key = 'call_'.$agent_id.'_'.$this->phone_a.'_'.$this->phone_b.'_'.$this->is_privacy;
$phone_x = $this->redis->get($call_key); $phone_x = $this->redis->get($call_key);
$bind = new BindingPhone(); $bind = new BindingPhone();
if (empty($phone_x)) { if (empty($phone_x) && $this->is_privacy == 1) {
$where['a.status'] = 1; $where['a.status'] = 1;
$where['a.phone_a'] = $phone_a; $where['a.phone_a'] = $phone_a;
$where['a.phone_b'] = $phone_b; $where['a.phone_b'] = $phone_b;
$where['a.type'] = $this->is_privacy; $where['a.type'] = $this->is_privacy;
$phone_x_arr = $bind->getPhoneX('b.phone_x,a.subsId', $where); //已经绑定的返回隐私号码 $phone_x_arr = $bind->getPhoneX('b.phone_x,a.subsId', $where); //已经绑定的返回隐私号码
//兼容 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 = PlsDemo::querySubscriptionDetail($phone_x_arr['subsId'], $phone_x_arr['phone_x']);
$phone_x = $phone_x_arr['phone_x']; if ($check_data->Code == 'OK' && $check_data->SecretBindDetailDTO->Status == 1) {
$phone_x = $phone_x_arr['phone_x'];
}
} }
} }
...@@ -172,7 +173,7 @@ class CallPhoneService ...@@ -172,7 +173,7 @@ class CallPhoneService
$result['phone'] = $call_phone['phone']; $result['phone'] = $call_phone['phone'];
$result['msg'] = $call_phone['msg']; $result['msg'] = $call_phone['msg'];
$type = 'AliYunBindAxb'; $type = 'AliYunBindAxb';
$this->redis->set($call_key, $call_phone['phone'], strtotime($this->expiry_date)); $this->redis->set($call_key, $call_phone['phone'], strtotime($this->expiry_date) - time());
$bind->recordBindPhone($call_phone['phone'], $phone_a, $phone_b, $record, $this->expiry_date, $this->subs_id, $this->request_id, $this->mapping_id, $this->is_privacy, $this->release); $bind->recordBindPhone($call_phone['phone'], $phone_a, $phone_b, $record, $this->expiry_date, $this->subs_id, $this->request_id, $this->mapping_id, $this->is_privacy, $this->release);
} else { } else {
$result['msg'] = $call_phone['msg']; $result['msg'] = $call_phone['msg'];
...@@ -185,7 +186,7 @@ class CallPhoneService ...@@ -185,7 +186,7 @@ class CallPhoneService
$result['phone'] = $call_phone['phone']; $result['phone'] = $call_phone['phone'];
$result['msg'] = $call_phone['msg']; $result['msg'] = $call_phone['msg'];
$type = 'YunTongXunBindAxb'; $type = 'YunTongXunBindAxb';
$this->redis->set($call_key, $call_phone['phone'], strtotime($this->expiry_date)); $this->redis->set($call_key, $call_phone['phone'], strtotime($this->expiry_date) - time());
$bind->recordBindPhone($call_phone['phone'], $phone_a, $phone_b, $record, $this->expiry_date, $this->subs_id, $this->request_id, $this->mapping_id, $this->is_privacy, $this->release); $bind->recordBindPhone($call_phone['phone'], $phone_a, $phone_b, $record, $this->expiry_date, $this->subs_id, $this->request_id, $this->mapping_id, $this->is_privacy, $this->release);
} else { } else {
$result['msg'] = $call_phone['msg']; $result['msg'] = $call_phone['msg'];
...@@ -349,7 +350,7 @@ class CallPhoneService ...@@ -349,7 +350,7 @@ class CallPhoneService
} }
$phone = new BindingPhone(); $phone = new BindingPhone();
$call_key = 'call_'.$agent_id.'_'.$this->phone_a.'_'.$this->phone_b; $call_key = 'call_'.$agent_id.'_'.$this->phone_a.'_'.$this->phone_b.'_'.$this->is_privacy;
try { try {
if ($this->is_privacy == 1) { if ($this->is_privacy == 1) {
/*阿里云*/ /*阿里云*/
......
...@@ -49,7 +49,7 @@ class Store extends Basic ...@@ -49,7 +49,7 @@ class Store extends Basic
//店长姓名 //店长姓名
if (!empty($this->params['agents_name'])) { if (!empty($this->params['agents_name'])) {
$where['b.name'] = ['LIKE',$this->params['agents_name'].'%']; $where['b.name'] = ['LIKE','%'.$this->params['agents_name'].'%'];
$join = 1;//连表查询店长名 $join = 1;//连表查询店长名
} }
......
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