1
This commit is contained in:
parent
c69d1c7600
commit
46313d131d
@ -418,8 +418,11 @@ class Hero extends BaseModel {
|
|||||||
return $finalyAddGold;
|
return $finalyAddGold;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function heroLocking($heroDto)
|
public static function heroIsLocking($heroDto)
|
||||||
{
|
{
|
||||||
|
if ($heroDto['lock_type']) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
$locking = false;
|
$locking = false;
|
||||||
{
|
{
|
||||||
$idx = 0;
|
$idx = 0;
|
||||||
|
@ -693,6 +693,10 @@ class MissionService extends BaseService {
|
|||||||
myself()->_rspErr(1, 'objects parameter error' . $id);
|
myself()->_rspErr(1, 'objects parameter error' . $id);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (Hero::heroIsLocking($heroDb)) {
|
||||||
|
myself()->_rspErr(1, 'hero is locking');
|
||||||
|
return;
|
||||||
|
}
|
||||||
array_push(
|
array_push(
|
||||||
$mission['objects'],
|
$mission['objects'],
|
||||||
array(
|
array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user