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
2adf5511
Commit
2adf5511
authored
Jan 29, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拼接图片地址
parent
d67a8687
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
config.php
application/config.php
+1
-1
GHouses.php
application/model/GHouses.php
+5
-1
No files found.
application/config.php
View file @
2adf5511
...
@@ -13,7 +13,7 @@ define('IMG_PATH','https://admin.tonglianjituan.com/houseImg/');
...
@@ -13,7 +13,7 @@ define('IMG_PATH','https://admin.tonglianjituan.com/houseImg/');
define
(
'LOCAL_IMG_HOST'
,
'/resource/lib/Attachments/'
);
define
(
'LOCAL_IMG_HOST'
,
'/resource/lib/Attachments/'
);
define
(
'PAGESIZE'
,
15
);
//分页每页条数
define
(
'PAGESIZE'
,
15
);
//分页每页条数
define
(
'ADMIN_URL_TL'
,
'https://admin.tonglianjituan.com/'
);
//B端网址
define
(
'ADMIN_URL_TL'
,
'https://admin.tonglianjituan.com/'
);
//B端网址
define
(
'CURRENT_URL'
,
'http://'
.
$_SERVER
[
'HTTP_HOST'
]
.
DS
);
//取当前域名地址
define
(
'CURRENT_URL'
,
'http://'
.
$_SERVER
[
'HTTP_HOST'
]
.
'/'
);
//取当前域名地址
define
(
'HEADERIMGURL'
,
CURRENT_URL
.
'static'
.
DS
.
'head_portrait/'
);
//头像地址
define
(
'HEADERIMGURL'
,
CURRENT_URL
.
'static'
.
DS
.
'head_portrait/'
);
//头像地址
define
(
'CK_IMG_URL'
,
CURRENT_URL
.
'/resource/lib/Attachments/'
);
//ck 资源文件
define
(
'CK_IMG_URL'
,
CURRENT_URL
.
'/resource/lib/Attachments/'
);
//ck 资源文件
return
[
return
[
...
...
application/model/GHouses.php
View file @
2adf5511
...
@@ -315,11 +315,15 @@ class GHouses extends BaseModel
...
@@ -315,11 +315,15 @@ class GHouses extends BaseModel
->
field
(
'img_name'
)
->
field
(
'img_name'
)
->
where
(
'house_id'
,
$houses_id
)
->
where
(
'house_id'
,
$houses_id
)
->
where
(
'img_status'
,
0
)
->
select
();
->
where
(
'img_status'
,
0
)
->
select
();
foreach
(
$img
as
$k
=>
$v
)
{
$img_arr
[
$k
]
=
CURRENT_URL
.
'resource/lib/Attachments/'
.
$v
[
'img_name'
];
}
$return
[
'id'
]
=
$agents
->
id
;
$return
[
'id'
]
=
$agents
->
id
;
$return
[
'name'
]
=
$agents
[
'name'
]
.
'-'
.
$agents
[
'phone'
];
$return
[
'name'
]
=
$agents
[
'name'
]
.
'-'
.
$agents
[
'phone'
];
$return
[
'agent_start_time'
]
=
$house_ext
[
'agent_start_time'
];
$return
[
'agent_start_time'
]
=
$house_ext
[
'agent_start_time'
];
$return
[
'agent_end_time'
]
=
$house_ext
[
'agent_end_time'
];
$return
[
'agent_end_time'
]
=
$house_ext
[
'agent_end_time'
];
$return
[
'exclusive_img'
]
=
$img
;
$return
[
'exclusive_img'
]
=
$img
_arr
;
$return
[
'is_exclusive_type'
]
=
$result
->
is_exclusive_type
;
$return
[
'is_exclusive_type'
]
=
$result
->
is_exclusive_type
;
}
else
{
}
else
{
$return
=
false
;
$return
=
false
;
...
...
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