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
295158d7
Commit
295158d7
authored
Nov 07, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
bbd97aed
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
10 deletions
+14
-10
Broker.php
application/api_broker/controller/Broker.php
+1
-1
HomePageLog.php
application/api_broker/controller/HomePageLog.php
+1
-1
User.php
application/api_broker/controller/User.php
+7
-3
ClientService.php
application/api_broker/service/ClientService.php
+2
-2
Member.php
application/index/controller/Member.php
+1
-1
Remark.php
application/index/controller/Remark.php
+2
-2
No files found.
application/api_broker/controller/Broker.php
View file @
295158d7
...
@@ -522,7 +522,7 @@ class Broker extends Basic
...
@@ -522,7 +522,7 @@ class Broker extends Basic
// 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定
// 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定
//0允许拨打 1不允许拨打
//0允许拨打 1不允许拨打
$data
[
'is_outpace_call_num'
]
=
0
;
$data
[
'is_outpace_call_num'
]
=
0
;
$clientService
=
new
ClientService
();
$clientService
=
new
ClientService
(
$this
->
siteId
);
if
(
!
$clientService
->
dialTotal
(
$params
[
"user_id"
]))
{
if
(
!
$clientService
->
dialTotal
(
$params
[
"user_id"
]))
{
$data
[
'is_outpace_call_num'
]
=
1
;
$data
[
'is_outpace_call_num'
]
=
1
;
}
}
...
...
application/api_broker/controller/HomePageLog.php
View file @
295158d7
...
@@ -103,7 +103,7 @@ class HomePageLog extends Basic
...
@@ -103,7 +103,7 @@ class HomePageLog extends Basic
$order
=
"f.id desc"
;
$order
=
"f.id desc"
;
$result
=
$this
->
uPhoneFollowUpModel
->
getSearch
(
$pageNo
,
$pageSize
,
$order
,
$field
,
[],
$where_
,
""
);
$result
=
$this
->
uPhoneFollowUpModel
->
getSearch
(
$pageNo
,
$pageSize
,
$order
,
$field
,
[],
$where_
,
""
);
$clientService
=
new
ClientService
();
$clientService
=
new
ClientService
(
$this
->
siteId
);
foreach
(
$result
as
$key
=>
$value
)
{
foreach
(
$result
as
$key
=>
$value
)
{
$agent_params
=
[];
$agent_params
=
[];
$agent_params
[
"a.id"
]
=
$value
[
'agent_id'
];
$agent_params
[
"a.id"
]
=
$value
[
'agent_id'
];
...
...
application/api_broker/controller/User.php
View file @
295158d7
...
@@ -164,7 +164,7 @@ class User extends Basic
...
@@ -164,7 +164,7 @@ class User extends Basic
return
$this
->
response
(
"200"
,
"此条件没有找到数据"
);
return
$this
->
response
(
"200"
,
"此条件没有找到数据"
);
}
}
$clientService
=
new
ClientService
();
$clientService
=
new
ClientService
(
$this
->
siteId
);
foreach
(
$userList
as
$k
=>
$v
)
{
foreach
(
$userList
as
$k
=>
$v
)
{
/*判断是否纯房东 0:否 1:是 start*/
/*判断是否纯房东 0:否 1:是 start*/
$is_single_homeowner
=
0
;
$is_single_homeowner
=
0
;
...
@@ -472,6 +472,7 @@ class User extends Basic
...
@@ -472,6 +472,7 @@ class User extends Basic
$where
[
'site_ids'
]
=
[
'LIKE'
,
'%'
.
$this
->
siteId
.
'%'
];
$where
[
'site_ids'
]
=
[
'LIKE'
,
'%'
.
$this
->
siteId
.
'%'
];
}
}
$field
=
'id,user_nick,agent_id,vip,create_time'
;
$field
=
'id,user_nick,agent_id,vip,create_time'
;
$user
=
new
Users
();
$user
=
new
Users
();
$user_res
=
$user
->
getLastOrNextUserID
(
$where
,
$field
,
$limit
=
1
,
$order
,
$type
);
$user_res
=
$user
->
getLastOrNextUserID
(
$where
,
$field
,
$limit
=
1
,
$order
,
$type
);
...
@@ -479,16 +480,19 @@ class User extends Basic
...
@@ -479,16 +480,19 @@ class User extends Basic
return
$this
->
response
(
"201"
,
"查无数据"
,
[
'user_id'
=>
$params
[
'user_id'
]
]);
return
$this
->
response
(
"201"
,
"查无数据"
,
[
'user_id'
=>
$params
[
'user_id'
]
]);
}
}
//[ error ] [2]Missing argument 1 for app\model\UPhoneFollowPp::__construct(), called in /data/project/tl_estate/application/api_broker/service/ClientService.php on line 26 and defined[/data/project/tl_estate/application/model/UPhoneFollowPp.php:14]
//[ error ] [8]未定义变量: site_id[/data/project/tl_estate/application/model/UPhoneFollowPp.php:16]
// $model = new AAgents();
// $model = new AAgents();
/* $result = $model->searchAgentsByKeyword("id,name,phone", [ "id" => $params["agent_id"]]);
/* $result = $model->searchAgentsByKeyword("id,name,phone", [ "id" => $params["agent_id"]]);
$call = new CallPhoneService();
$call = new CallPhoneService();
$gresult = $call->getBindNum($user_res['user_phone'],$result[0]['phone']);*/
$gresult = $call->getBindNum($user_res['user_phone'],$result[0]['phone']);*/
// 判断当天被拨打是否超过5次
// 判断当天被拨打是否超过5次
$clientService
=
new
ClientService
();
$clientService
=
new
ClientService
(
$this
->
siteId
);
if
(
!
$clientService
->
dialTotal
(
$user_res
[
0
][
'id'
]))
{
if
(
!
$clientService
->
dialTotal
(
$user_res
[
0
][
'id'
]))
{
return
$this
->
response
(
"201"
,
"当天被拨打超过5次"
,
[
'user_id'
=>
$user_res
[
0
][
'id'
]
]);
return
$this
->
response
(
"201"
,
"当天被拨打超过5次"
,
[
'user_id'
=>
$user_res
[
0
][
'id'
]
]);
}
}
exit
;
//如果非客方
//如果非客方
if
(
$user_res
[
0
][
'agent_id'
]
!=
$params
[
'agent_id'
])
{
if
(
$user_res
[
0
][
'agent_id'
]
!=
$params
[
'agent_id'
])
{
...
@@ -653,7 +657,7 @@ class User extends Basic
...
@@ -653,7 +657,7 @@ class User extends Basic
$result
=
$model_agent
->
searchAgentsByKeyword
(
"id,name,phone"
,
[
"id"
=>
$params
[
"agent_id"
]
]);
$result
=
$model_agent
->
searchAgentsByKeyword
(
"id,name,phone"
,
[
"id"
=>
$params
[
"agent_id"
]
]);
$call
=
new
CallPhoneService
();
$call
=
new
CallPhoneService
();
$gresult
=
$call
->
getBindNum
(
$model_res
[
'user_phone'
],
$result
[
0
][
'phone'
]);
$gresult
=
$call
->
getBindNum
(
$model_res
[
'user_phone'
],
$result
[
0
][
'phone'
]);
$clientService
=
new
ClientService
();
$clientService
=
new
ClientService
(
$this
->
siteId
);
if
(
!
$clientService
->
dialTotal
(
$model_res
[
0
][
'user_id'
])
&&
$gresult
==
0
)
{
if
(
!
$clientService
->
dialTotal
(
$model_res
[
0
][
'user_id'
])
&&
$gresult
==
0
)
{
return
$this
->
response
(
"201"
,
"当天被拨打超过5次"
,
[
'id'
=>
$model_res
[
0
][
'id'
]
]);
return
$this
->
response
(
"201"
,
"当天被拨打超过5次"
,
[
'id'
=>
$model_res
[
0
][
'id'
]
]);
}
}
...
...
application/api_broker/service/ClientService.php
View file @
295158d7
...
@@ -21,9 +21,9 @@ class ClientService
...
@@ -21,9 +21,9 @@ class ClientService
private
$nowTime
;
private
$nowTime
;
const
SAVE_CALL_NUM
=
"save_call_num_"
;
const
SAVE_CALL_NUM
=
"save_call_num_"
;
public
function
__construct
()
public
function
__construct
(
$site_id
)
{
{
$this
->
uPhoneFollowUpModel
=
new
UPhoneFollowPp
();
$this
->
uPhoneFollowUpModel
=
new
UPhoneFollowPp
(
$site_id
);
$this
->
redis
=
RedisExt
::
getRedis
();
$this
->
redis
=
RedisExt
::
getRedis
();
$this
->
day
=
$this
->
redis
->
get
(
"s_agent_call_day"
);
$this
->
day
=
$this
->
redis
->
get
(
"s_agent_call_day"
);
...
...
application/index/controller/Member.php
View file @
295158d7
...
@@ -341,7 +341,7 @@ class Member extends Basic{
...
@@ -341,7 +341,7 @@ class Member extends Basic{
0允许拨打 1不允许拨打
0允许拨打 1不允许拨打
start*/
start*/
$is_outpace_call_num
=
0
;
$is_outpace_call_num
=
0
;
$clientService
=
new
ClientService
();
$clientService
=
new
ClientService
(
$this
->
siteId
);
if
(
!
$clientService
->
dialTotal
(
$v
[
"id"
]))
{
if
(
!
$clientService
->
dialTotal
(
$v
[
"id"
]))
{
$is_outpace_call_num
=
1
;
$is_outpace_call_num
=
1
;
}
}
...
...
application/index/controller/Remark.php
View file @
295158d7
...
@@ -140,7 +140,7 @@ class Remark extends Basic
...
@@ -140,7 +140,7 @@ class Remark extends Basic
/* 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定 start*/
/* 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定 start*/
//0允许拨打 1不允许拨打
//0允许拨打 1不允许拨打
$is_outpace_call_num
=
0
;
$is_outpace_call_num
=
0
;
$clientService
=
new
ClientService
();
$clientService
=
new
ClientService
(
$this
->
siteId
);
if
(
!
$clientService
->
dialTotal
(
$v
[
"user_id"
]))
{
if
(
!
$clientService
->
dialTotal
(
$v
[
"user_id"
]))
{
$is_outpace_call_num
=
1
;
$is_outpace_call_num
=
1
;
}
}
...
@@ -314,7 +314,7 @@ class Remark extends Basic
...
@@ -314,7 +314,7 @@ class Remark extends Basic
// 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定
// 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定
//0允许拨打 1不允许拨打
//0允许拨打 1不允许拨打
$data
[
'is_outpace_call_num'
]
=
0
;
$data
[
'is_outpace_call_num'
]
=
0
;
$clientService
=
new
ClientService
();
$clientService
=
new
ClientService
(
$this
->
siteId
);
if
(
!
$clientService
->
dialTotal
(
$params
[
"user_id"
]))
{
if
(
!
$clientService
->
dialTotal
(
$params
[
"user_id"
]))
{
$data
[
'is_outpace_call_num'
]
=
1
;
$data
[
'is_outpace_call_num'
]
=
1
;
}
}
...
...
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