Commit 81a5dad8 authored by hujun's avatar hujun

解绑处理

parent 68191517
......@@ -84,7 +84,7 @@ class CellPhone extends Basic
$this->data = ['phone' => $phone_x['phone_x']];
} else {
$phone_x_array = [];
$phone_x_array[] = $phone_x['phone_x'];
//尝试5次绑定
for ($i = 1; $i < 5; $i++) {
$phone_x = $aliYunPhone->getAliYunPhone($phone_a, $phone_b, $setting['is_privacy'], $phone_x_array);
......
......@@ -28,16 +28,20 @@ class BindingPhone extends BaseModel
$where['a.status'] = $status;
if ($phone_a) {
$where['phone_a'] = $phone_a;
$where['a.phone_a'] = $phone_a;
}
if ($phone_b){
$where['phone_b'] = $phone_b;
$where['a.phone_b'] = $phone_b;
}
if ($phone_x) {
$where['b.phone_x'] = $phone_x;
}
$subsId = $this->alias('a')
->join('aliYun_phone b','a.aliYun_phone_id=b.id','left')
->where($where)->value($phoneId);
} else {
$subsId = false;
}
......
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