Browse Source

Merge branch 'master' of http://47.100.37.243:10080/wutt/manHourHousekeeper

cs 2 years ago
parent
commit
805a707b01
1 changed files with 6 additions and 2 deletions
  1. 6 2
      fhKeeper/formulahousekeeper/inva_4_tivo/index.html

+ 6 - 2
fhKeeper/formulahousekeeper/inva_4_tivo/index.html

@@ -717,8 +717,12 @@
                 type : "GET",
                 url : "https://worktime.ttkuaiban.com/api/wxcorp/getRegisterCode",
                 success : function(data){
-                    let url = `https://open.work.weixin.qq.com/3rdservice/wework/register?register_code=${data.data.code}`
-                    window.location.href = url
+                    if(data.code == 'ok') {
+                        let url = `https://open.work.weixin.qq.com/3rdservice/wework/register?register_code=${data.data.code}`
+                        window.location.href = url
+                    } else {
+                        alert(data.msg)
+                    }
                 },
                 error:function(){
                     alert('请求失败');