shish il y a 5 ans
Parent
commit
18fc57399a
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      biz-hd/saas/services/ApplyService.php

+ 2 - 1
biz-hd/saas/services/ApplyService.php

@@ -118,12 +118,13 @@ class ApplyService extends BaseService
             }
         }
         $has = ApplyClass::getByCondition(['mobile' => $mobile, 'style' => ApplyClass::FROM_RETAIL]);
+
         if (!empty($has)) {
             if (isset($data['replace']) && $data['replace'] == 1) {
                 if (empty($adminId)) {
                     util::fail('手机号已经添加过了');
                 } else {
-                    if (isset($has['adminId']) && !empty($has['adminId'])) {
+                    if (isset($has['adminId']) && empty($has['adminId'])) {
                         //已经被开店的客户主动申请开店
                         $hasId = $has['id'] ?? 0;
                         ApplyClass::updateById($hasId, ['adminId' => $adminId]);