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
e8f1580d
Commit
e8f1580d
authored
Jan 18, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录
parent
1277ba35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
BrokerService.php
application/api_broker/service/BrokerService.php
+11
-0
No files found.
application/api_broker/service/BrokerService.php
View file @
e8f1580d
...
@@ -38,7 +38,18 @@ class BrokerService
...
@@ -38,7 +38,18 @@ class BrokerService
$params
[
"agent_id"
]
=
$agent_id
;
$params
[
"agent_id"
]
=
$agent_id
;
$params
[
"is_pc"
]
=
$is_pc
;
$params
[
"is_pc"
]
=
$is_pc
;
$result
=
$this
->
aBD
->
getDeviceByAgentId
(
$params
);
$result
=
$this
->
aBD
->
getDeviceByAgentId
(
$params
);
if
(
count
(
$result
)
<=
0
)
{
if
(
count
(
$result
)
<=
0
)
{
if
(
$is_pc
==
2
){
//新增申请绑定关系,需要后台同意登陆
$this
->
aBD
->
addDevice
([
"device_id"
=>
$device_id
,
"agent_id"
=>
$agent_id
,
"model"
=>
$model
,
"push_id"
=>
$push_id
,
"is_forbidden"
=>
1
,
"is_pc"
=>
$is_pc
]);
return
false
;
}
//新增设备绑定关系 默认直接登陆
//新增设备绑定关系 默认直接登陆
if
(
$type
==
0
)
if
(
$type
==
0
)
$this
->
aBD
->
addDevice
([
"device_id"
=>
$device_id
,
$this
->
aBD
->
addDevice
([
"device_id"
=>
$device_id
,
...
...
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