|
@@ -33,7 +33,7 @@ class EventProc {
|
|
|
UserProc::updateUserInfo();
|
|
|
}
|
|
|
$arr = array_values(array_unique(req()->userInfo->game->privateState->cornerSignNotifications)); # 返回值去重
|
|
|
- req()->userInfo->game->privateState->cornerSignNotifications = $arr; # 清理记录
|
|
|
+ req()->userInfo->game->privateState->cornerSignNotifications = $arr; # 更新记录
|
|
|
return Resp::ok(array("notifications" => $arr)); # 返回
|
|
|
}
|
|
|
|
|
@@ -43,7 +43,7 @@ class EventProc {
|
|
|
static function GetCornerSignNotifications() {
|
|
|
// 这里直接返回, 将来开发对应的触发逻辑, 给数组中添加相应的值
|
|
|
$arr = array_values(array_unique(req()->userInfo->game->privateState->cornerSignNotifications)); # 返回值去重
|
|
|
- req()->userInfo->game->privateState->cornerSignNotifications = $arr; # 清理记录
|
|
|
+ req()->userInfo->game->privateState->cornerSignNotifications = $arr; # 更新记录
|
|
|
UserProc::updateUserInfo();
|
|
|
return Resp::ok(array("notifications" => $arr)); # 返回
|
|
|
}
|