|
@@ -144,9 +144,7 @@ class TestServer {
|
|
$gates = new Info_Gates(gMem()->hget($userRedisKey, 'gates'));
|
|
$gates = new Info_Gates(gMem()->hget($userRedisKey, 'gates'));
|
|
$nextId = $gateId = glc()->FirstGateId;
|
|
$nextId = $gateId = glc()->FirstGateId;
|
|
do {
|
|
do {
|
|
- if ($nextId != $gateId) {
|
|
|
|
- $gateId = $nextId;
|
|
|
|
- }
|
|
|
|
|
|
+ $gateId = ($nextId != $gateId) ? $nextId : $gateId;
|
|
$nextId = $gates->UnlockNextPlotGate($gateId); # 解锁下一主线关卡
|
|
$nextId = $gates->UnlockNextPlotGate($gateId); # 解锁下一主线关卡
|
|
} while ($nextId != $gateId);
|
|
} while ($nextId != $gateId);
|
|
gMem()->hset($userRedisKey, 'gates', $gates);
|
|
gMem()->hset($userRedisKey, 'gates', $gates);
|