|
@@ -40,37 +40,37 @@ class UserProc {
|
|
|
Err(ErrCode::cmd_err);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 6008 读公告记录
|
|
|
*/
|
|
|
- public static function readAnnouncement() {
|
|
|
+ public static function readAnnouncement() {
|
|
|
list($id) = req()->paras;
|
|
|
-
|
|
|
- if(!in_array($id, ctx()->privateState->announcement_drawed)){
|
|
|
+
|
|
|
+ if (!in_array($id, ctx()->privateState->announcement_drawed)) {
|
|
|
ctx()->privateState->announcement_drawed[] = $id;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
UserProc::updateUserInfo();
|
|
|
-
|
|
|
+
|
|
|
return Resp::ok(array());
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 6007 移除新头像标志
|
|
|
*/
|
|
|
- public static function removeNewHeadImgTip() {
|
|
|
+ public static function removeNewHeadImgTip() {
|
|
|
//list($gateId) = req()->paras;
|
|
|
-
|
|
|
+
|
|
|
$dic = ctx()->heros->Dic;
|
|
|
foreach ($dic as $heroId => $ins_Hero) {
|
|
|
- if($ins_Hero->isUnlock == 1 && $ins_Hero->isNewHeadImgTip == 1){
|
|
|
+ if ($ins_Hero->isUnlock == 1 && $ins_Hero->isNewHeadImgTip == 1) {
|
|
|
ctx()->heros->Dic->$heroId->isNewHeadImgTip = 0;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
UserProc::updateUserInfo();
|
|
|
-
|
|
|
+
|
|
|
return Resp::ok(array());
|
|
|
}
|
|
|
|
|
@@ -86,19 +86,19 @@ class UserProc {
|
|
|
$mem->delete($key);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// <editor-fold defaultstate="collapsed" desc="清理mongodb中的数据">
|
|
|
self::deleteUserMapData(req()->uid, req()->zoneid);
|
|
|
|
|
|
// </editor-fold>
|
|
|
-
|
|
|
+
|
|
|
FightProc::DeleteRankInvalidUser(req()->uid);
|
|
|
self::delRegRole(req()->zoneid, req()->uid, ctx()->baseInfo->name);
|
|
|
|
|
|
$ret = array();
|
|
|
return Resp::ok($ret);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
private static function GetUserDataKeys($uid, $zoneid) {
|
|
|
$list = array();
|
|
|
$zoneKey = MemKey_User::Union_PlayedZoneInfo_normal($uid); # 分区信息
|
|
@@ -124,11 +124,10 @@ class UserProc {
|
|
|
*/
|
|
|
static public function deleteUserMapData($uid, $zoneid) {
|
|
|
gMongo()->delete("playerMapInfo", array('Uid' => $uid, 'ZoneId' => intval($zoneid))); # 地图
|
|
|
- gMongo()->delete("PlayerInfo", array('Uid' => $uid, 'ZoneId' => intval($zoneid)));
|
|
|
+ gMongo()->delete("PlayerInfo", array('Uid' => $uid, 'ZoneId' => intval($zoneid)));
|
|
|
gMongo()->delete("userInfoBack", array('key' => MemKey_User::Info_hash($zoneid, $uid)));
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 6005 替换头像
|
|
|
* @return type
|
|
@@ -299,13 +298,7 @@ class UserProc {
|
|
|
$game->RegenNewToken();
|
|
|
UserProc::updateUserInfo(); # 这一步回存操作只有在 userInfo正常存在的情况下才进行
|
|
|
|
|
|
- TaskProc::OnLogin_Daily();
|
|
|
- TaskProc::OnLogin_day7();
|
|
|
- FightProc::Ranking_FightPower();
|
|
|
-
|
|
|
- EmailProc::IsExistRedTip();
|
|
|
- FightProc::isExistNoDrawed_FightPower();
|
|
|
- FightProc::isExistNoDrawed_MainGate();
|
|
|
+ self::OnLogin_DateDeal();
|
|
|
return $resp;
|
|
|
} else { # 2.如果玩家已存在,则处理普通登录流程
|
|
|
req()->game = $game; # 给Req挂载玩家数据
|
|
@@ -317,12 +310,7 @@ class UserProc {
|
|
|
$game->RegenNewToken();
|
|
|
UserProc::updateUserInfo(); # 这一步回存操作只有在 userInfo正常存在的情况下才进行
|
|
|
|
|
|
- FightProc::Ranking_FightPower();
|
|
|
- TaskProc::OnLogin_Daily();
|
|
|
- TaskProc::OnLogin_day7();
|
|
|
- EmailProc::IsExistRedTip();
|
|
|
- FightProc::isExistNoDrawed_FightPower();
|
|
|
- FightProc::isExistNoDrawed_MainGate();
|
|
|
+ self::OnLogin_DateDeal();
|
|
|
|
|
|
$resp = Resp::ok($game); # 设置返回值
|
|
|
self::updtateUserZoneInfo(); # 1. 更新玩家分区记录
|
|
@@ -415,7 +403,20 @@ class UserProc {
|
|
|
//self::clear();
|
|
|
FightProc::FightDailyClear();
|
|
|
//TaskProc::initAchieveData();
|
|
|
- TaskProc::ResetTask();
|
|
|
+ TaskProc::ResetTask();
|
|
|
+ }
|
|
|
+
|
|
|
+ static function OnLogin_DateDeal() {
|
|
|
+ EmailProc::refreshSysMail();
|
|
|
+
|
|
|
+ EmailProc::IsExistRedTip();
|
|
|
+ FightProc::isExistNoDrawed_FightPower();
|
|
|
+ FightProc::isExistNoDrawed_MainGate();
|
|
|
+
|
|
|
+ FightProc::Ranking_FightPower();
|
|
|
+
|
|
|
+ TaskProc::OnLogin_Daily();
|
|
|
+ TaskProc::OnLogin_day7();
|
|
|
}
|
|
|
|
|
|
// static function clear() {
|