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
b1b0abc2
Commit
b1b0abc2
authored
Jul 30, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app商铺详情增加字段
parent
fb16d8fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
Shop.php
application/api_broker/controller/Shop.php
+20
-3
No files found.
application/api_broker/controller/Shop.php
View file @
b1b0abc2
...
@@ -5,11 +5,13 @@ namespace app\api_broker\controller;
...
@@ -5,11 +5,13 @@ namespace app\api_broker\controller;
use
app\api_broker\extend\Basic
;
use
app\api_broker\extend\Basic
;
use
app\api_broker\service\LookShopService
;
use
app\api_broker\service\LookShopService
;
use
app\api_broker\service\VerifyService
;
use
app\api_broker\service\VerifyService
;
use
app\model\AAgents
;
use
app\model\ACollectHouse
;
use
app\model\ACollectHouse
;
use
app\model\AttentionModel
;
use
app\model\AttentionModel
;
use
app\model\GHouses
;
use
app\model\GHouses
;
use
app\model\GHousesFollowUp
;
use
app\model\GHousesFollowUp
;
use
app\model\GHousesImgs
;
use
app\model\GHousesImgs
;
use
app\model\GHousesToAgents
;
use
app\model\OBargainModel
;
use
app\model\OBargainModel
;
use
app\model\Regions
;
use
app\model\Regions
;
use
think\Log
;
use
think\Log
;
...
@@ -257,8 +259,8 @@ class Shop extends Basic
...
@@ -257,8 +259,8 @@ class Shop extends Basic
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.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,
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,
b.enter_num,b.internal_item_advantage as item_advantage,b.sign_rule,b.do_business_date, b.opening_date,b.traffic,
b.auditorium,b.tiny_brochure_url,b.start_business_date,a.upload_id,b.fee_rule,b.landlord_remark,a.create_time,b.landlord_phone
b.auditorium,b.tiny_brochure_url,b.start_business_date,a.upload_id,b.fee_rule,b.landlord_remark,a.create_time,b.landlord_phone
,
"
;
a.is_show,a.is_exclusive_type,a.update_time,a.external_title,a.external_address,b.external_item_advantage,b.agent_start_time,b.agent_end_time
"
;
$conditions
[
'a.status'
]
=
array
(
"neq"
,
3
);
$conditions
[
'a.status'
]
=
array
(
"neq"
,
3
);
}
else
{
}
else
{
$field
=
"a.id,a.internal_title,a.internal_address,a.external_title,a.external_address,
$field
=
"a.id,a.internal_title,a.internal_address,a.external_title,a.external_address,
...
@@ -304,7 +306,7 @@ class Shop extends Basic
...
@@ -304,7 +306,7 @@ class Shop extends Basic
$result
[
'landlord_phone'
]
=
json_decode
(
$result
[
'landlord_phone'
],
true
);
$result
[
'landlord_phone'
]
=
json_decode
(
$result
[
'landlord_phone'
],
true
);
$result
[
'create_time'
]
=
date
(
'Y-m-d'
,
strtotime
(
$result
[
'create_time'
]));
$result
[
'create_time'
]
=
date
(
'Y-m-d'
,
strtotime
(
$result
[
'create_time'
]));
}
}
if
(
$result
[
'status'
]
==
0
)
{
if
(
$result
[
'status'
]
==
0
)
{
return
$this
->
response
(
"101"
,
'此楼盘已下架'
);
return
$this
->
response
(
"101"
,
'此楼盘已下架'
);
}
}
...
@@ -355,6 +357,21 @@ class Shop extends Basic
...
@@ -355,6 +357,21 @@ class Shop extends Basic
if
(
$res
&&
(
$res
[
0
][
'status'
]
==
1
)){
//如果存在
if
(
$res
&&
(
$res
[
0
][
'status'
]
==
1
)){
//如果存在
$result
[
"is_collect"
]
=
1
;
$result
[
"is_collect"
]
=
1
;
}
}
//上传人
$m_agent
=
new
AAgents
();
$upload_data
=
$m_agent
->
getAgentById
(
'name,phone'
,[
'agent_id'
=>
$result
[
'upload_id'
]]);
$result
[
'upload_user'
]
=
$upload_data
[
0
][
'name'
]
.
'-'
.
$upload_data
[
0
][
'phone'
];
//独家方
if
(
$result
[
'is_exclusive_type'
]
==
1
)
{
$m_house_agent
=
new
GHousesToAgents
();
$where_house
[
'is_del'
]
=
0
;
$where_house
[
'type'
]
=
3
;
$where_house
[
'houses_id'
]
=
$result
[
'id'
];
$house_agent_data
=
$m_house_agent
->
getAgentsByHouseId
(
'name,phone'
,
$where_house
);
$result
[
'exclusive_user'
]
=
$house_agent_data
[
0
][
'name'
]
.
'-'
.
$house_agent_data
[
0
][
'phone'
];
}
}
}
$result
[
'new_sign_rule'
]
=
"付
{
$result
[
'payment_month'
]
}
押
{
$result
[
'deposit_month'
]
}
,签订
{
$result
[
'age_limit'
]
}
年"
;
$result
[
'new_sign_rule'
]
=
"付
{
$result
[
'payment_month'
]
}
押
{
$result
[
'deposit_month'
]
}
,签订
{
$result
[
'age_limit'
]
}
年"
;
...
...
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