作者 王晓刚
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 = 112){ 141 + public function getOrder($indent_id = null){
142 if(empty($indent_id)){ 142 if(empty($indent_id)){
143 $this->error('缺少必要参数','','',''); 143 $this->error('缺少必要参数','','','');
144 } 144 }
@@ -50,7 +50,7 @@ class LoadController extends HomeBaseController @@ -50,7 +50,7 @@ class LoadController extends HomeBaseController
50 foreach($result['Data'] as $key => $vo){ 50 foreach($result['Data'] as $key => $vo){
51 $indent = $indentModel->findData(['logistic_code'=>$vo['LogisticCode']]); 51 $indent = $indentModel->findData(['logistic_code'=>$vo['LogisticCode']]);
52 if(!empty($indent)){ 52 if(!empty($indent)){
53 - if($vo['state'] >=1 && $vo['state'] != 4){ 53 + if($vo['State'] >=1 && $vo['State'] != 4){
54 if($indent['state'] == 2){ 54 if($indent['state'] == 2){
55 $indentModel->updateData(['id'=>$indent['id']],['state'=>5]); 55 $indentModel->updateData(['id'=>$indent['id']],['state'=>5]);
56 } 56 }