abbatuu
V2EX  ›  问与答

这是服务器的问题 还是我的问题

  •  
  •   abbatuu · Jul 16, 2018 · 2372 views
    This topic created in 2939 days ago, the information mentioned may be changed or developed.
    8 replies    2018-07-17 10:52:57 +08:00
    KIR1TO
        1
    KIR1TO  
       Jul 16, 2018 via Android
    江苏 4g 测试和你一样的情况
    xsdhy
        2
    xsdhy  
       Jul 16, 2018
    看了下,是你 https://www.tax.sh.gov.cn/这个页面里面有段 js 代码的问题


    <script type="text/javascript">
    var urlStr = document.location.toString();
    if (urlStr.indexOf('pub') == -1) {
    urlStr = urlStr.replace('zbtax', 'jatax');
    var tempURL = urlStr.replace('http://www.', '');
    tempURL = tempURL.substring(0, tempURL.indexOf('.'));
    //tempURL = (tempURL == 'tax' || tempURL == 'csj') ? 'pub' : tempURL;
    if (tempURL == 'tax' || tempURL == 'csj') {
    tempURL = 'pub';
    urlStr += '/' + tempURL;
    } else if (tempURL == '12366') {
    tempURL = '12366gjsy/indexChinese.html';
    urlStr += tempURL;
    } else {
    urlStr += '/' + tempURL;
    }
    document.location = urlStr;
    }
    </script>
    xsdhy
        3
    xsdhy  
       Jul 16, 2018   ❤️ 1
    Athrob
        4
    Athrob  
       Jul 16, 2018   ❤️ 1
    2 楼说的对, 对这种不测试好就上线的情况已无力吐槽...
    whileFalse
        5
    whileFalse  
       Jul 16, 2018
    @Athrob #4 测试环境没有 https 很正常
    input2output
        6
    input2output  
       Jul 16, 2018
    abbatuu
        7
    abbatuu  
    OP
       Jul 16, 2018
    @xsdhy 正解! 坑爹的上海市税务局的官方网站 几年了 都这样

    @Athrob 搞得我总觉得是自己的问题
    baobao1270
        8
    baobao1270  
       Jul 17, 2018 via Android
    江苏电信 4g 连接被重置???
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2816 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 14:41 · PVG 22:41 · LAX 07:41 · JFK 10:41
    ♥ Do have faith in what you're doing.