Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
7f5821ee
Commit
7f5821ee
authored
Aug 29, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
97a95461
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
7 deletions
+45
-7
Member.php
application/index/controller/Member.php
+15
-7
MemberValidate.php
application/index/validate/MemberValidate.php
+30
-0
No files found.
application/index/controller/Member.php
View file @
7f5821ee
...
...
@@ -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
;
...
...
application/index/validate/MemberValidate.php
0 → 100644
View file @
7f5821ee
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment