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
fda360ef
Commit
fda360ef
authored
Sep 20, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监督执行经纬度
parent
e579f45c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Supervise.php
application/api_broker/controller/Supervise.php
+4
-1
ASuperviseModel.php
application/model/ASuperviseModel.php
+1
-1
No files found.
application/api_broker/controller/Supervise.php
View file @
fda360ef
...
...
@@ -10,6 +10,7 @@ namespace app\api_broker\controller;
use
app\api_broker\extend\Basic
;
use
app\api_broker\service\LocationService
;
use
app\model\AAgents
;
use
app\model\AgentsVisitors
;
use
app\model\ASuperviseModel
;
...
...
@@ -232,7 +233,7 @@ class Supervise extends Basic
*/
public
function
addSupervise
()
{
$params
=
$this
->
params
;
$params
=
&
$this
->
params
;
/*
$params['agent_id']=78;//上传人
...
...
@@ -255,6 +256,8 @@ class Supervise extends Basic
$res
=
$this
->
aSuperviseModel
->
saveSupervise
(
$insert
);
if
(
$res
)
{
$s_location
=
new
LocationService
();
$s_location
->
add
(
$this
->
agentId
,
$params
[
'longitude'
],
$params
[
'latitude'
],
2
,
$res
);
return
$this
->
response
(
"200"
,
"success!"
,
$res
);
}
else
{
return
$this
->
response
(
"101"
,
"失败!"
);
...
...
application/model/ASuperviseModel.php
View file @
fda360ef
...
...
@@ -27,7 +27,7 @@ class ASuperviseModel extends Model
$data
[
'create_time'
]
=
$time
;
$data
[
'update_time'
]
=
$time
;
return
$this
->
insert
(
$data
);
return
$this
->
insert
GetId
(
$data
);
}
public
function
findSuperviseList
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
,
$params
=
''
)
{
...
...
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