Explorar o código

强制升级小程序

shish %!s(int64=5) %!d(string=hai) anos
pai
achega
2f4c3295fa
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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'];