Commit ed864f56 authored by clone's avatar clone

一些小bug

parent 3a24233a
......@@ -57,11 +57,11 @@ class AttentionShop extends Basic
public function attentionList()
{
$params = $this->params;
/* $params = array(
"user_id" => 47,
"pageNo" => 1,
"pageSize" => 15,
);*/
/* $params = array(
"user_id" => 47,
"pageNo" => 1,
"pageSize" => 15,
);*/
$pageNo = empty($params['pageNo']) ? 1 : $params['pageNo'];
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
......@@ -83,12 +83,9 @@ class AttentionShop extends Basic
$result[$key]["api_path"] = IMG_PATH;
$imgParam["house_id"] = $val["house_id"];
$imgParam["imgtype"] = 1; //默认主图
$imgArr= $this->dbImg->getHouseImages($imgParam, 1);
if(count($imgArr) >0 ){
$result[$key]["images"] = $imgArr[0];
}else{
$result[$key]["images"]="";
}
$imgArr = $this->dbImg->getHouseImages($imgParam, 1);
$result[$key]["images"] = $imgArr;
}
return $this->response("200", "request success", $result);
......
......@@ -88,6 +88,7 @@ class AttentionModel extends Model
public function myAttentionList($pageNo = 1, $pageSize = 15, $order_ = 'id desc', $field, $param)
{
$params["a.user_id"] = $param["user_id"];
$params["a.is_del"] = $param["is_del"];
//$params["b.room_num_left"] = array( "<>", 0 ); //剩余数为0 的商品不显示
$params["b.show_all"] = array( "eq", 0 ); //只显示公开的楼盘
return $this->field($field)
......
......@@ -110,8 +110,9 @@ class JournalAccounts extends Model
/**
* 查询当前经纪人的成交记录
*
* @param type $param
* @return type
* @param $fields
* @param $agent_id
* @return $result
*/
public function getJournalHouseInfoId($fields = '', $agent_id) {
if ($agent_id) {
......
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