...
|
...
|
@@ -138,7 +138,7 @@ class BirdController extends HomeBaseController |
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
public function getOrder($indent_id = null){
|
|
|
public function getOrder($indent_id = 112){
|
|
|
if(empty($indent_id)){
|
|
|
$this->error('缺少必要参数','','','');
|
|
|
}
|
...
|
...
|
@@ -149,9 +149,9 @@ class BirdController extends HomeBaseController |
|
|
if(empty($indent)){
|
|
|
$this->error('未查询到该订单','','','');
|
|
|
}
|
|
|
if($indent['state'] != 5){
|
|
|
$this->error('该订单不是已发货状态','','','');
|
|
|
}
|
|
|
// if($indent['state'] != 5){
|
|
|
// $this->error('该订单不是已发货状态','','','');
|
|
|
// }
|
|
|
|
|
|
//请求url,接口正式地址:http://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx 测试环境地址:http://sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInvoke.json
|
|
|
defined('ReqURL') or define('ReqURL', 'http://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx');
|
...
|
...
|
@@ -204,9 +204,9 @@ class BirdController extends HomeBaseController |
|
|
$this->error('未查询到该订单','','','');
|
|
|
|
|
|
}
|
|
|
if($indent['state'] != 2){
|
|
|
$this->error('该订单不是已发货状态','','','');
|
|
|
}
|
|
|
// if($indent['state'] != 2){
|
|
|
// $this->error('该订单不是已发货状态','','','');
|
|
|
// }
|
|
|
//收货地址
|
|
|
$where2['id'] = ['eq',$indent['indent_address']];
|
|
|
$addressModel = new AddressModel();
|
...
|
...
|
|