Commit 1bdf5667 authored by zhuwei's avatar zhuwei

bug

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