Browse Source

fix: 更新技师模型的钱包关联

刘学玺 3 months ago
parent
commit
b2d0965ca7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Models/CoachUser.php

+ 1 - 1
app/Models/CoachUser.php

@@ -175,7 +175,7 @@ class CoachUser extends Model
      */
     public function wallet()
     {
-        return $this->morphOne(Wallet::class, 'owner');
+        return $this->morphOne(Wallet::class, 'owner', 'owner_type', 'owner_id', 'id');
     }
 
     /**