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
621b8a0f
Commit
621b8a0f
authored
Sep 05, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
54b6f0ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Shop.php
application/api/controller/Shop.php
+6
-5
No files found.
application/api/controller/Shop.php
View file @
621b8a0f
...
...
@@ -90,7 +90,7 @@ class Shop extends Basic
if
(
empty
(
$params
[
'city'
])
&&
(
$params
[
'city'
]
==
"杭州市"
||
$params
[
'city'
]
==
"上海市"
))
{
return
$this
->
response
(
"101"
,
"城市不能为空"
);
}
$field
=
"id,external_title as title,external_address as address,city,disc,business_district_id,status,industry_type
$field
=
"id,external_title as title,external_address as address,city,disc,business_district_id,status,industry_type
,external_image_id
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price"
;
$conditions
[
"city"
]
=
trim
(
$params
[
'city'
]);
...
...
@@ -218,12 +218,13 @@ class Shop extends Basic
public
function
getShopDetail
()
{
header
(
'Access-Control-Allow-Origin:*'
);
/* $params = array(
"id" => 3084,
$params
=
$this
->
params
;
/* $params = array(
"id" => 7407,
"site_area" => 3, //1.c端 3.b端 4.pc端
//"user_id" => 2 //if c端 用户登录后传入user_id
);*/
$params
=
$this
->
params
;
$conditions
=
[];
if
(
empty
(
$params
[
'id'
]))
{
...
...
@@ -233,7 +234,7 @@ class Shop extends Basic
return
$this
->
response
(
"101"
,
"请求来源错误"
);
}
$field
=
"a.id,a.external_title as title,a.external_address as address,a.city,a.disc,a.business_district_id,a.status,
$field
=
"a.id,a.external_title as title,a.external_address as address,a.city,a.disc,a.business_district_id,a.status,
a.external_image_id,
a.industry_type,a.shop_area_start,a.shop_area_end,a.shop_type,a.residue_num,a.shop_sign,a.is_carefully_chosen,a.rent_type,
a.rent_price,a.management_fee,a.slotting_fee,a.total,a.market_area,a.is_has_gas,a.file_path,a.longitude,a.latitude,
b.enter_num,b.external_item_advantage as item_advantage,b.sign_rule,b.do_business_date, b.opening_date,b.traffic,
...
...
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