iaunco 6 yıl önce
ebeveyn
işleme
5b212a8eef
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      index.js

+ 2 - 2
index.js

@@ -101,7 +101,7 @@ async function run(browser, replyInfo, sign) {
         }
 
         try {
-            await page.goto("https://testmis.ssti.net.cn/xswxcs/pages/Epidemic/EpidemicApply.aspx", {waitUntil: 'networkidle2'});
+            await page.goto("https://ty.ssti.net.cn/declare/pages/Epidemic/EpidemicApply.aspx", {waitUntil: 'networkidle2'});
         } catch (e) {
             await page.close();
             reject(e);
@@ -132,7 +132,7 @@ async function run(browser, replyInfo, sign) {
         }
 
         await page.on('response', async (response) => {
-            if (response.url() === "https://testmis.ssti.net.cn/xswxcs/Api/MedicalObHandle.ashx?action=add") {
+            if (response.url() === "https://ty.ssti.net.cn/declare/Api/MedicalObHandle.ashx?action=add") {
                 const data = await response.json();
                 if (data["msg"].indexOf("成功") !== -1) {
                     console.log("[" + getFullTime() + "] " + name + " 成功");