正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
@@ -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(); |
-
请 注册 或 登录 后发表评论