Explorar o código

Wesmiler 校企小程序源代码部署

wesmiler %!s(int64=3) %!d(string=hai) anos
pai
achega
2b05eabe9c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {