Commit 76981b46 authored by jianghaiming's avatar jianghaiming

update:set

parent 2bc3d8f7
...@@ -162,13 +162,13 @@ class ShopService ...@@ -162,13 +162,13 @@ class ShopService
throw new ShopException(['cus' => 4]); throw new ShopException(['cus' => 4]);
} }
$colums['shop_name'] = $name; $colums['shop_name'] = $name;
$subShopInfo = SubShop::getRecord(['shop_name' => $name]);
if (!empty($subShopInfo) && $subShopInfo['sub_shop_id'] != $where['sub_shop_id']) {
throw new ShopException(['cus' => 6]);
}
} }
$subShopInfo = SubShop::getRecord(['shop_name' => $name]);
if (!empty($subShopInfo) && $subShopInfo['sub_shop_id'] != $where['sub_shop_id']) {
throw new ShopException(['cus' => 6]);
}
...@@ -210,7 +210,7 @@ class ShopService ...@@ -210,7 +210,7 @@ class ShopService
} }
if (empty($subShop)) { if (empty($subShop)) {
throw new ShopException(['cus' => 6]); throw new ShopException(['cus' => 10]);
} }
return $subShop; return $subShop;
} }
......
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