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
15b1dd26
Commit
15b1dd26
authored
Dec 18, 2017
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
948210bf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
AttentionShop.php
application/api/controller/AttentionShop.php
+3
-2
Shop.php
application/api/controller/Shop.php
+3
-3
AttentionModel.php
application/model/AttentionModel.php
+1
-1
No files found.
application/api/controller/AttentionShop.php
View file @
15b1dd26
...
...
@@ -53,11 +53,12 @@ class AttentionShop extends Basic
*/
public
function
attentionList
()
{
$params
=
array
(
$params
=
$this
->
params
;
/* $params = array(
"user_id" => 1,
"pageNo" => 1,
"pageSize" => 15,
);
);
*/
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
...
...
application/api/controller/Shop.php
View file @
15b1dd26
...
...
@@ -171,9 +171,9 @@ class Shop extends Basic
}
//todo 查询关注门店
if
(
isset
(
$this
->
userId
))
{
$attention
[
"user_id"
]
=
$this
->
userId
;
$attention
[
"house_id"
]
=
$params
[
"id"
]
;
$attention
[
"is_del"
]
=
0
;
$attention
[
"user_id"
]
=
array
(
"eq"
,
$this
->
userId
)
;
$attention
[
"house_id"
]
=
array
(
"eq"
,
$params
[
"id"
]
)
;
$attention
[
"is_del"
]
=
array
(
"eq"
,
0
);
;
$attResult
=
$this
->
attentionModel
->
getAttentionByUserIdAndHouseId
(
$attention
);
if
(
count
(
$attResult
)
>
0
)
$result
[
"attention"
]
=
$attResult
[
"id"
];
...
...
application/model/AttentionModel.php
View file @
15b1dd26
...
...
@@ -89,7 +89,7 @@ class AttentionModel extends Model
*/
public
function
getAttentionByUserIdAndHouseId
(
$params
)
{
return
$this
->
fi
n
d
(
"id"
)
return
$this
->
fi
el
d
(
"id"
)
->
where
(
$params
)
->
limit
(
1
)
->
select
()[
0
];
...
...
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