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
b1b094aa
Commit
b1b094aa
authored
Feb 18, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
2d818403
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
AppointmentTime.php
application/api/controller/AppointmentTime.php
+7
-7
No files found.
application/api/controller/AppointmentTime.php
View file @
b1b094aa
...
@@ -245,12 +245,12 @@ class AppointmentTime extends Basic
...
@@ -245,12 +245,12 @@ class AppointmentTime extends Basic
}
else
{
}
else
{
$result
[
$key
][
"api_path"
]
=
SHOP_IMAGE_DEPOT_URL
;
$result
[
$key
][
"api_path"
]
=
SHOP_IMAGE_DEPOT_URL
;
if
(
$val
[
"external_image_id"
])
{
if
(
$val
[
"external_image_id"
])
{
$param
[
"id"
]
=
array
(
"in"
,
$val
[
"external_image_id"
]
);
$param
_2
[
"id"
]
=
array
(
"in"
,
$val
[
"external_image_id"
]
);
$param
[
"img_status"
]
=
0
;
$param
_2
[
"img_status"
]
=
0
;
$field
=
'id,0 as house_id,img_type,label,img_name,img_status'
;
$field
=
'id,0 as house_id,img_type,label,img_name,img_status'
;
$res
=
$this
->
imageDepotModel
->
getImageDepotById
(
$field
,
$param
,
1
);
$res
=
$this
->
imageDepotModel
->
getImageDepotById
(
$field
,
$param
_2
,
1
);
$result
[
$key
][
"images"
]
=
count
(
$res
)
>
0
?
$res
:
[];
$result
[
$key
][
"images"
]
=
count
(
$res
)
>
0
?
$res
:
[];
}
}
}
}
...
@@ -287,12 +287,12 @@ class AppointmentTime extends Basic
...
@@ -287,12 +287,12 @@ class AppointmentTime extends Basic
}
else
{
}
else
{
$result
[
$key
][
"api_path"
]
=
SHOP_IMAGE_DEPOT_URL
;
$result
[
$key
][
"api_path"
]
=
SHOP_IMAGE_DEPOT_URL
;
if
(
$val
[
"external_image_id"
])
{
if
(
$val
[
"external_image_id"
])
{
$param
[
"id"
]
=
array
(
"in"
,
$val
[
"external_image_id"
]
);
$param
_2
[
"id"
]
=
array
(
"in"
,
$val
[
"external_image_id"
]
);
$param
[
"img_status"
]
=
0
;
$param
_2
[
"img_status"
]
=
0
;
$field
=
'id,0 as house_id,img_type,label,img_name,img_status'
;
$field
=
'id,0 as house_id,img_type,label,img_name,img_status'
;
$res
=
$this
->
imageDepotModel
->
getImageDepotById
(
$field
,
$param
,
1
);
$res
=
$this
->
imageDepotModel
->
getImageDepotById
(
$field
,
$param
_2
,
1
);
$result
[
$key
][
"images"
]
=
count
(
$res
)
>
0
?
$res
:
[];
$result
[
$key
][
"images"
]
=
count
(
$res
)
>
0
?
$res
:
[];
}
}
}
}
...
...
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