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
a905d4dd
Commit
a905d4dd
authored
Jul 24, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c901d823
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
21 deletions
+23
-21
Broker.php
application/api_broker/controller/Broker.php
+23
-21
No files found.
application/api_broker/controller/Broker.php
View file @
a905d4dd
...
...
@@ -286,29 +286,28 @@ class Broker extends Basic
*/
public
function
updateDevice
()
{
$params
=
$this
->
params
;
$params
=
$this
->
request
->
param
()
;
/* $params = array(
"agent_id" => 1,
"id" => 1,
"operator_id" => 12,
"agent_id" => 1,
//解绑或者绑定的经纪人id
"id" => 1,
//关系id
"operator_id" => 12,
//操作人id 登陆后台的经纪人id
"is_forbidden" => 0,//0正常 1禁止
);*/
$checkResult
=
$this
->
validate
(
$params
,
"PerformanceValidate.verifyIsForbidden"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
}
$aBD
=
new
ABindingDevice
();
try
{
$id
=
$
this
->
aBD
->
updateDevice
(
$params
);
$id
=
$aBD
->
updateDevice
(
$params
);
if
(
$id
>
0
)
{
return
$this
->
response
(
"200"
,
"update success"
,
[
"id"
=>
$id
]);
}
else
{
return
$this
->
response
(
"101"
,
"请求异常"
);
}
}
catch
(
Exception
$exception
)
{
return
$this
->
response
(
"101"
,
"请求错误:"
.
$exception
);
}
catch
(
\Exception
$exception
)
{
return
$this
->
response
(
"101"
,
"请求错误:"
.
$exception
->
getMessage
());
}
}
...
...
@@ -473,15 +472,15 @@ class Broker extends Basic
public
function
addUserPhoneFollowUpV2
()
{
$params
=
$this
->
params
;
/* $params = array(
'content' => '跟进内容',
'labels_id' => 1,//g_labels表主键
'agent_id' => 1,
'type' => 0,//0电话跟进 1普通跟进
'entrust_type' => 0,//委托类型 0找铺 1找办公楼
'img_str' => "1123123"
);
$this->siteId = 10001;*/
/* $params = array(
'content' => '跟进内容',
'labels_id' => 1,//g_labels表主键
'agent_id' => 1,
'type' => 0,//0电话跟进 1普通跟进
'entrust_type' => 0,//委托类型 0找铺 1找办公楼
'img_str' => "1123123"
);
$this->siteId = 10001;*/
$checkResult
=
$this
->
validate
(
$params
,
"BrokerValidate.add_phone_follow_up_verify"
);
...
...
@@ -875,9 +874,9 @@ class Broker extends Basic
{
header
(
'Access-Control-Allow-Origin:*'
);
$agents
=
new
AAgents
();
$field
=
'id,device_id,store_id,auth_group_id,district_id,position,level,name,phone,sex,img,status,'
;
$field
.=
'inviter_id,create_time,update_time,admin_off,remarks,last_login_ip,last_login_time,quit_time,call_number,site_id'
;
$data
=
$agents
->
getInfo
(
$this
->
agentPhone
,
''
,
true
,
$field
);
$field
=
'id,device_id,store_id,auth_group_id,district_id,position,level,name,phone,sex,img,status,'
;
$field
.=
'inviter_id,create_time,update_time,admin_off,remarks,last_login_ip,last_login_time,quit_time,call_number,site_id'
;
$data
=
$agents
->
getInfo
(
$this
->
agentPhone
,
''
,
true
,
$field
);
$data
[
'openid'
]
=
""
;
$data
[
'token'
]
=
$this
->
authToken
;
return
$this
->
response
(
200
,
""
,
$data
);
...
...
@@ -1202,4 +1201,6 @@ class Broker extends Basic
}
}
\ 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