Commit 6548ee14 authored by hujun's avatar hujun

1

parent 9bd8fd70
......@@ -587,16 +587,18 @@ class PrivacyNumber
* 处理经纪人号码用完释放
*/
public function delBindPhone() {
Request::instance()->get();
if (empty($_GET['phone_a']) || empty($_GET['start_time']) || empty($_GET['end_time'])) {
die('参数错误');
}
$where['phone_a'] = $_GET['phone_a'];
$start_time = date('Y-m-d', strtotime($_GET['start_time']));
$end_time = date('Y-m-d', strtotime($_GET['end_time']));
$where['a.create_time'] = ['between', [$start_time .' 00:00:00', $end_time . ' 23:59:59']];
$data = $this->m_bind->getBindingPhoneList('a.phone_a,a.phone_b,b.phone_x,b.subsId', $where);
$data = $this->m_bind->getBindingPhoneList('a.phone_a,a.phone_b,b.phone_x,a.subsId', $where);
$key = 0;
foreach ($data as $k=>$v) {
foreach ($data['data'] as $k=>$v) {
$agent_where['phone'] = $v['phone_a'];
$agent_where['status'] = 0;
$agent_id = $this->m_agent->getAgentsByWhere($agent_where, 'id');
......
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