Commit 7f5821ee authored by zhuwei's avatar zhuwei

bug

parent 97a95461
......@@ -47,6 +47,12 @@ class Member extends Basic{
$data['msg'] = '';
$params = $this->request->param();
$checkResult = $this->validate($params, "MemberValidate.getUserList");
if (true !== $checkResult) {
return $this->response(101, $checkResult);
}
$pageNo = empty($params['pageNo']) ? 1 : $params['pageNo'];
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
......@@ -306,22 +312,24 @@ class Member extends Basic{
/* 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定 start*/
//0允许拨打 1不允许拨打
/*
判断当天被拨打是否超过后台限制,同时判断是否当前经纪人跟当前客户是否有电话绑定
0允许拨打 1不允许拨打
start*/
$is_outpace_call_num = 0;
$clientService = new ClientService();
if (!$clientService->dialTotal($v["id"])) {
$is_outpace_call_num = 1;
}
/* $model = new AAgents();
$result = $model->searchAgentsByKeyword("id,name,phone", [ "id" => $params["agent_id"]]);
$model = new AAgents();
$result = $model->searchAgentsByKeyword("id,name,phone", [ "id" => $params["agent_id_for_bind"]]);
$call = new CallPhoneService();
$result = $call->getBindNum($v['user_phone'],$result[0]['phone']);
$result = $call->getBindNum($v['user_phone'],$result[0]['phone']);//大于0说明有绑定关系
if($result != 0){
$is_outpace_call_num = 0;
}*/
}
$data_list[$k]['is_outpace_call_num'] = $is_outpace_call_num;
/* 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定 end*/
/*end*/
$is_show = true;
......
<?php
namespace app\index\validate;
use think\Validate;
/**
* Created by PhpStorm.
* User: zhuwei
* Date: 2018/8/29
* Time: 上午11:02
*/
class MemberValidate extends Validate
{
protected $rule = [
'agent_id_for_bind' => 'require|number|gt:0'
];
protected $message = [
'agent_id_for_bind.require' => 'agent_id_for_bind为必填字段',
'agent_id_for_bind.number' => 'agent_id_for_bind只能为数字',
'agent_id_for_bind.gt' => 'agent_id_for_bind必须大于0',
];
protected $scene = [
'getUserList' => [ 'agent_id_for_bind' ],
];
}
\ 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