|
|
@@ -155,6 +155,11 @@ class CustomController extends Controller
|
|
|
$customerInfo = explode('_', $customer);
|
|
|
|
|
|
$post = []; // 组织表单数据
|
|
|
+ //$post['introSjId'] = $customerInfo[2];
|
|
|
+ //$post['introShopId'] = $customerInfo[3];
|
|
|
+ $post['ghsShopAdminId'] = $customerInfo[5]; // 取供应商id
|
|
|
+
|
|
|
+
|
|
|
$shopName = $customerInfo[0];
|
|
|
$post['name'] = $shopName;
|
|
|
if (empty($shopName)) {
|
|
|
@@ -217,13 +222,12 @@ class CustomController extends Controller
|
|
|
Yii::info('申请失败');
|
|
|
continue;
|
|
|
}
|
|
|
- $passInfo = ApplyService::pass($id);
|
|
|
+ $passInfo = ApplyService::pass($id, '批发商手动创建客户,脚本执行创建,并自动审核');
|
|
|
|
|
|
//输出登录信息
|
|
|
$newShop = $passInfo['shop'] ?? [];
|
|
|
$newMainId = $newShop->mainId ?? 0;
|
|
|
$newShopId = $newShop->id ?? 0;
|
|
|
- $pfShopId = $newShop->pfShopId ?? 0;
|
|
|
|
|
|
//前端用于判断是否注册
|
|
|
$admin['currentShopId'] = $newShopId;
|
|
|
@@ -236,17 +240,13 @@ class CustomController extends Controller
|
|
|
//$shopAdmin->lastLogin = date("Y-m-d H:i:s");
|
|
|
//$shopAdmin->save();
|
|
|
|
|
|
- //是否有切换门店的权限
|
|
|
- $switchShop = \biz\shop\classes\ShopAdminClass::hasSwitchShopRight($shopAdmin);
|
|
|
- $remind = getenv('HD_UPDATE_REMIND') == false ? 0 : getenv('HD_UPDATE_REMIND');
|
|
|
-
|
|
|
$hdUpgrading = getenv('HD_UPGRADING') == false ? 0 : getenv('HD_UPGRADING');
|
|
|
if ($hdUpgrading == 1) {
|
|
|
Yii::info('系统升级中,稍后再试');
|
|
|
continue;
|
|
|
}
|
|
|
$transaction->commit();
|
|
|
- noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 被批发端手动注册", '15280215347');
|
|
|
+ noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 被批发商手动注册", '15280215347');
|
|
|
|
|
|
echo "create customers success";
|
|
|
}
|