|
|
@@ -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'] : '';
|