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
b603c7ba
Commit
b603c7ba
authored
Dec 04, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对外图片
parent
a18e0a90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
Shop.php
application/api_broker/controller/Shop.php
+15
-1
No files found.
application/api_broker/controller/Shop.php
View file @
b603c7ba
...
@@ -16,6 +16,7 @@ use app\model\GHousesExt;
...
@@ -16,6 +16,7 @@ use app\model\GHousesExt;
use
app\model\GHousesFollowUp
;
use
app\model\GHousesFollowUp
;
use
app\model\GHousesImgs
;
use
app\model\GHousesImgs
;
use
app\model\GHousesToAgents
;
use
app\model\GHousesToAgents
;
use
app\model\GImageDepot
;
use
app\model\GLandlordPhone
;
use
app\model\GLandlordPhone
;
use
app\model\OBargainModel
;
use
app\model\OBargainModel
;
use
app\model\OReportModel
;
use
app\model\OReportModel
;
...
@@ -497,7 +498,7 @@ class Shop extends Basic
...
@@ -497,7 +498,7 @@ class Shop extends Basic
$field
.=
',b.age_limit,b.payment_month,b.deposit_month,b.external_slotting_fee,c.agents_id, b.area_width,b.depth,
$field
.=
',b.age_limit,b.payment_month,b.deposit_month,b.external_slotting_fee,c.agents_id, b.area_width,b.depth,
b.electric_quantity,b.voltage,b.exhaust_fume,b.running_water,b.downriver,b.business_scope,b.decoration,b.source
b.electric_quantity,b.voltage,b.exhaust_fume,b.running_water,b.downriver,b.business_scope,b.decoration,b.source
,b.rim_mating,b.section,b.crowd,b.other,a.is_lock,b.project_name,a.is_vip,a.fit_industry_type'
;
,b.rim_mating,b.section,b.crowd,b.other,a.is_lock,b.project_name,a.is_vip,a.fit_industry_type
,a.is_show_image,a.external_image_id
'
;
$result
=
$this
->
gHousesModel
->
getHouseDetailById
(
$field
,
$conditions
);
$result
=
$this
->
gHousesModel
->
getHouseDetailById
(
$field
,
$conditions
);
if
(
count
(
$result
)
<=
0
)
{
if
(
count
(
$result
)
<=
0
)
{
return
$this
->
response
(
"101"
,
'此楼盘不存在'
);
return
$this
->
response
(
"101"
,
'此楼盘不存在'
);
...
@@ -640,6 +641,19 @@ class Shop extends Basic
...
@@ -640,6 +641,19 @@ class Shop extends Basic
$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'
]
}
年"
;
$result
[
'payment_deposit'
]
=
empty
(
$result
[
'payment_month'
])
?
""
:
"付
{
$result
[
'payment_month'
]
}
押
{
$result
[
'deposit_month'
]
}
"
;
$result
[
'payment_deposit'
]
=
empty
(
$result
[
'payment_month'
])
?
""
:
"付
{
$result
[
'payment_month'
]
}
押
{
$result
[
'deposit_month'
]
}
"
;
$result
[
'age_limit'
]
=
empty
(
$result
[
'age_limit'
])
?
""
:
"签订
{
$result
[
'age_limit'
]
}
年"
;
$result
[
'age_limit'
]
=
empty
(
$result
[
'age_limit'
])
?
""
:
"签订
{
$result
[
'age_limit'
]
}
年"
;
if
(
$result
[
'is_show_image'
]
==
1
)
{
$m_image_depot
=
new
GImageDepot
();
$image_id
=
explode
(
','
,
$result
[
'external_image_id'
]);
if
(
empty
(
$image_id
[
0
]))
{
$result
[
'external_image'
]
=
""
;
}
else
{
$external_image
=
$m_image_depot
->
getInfo
(
'img_name'
,
[
'id'
=>
$image_id
[
0
],
'img_status'
=>
0
]);
$result
[
'external_image'
]
=
$external_image
[
'img_name'
];
}
unset
(
$result
[
'external_image_id'
]);
}
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
}
}
...
...
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