Commit 9aa78623 authored by jianghaiming's avatar jianghaiming

update:set

parent a8f95ba8
......@@ -24,7 +24,7 @@ class ShopService
{
$lifeAccountId = !empty($params['life_account_id']) ? $params['life_account_id'] : '';
$phone = !empty($params['phone']) ? $params['phone'] : '';
$shopId = !empty($params['shop_id']) ? $params['shop_id'] : '';
$name = !empty($params['name']) ? $params['name'] : '';
$addressLng = !empty($params['address_lng']) ? $params['address_lng'] : '';
$addressLat = !empty($params['address_lat']) ? $params['address_lat'] : '';
......@@ -70,6 +70,10 @@ class ShopService
if (!self::isPhone($phone)) {
throw new ShopException(['cus' => 7]);
}
$shopInfo = Shop::getRecord(['life_account_id' => $lifeAccountId]);
$shopId = !empty($shopInfo['shop_id']) ? $shopInfo['shop_id'] : '';
$res = self::getIdgenId(1, 'goods', $count = 1);
$subShopId = !empty($res[0]) ? $res[0] : '';
$colums = [
......
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