Commit ec964a74 authored by clone's avatar clone

bug

parent 4a3fd39e
...@@ -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", "请求参数错误");
} }
......
...@@ -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'])) {
......
...@@ -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;
} }
......
...@@ -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;
...@@ -75,11 +77,11 @@ class AppChat extends Basic ...@@ -75,11 +77,11 @@ class AppChat extends Basic
*/ */
public function userChat() public function userChat()
{ {
/* $params = array( /* $params = array(
"user_id" => 118, "user_id" => 118,
"mobile" => "15821506182", "mobile" => "15821506182",
"source" => 1 //1经纪人 2用户 "source" => 1 //1经纪人 2用户
);*/ );*/
$params = $this->params; $params = $this->params;
...@@ -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"];
}
}
} }
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