OMEGA\EricYH.Huang пре 2 година
родитељ
комит
3681a49c61
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2
    1
      app/Http/Services/Web/Api2021Service.php

+ 2
- 1
app/Http/Services/Web/Api2021Service.php Прегледај датотеку

@@ -2828,7 +2828,8 @@ class Api2021Service
2828 2828
             $toGp = $tplayerinfo['gp'] - $this->settingManagementSv->getSetting()['TMZ_GP_DRAW'];
2829 2829
             // 所有銘謝惠顧的可能(獎項雖然有點數但已被兌換完畢 || 獎項被設定為未啟用)
2830 2830
             if (
2831
-                $tgoodinfo['totalQty'] - $tgoodinfo['issuedQty'] <= $this->settingManagementSv->getSetting()['TMZ_ISSUE_BUFFER']
2831
+                ($tgoodinfo['totalQty'] <>10 && $tgoodinfo['totalQty'] - $tgoodinfo['issuedQty'] <= $this->settingManagementSv->getSetting()['TMZ_ISSUE_BUFFER'])
2832
+                || ($tgoodinfo['totalQty'] == 10 && $tgoodinfo['totalQty'] - $tgoodinfo['issuedQty'] <= 0)
2832 2833
                 || $tgoodinfo['active'] == GeneralConst::ACTIVE_NO
2833 2834
             ) {
2834 2835
                 $this->debuglog('redeemTGood', [