[色子游戏]玩家钱包流水记录-优化样式
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user