shish 3 سال پیش
والد
کامیت
90508b7cc2
1فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 9 0
      app-ghs/controllers/CustomController.php

+ 9 - 0
app-ghs/controllers/CustomController.php

@@ -369,6 +369,15 @@ class CustomController extends BaseController
         $get = Yii::$app->request->get();
         $type = isset($get['type']) ? $get['type'] : 0;
         $name = isset($get['name']) ? $get['name'] : '';
+
+        $mainId = $this->mainId;
+        $isCashier = $get['isCashier'] ?? 0;
+        if ($isCashier == 1) {
+            //去掉收银台提示价格更新
+            $staffId = $this->shopAdminId;
+            Yii::$app->redis->executeCommand('DEL', ['ghs_cashier_' . $mainId . '_' . $staffId . '_may_refresh']);
+        }
+
         $where = ['ownMainId' => $this->mainId];
         $sort = 'visitTime DESC';
         if ($type == 1) {