|
@@ -23,6 +23,23 @@ class GhsController extends BaseController
|
|
|
'zs' => ['name' => '金店', 'num' => 0, 'amount' => 0, 'key' => 'zs'],
|
|
'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
|
|
//供应商列表 ssh 2021.1.24
|
|
|
public function actionList()
|
|
public function actionList()
|
|
|
{
|
|
{
|