shish 1 月之前
父節點
當前提交
03b8c5e895
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      biz-ghs/custom/services/GhsRechargeSettleService.php

+ 4 - 1
biz-ghs/custom/services/GhsRechargeSettleService.php

@@ -10,6 +10,7 @@ use bizGhs\ghs\classes\GhsBalanceChangeClass;
 use bizGhs\order\classes\OrderClearClass;
 use bizGhs\order\classes\OrderClass;
 use common\components\dict;
+use common\components\noticeUtil;
 use common\components\util;
 
 /**
@@ -346,6 +347,7 @@ class GhsRechargeSettleService
         AccountMoneyClass::ensureGhsMoneyReady($ghs, true);
 
         if (bccomp(self::money($custom->balance), self::money($ghs->balance), 2) !== 0) {
+            noticeUtil::push("客户的余额,和供货商端不一致,客户 ID:" . $custom->id . " 余额:" . $custom->balance . " 供货商 ID:" . $ghsId . ' 余额:' . $ghs->balance, '15280215347');
             util::fail('余额有问题,请联系管理员');
         }
 
@@ -513,7 +515,8 @@ class GhsRechargeSettleService
         $actualPayWay,
         $rechargeSource,
         $deductBalance = false
-    ) {
+    )
+    {
         $notOnline = intval(dict::getDict('onlinePay', 'not'));
         $yesOnline = intval(dict::getDict('onlinePay', 'yes'));