|
|
@@ -13,10 +13,31 @@ use Yii;
|
|
|
class ItemController extends BaseController
|
|
|
{
|
|
|
|
|
|
+ //检测是否要刷新
|
|
|
+ public function actionCheckRefresh()
|
|
|
+ {
|
|
|
+ $mainId = $this->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()
|
|
|
{
|
|
|
- $where['mainId'] = $this->mainId;
|
|
|
+ $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;
|
|
|
|
|
|
$list = \bizHd\item\classes\ItemClass::getShowList($where);
|