Commit 487872a2 authored by clone's avatar clone

1

parent fe261ff9
......@@ -100,10 +100,12 @@ class StoreFee extends Basic
"store_id" => 1
);*/
$storeModel = new AStore();
$field = "a.id,b.office_address";
$field = "a.id,a.office_id,b.office_address";
$office_info = $storeModel->getStoreAndOffice($field,["store_id"=> $params["store_id"]]);
if($office_info){
return $this->response("200", "request success", $office_info);
if($office_info && $office_info[0]["office_id"] > 0){
return $this->response("200", "request success", $office_info[0]);
}else if ($office_info && $office_info[0]["office_id"] == 0){
return $this->response("101", "该门店没有绑定办公室");
}else{
return $this->response("101", "null");
}
......
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