|
@@ -26,11 +26,12 @@ class EventProc {
|
|
|
* [7202] 清理指定类型的角标记录
|
|
|
*/
|
|
|
static function ClearCornerSignNotification() {
|
|
|
- $ctype =req()->paras[0];
|
|
|
- $e=new OperateEventType();
|
|
|
- $e->isValidValue($ctype);
|
|
|
- unset( req()->userInfo->game->privateState->cornerSignNotifications[$ctype]);
|
|
|
- UserProc::updateUserInfo();
|
|
|
+ $ctype = req()->paras[0];
|
|
|
+ $e = new OperateEventType();
|
|
|
+ if ($e->isValidValue($ctype)) {
|
|
|
+ StlUtil::arrayRemove(req()->userInfo->game->privateState->cornerSignNotifications, $ctype); # 移除角标
|
|
|
+ UserProc::updateUserInfo();
|
|
|
+ }
|
|
|
$arr = array_values(array_unique(req()->userInfo->game->privateState->cornerSignNotifications)); # 返回值去重
|
|
|
// req()->userInfo->game->privateState->cornerSignNotifications = []; # 清理记录
|
|
|
return Resp::ok(array("notifications" => $arr)); # 返回
|