shish 5 лет назад
Родитель
Сommit
2f4c3295fa
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      app-ghs/controllers/OrderController.php

+ 6 - 0
app-ghs/controllers/OrderController.php

@@ -76,6 +76,7 @@ class OrderController extends BaseController
         if (isset($post['newVersion']) == false) {
             util::fail('请升级小程序');
         }
+        unset($post['newVersion']);
 
         $shopId = $this->shopId;
         $customId = $post['customId'] ?? 0;
@@ -184,6 +185,11 @@ class OrderController extends BaseController
     {
         $post = Yii::$app->request->post();
 
+        if (isset($post['newVersion']) == false) {
+            util::fail('请升级小程序');
+        }
+        unset($post['newVersion']);
+
         //PC端开单
         if (isset($post['clearType'])) {
             $clearType = $post['clearType'];