正在显示
1 个修改的文件
包含
7 行增加
和
6 行删除
@@ -57,8 +57,9 @@ class BirdController extends HomeBaseController | @@ -57,8 +57,9 @@ class BirdController extends HomeBaseController | ||
57 | $address = $addressModel->findData($where2); | 57 | $address = $addressModel->findData($where2); |
58 | $region = explode(' ',$address['region']); | 58 | $region = explode(' ',$address['region']); |
59 | 59 | ||
60 | - //请求url,接口正式地址:http://api.kdniao.com/api/eorderservice 测试环境地址:http://testapi.kdniao.com:8081/api/oorderservice | ||
61 | - defined('ReqURL') or define('ReqURL', 'http://api.kdniao.com/api/OOrderService'); | 60 | + //请求url,接口正式地址:http://api.kdniao.com/api/OOrderService 测试环境地址:http://testapi.kdniao.com:8081/api/oorderservice |
61 | + defined('ReqURL') or define('ReqURL', 'http://sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInvoke.json'); | ||
62 | + | ||
62 | 63 | ||
63 | //构造在线下单提交信息 | 64 | //构造在线下单提交信息 |
64 | $eorder = []; | 65 | $eorder = []; |
@@ -152,8 +153,8 @@ class BirdController extends HomeBaseController | @@ -152,8 +153,8 @@ class BirdController extends HomeBaseController | ||
152 | $this->error('该订单不是已发货状态','','',''); | 153 | $this->error('该订单不是已发货状态','','',''); |
153 | } | 154 | } |
154 | 155 | ||
155 | - //请求url,接口正式地址:http://api.kdniao.com/api/eorderservice 测试环境地址:http://sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInvoke.json | ||
156 | - defined('ReqURL') or define('ReqURL', 'http://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx'); | 156 | + //请求url,接口正式地址:http://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx 测试环境地址:http://sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInvoke.json |
157 | + defined('ReqURL') or define('ReqURL', 'http://sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInvoke.json'); | ||
157 | 158 | ||
158 | $jsonResult = $this->getOrderTracesByJson($indent['order_number'],$indent['logistic_code']); | 159 | $jsonResult = $this->getOrderTracesByJson($indent['order_number'],$indent['logistic_code']); |
159 | $result = json_decode($jsonResult,true); | 160 | $result = json_decode($jsonResult,true); |
@@ -210,8 +211,8 @@ class BirdController extends HomeBaseController | @@ -210,8 +211,8 @@ class BirdController extends HomeBaseController | ||
210 | $where2['id'] = ['eq',$indent['indent_address']]; | 211 | $where2['id'] = ['eq',$indent['indent_address']]; |
211 | $addressModel = new AddressModel(); | 212 | $addressModel = new AddressModel(); |
212 | $address = $addressModel->findData($where2); | 213 | $address = $addressModel->findData($where2); |
213 | - //请求url,接口正式地址:http://api.kdniao.com/api/eorderservice 测试环境地址:http://testapi.kdniao.com:8081/api/oorderservice | ||
214 | - defined('ReqURL') or define('ReqURL', 'http://api.kdniao.com/api/dist'); | 214 | + //请求url,接口正式地址:http://api.kdniao.com/api/eorderservice 测试环境地址:http://sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInv |
215 | + defined('ReqURL') or define('ReqURL', 'http://sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInv'); | ||
215 | 216 | ||
216 | $jsonResult = $this->orderTracesSubByJson($indent['order_number'],$indent['logistic_code'],$address); | 217 | $jsonResult = $this->orderTracesSubByJson($indent['order_number'],$indent['logistic_code'],$address); |
217 | $result = json_decode($jsonResult,true); | 218 | $result = json_decode($jsonResult,true); |
-
请 注册 或 登录 后发表评论