|
|
@@ -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()
|
|
|
{
|