zhanghao162兄弟, 你可能没有用过MZMT, 这个有显示重量的, 直接上图:
版主: daimadaquan

li-he-qi 写道:今天在CACHE目录发现很多同样的错误都跟三态插件有关, 不知道是插件本身的原因, 还是三态接口的原因:
[11-Feb-2012 08:42:46] PHP Warning: DOMDocument::load(http://www.sendfromchina.com/shipfee/ou ... ode=HKBRAM) [<a href='domdocument.load'>domdocument.load</a>]: failed to open stream: HTTP request failed! in /***/includes/modules/shipping/sfc.php on line 99
[11-Feb-2012 08:42:46] PHP Warning: DOMDocument::load() [<a href='domdocument.load'>domdocument.load</a>]: I/O warning : failed to load external entity "http://www.sendfromchina.com/shipfee/out_rates?country=Brazil&weight=0.05&mode=HKBRAM" in /***/includes/modules/shipping/sfc.php on line 99
[11-Feb-2012 08:43:07] PHP Warning: DOMDocument::load(http://www.sendfromchina.com/shipfee/ou ... eight=0.05) [<a href='domdocument.load'>domdocument.load</a>]: failed to open stream: Connection timed out in /***/includes/modules/shipping/sfc.php on line 99
源代码是:
$doc = new DOMDocument();
$doc->load( REQUIRERATE . $profile);
大家可点击文中的链接, 就会看到三态返回的结果, 明明链接中有0.05的重量, 三态那边却没有接收到


Jack 写道:打开文件 /includes/modules/shipping/sfc.php
找到行:
$profile .= '&mode=' . $method;
在下面增加代码:
} else {
$profile .= '&';
这个问题是有点奇怪,三态网站能处理这样的请求:
http://www.sendfromchina.com/shipfee/ou ... eight=1.05
但是无法处理
http://www.sendfromchina.com/shipfee/ou ... eight=0.05
就是重量小于1公斤会出错
所以修改请求为下面这样就可以了
http://www.sendfromchina.com/shipfee/ou ... ight=0.05&
Jack 写道:但是无法处理
http://www.sendfromchina.com/shipfee/ou ... eight=0.05






正在浏览此版面的用户:没有注册用户 和 1 位游客