1
This commit is contained in:
parent
2725daba43
commit
da1f855dcb
@ -178,7 +178,9 @@ class GunController extends BaseAuthedController {
|
|||||||
Gun::update($gunUniId,
|
Gun::update($gunUniId,
|
||||||
array(
|
array(
|
||||||
'gun_lv' => $gunDb['gun_lv'] + 1,
|
'gun_lv' => $gunDb['gun_lv'] + 1,
|
||||||
'rand_attr' => json_encode($attrs)
|
'rand_attr' => json_encode($attrs),
|
||||||
|
'lock_type' => Gun::LEVEL_LOCK,
|
||||||
|
'unlock_time' => $this->_getNowTime() + $currLevelMeta['time']
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$propertyChgService = new services\PropertyChgService();
|
$propertyChgService = new services\PropertyChgService();
|
||||||
@ -275,7 +277,9 @@ class GunController extends BaseAuthedController {
|
|||||||
array(
|
array(
|
||||||
'gun_lv' => $gunDb['gun_lv'],
|
'gun_lv' => $gunDb['gun_lv'],
|
||||||
'quality' => $gunDb['quality'] + 1,
|
'quality' => $gunDb['quality'] + 1,
|
||||||
'rand_attr' => json_encode($attrs)
|
'rand_attr' => json_encode($attrs),
|
||||||
|
'lock_type' => Gun::QUALITY_LOCK,
|
||||||
|
'unlock_time' => $this->_getNowTime() + $currQualityMeta['time']
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$propertyChgService = new services\PropertyChgService();
|
$propertyChgService = new services\PropertyChgService();
|
||||||
|
@ -165,7 +165,9 @@ class HeroController extends BaseAuthedController {
|
|||||||
Hero::update($heroUniId,
|
Hero::update($heroUniId,
|
||||||
array(
|
array(
|
||||||
'hero_lv' => $heroDb['hero_lv'] + 1,
|
'hero_lv' => $heroDb['hero_lv'] + 1,
|
||||||
'rand_attr' => json_encode($attrs)
|
'rand_attr' => json_encode($attrs),
|
||||||
|
'lock_type' => Hero::LEVEL_LOCK,
|
||||||
|
'unlock_time' => $this->_getNowTime() + $currLevelMeta['time']
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$propertyChgService = new services\PropertyChgService();
|
$propertyChgService = new services\PropertyChgService();
|
||||||
@ -262,7 +264,9 @@ class HeroController extends BaseAuthedController {
|
|||||||
array(
|
array(
|
||||||
'hero_lv' => $heroDb['hero_lv'],
|
'hero_lv' => $heroDb['hero_lv'],
|
||||||
'quality' => $heroDb['quality'] + 1,
|
'quality' => $heroDb['quality'] + 1,
|
||||||
'rand_attr' => json_encode($attrs)
|
'rand_attr' => json_encode($attrs),
|
||||||
|
'lock_type' => Gun::QUALITY_LOCK,
|
||||||
|
'unlock_time' => $this->_getNowTime() + $currQualityMeta['time']
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$propertyChgService = new services\PropertyChgService();
|
$propertyChgService = new services\PropertyChgService();
|
||||||
|
@ -14,7 +14,7 @@ class Gun extends BaseModel {
|
|||||||
const GETED_STATE = 0;
|
const GETED_STATE = 0;
|
||||||
const TRY_STATE = 1;
|
const TRY_STATE = 1;
|
||||||
|
|
||||||
const NO_LOCK = 1;
|
const NO_LOCK = 0;
|
||||||
const LEVEL_LOCK = 1;
|
const LEVEL_LOCK = 1;
|
||||||
const QUALITY_LOCK = 2;
|
const QUALITY_LOCK = 2;
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ class Hero extends BaseModel {
|
|||||||
const GETED_STATE = 0;
|
const GETED_STATE = 0;
|
||||||
const TRY_STATE = 1;
|
const TRY_STATE = 1;
|
||||||
|
|
||||||
const NO_LOCK = 1;
|
const NO_LOCK = 0;
|
||||||
const LEVEL_LOCK = 1;
|
const LEVEL_LOCK = 1;
|
||||||
const QUALITY_LOCK = 2;
|
const QUALITY_LOCK = 2;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user