|
|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace biz\shop\classes;
|
|
|
|
|
|
+use bizGhs\product\classes\ProductClass;
|
|
|
use bizHd\admin\classes\ShopAdminClass;
|
|
|
use biz\sj\classes\MerchantClass;
|
|
|
use common\components\dirUtil;
|
|
|
@@ -72,7 +73,14 @@ class ShopClass extends BaseClass
|
|
|
if (!empty($exists)) {
|
|
|
util::fail('门店名称已经存在');
|
|
|
}
|
|
|
+ //补充fullAddress linqh 2021.4.18
|
|
|
+ $data['fullAddress'] = $data['province'].$data['city'].$data['address'].$data['floor'];
|
|
|
$shop = self::add($data);
|
|
|
+ $newShopId = $shop['id'];
|
|
|
+ //初始化花材 linqh 2021.5.11
|
|
|
+ $adminId = $data['adminId']??0;
|
|
|
+ $shopId = $data['shopId']??0;
|
|
|
+ ProductClass::newShopInitProduct($data['merchantId'],$shopId,$newShopId,$adminId);
|
|
|
return $shop;
|
|
|
}
|
|
|
|