Преглед изворни кода

Wesmiler 校企小程序源代码部署

wesmiler пре 3 година
родитељ
комит
4de92ffedd
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      app/api/model/User.php

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

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