Commit 3bc55dff authored by zw's avatar zw

个人中心升级看铺数

parent e661f88c
...@@ -70,20 +70,15 @@ class LookShop extends Basic{ ...@@ -70,20 +70,15 @@ class LookShop extends Basic{
if(count($agentList) <= 0){ if(count($agentList) <= 0){
return $this->response("101","request null"); return $this->response("101","request null");
} }
$showArr = [];
$noShowArr = [];
foreach ($agentList as $key=>$item){ foreach ($agentList as $key=>$item){
$residue_num = $this->lookShopService_->isLookShop($item["id"]); $residue_num = $this->lookShopService_->isLookShop($item["id"]);
if($residue_num <= 0){ if($residue_num <= 0){
$item["is_show_button"] = true; $agentList[$key]["is_show_button"] = true;
array_push($showArr,$item);
}else{ }else{
$item["is_show_button"] = false; $agentList[$key]["is_show_button"] = false;
array_push($noShowArr,$item);
} }
} }
array_push($showArr,$noShowArr); return $this->response("200","request success",$agentList);
return $this->response("200","request success",$showArr);
} }
} }
\ No newline at end of file
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