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
b52593d2
Commit
b52593d2
authored
Jan 11, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
92025e9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
24 deletions
+12
-24
UserLogService.php
application/index/service/UserLogService.php
+2
-23
Users.php
application/model/Users.php
+10
-1
No files found.
application/index/service/UserLogService.php
View file @
b52593d2
...
@@ -406,27 +406,5 @@ class UserLogService
...
@@ -406,27 +406,5 @@ class UserLogService
return
$referrer_user_string
;
return
$referrer_user_string
;
}
}
/**
* 判断当天被拨打是否超过5次
* 同时判断是否当前经纪人跟当前客户是否有电话绑定
* @param $user_id
* @param $user_phone
* @param $agent_id
* @return int
*/
public
function
userDetailIsOutpaceCallNum
(
$user_id
,
$user_phone
,
$agent_id
)
{
$is_outpace_call_num
=
0
;
$clientService
=
new
ClientService
();
if
(
!
$clientService
->
dialTotal
(
$user_id
))
{
$is_outpace_call_num
=
1
;
}
$agent_res
=
$this
->
agentModel
->
searchAgentsByKeyword
(
"id,name,phone"
,
[
"id"
=>
$agent_id
]);
$call
=
new
CallPhoneService
();
$bind_num_res
=
$call
->
getBindNum
(
$user_phone
,
$agent_res
[
0
][
'phone'
]);
if
(
$bind_num_res
!=
0
)
{
$is_outpace_call_num
=
0
;
}
return
$is_outpace_call_num
;
}
}
}
\ No newline at end of file
application/model/Users.php
View file @
b52593d2
...
@@ -9,7 +9,7 @@ use think\Model;
...
@@ -9,7 +9,7 @@ use think\Model;
class
Users
extends
Model
class
Users
extends
Model
{
{
// 设置当前模型对应的完整数据表名称
// 设置当前模型对应的完整数据表名称
111
protected
$table
=
'u_users'
;
protected
$table
=
'u_users'
;
/**
/**
...
@@ -990,5 +990,14 @@ class Users extends Model
...
@@ -990,5 +990,14 @@ class Users extends Model
//dump($this->getLastSql());
//dump($this->getLastSql());
return
$data
;
return
$data
;
}
}
public
function
getUserDetailStreamline
(
$user_id
,
$field
)
{
$data
=
db
(
'u_users'
)
->
where
(
'id'
,
$user_id
)
->
field
(
$field
)
->
find
();
return
$data
;
}
}
}
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