Ver Fonte

修改价格提示

shish há 3 anos atrás
pai
commit
c88471d0ac
1 ficheiros alterados com 12 adições e 0 exclusões
  1. 12 0
      app-ghs/controllers/ItemController.php

+ 12 - 0
app-ghs/controllers/ItemController.php

@@ -18,6 +18,18 @@ use Yii;
 class ItemController extends BaseController
 {
 
+    //检测是否要刷新
+    public function actionCheckRefresh()
+    {
+        $mainId = $this->mainId;
+        $staffId = $this->shopAdminId;
+        $respond = Yii::$app->redis->executeCommand('GET', ['ghs_cashier_' . $mainId . '_' . $staffId . '_may_refresh']);
+        if ($respond == 'yes') {
+            util::success(['remind' => 1]);
+        }
+        util::complete();
+    }
+
     //批量恢复花材 ssh 20230206
     public function actionBatchRecover()
     {