|
@@ -544,6 +544,11 @@ class FightProc {
|
|
|
if (ctx()->gates->GateList->$gateId->pass == 0) {
|
|
|
ctx()->gates->GateList->$gateId->pass = 1;
|
|
|
TaskProc::Day7TaskReset($gateId); # 刷新七日任务
|
|
|
+ $maxGateId= ctx()->gates->maxPassGateId();
|
|
|
+ if($maxGateId > 0){
|
|
|
+ self::Ranking_MainGateIndex($maxGateId);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
TaskProc::OnPassGate_X($gateId); # 刷新任务进度: 通关第X关
|
|
|
|
|
@@ -698,9 +703,10 @@ class FightProc {
|
|
|
*/
|
|
|
public static function Ranking_MainGateIndex($maxGateIndex) {
|
|
|
$memKey = MemKey_GameRun::Rank_MainGateIndex_Zone_zset(req()->zoneid);
|
|
|
- $mem = gMem();
|
|
|
- $arr = array();
|
|
|
- $uid = req()->uid;
|
|
|
+ $mem = gMem();
|
|
|
+
|
|
|
+ $uid = req()->uid;
|
|
|
+ $arr = array();
|
|
|
$arr["$uid"] = $maxGateIndex;
|
|
|
$mem->zadd($memKey, $arr);
|
|
|
|