shish 2 ani în urmă
părinte
comite
5d0f4c4aff
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      app-ghs/controllers/PurchaseOrderController.php

+ 1 - 1
app-ghs/controllers/PurchaseOrderController.php

@@ -734,7 +734,7 @@ class PurchaseOrderController extends BaseController
         $orderSn = $get['orderSn'] ?? '';
         $orderSn = $get['orderSn'] ?? '';
         $salt = $get['salt'] ?? '';
         $salt = $get['salt'] ?? '';
         $adminId = $this->adminId ?? 0;
         $adminId = $this->adminId ?? 0;
-        if (!empty($adminId)) {
+        if (!empty($adminId) && empty($salt)) {
             $orderData = PurchaseOrderClass::getOrderDetail($orderSn, $this->shopId);
             $orderData = PurchaseOrderClass::getOrderDetail($orderSn, $this->shopId);
         } else {
         } else {
             $info = PurchaseOrderClass::getByCondition(['orderSn' => $orderSn], true);
             $info = PurchaseOrderClass::getByCondition(['orderSn' => $orderSn], true);