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

2018-07-16 00:48:21 +08:00
 abbatuu

访问 https://www.tax.sh.gov.cn/
会直接跳转到 https://www.tax.sh.gov.cn//https://www

1693 次点击
所在节点    问与答
8 条回复
KIR1TO
2018-07-16 00:55:45 +08:00
江苏 4g 测试和你一样的情况
xsdhy
2018-07-16 00:58:04 +08:00
看了下,是你 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
2018-07-16 01:00:39 +08:00
Athrob
2018-07-16 08:17:39 +08:00
2 楼说的对, 对这种不测试好就上线的情况已无力吐槽...
whileFalse
2018-07-16 08:48:01 +08:00
@Athrob #4 测试环境没有 https 很正常
input2output
2018-07-16 09:13:42 +08:00
abbatuu
2018-07-16 09:55:59 +08:00
@xsdhy 正解! 坑爹的上海市税务局的官方网站 几年了 都这样

@Athrob 搞得我总觉得是自己的问题
baobao1270
2018-07-17 10:52:57 +08:00
江苏电信 4g 连接被重置???

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/471152

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX