Commit 2adf5511 authored by hujun's avatar hujun

拼接图片地址

parent d67a8687
......@@ -13,7 +13,7 @@ define('IMG_PATH','https://admin.tonglianjituan.com/houseImg/');
define('LOCAL_IMG_HOST','/resource/lib/Attachments/');
define('PAGESIZE', 15); //分页每页条数
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('CK_IMG_URL', CURRENT_URL . '/resource/lib/Attachments/'); //ck 资源文件
return [
......
......@@ -315,11 +315,15 @@ class GHouses extends BaseModel
->field('img_name')
->where('house_id',$houses_id)
->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['name'] = $agents['name'].'-'.$agents['phone'];
$return['agent_start_time'] = $house_ext['agent_start_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;
} else {
$return = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment