shish 3 лет назад
Родитель
Сommit
ce2bb9392f
1 измененных файлов с 17 добавлено и 0 удалено
  1. 17 0
      app-hd/controllers/GhsController.php

+ 17 - 0
app-hd/controllers/GhsController.php

@@ -23,6 +23,23 @@ class GhsController extends BaseController
         'zs' => ['name' => '金店', 'num' => 0, 'amount' => 0, 'key' => 'zs'],
     ];
 
+    //采购选分类有变化通知
+    public function actionGetClassRemind()
+    {
+        $cacheKey = 'class_change_remind_' . $this->shopAdminId;
+        $has = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
+        $hasStatus = !empty($has) ? 1 : 0;
+        util::success(['hasRemind' => $hasStatus]);
+    }
+
+    //采购选分类有变化通知
+    public function actionHasClassRemind()
+    {
+        $cacheKey = 'class_change_remind_' . $this->shopAdminId;
+        Yii::$app->redis->executeCommand('SET', [$cacheKey, 'has']);
+        util::complete();
+    }
+
     //供应商列表 ssh 2021.1.24
     public function actionList()
     {