Lijy hace 2 años
padre
commit
bfd8c30eac
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      fhKeeper/formulahousekeeper/inva_4_tivo/index.html

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

@@ -717,11 +717,11 @@
                 type : "GET",
                 url : "https://worktime.ttkuaiban.com/api/wxcorp/getRegisterCode",
                 success : function(data){
-                    if(data.data.code) {
+                    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.data.code)
+                        alert(data.msg)
                     }
                 },
                 error:function(){