Browse Source

Wesmiler 校企小程序源代码部署

wesmiler 3 năm trước cách đây
mục cha
commit
9ce6495025
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/common/model/User.php

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

@@ -51,7 +51,7 @@ class User extends BaseModel
     public function info(): HasOne
     public function info(): HasOne
     {
     {
         $data = $this->hasOne("UserInfo", 'user_id', 'user_id');
         $data = $this->hasOne("UserInfo", 'user_id', 'user_id');
-        return $data == null? [] : $data;
+        return is_null($data)? [] : $data;
     }
     }
 
 
     /**
     /**