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
c3731410
Commit
c3731410
authored
Jun 20, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型修改优化
parent
26f649d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
15 deletions
+5
-15
Supervise.php
application/api_broker/controller/Supervise.php
+2
-2
Basic.php
application/api_broker/extend/Basic.php
+1
-1
ASuperviseModel.php
application/model/ASuperviseModel.php
+2
-12
No files found.
application/api_broker/controller/Supervise.php
View file @
c3731410
...
@@ -241,10 +241,10 @@ class Supervise extends Basic
...
@@ -241,10 +241,10 @@ class Supervise extends Basic
return
$this
->
response
(
"300"
,
"参数不全"
,
[
'remote_groupid'
=>
''
]);
return
$this
->
response
(
"300"
,
"参数不全"
,
[
'remote_groupid'
=>
''
]);
}
}
$res
=
$this
->
aSuperviseModel
->
saveSupervise
(
$params
[
'agent_id'
],
$params
[
'agent_name'
],
$params
[
'remark'
],
$params
[
'img'
],
$params
[
'address'
]);
$res
=
$this
->
aSuperviseModel
->
saveSupervise
(
[
'agent_id'
=>
$params
[
'agent_id'
],
'agent_name'
=>
$params
[
'agent_name'
],
'remark'
=>
$params
[
'remark'
],
'img'
=>
$params
[
'img'
],
'address'
=>
$params
[
'address'
]
]);
//dump($UPhoneFollowPp->id);exit;
//dump($UPhoneFollowPp->id);exit;
if
(
$res
)
{
if
(
$res
)
{
return
$this
->
response
(
"200"
,
"success!"
,
$this
->
aSuperviseModel
->
id
);
return
$this
->
response
(
"200"
,
"success!"
,
$res
);
}
else
{
}
else
{
return
$this
->
response
(
"101"
,
"失败!"
);
return
$this
->
response
(
"101"
,
"失败!"
);
}
}
...
...
application/api_broker/extend/Basic.php
View file @
c3731410
...
@@ -96,7 +96,7 @@ class Basic extends Controller
...
@@ -96,7 +96,7 @@ class Basic extends Controller
$requestPath
=
$this
->
request
->
routeInfo
()[
"rule"
][
0
]
.
"/"
.
$this
->
request
->
routeInfo
()[
"rule"
][
1
];
$requestPath
=
$this
->
request
->
routeInfo
()[
"rule"
][
0
]
.
"/"
.
$this
->
request
->
routeInfo
()[
"rule"
][
1
];
//过滤掉不需要验证token的接口
//过滤掉不需要验证token的接口
if
(
!
in_array
(
trim
(
$requestPath
),
$this
->
filterVerify
))
{
if
(
!
in_array
(
trim
(
$requestPath
),
$this
->
filterVerify
))
{
//
$this->tokenVerify();
$this
->
tokenVerify
();
// $this->userAuth(trim($requestPath));
// $this->userAuth(trim($requestPath));
}
}
unset
(
$this
->
params
[
"AuthToken"
]);
unset
(
$this
->
params
[
"AuthToken"
]);
...
...
application/model/ASuperviseModel.php
View file @
c3731410
...
@@ -22,18 +22,8 @@ class ASuperviseModel extends Model
...
@@ -22,18 +22,8 @@ class ASuperviseModel extends Model
$this
->
db_model
=
Db
::
name
(
$this
->
table
);
$this
->
db_model
=
Db
::
name
(
$this
->
table
);
}
}
public
function
saveSupervise
(
$agent_id
,
$agent_name
,
$remark
,
$img
,
$address
)
{
public
function
saveSupervise
(
$data
)
{
return
$this
->
insert
(
$data
);
$this
->
agent_id
=
$agent_id
;
$this
->
agent_name
=
$agent_name
;
$this
->
remark
=
$remark
;
$this
->
img
=
$img
;
$this
->
address
=
$address
;
$this
->
create_time
=
date
(
"Y-m-d h:i:sa"
,
time
());
$this
->
update_time
=
date
(
"Y-m-d h:i:sa"
,
time
());
$this
->
save
();
return
$this
->
id
;
}
}
public
function
findSuperviseList
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
,
$params
=
''
)
{
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