Commit 48a6aef4 authored by hujun's avatar hujun

统计拨打次数增加默认当天时间

parent 8dfc2141
......@@ -197,7 +197,7 @@ class BindingPhone extends BaseModel
* @return int|string
*/
public function getCallNumber($phone_a, $phone_b, $status = 0) {
$where = [];
if ($phone_a) {
$where['phone_a'] = $phone_a;
}
......@@ -210,7 +210,10 @@ class BindingPhone extends BaseModel
$where['status'] = $status;
}
return $this->where($where)
$date = date('Y-m-d');
$this->where($where)
->where('create_time','between', [$date. ' 00:00:00', $date . ' 23:59:59'])
->count();
die('11');
}
}
\ No newline at end of file
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