Forráskód Böngészése

全部标记已读

shish 3 éve
szülő
commit
07113813ce
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      app-ghs/controllers/NotifyController.php

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

@@ -3,6 +3,7 @@
 namespace ghs\controllers;
 namespace ghs\controllers;
 
 
 use bizGhs\notify\classes\NotifyClass;
 use bizGhs\notify\classes\NotifyClass;
+use bizGhs\shop\classes\ShopAdminClass;
 use common\components\util;
 use common\components\util;
 use Yii;
 use Yii;
 
 
@@ -13,6 +14,8 @@ class NotifyController extends BaseController
     public function actionAllRead()
     public function actionAllRead()
     {
     {
         NotifyClass::updateByCondition(['mainId' => $this->mainId, 'staffId' => $this->shopAdminId], ['read' => 1]);
         NotifyClass::updateByCondition(['mainId' => $this->mainId, 'staffId' => $this->shopAdminId], ['read' => 1]);
+        $staffId = $this->shopAdminId;
+        ShopAdminClass::updateById($staffId, ['notifyNum' => 0]);
         util::complete('操作成功');
         util::complete('操作成功');
     }
     }