Browse Source

Merge branch 'beta'

lsc 2 ngày trước cách đây
mục cha
commit
7534597792
1 tập tin đã thay đổi với 3 bổ sung và 0 xóa
  1. 3 0
      js/liyuan/Onload2.js

+ 3 - 0
js/liyuan/Onload2.js

@@ -1272,6 +1272,9 @@ function selectUser(uid, callback) {
     const requestUser = () => {
         U.A.Request(`${US.Config.pbl}selectUser?userid=${uid}`, [], function (res) {
             if(res && res.value && res.value.length && res.value[0].length && res.value[0][0].userid){
+                if(U.UF.C.queryString('form') == 'desktop') {
+                    window.location.href=`cocorobo://auth/callback?apiKey=${res.value[0][0].apikey}&state=${U.UF.C.queryString('state')}&userid=${res.value[0][0].userid}&username=${res.value[0][0].username}&schoolname=${res.value[0][0].schoolName}`
+                }
                 if (callback) callback(res);
             }else {
                 U.alert("获取用户信息失败,正在重试!")