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
65128d48
Commit
65128d48
authored
Oct 26, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
return
parent
c74ad866
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Shop.php
application/api_broker/controller/Shop.php
+3
-4
No files found.
application/api_broker/controller/Shop.php
View file @
65128d48
...
...
@@ -99,7 +99,7 @@ class Shop extends Basic
}
else
{
// $field = "id,internal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type
$field
=
"id,
ex
ternal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type
$field
=
"id,
in
ternal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_lock
,is_exclusive_type"
;
...
...
@@ -114,7 +114,7 @@ class Shop extends Basic
if
(
isset
(
$params
[
'title'
])
&&
$params
[
'site_area'
]
==
1
||
$params
[
'site_area'
]
==
2
)
{
$conditions
[
'external_title'
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'title'
])
.
"%"
);
}
else
if
(
isset
(
$params
[
'title'
]))
{
$conditions
[
'internal_title
|id
'
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'title'
])
.
"%"
);
$conditions
[
'internal_title'
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'title'
])
.
"%"
);
}
//c端查对外的名字 b端查对内的名字
...
...
@@ -253,7 +253,6 @@ class Shop extends Basic
foreach
(
$result
as
$key
=>
$val
)
{
$result
[
$key
][
"api_path"
]
=
CK_IMG_URL
.
'images/'
;
$result
[
$key
][
"rent_price"
]
=
$val
[
"rent_price"
]
*
0.01
;
$result
[
$key
][
"title"
]
=
$val
[
"id"
]
.
$val
[
"disc"
]
.
$result
[
$key
][
"title"
];
$param
[
"house_id"
]
=
$val
[
"id"
];
$param
[
"img_type"
]
=
1
;
//默认主图
...
...
@@ -394,7 +393,7 @@ class Shop extends Basic
if
(
$params
[
'site_area'
]
==
3
)
{
// $field = "a.id,a.internal_title as title,a.internal_address as address,a.city,a.disc,a.business_district_id,a.status,
$field
=
"a.id,a.
ex
ternal_title as title,a.external_address as address,a.city,a.disc,a.business_district_id,a.status,
$field
=
"a.id,a.
in
ternal_title as title,a.external_address as address,a.city,a.disc,a.business_district_id,a.status,
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.internal_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