This commit is contained in:
aozhiwei 2022-09-28 14:56:09 +08:00
parent 4d4eefe418
commit 2c38ca706d

View File

@ -517,6 +517,17 @@ class BattleDataService extends BaseService {
private function rewardFragmentPvp()
{
{
$ranked = getReqVal('ranked', 0);
$kills = getReqVal('kills', 0);
$aliveTime = getReqVal('alive_time', 0);
$cond = (1 - ($ranked >= 30 ? 1 : 0)) *
($kills >= 1 ? 1 : 0) *
($aliveTime >= 30 ? 1 : 0);
if (!$cond) {
return;
}
}
$todayPveGetFragmentNum = myself()->_getDailyV(TN_DAILY_PVE_GET_FRAGMENT_NUM, 0);
$todayPvpGetFragmentNum = myself()->_getDailyV(TN_DAILY_PVP_GET_FRAGMENT_NUM, 0);