shish 3 лет назад
Родитель
Сommit
c88471d0ac
1 измененных файлов с 12 добавлено и 0 удалено
  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()
     {