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
ec964a74
Commit
ec964a74
authored
Apr 09, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
4a3fd39e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
9 deletions
+53
-9
OrderLog.php
application/api_broker/controller/OrderLog.php
+2
-2
Shop.php
application/api_broker/controller/Shop.php
+7
-7
OrderLogService.php
application/api_broker/service/OrderLogService.php
+2
-0
AppChat.php
application/chat/controller/AppChat.php
+42
-0
No files found.
application/api_broker/controller/OrderLog.php
View file @
ec964a74
...
@@ -285,11 +285,11 @@ class OrderLog extends Basic
...
@@ -285,11 +285,11 @@ class OrderLog extends Basic
public
function
searchOrder
()
public
function
searchOrder
()
{
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
$params
=
array
(
/*
$params = array(
"type" => 4, //0.客户电话 1.客户姓名 2.报备人电话 3.报备人姓名 4.商铺名称 5.商铺地址
"type" => 4, //0.客户电话 1.客户姓名 2.报备人电话 3.报备人姓名 4.商铺名称 5.商铺地址
"agent_id" => 1,
"agent_id" => 1,
"search_keyword" => "福气"
"search_keyword" => "福气"
);
);
*/
if
(
!
isset
(
$params
[
"type"
])
||
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"search_keyword"
]))
{
if
(
!
isset
(
$params
[
"type"
])
||
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"search_keyword"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
...
...
application/api_broker/controller/Shop.php
View file @
ec964a74
...
@@ -122,11 +122,11 @@ class Shop extends Basic
...
@@ -122,11 +122,11 @@ class Shop extends Basic
$area_start
=
isset
(
$params
[
'shop_area_start'
])
?
$params
[
'shop_area_start'
]
:
-
1
;
$area_start
=
isset
(
$params
[
'shop_area_start'
])
?
$params
[
'shop_area_start'
]
:
-
1
;
$area_end
=
isset
(
$params
[
'shop_area_end'
])
?
$params
[
'shop_area_end'
]
:
-
1
;
$area_end
=
isset
(
$params
[
'shop_area_end'
])
?
$params
[
'shop_area_end'
]
:
-
1
;
if
(
$area_start
>=
0
&&
$area_end
>=
0
)
{
//面积
if
(
$area_start
>=
0
&&
$area_end
>=
0
)
{
//面积
$conditions
[
'shop_area_start'
]
=
array
(
'between'
,
array
(
$area_start
*
10000
,
$area_end
*
10000
)
);
$conditions
[
'shop_area_start'
]
=
array
(
'between'
,
array
(
$area_start
,
$area_end
)
);
$conditions
[
'shop_area_end'
]
=
array
(
'between'
,
array
(
$area_start
*
10000
,
$area_end
*
10000
)
);
$conditions
[
'shop_area_end'
]
=
array
(
'between'
,
array
(
$area_start
,
$area_end
)
);
}
else
if
(
$area_start
>=
0
&&
$area_end
<
0
)
{
//100米以上不用传结束面积
}
else
if
(
$area_start
>=
0
&&
$area_end
<
0
)
{
//100米以上不用传结束面积
$conditions
[
'shop_area_start'
]
=
array
(
'egt'
,
$area_start
*
10000
);
$conditions
[
'shop_area_start'
]
=
array
(
'egt'
,
$area_start
);
$conditions
[
'shop_area_end'
]
=
array
(
'egt'
,
$area_start
*
10000
);
$conditions
[
'shop_area_end'
]
=
array
(
'egt'
,
$area_start
);
}
}
$price_start
=
isset
(
$params
[
'rent_price_start'
])
?
$params
[
'rent_price_start'
]
:
-
1
;
$price_start
=
isset
(
$params
[
'rent_price_start'
])
?
$params
[
'rent_price_start'
]
:
-
1
;
...
@@ -190,12 +190,12 @@ class Shop extends Basic
...
@@ -190,12 +190,12 @@ class Shop extends Basic
public
function
getShopDetail
()
public
function
getShopDetail
()
{
{
$params
=
array
(
/*
$params = array(
"id" => 5,
"id" => 5,
"site_area" => 1, //1.c端 3.b端
"site_area" => 1, //1.c端 3.b端
"user_id" => 2 //if c端 用户登录后传入user_id
"user_id" => 2 //if c端 用户登录后传入user_id
);
);
*/
//
$params = $this->params;
$params
=
$this
->
params
;
$conditions
=
[];
$conditions
=
[];
if
(
empty
(
$params
[
'id'
]))
{
if
(
empty
(
$params
[
'id'
]))
{
...
...
application/api_broker/service/OrderLogService.php
View file @
ec964a74
...
@@ -183,6 +183,8 @@ class OrderLogService
...
@@ -183,6 +183,8 @@ class OrderLogService
//$result[$k]["user_phone"] = preg_replace('/(\d{3})\d{4}(\d{4})/','$1****$2',$v["user_phone"]);
//$result[$k]["user_phone"] = preg_replace('/(\d{3})\d{4}(\d{4})/','$1****$2',$v["user_phone"]);
$result
[
$k
][
"user_pic"
]
=
HEADERIMGURL
.
$v
[
"user_pic"
];
$result
[
$k
][
"user_pic"
]
=
HEADERIMGURL
.
$v
[
"user_pic"
];
}
}
//todo 获取楼盘的案场权限人
return
$result
;
return
$result
;
}
}
...
...
application/chat/controller/AppChat.php
View file @
ec964a74
...
@@ -16,7 +16,9 @@ use app\chat\service\ChatService;
...
@@ -16,7 +16,9 @@ use app\chat\service\ChatService;
use
app\chat\utils\RPush
;
use
app\chat\utils\RPush
;
use
app\extra\RedisPackage
;
use
app\extra\RedisPackage
;
use
app\model\ChatMsg
;
use
app\model\ChatMsg
;
use
app\model\GHouses
;
use
app\model\GHousesExt
;
use
app\model\GHousesExt
;
use
app\model\GHousesImgs
;
use
app\model\HouseImgs
;
use
app\model\HouseImgs
;
use
app\model\HouseinfoExts
;
use
app\model\HouseinfoExts
;
use
app\model\HouseInfos
;
use
app\model\HouseInfos
;
...
@@ -301,5 +303,45 @@ class AppChat extends Basic
...
@@ -301,5 +303,45 @@ class AppChat extends Basic
}
}
}
}
public
function
getHouseInfoByFrom
()
{
$params
=
$this
->
params
;
$params
=
array
(
'id'
=>
4762
,
'from'
=>
'b'
);
if
(
!
isset
(
$params
[
'id'
])
||
!
isset
(
$params
[
'from'
]))
{
return
$this
->
response
(
"300"
,
"参数不全"
);
}
$conditions
[
'id'
]
=
array
(
"eq"
,
$params
[
"id"
]
);
$gHousesModel
=
new
GHouses
();
//internal_title c端
if
(
$params
[
"from"
]
==
"b"
){
$field
=
"id,external_title as title,shop_area_start,shop_area_end,rent_type,rent_price"
;
}
else
{
$field
=
"id,internal_title as title,shop_area_start,shop_area_end,rent_type,rent_price"
;
}
$result
=
$gHousesModel
->
getHouseDetailById
(
$field
,
$conditions
);
$gHousesImgModel
=
new
GHousesImgs
();
$param
[
"house_id"
]
=
$params
[
'id'
];
$param
[
"img_type"
]
=
1
;
$images
=
$gHousesImgModel
->
getHouseImages
(
$param
,
1
);
$data
[
'$images'
]
=
IMG_PATH
.
'/img/houseinfobackgroundimg_new.png'
;
if
(
count
(
$images
)
>
0
){
$result
[
"imagename"
]
=
IMG_PATH
.
$images
[
0
][
"img_name"
];
}
}
}
}
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