mainId; $staffId = $this->shopAdminId; $respond = Yii::$app->redis->executeCommand('GET', ['cashier_' . $mainId . '_' . $staffId . '_may_refresh']); if ($respond == 'yes') { util::success(['remind' => 1]); } util::complete(); } //列出所有花材,包括特价花材列表 ssh 20220315 public function actionShowList() { $headers = Yii::$app->getRequest()->getHeaders(); $requestVersion = $headers->get('appVersion'); $currentVersion = dict::getDict('appVersion'); if ($requestVersion < $currentVersion) { util::fail('请先升级系统'); } $get = Yii::$app->request->get(); $isCashier = $get['isCashier'] ?? 0; $mainId = $this->mainId; if ($isCashier == 1) { //去掉收银台提示价格更新 $staffId = $this->shopAdminId; Yii::$app->redis->executeCommand('DEL', ['cashier_' . $mainId . '_' . $staffId . '_may_refresh']); } $where['mainId'] = $mainId; $where['delStatus'] = 0; $where['status'] = 1; $list = \bizHd\item\classes\ItemClass::getShowList($where); util::success(['list' => $list]); } public function actionAdd() { util::fail('开发中'); } public function actionBatchAdd() { util::fail('开发中'); } public function actionDelete() { util::fail('不能删除哦!'); } //获取平台里的花材信息 public function actionPlatformItem() { $py = Yii::$app->request->get('py', ''); $where = []; if ($py) { $where = ['py' => $py]; } $list = PtItemClass::getItemList($where); util::success($list); } }