shish 1 рік тому
батько
коміт
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\cp\services\PtCpService;
 use biz\shop\classes\ShopClass;
 use biz\shop\classes\ShopClass;
+use biz\shop\classes\ShopExtClass;
 use bizGhs\apply\classes\ApplyClass;
 use bizGhs\apply\classes\ApplyClass;
 use bizGhs\item\classes\ItemClassClass;
 use bizGhs\item\classes\ItemClassClass;
 use bizGhs\merchant\services\MerchantService;
 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]);
         ApplyClass::updateById($applyId, ['status' => ApplyClass::STATUS_PASS, 'remark' => $remark]);
         $apply['name'] = isset($apply['name']) ? $apply['name'] : '';
         $apply['name'] = isset($apply['name']) ? $apply['name'] : '';