优化抽奖接口/api/game/playStart,新增消耗平台币use_coin(=0是为免费抽奖)
This commit is contained in:
@@ -485,6 +485,8 @@ class PlayStartLogic
|
||||
$arr['reward_tier'] = ($isWin === 1 && $superWinCoin > 0) ? 'BIGWIN' : (string) ($tier ?? '');
|
||||
// 记录完数据后返回当前玩家余额与抽奖次数
|
||||
$arr['coin'] = $updated ? (float) $updated->coin : 0;
|
||||
// 本局从玩家货币中扣除的金额:付费抽奖为 ante*UNIT_COST,免费抽奖为 0(与 paid_amount 一致)
|
||||
$arr['use_coin'] = $paidAmount;
|
||||
return $arr;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ use plugin\saiadmin\app\model\system\SystemUser;
|
||||
|
||||
/**
|
||||
* 奖励配置权重测试记录逻辑层
|
||||
*
|
||||
*/
|
||||
class DiceRewardConfigRecordLogic extends BaseLogic
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user