Browse Source

在线开单

lizhen_gitee 1 year ago
parent
commit
51e0ad3bce
1 changed files with 2 additions and 0 deletions
  1. 2 0
      application/api/controller/company/Preorder.php

+ 2 - 0
application/api/controller/company/Preorder.php

@@ -87,6 +87,8 @@ class Preorder extends Apic
                 'pre_order_status' => 2,
                 'pre_order_status' => 2,
             ];
             ];
             Db::name('pre_order')->where('id',$pre_order_id)->update($update);
             Db::name('pre_order')->where('id',$pre_order_id)->update($update);
+        }else{
+            $data['pre_order_id'] = 0;
         }
         }
 
 
         //检索car_id,没必要了
         //检索car_id,没必要了