shish 11 месяцев назад
Родитель
Сommit
f54b0654b7
1 измененных файлов с 7 добавлено и 2 удалено
  1. 7 2
      biz-ghs/apply/services/ApplyService.php

+ 7 - 2
biz-ghs/apply/services/ApplyService.php

@@ -4,6 +4,7 @@ namespace bizGhs\apply\services;
 
 use biz\cp\services\PtCpService;
 use biz\shop\classes\ShopClass;
+use biz\shop\classes\ShopExtClass;
 use bizGhs\apply\classes\ApplyClass;
 use bizGhs\item\classes\ItemClassClass;
 use bizGhs\merchant\services\MerchantService;
@@ -47,8 +48,12 @@ class ApplyService extends BaseService
         }
 
         //收款码要做成不算收入
-        $lsShop->gatherRepeat = 1;
-        $lsShop->save();
+        $lsShopId = $lsShop->id;
+        $lsExt = ShopExtClass::getByCondition(['shopId' => $lsShopId], true);
+        if (!empty($lsExt)) {
+            $lsExt->gatherRepeat = 1;
+            $lsExt->save();
+        }
 
         ApplyClass::updateById($applyId, ['status' => ApplyClass::STATUS_PASS, 'remark' => $remark]);
         $apply['name'] = isset($apply['name']) ? $apply['name'] : '';