This commit is contained in:
aozhiwei 2022-06-16 16:55:11 +08:00
parent c233205333
commit 103a201ebe
2 changed files with 4 additions and 1 deletions

View File

@ -424,7 +424,7 @@ class Hero extends BaseModel {
return true; return true;
} }
$locking = false; $locking = false;
$heroUniId = $heroDto['idx']; $heroUniId = empty($heroDto['hero_uniid']) ? $heroDto['hero_uniid'] : $heroDto['idx'];
{ {
$idx = 0; $idx = 0;
for ($i = 0; $i < kMaxHeroUpQualityNum; ++$i) { for ($i = 0; $i < kMaxHeroUpQualityNum; ++$i) {

View File

@ -47,6 +47,9 @@ class BattleDataService extends BaseService {
return false; return false;
} }
$heroDb = Hero::toDto($row); $heroDb = Hero::toDto($row);
if (Hero::heroIsLocking($heroDb)) {
return false;
}
error_log(json_encode($_REQUEST)); error_log(json_encode($_REQUEST));
error_log('updateBattleData1'); error_log('updateBattleData1');
/*if (!$this->decCost($heroDb)) { /*if (!$this->decCost($heroDb)) {