shish 3 ani în urmă
părinte
comite
071e659961
1 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  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()
     {