Lijy 1 kuukausi sitten
vanhempi
commit
2f8a0d4074
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      fhKeeper/formulahousekeeper/timesheet/src/views/Login.vue

+ 4 - 2
fhKeeper/formulahousekeeper/timesheet/src/views/Login.vue

@@ -279,8 +279,10 @@
             ddworkCli() {
                 var appId = "71020";//钉钉三方的SUIT ID
                 var url = "https://worktime.ttkuaiban.com/api/dingtalk/callback";//授权回调页面
-                var weixinUrl=`https://oapi.dingtalk.com/connect/qrconnect?appid=${appId}&response_type=code&scope=snsapi_login&state=STATE&redirect_uri=${url}`;
-                window.location.href = weixinUrl;
+                // var weixinUrl=`https://oapi.dingtalk.com/connect/qrconnect?appid=${appId}&response_type=code&scope=snsapi_login&state=STATE&redirect_uri=${url}`;
+                const appKey = 'suitejwoq9dw4bxv4stdb'
+                var ddUrl =`https://login.dingtalk.com/oauth2/auth?redirect_uri=${url}&response_type=code&client_id=${appKey}&scope=openid corpid &state=dddd&prompt=consent`;
+                window.location.href = ddUrl ;
             },
             getStaffInfo() {
                 console.log('执行了没')