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
b3064e66
Commit
b3064e66
authored
Aug 26, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
08e3706f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
AttentionShop.php
application/api/controller/AttentionShop.php
+4
-6
AttentionModel.php
application/model/AttentionModel.php
+1
-0
No files found.
application/api/controller/AttentionShop.php
View file @
b3064e66
...
...
@@ -90,8 +90,6 @@ class AttentionShop extends Basic
return
$this
->
response
(
"101"
,
"用户id不能为空"
);
}
$params
[
"is_del"
]
=
0
;
//关注中的商铺
$params
[
"type"
]
=
0
;
$result
=
$this
->
attentionModel
->
myAttentionList
(
$pageNo
,
$pageSize
,
$order_
,
$field
,
$params
);
if
(
count
(
$result
)
<=
0
)
{
return
$this
->
response
(
"200"
,
"请求数据为空"
);
...
...
@@ -99,18 +97,18 @@ class AttentionShop extends Basic
foreach
(
$result
as
$key
=>
$val
)
{
$result
[
$key
][
"price"
]
=
$val
[
"price"
]
*
0.01
;
$result
[
$key
][
"api_path"
]
=
SHOP_IMAGE_DEPOT_URL
;
/* $imgParam["house_id"] = $val["house_id"];
/*
$imgParam["house_id"] = $val["house_id"];
$imgParam["img_type"] = 1; //默认主图
$imgArr = $this->imgModel->getHouseImages($imgParam, 1);
$result[$key]["images"] = $imgArr;*/
$result[$key]["images"] = $imgArr;
*/
if
(
empty
(
$val
[
'is_show_image'
]))
{
if
(
$val
[
"external_image_id"
])
{
$param
[
"id"
]
=
array
(
"in"
,
$val
[
"external_image_id"
]);
$param
[
"img_status"
]
=
0
;
$field
=
'id,0 as house_id,img_type,label,img_name,img_status'
;
$res
=
$this
->
imageDepotModel
->
getImageDepotById
(
$field
,
$param
,
1
);
$result
[
$key
][
"images"
]
=
count
(
$res
)
>
0
?
$res
:
[];
}
...
...
application/model/AttentionModel.php
View file @
b3064e66
...
...
@@ -99,6 +99,7 @@ class AttentionModel extends Model
{
$params
[
"a.user_id"
]
=
$param
[
"user_id"
];
$params
[
"a.is_del"
]
=
$param
[
"is_del"
];
$params
[
"type"
]
=
0
;
//$params["b.room_num_left"] = array( "<>", 0 ); //剩余数为0 的商品不显示
$params
[
"b.is_show"
]
=
array
(
"eq"
,
0
);
//只显示公开的楼盘
return
$this
->
field
(
$field
)
...
...
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