shish %!s(int64=3) %!d(string=hai) anos
pai
achega
071e659961
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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
 class NotifyController extends BaseController
 {
 {
 
 
+    //全部设置为已读 ssh 20230802
+    public function actionAllRead()
+    {
+        NotifyClass::updateByCondition(['mainId' => $this->mainId, 'staffId' => $this->shopAdminId], ['read' => 1]);
+        util::complete('操作成功');
+    }
+
     //通知列表 ssh 20230802
     //通知列表 ssh 20230802
     public function actionList()
     public function actionList()
     {
     {