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
7c6f336c
Commit
7c6f336c
authored
Aug 29, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户浏览记录 验证
parent
dc4ab00a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
LookShop.php
application/api_broker/controller/LookShop.php
+5
-0
UserLookShopValidate.php
application/api_broker/validate/UserLookShopValidate.php
+30
-0
No files found.
application/api_broker/controller/LookShop.php
View file @
7c6f336c
...
...
@@ -168,11 +168,16 @@ class LookShop extends Basic
public
function
getLookShopList
()
{
$params
=
$this
->
params
;
$checkResult
=
$this
->
validate
(
$params
,
"UserLookShopValidate.getLookShopList"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
}
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$s_look_Shop
=
new
LookShopService
();
$field
=
'a.source,a.create_time,b.buyer_nick,b.buyer_img,c.id as user_id'
;
$conditions
[
'a.source'
]
=
1
;
$conditions
[
'a.house_id'
]
=
$params
[
'house_id'
];
$result
=
$s_look_Shop
->
getLookShopList
(
$conditions
,
$field
,
$pageNo
,
$pageSize
);
if
(
$result
){
return
$this
->
response
(
"200"
,
"success"
,
$result
);
...
...
application/api_broker/validate/UserLookShopValidate.php
0 → 100644
View file @
7c6f336c
<?php
namespace
app\api_broker\validate
;
use
think\Validate
;
/**
* Created by PhpStorm.
* User : zhuwei
* Date : 2019-08-29
* Time : 17:47:05
* Intro:
*/
class
UserLookShopValidate
extends
Validate
{
protected
$rule
=
[
'house_id'
=>
'require|number|gt:0'
,
];
protected
$message
=
[
'house_id.require'
=>
'house_id必传字段'
,
'house_id.number'
=>
'house_id必须为数字'
,
'house_id.gt'
=>
'house_id必须大于0'
,
];
protected
$scene
=
[
'getLookShopList'
=>
[
'house_id'
],
];
}
\ 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