shish 1 năm trước cách đây
mục cha
commit
dbe99413b4
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      app-ghs/controllers/StockOutController.php

+ 5 - 1
app-ghs/controllers/StockOutController.php

@@ -17,7 +17,11 @@ class StockOutController extends BaseController
     //入库单一键出库 ssh 20231207
     public function actionOneKeyStockOut()
     {
-        $post = Yii::$app->request->post();
+        if (Yii::$app->request->isGet) {
+            $post = Yii::$app->request->get();
+        } elseif (Yii::$app->request->isPost) {
+            $post = Yii::$app->request->post();
+        }
         $orderSn = $post['orderSn'] ?? '';
         $in = StockInOrderClass::getByCondition(['orderSn' => $orderSn], true);
         if (empty($in)) {