|
@@ -696,11 +696,11 @@
|
|
|
|
|
|
$.ajax({
|
|
|
type : "GET",
|
|
|
- url : "http://worktime.ttkuaiban.com/api/wxcorp/getPreAuthCode",
|
|
|
+ url : "https://worktime.ttkuaiban.com/api/wxcorp/getPreAuthCode",
|
|
|
success : function(data){
|
|
|
console.log(data);
|
|
|
let suiteId = 'ww4e237fd6abb635af'
|
|
|
- let huidiao = 'http://worktime.ttkuaiban.com/api/wxcorp/installFromWebsite'
|
|
|
+ let huidiao = 'https://worktime.ttkuaiban.com/api/wxcorp/installFromWebsite'
|
|
|
let url = `https://open.work.weixin.qq.com/3rdapp/install?suite_id=${suiteId}&pre_auth_code=${data.data.code}&redirect_uri=${huidiao}&state=4`
|
|
|
window.location.replace(url)
|
|
|
},
|