|
|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace biz\sj\services;
|
|
|
|
|
|
+use biz\shop\classes\MainClass;
|
|
|
use biz\sj\classes\SjClass;
|
|
|
use biz\wx\classes\WxMessageClass;
|
|
|
use bizGhs\custom\services\CustomService;
|
|
|
@@ -148,8 +149,10 @@ class MerchantService extends BaseService
|
|
|
];
|
|
|
GoodsSettingClass::add($setData);
|
|
|
|
|
|
- //创建门店
|
|
|
+ $main = MainClass::add(['id' => null], true);
|
|
|
+ $mainId = $main->id ?? 0;
|
|
|
|
|
|
+ //创建门店
|
|
|
$shopData = [
|
|
|
'shopName' => '首店',
|
|
|
'sjId' => $sjId,
|
|
|
@@ -157,6 +160,7 @@ class MerchantService extends BaseService
|
|
|
'openTime' => '8:00 - 23:00',
|
|
|
'telephone' => $mobile,
|
|
|
'default' => 1,
|
|
|
+ 'mainId' => $mainId,
|
|
|
'parentId' => $applyData['introSjId'] ?? 0,
|
|
|
'parentShopId' => $applyData['introShopId'] ?? 0,
|
|
|
'mobile' => $mobile,
|