|
@@ -304,9 +304,9 @@ class SweepGatesProc {
|
|
$diffCult->highest = 503000; # 设置为关卡第一关
|
|
$diffCult->highest = 503000; # 设置为关卡第一关
|
|
}
|
|
}
|
|
|
|
|
|
- if ($gateId > $diffCult->highest + 1) { # 不能跳关
|
|
|
|
- Err(ErrCode::err_arenasgate_indexillegal);
|
|
|
|
- }
|
|
|
|
|
|
+// if ($gateId > $diffCult->highest + 1) { # 不能跳关
|
|
|
|
+// Err(ErrCode::err_arenasgate_indexillegal);
|
|
|
|
+// }
|
|
|
|
|
|
if ($gateId == $diffCult->highest + 1 && $star > 0) { # 星级大于等于0,才可以推关
|
|
if ($gateId == $diffCult->highest + 1 && $star > 0) { # 星级大于等于0,才可以推关
|
|
$diffCult->highest += 1; # 更新最高记录
|
|
$diffCult->highest += 1; # 更新最高记录
|
|
@@ -413,9 +413,9 @@ class SweepGatesProc {
|
|
if (!CommUtil::isPropertyExists($gatesRecord->record, $gateId)) {
|
|
if (!CommUtil::isPropertyExists($gatesRecord->record, $gateId)) {
|
|
$gatesRecord->record->$gateId = ObjectInit();
|
|
$gatesRecord->record->$gateId = ObjectInit();
|
|
}
|
|
}
|
|
- if ($difficulty > 2) {
|
|
|
|
- return Resp::err(ErrCode::err_arenasgate_indexillegal);
|
|
|
|
- }
|
|
|
|
|
|
+// if ($difficulty > 2) {
|
|
|
|
+// return Resp::err(ErrCode::err_arenasgate_indexillegal);
|
|
|
|
+// }
|
|
if ($difficulty == 0) {
|
|
if ($difficulty == 0) {
|
|
if (!CommUtil::isPropertyExists($gatesRecord->record->$gateId, "normal")) {
|
|
if (!CommUtil::isPropertyExists($gatesRecord->record->$gateId, "normal")) {
|
|
return Resp::err(ErrCode::err_arenas_normalgate_numno);
|
|
return Resp::err(ErrCode::err_arenas_normalgate_numno);
|