This commit is contained in:
aozhiwei 2022-06-16 16:03:39 +08:00
parent c69d1c7600
commit 46313d131d
2 changed files with 8 additions and 1 deletions

View File

@ -418,8 +418,11 @@ class Hero extends BaseModel {
return $finalyAddGold;
}
public static function heroLocking($heroDto)
public static function heroIsLocking($heroDto)
{
if ($heroDto['lock_type']) {
return true;
}
$locking = false;
{
$idx = 0;

View File

@ -693,6 +693,10 @@ class MissionService extends BaseService {
myself()->_rspErr(1, 'objects parameter error' . $id);
return;
}
if (Hero::heroIsLocking($heroDb)) {
myself()->_rspErr(1, 'hero is locking');
return;
}
array_push(
$mission['objects'],
array(