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
f8af31ac
Commit
f8af31ac
authored
Dec 29, 2017
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成交记录校验
parent
559ea01a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
TradeLog.php
application/api/controller/TradeLog.php
+7
-2
Basic.php
application/api/extend/Basic.php
+1
-1
No files found.
application/api/controller/TradeLog.php
View file @
f8af31ac
...
@@ -51,7 +51,12 @@ class TradeLog extends Basic
...
@@ -51,7 +51,12 @@ class TradeLog extends Basic
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
if
(
!
isset
(
$params
[
"user_id"
]))
{
return
$this
->
response
(
"101"
,
"userId不能为空"
);
}
if
(
!
isset
(
$params
[
"phone"
]))
{
return
$this
->
response
(
"101"
,
"phone不能为空"
);
}
$order_
=
'a.created desc'
;
$order_
=
'a.created desc'
;
$field
=
"min(a.id) as id,a.tradecode,a.singntime,b.phpone,b.house_id,b.agent_id"
;
$field
=
"min(a.id) as id,a.tradecode,a.singntime,b.phpone,b.house_id,b.agent_id"
;
...
@@ -76,7 +81,7 @@ class TradeLog extends Basic
...
@@ -76,7 +81,7 @@ class TradeLog extends Basic
$subletResult
=
$this
->
subletModel
->
getSubletByHoseId
(
$subParam
);
$subletResult
=
$this
->
subletModel
->
getSubletByHoseId
(
$subParam
);
if
(
count
(
$subletResult
)
>
0
)
{
if
(
count
(
$subletResult
)
>
0
)
{
$result
[
$key
][
"is_added"
]
=
$subletResult
[
0
][
"status"
];
$result
[
$key
][
"is_added"
]
=
$subletResult
[
0
][
"status"
];
}
else
{
}
else
{
$result
[
$key
][
"is_added"
]
=
-
1
;
$result
[
$key
][
"is_added"
]
=
-
1
;
}
}
}
}
...
...
application/api/extend/Basic.php
View file @
f8af31ac
...
@@ -80,7 +80,7 @@ class Basic extends Controller
...
@@ -80,7 +80,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();
}
}
}
}
...
...
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