Commit 398dc7fc authored by luhongguang's avatar luhongguang

Merge branch 'develop' of https://git.yidian-inc.com:8021/bp/goods into develop

parents d2f7cf93 76981b46
......@@ -162,13 +162,13 @@ class ShopService
throw new ShopException(['cus' => 4]);
}
$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
}
if (empty($subShop)) {
throw new ShopException(['cus' => 6]);
throw new ShopException(['cus' => 10]);
}
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