diff --git a/server/app/dice/model/player_wallet_record/DicePlayerWalletRecord.php b/server/app/dice/model/player_wallet_record/DicePlayerWalletRecord.php index ebfe0f7..3b0548e 100644 --- a/server/app/dice/model/player_wallet_record/DicePlayerWalletRecord.php +++ b/server/app/dice/model/player_wallet_record/DicePlayerWalletRecord.php @@ -43,9 +43,9 @@ class DicePlayerWalletRecord extends BaseModel /** * 关联模型 dicePlayer */ - public function dicePlayer(): \think\model\relation\HasOne + public function dicePlayer(): \think\model\relation\BelongsTo { - return $this->hasOne(DicePlayer::class, 'id', 'player_id'); + return $this->belongsTo(DicePlayer::class, 'player_id', 'id'); } }