瀏覽代碼

Wesmiler 校企小程序源代码部署

wesmiler 3 年之前
父節點
當前提交
2b05eabe9c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/api/model/User.php

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

@@ -71,7 +71,7 @@ class User extends UserModel
         }
         // 获取用户关联的第三方用户信息(当前客户端)
         try {
-            if(getPlatform() != 'MP-WEIXIN'){
+            if(getPlatform() && getPlatform() != 'MP-WEIXIN'){
                 $userInfo['currentOauth'] = UserOauthModel::getOauth($userId, getPlatform());
             }
         } catch (\Throwable $e) {