|
|
@@ -88,9 +88,18 @@ class ApplyService extends BaseService
|
|
|
util::fail('请填写正确手机号');
|
|
|
}
|
|
|
//引荐的员工
|
|
|
- $shopAdminId = $data['shopAdminId'] ?? 0;
|
|
|
- if (!empty($shopAdminId)) {
|
|
|
- $shopAdmin = ShopAdminClass::getById($shopAdminId);
|
|
|
+ $currentShopAdminId = 0;
|
|
|
+ $ghsShopAdminId = $data['ghsShopAdminId'] ?? 0;
|
|
|
+ if (!empty($ghsShopAdminId)) {
|
|
|
+ $currentShopAdminId = $ghsShopAdminId;
|
|
|
+ } else {
|
|
|
+ $hdShopAdminId = $data['hdShopAdminId'] ?? 0;
|
|
|
+ if (!empty($hdShopAdminId)) {
|
|
|
+ $currentShopAdminId = $hdShopAdminId;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!empty($currentShopAdminId)) {
|
|
|
+ $shopAdmin = ShopAdminClass::getById($currentShopAdminId);
|
|
|
if (!empty($shopAdmin)) {
|
|
|
$sjId = $shopAdmin['merchantId'] ?? 0;
|
|
|
$sj = MerchantClass::getMerchantById($sjId);
|
|
|
@@ -100,6 +109,7 @@ class ApplyService extends BaseService
|
|
|
$data['introShopId'] = $shopAdmin['shopId'] ?? 0;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
$licenseNo = $data['licenseNo'] ?? '';
|
|
|
$mobile = $data['mobile'] ?? '';
|
|
|
if (empty($licenseNo)) {
|
|
|
@@ -157,10 +167,20 @@ class ApplyService extends BaseService
|
|
|
if (!empty($has)) {
|
|
|
util::fail('您已经申请过');
|
|
|
}
|
|
|
+
|
|
|
//引荐的员工
|
|
|
- $shopAdminId = $data['shopAdminId'] ?? 0;
|
|
|
- if (!empty($shopAdminId)) {
|
|
|
- $shopAdmin = ShopAdminClass::getById($shopAdminId);
|
|
|
+ $currentShopAdminId = 0;
|
|
|
+ $ghsShopAdminId = $data['ghsShopAdminId'] ?? 0;
|
|
|
+ if (!empty($ghsShopAdminId)) {
|
|
|
+ $currentShopAdminId = $ghsShopAdminId;
|
|
|
+ } else {
|
|
|
+ $hdShopAdminId = $data['hdShopAdminId'] ?? 0;
|
|
|
+ if (!empty($hdShopAdminId)) {
|
|
|
+ $currentShopAdminId = $hdShopAdminId;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!empty($currentShopAdminId)) {
|
|
|
+ $shopAdmin = ShopAdminClass::getById($currentShopAdminId);
|
|
|
if (!empty($shopAdmin)) {
|
|
|
$sjId = $shopAdmin['merchantId'] ?? 0;
|
|
|
$sj = MerchantClass::getMerchantById($sjId);
|
|
|
@@ -170,6 +190,7 @@ class ApplyService extends BaseService
|
|
|
$data['introShopId'] = $shopAdmin['shopId'] ?? 0;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
$prefix = $data['province'] == $data['city'] ? $data['province'] : $data['province'] . $data['city'];
|
|
|
$dist = $data['dist'] ?? '';
|
|
|
$floor = $data['floor'] ?? '';
|