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