发布悬赏跟新英雄枪械的信息
This commit is contained in:
parent
27bdaac395
commit
5e55111e78
@ -156,7 +156,7 @@ class MissionController extends BaseAuthedController {
|
|||||||
$this->_rspErr(10, 'server internal error:' . $missionMeta['reward']);
|
$this->_rspErr(10, 'server internal error:' . $missionMeta['reward']);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->_scatterDrop('mission:' . $missionId, $dropMeta, $this->awardService, $this->propertyChgService);
|
$this->_scatterDrop('mission:' . $missionId, $dropMeta, $this->awardService, $this->propertyChgService);print_r($missionDto);die;
|
||||||
$this->procSpecMissionCommit($missionDto, $missionMeta);
|
$this->procSpecMissionCommit($missionDto, $missionMeta);
|
||||||
Mission::add($missionId);
|
Mission::add($missionId);
|
||||||
$missionDb = Mission::find($missionId);
|
$missionDb = Mission::find($missionId);
|
||||||
@ -200,7 +200,7 @@ class MissionController extends BaseAuthedController {
|
|||||||
if ($specMissionDto &&
|
if ($specMissionDto &&
|
||||||
$specMissionDto['state'] == Mission::NOT_FINISHED_STATE &&
|
$specMissionDto['state'] == Mission::NOT_FINISHED_STATE &&
|
||||||
$notFinishedCount <= 1) {
|
$notFinishedCount <= 1) {
|
||||||
$specMissionDto['state'] == Mission::RECEIVEABLE_STATE;
|
$specMissionDto['state'] = Mission::RECEIVEABLE_STATE;
|
||||||
array_push($missionDtoList, $missionDto);
|
array_push($missionDtoList, $missionDto);
|
||||||
}
|
}
|
||||||
foreach ($missionDtoList as $missionDto) {
|
foreach ($missionDtoList as $missionDto) {
|
||||||
|
@ -341,6 +341,14 @@ class FormulaService extends BaseService {
|
|||||||
return self::Hero_Max_CEG($heroDb)*0.35;
|
return self::Hero_Max_CEG($heroDb)*0.35;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//英雄悬赏收益上限
|
||||||
|
public static function getHeroMissionDailyCegUpLimit($heroDb)
|
||||||
|
{
|
||||||
|
//Hero_Max_CEG *05%
|
||||||
|
return self::Hero_Max_CEG($heroDb)*0.05;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//每天枪械NFT获得CEG上限值
|
//每天枪械NFT获得CEG上限值
|
||||||
public static function Weapon_Max_CEG($weaponDb){
|
public static function Weapon_Max_CEG($weaponDb){
|
||||||
//Weapon_Max_CEG=((SIGN(武器NFT阶数=1)*Weapon_NFT_Maximum_Durability+SIGN(武器NFT阶数>1)*Weapon_Fixed_Durability)*Weapon_DA_Value*GAC_D_Value+Weapon_NFT_Maximum_Durability*Weapon_Chip_DA_Value*Weapon_Chip_GAC_PS_Value)*10*CEG_Discount_Rate
|
//Weapon_Max_CEG=((SIGN(武器NFT阶数=1)*Weapon_NFT_Maximum_Durability+SIGN(武器NFT阶数>1)*Weapon_Fixed_Durability)*Weapon_DA_Value*GAC_D_Value+Weapon_NFT_Maximum_Durability*Weapon_Chip_DA_Value*Weapon_Chip_GAC_PS_Value)*10*CEG_Discount_Rate
|
||||||
@ -362,6 +370,13 @@ class FormulaService extends BaseService {
|
|||||||
return self::Weapon_Max_CEG($weaponDb)*0.35;
|
return self::Weapon_Max_CEG($weaponDb)*0.35;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//枪械悬赏收益上限
|
||||||
|
public static function getWeaponMissionDailyCegUpLimit($weaponDb)
|
||||||
|
{
|
||||||
|
//Weapon_Max_CEG *5%
|
||||||
|
return self::Weapon_Max_CEG($weaponDb)*0.05;
|
||||||
|
}
|
||||||
|
|
||||||
//CEG动态指数定义公式:
|
//CEG动态指数定义公式:
|
||||||
public static function CEG_Dynamic_Index(){
|
public static function CEG_Dynamic_Index(){
|
||||||
//CEG_Dynamic_Index=ROUND(2/(1+EXP(-(CEG_Dynamic_Price/CEG_Base_Price)* CEG_Parameter+ CEG_Parameter)),2)
|
//CEG_Dynamic_Index=ROUND(2/(1+EXP(-(CEG_Dynamic_Price/CEG_Base_Price)* CEG_Parameter+ CEG_Parameter)),2)
|
||||||
|
@ -755,8 +755,12 @@ class MissionService extends BaseService {
|
|||||||
error_log(json_encode($mission));
|
error_log(json_encode($mission));
|
||||||
$this->offerRewartdMission['missions'][$idx] = $mission;
|
$this->offerRewartdMission['missions'][$idx] = $mission;
|
||||||
$this->saveOfferRewardMission();
|
$this->saveOfferRewardMission();
|
||||||
|
$propertyChgService->addHeroChg();
|
||||||
|
$propertyChgService->addGunChg();
|
||||||
error_log(json_encode($this->offerRewartdMission));
|
error_log(json_encode($this->offerRewartdMission));
|
||||||
myself()->_rspOk();
|
myself()->_rspData([
|
||||||
|
'property_chg' => $propertyChgService->toDto(),
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function offerRewardMissionPreview($missionId)
|
public function offerRewardMissionPreview($missionId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user