Browse Source

强制升级小程序

shish 5 years ago
parent
commit
2f4c3295fa
1 changed files with 6 additions and 0 deletions
  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) {
         if (isset($post['newVersion']) == false) {
             util::fail('请升级小程序');
             util::fail('请升级小程序');
         }
         }
+        unset($post['newVersion']);
 
 
         $shopId = $this->shopId;
         $shopId = $this->shopId;
         $customId = $post['customId'] ?? 0;
         $customId = $post['customId'] ?? 0;
@@ -184,6 +185,11 @@ class OrderController extends BaseController
     {
     {
         $post = Yii::$app->request->post();
         $post = Yii::$app->request->post();
 
 
+        if (isset($post['newVersion']) == false) {
+            util::fail('请升级小程序');
+        }
+        unset($post['newVersion']);
+
         //PC端开单
         //PC端开单
         if (isset($post['clearType'])) {
         if (isset($post['clearType'])) {
             $clearType = $post['clearType'];
             $clearType = $post['clearType'];