Commit 9278369b authored by zw's avatar zw

bug

parent 222130d4
...@@ -164,12 +164,12 @@ class Shop extends Basic ...@@ -164,12 +164,12 @@ class Shop extends Basic
public function getShopDetail() public function getShopDetail()
{ {
/* $params = array( $params = array(
"id" => 1, "id" => 5,
"site_area" => 1, //1.c端 3.b端 "site_area" => 1, //1.c端 3.b端
"user_id" => 12 //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'])) {
...@@ -219,7 +219,7 @@ class Shop extends Basic ...@@ -219,7 +219,7 @@ class Shop extends Basic
$attention["is_del"] = array( "eq", 0 ); $attention["is_del"] = array( "eq", 0 );
$attResult = $this->attentionModel->getAttentionByUserIdAndHouseId($attention); $attResult = $this->attentionModel->getAttentionByUserIdAndHouseId($attention);
if (count($attResult) > 0) if (count($attResult) > 0)
$result ["attention"] = $attResult["id"]; $result ["attention"] = $attResult[0]["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