[色子游戏]玩家钱包流水记录-优化样式

This commit is contained in:
2026-03-03 15:15:16 +08:00
parent ae3c0f0f78
commit 1b62a4f3e0
9 changed files with 334 additions and 110 deletions

View File

@@ -24,4 +24,15 @@ class DicePlayerWalletRecordLogic extends BaseLogic
$this->model = new DicePlayerWalletRecord();
}
/**
* 添加数据(补全抽奖次数字段默认值)
*/
public function add(array $data): mixed
{
$data['total_draw_count'] = $data['total_draw_count'] ?? 0;
$data['paid_draw_count'] = $data['paid_draw_count'] ?? 0;
$data['free_draw_count'] = $data['free_draw_count'] ?? 0;
return parent::add($data);
}
}