Commit 1bdf5667 authored by zhuwei's avatar zhuwei

bug

parent 00cddc64
......@@ -617,10 +617,10 @@ class User extends Basic
}
// 判断当天被拨打是否超过5次
$clientService = new ClientService();
if (!$clientService->dialTotal($model_res[0]['user_id'])) {
return $this->response("201", "当天被拨打超过5次", ['user_id'=>$model_res[0]['id']]);
}
// $clientService = new ClientService();
// if (!$clientService->dialTotal($model_res[0]['user_id'])) {
// return $this->response("201", "当天被拨打超过5次", ['user_id'=>$model_res[0]['id']]);
// }
//如果非客方
if($model_res[0]['agent_id'] != $params['agent_id']){
......@@ -649,6 +649,7 @@ class User extends Basic
$max_id = $model->getLastOrNextUserIDPhoneFollowP($where, $field, $limit = '', $order);
$field = 'MIN(a.id) as min_id';
$min_id = $model->getLastOrNextUserIDPhoneFollowP($where, $field, $limit = '', $order);
//dump($model_res);exit();
return $this->response("200", "success!", [
'id' => $model_res[0]['id'],
'user_id' => $model_res[0]['user_id'],
......
......@@ -8,7 +8,7 @@ use think\Validate;
* Date: 2018/8/7
* Time: 13:54:12
*/
class UserGetLastOrNextUserIdValidate extends Validate{
class UserGetLastOrNextUserIdPhoneFollowPuValidate extends Validate{
protected $rule = [
'type' => 'require',
'agent_id' => 'require|number|gt:0',
......
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