Browse Source

Wesmiler 校企小程序源代码部署

wesmiler 3 years ago
parent
commit
2985c5c6c4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/common/model/User.php

+ 2 - 2
app/common/model/User.php

@@ -48,9 +48,9 @@ class User extends BaseModel
      * 用户资料表
      * @return HasOne
      */
-    public function info(): HasOne
+    public function info(): BelongsTo
     {
-        return $this->hasOne('userInfo', 'user_id', 'user_id');
+        return $this->belongsTo('userInfo', 'user_id');
     }
 
     /**