Commit b380575f authored by jianghaiming's avatar jianghaiming

update:set

parent 997b773d
......@@ -71,7 +71,7 @@ class ShopService
$shopInfo = Shop::getRecord(['life_account_id' => $lifeAccountId]);
$shopId = !empty($shopInfo['shop_id']) ? $shopInfo['shop_id'] : '';
$res = self::getIdgenId(1, 'goods', $count = 1);
$res = self::getIdgenId(substr($lifeAccountId, -2), 'goods', $count = 1);
$subShopId = !empty($res[0]) ? $res[0] : '';
$colums = [
'sub_shop_id' => $subShopId,
......@@ -160,7 +160,9 @@ class ShopService
// if (empty($subShopId)) {
// throw new ShopException(['cus' => 9]);
// }
$colums = [];
$colums = [
'update_time' => date("Y-m-d H:i:s")
];
if (!empty($name)) {
$detectParams = [
'businessId' => 1,
......@@ -207,7 +209,7 @@ class ShopService
}else{
$shopInfo = Shop::getRecord(['life_account_id' => $lifeAccountId]);
$shopId = !empty($shopInfo['shop_id']) ? $shopInfo['shop_id'] : '';
$res = self::getIdgenId(1, 'goods', $count = 1);
$res = self::getIdgenId(substr($lifeAccountId, -2), 'goods', $count = 1);
$subShopId = !empty($res[0]) ? $res[0] : '';
$colums = [
'sub_shop_id' => $subShopId,
......
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