作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

接收推送消息

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