1
This commit is contained in:
parent
c69d1c7600
commit
46313d131d
@ -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;
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user