Переглянути джерело

fixed: 角标记录去重

王刚 3 роки тому
батько
коміт
82a98fe20f
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      Gameserver/Amfphp/process/EventProc.php

+ 2 - 2
Gameserver/Amfphp/process/EventProc.php

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