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