wordpress双语版/现在学seo课程多少钱
淘宝客调用API出错导致
网站访问速度很慢的解决办法
办法一(适合于VPS,有专用服务器):
ping gw.api.taobao.com -t 把得到的IP 记录下来
打开服务器C:\WINDOWS\system32\drivers\etc 文件夹里面的 hosts
最下面添加一条解析
110.75.1.12 gw.api.taobao.com
前面的IP地址 填写你VPS中 ping到的IP
方法二:(适合于虚拟主机 用户)
找到include目录下面的Taoapi_Config.php文件
打开文件,找到gw.api.taobao.com,把它直接替换成110.75.1.12
然后保存再上传就行
5.16版本以上的请按下面的修改include目录下面的Taoapi_Config.php文件
原文:
//$this->_Config['Url'] = 'http://gw.api.taobao.com/router/rest';
$this->_Config['Url'] = 'http://110.75.27.15/router/rest';
修改后
//$this->_Config['Url'] = 'http://110.75.1.12/router/rest';
$this->_Config['Url'] = 'http://110.75.1.12/router/rest';
办法一(适合于VPS,有专用服务器):
ping gw.api.taobao.com -t 把得到的IP 记录下来
打开服务器C:\WINDOWS\system32\drivers\etc 文件夹里面的 hosts
最下面添加一条解析
110.75.1.12 gw.api.taobao.com
前面的IP地址 填写你VPS中 ping到的IP
方法二:(适合于虚拟主机 用户)
找到include目录下面的Taoapi_Config.php文件
打开文件,找到gw.api.taobao.com,把它直接替换成110.75.1.12
然后保存再上传就行
5.16版本以上的请按下面的修改include目录下面的Taoapi_Config.php文件
原文:
//$this->_Config['Url'] = 'http://gw.api.taobao.com/router/rest';
$this->_Config['Url'] = 'http://110.75.27.15/router/rest';
修改后
//$this->_Config['Url'] = 'http://110.75.1.12/router/rest';
$this->_Config['Url'] = 'http://110.75.1.12/router/rest';