[色子游戏]玩家-新增玩家钱包操作

This commit is contained in:
2026-03-04 15:04:11 +08:00
parent 00d964ad80
commit 0492e08cc7
10 changed files with 368 additions and 11 deletions

View File

@@ -8,6 +8,8 @@ namespace app\dice\model\player_wallet_record;
use app\dice\model\player\DicePlayer;
use plugin\saiadmin\basic\think\BaseModel;
use plugin\saiadmin\app\model\system\SystemUser;
use think\model\relation\BelongsTo;
/**
* 玩家钱包流水模型
@@ -24,6 +26,7 @@ use plugin\saiadmin\basic\think\BaseModel;
* @property $paid_draw_count 购买抽奖次数
* @property $free_draw_count 赠送抽奖次数
* @property $remark 备注
* @property $user_id 操作管理员idtype 3/4 时记录)
* @property $create_time 创建时间
* @property $update_time 修改时间
*/
@@ -44,11 +47,19 @@ class DicePlayerWalletRecord extends BaseModel
/**
* 关联模型 dicePlayer
*/
public function dicePlayer(): \think\model\relation\BelongsTo
public function dicePlayer(): BelongsTo
{
return $this->belongsTo(DicePlayer::class, 'player_id', 'id');
}
/**
* 关联操作管理员type 3/4 时有值)
*/
public function operator(): BelongsTo
{
return $this->belongsTo(SystemUser::class, 'user_id', 'id');
}
/**
* 类型 搜索
*/