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
f4bbfc6f
Commit
f4bbfc6f
authored
Feb 02, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
747b97f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
Shop.php
application/api/controller/Shop.php
+1
-1
AttentionModel.php
application/model/AttentionModel.php
+2
-5
No files found.
application/api/controller/Shop.php
View file @
f4bbfc6f
...
@@ -193,7 +193,7 @@ class Shop extends Basic
...
@@ -193,7 +193,7 @@ class Shop extends Basic
$attention
[
"is_del"
]
=
array
(
"eq"
,
0
);;
$attention
[
"is_del"
]
=
array
(
"eq"
,
0
);;
$attResult
=
$this
->
attentionModel
->
getAttentionByUserIdAndHouseId
(
$attention
);
$attResult
=
$this
->
attentionModel
->
getAttentionByUserIdAndHouseId
(
$attention
);
if
(
count
(
$attResult
)
>
0
)
if
(
count
(
$attResult
)
>
0
)
$result
[
"attention"
]
=
$attResult
[
"id"
];
$result
[
"attention"
]
=
$attResult
[
0
][
"id"
];
}
}
...
...
application/model/AttentionModel.php
View file @
f4bbfc6f
...
@@ -111,13 +111,10 @@ class AttentionModel extends Model
...
@@ -111,13 +111,10 @@ class AttentionModel extends Model
*/
*/
public
function
getAttentionByUserIdAndHouseId
(
$params
)
public
function
getAttentionByUserIdAndHouseId
(
$params
)
{
{
$result
=
$this
->
field
(
"id"
)
return
$this
->
field
(
"id"
)
->
where
(
$params
)
->
where
(
$params
)
->
limit
(
1
)
->
limit
(
1
)
->
select
();
->
select
();
if
(
count
(
$result
)
>
0
)
{
return
$result
[
0
];
}
return
null
;
}
}
}
}
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