From fc5f8bb1cad7f6c527524a89825c747ea4bcb93e Mon Sep 17 00:00:00 2001 From: zhenhui <1276357500@qq.com> Date: Tue, 3 Mar 2026 14:11:52 +0800 Subject: [PATCH] =?UTF-8?q?[=E8=89=B2=E5=AD=90=E6=B8=B8=E6=88=8F]=E7=8E=A9?= =?UTF-8?q?=E5=AE=B6=E9=92=B1=E5=8C=85=E6=B5=81=E6=B0=B4=E8=AE=B0=E5=BD=95?= =?UTF-8?q?-=E4=BC=98=E5=8C=96=E5=85=B3=E8=81=94=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model/player_wallet_record/DicePlayerWalletRecord.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); } }