This commit is contained in:
hujiabin 2023-03-17 19:43:53 +08:00
parent d8245e333a
commit 4b1ecfe783

View File

@ -100,7 +100,7 @@ class BattleDataService extends BaseService {
public function updateBattleData()
{
// error_log(json_encode($_REQUEST));
// $matchMode = getReqVal('match_mode', 0);
$matchMode = getReqVal('match_mode', 0);
// {
// $heroDb = Hero::find(getReqVal('hero_uniid', 0));
// if (!$heroDb) {
@ -121,40 +121,40 @@ class BattleDataService extends BaseService {
//录入战斗记录
// $this->saveBattleHistory();
error_log('updateBattleData0----------'.$matchMode);
// switch ($matchMode) {
// case self::MATCH_MODE_PVP:
// {
// error_log('updateBattleData1');
// //匹配赛模式
// $this->updatePvpData();
//// $this->rewardCegPvp();
// myself()->_incDailyV(TN_DAILY_PVP_BATTLE_TIMES, 0, 1);
// }
// break;
// case self::MATCH_MODE_MATCH:
// {
// //排位赛(和匹配合二为一)
//// $this->updateSeasonData();
//// myself()->_incDailyV(TN_DAILY_RANK_BATTLE_TIMES, 0, 1);
// }
// break;
// case self::MATCH_MODE_PVE:
// {
// //pve
// $this->updatePveData();
// if ($this->pveGeminiMeta &&
// $this->pveGeminiModeMeta) {
// $this->rewardFragmentPve();
// }
// myself()->_incDailyV(TN_DAILY_PVE_BATTLE_TIMES, 0, 1);
// }
// break;
// default:
// {
// }
// break;
// }
// error_log('updateBattleData0----------'.$matchMode);
switch ($matchMode) {
case self::MATCH_MODE_PVP:
{
error_log('updateBattleData1');
//匹配赛模式
$this->updatePvpData();
// $this->rewardCegPvp();
myself()->_incDailyV(TN_DAILY_PVP_BATTLE_TIMES, 0, 1);
}
break;
case self::MATCH_MODE_MATCH:
{
//排位赛(和匹配合二为一)
// $this->updateSeasonData();
// myself()->_incDailyV(TN_DAILY_RANK_BATTLE_TIMES, 0, 1);
}
break;
case self::MATCH_MODE_PVE:
{
//pve
$this->updatePveData();
if ($this->pveGeminiMeta &&
$this->pveGeminiModeMeta) {
$this->rewardFragmentPve();
}
myself()->_incDailyV(TN_DAILY_PVE_BATTLE_TIMES, 0, 1);
}
break;
default:
{
}
break;
}
}