shish 3 лет назад
Родитель
Сommit
071e659961
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      app-ghs/controllers/NotifyController.php

+ 7 - 0
app-ghs/controllers/NotifyController.php

@@ -9,6 +9,13 @@ use Yii;
 class NotifyController extends BaseController
 {
 
+    //全部设置为已读 ssh 20230802
+    public function actionAllRead()
+    {
+        NotifyClass::updateByCondition(['mainId' => $this->mainId, 'staffId' => $this->shopAdminId], ['read' => 1]);
+        util::complete('操作成功');
+    }
+
     //通知列表 ssh 20230802
     public function actionList()
     {