移除僵尸模式战报

This commit is contained in:
aozhiwei 2021-11-22 18:03:17 +08:00
parent 507b84c7ce
commit fee78bf13c

View File

@ -187,62 +187,7 @@ class RoleController extends BaseAuthedController {
$helpOtherPlayer = $_REQUEST['rescue_member'];
$taskObj->updateTaskToDB(HELP_OP70008,$helpOtherPlayer);
//救起2个队友结束--
if (!isset($_REQUEST['room_mode']) || $_REQUEST['room_mode'] == 0) {
$this->oldBattleReport();
} else {
$this->bioBattleReport();
}
}
public function bioBattleReport()
{
$account_id = $_REQUEST['account_id']; //账号
$conn = $this->getMysql($account_id);
$rank = $_REQUEST['rank'];
$ar = mt\RankReward::getOldRankReward($rank);
$coin_num = $ar['zbmode_param'];
$addreward = new classes\AddReward();
$val = $addreward->getVipVal($account_id, 1);
$coin_num = floor($coin_num + $coin_num * $val / 100);
$row = $conn->execQueryOne('SELECT daily_time, coin_num, biogame_times FROM user WHERE accountid=:accountid;',
array(
':accountid' => $account_id
));
if (!$row) {
phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家1');
return;
}
/*
$newhand = $row['newhand'];
$p1 = mt\Parameter::getOldParam(NEWHAND_NUM1);
$fight_times = $p1['param_value'];
$p2 = mt\Parameter::getOldParam(NEWHAND_NUM2);
$view_times = $p2['param_value'];
if ($row['game_times'] + 1 == $fight_times && $row['vip_score'] >= $view_times) {
$newhand = 1;
}*/
$nowTime = phpcommon\getdayseconds(phpcommon\getNowTime());
$daily_time = $row['daily_time'];
if ($daily_time == 0 || ($nowTime - phpcommon\getdayseconds($daily_time) > 0)) {
$daily_time = phpcommon\getNowTime();
}
$ret = $conn->execScript('UPDATE user SET coin_num=:coin_num, modify_time=:modify_time, daily_time=:daily_time, biogame_times=:biogame_times ' .
'WHERE accountid=:accountid;',
array(
':accountid' => $account_id,
':coin_num' => $row['coin_num'] + $coin_num,
':modify_time' => phpcommon\getNowTime(),
':daily_time' => $daily_time,
':biogame_times' => $row['biogame_times'] + 1,
));
if (!$ret) {
die();
return;
}
echo json_encode(array(
'errcode' => 0,
'errmsg' => '',
));
}
public function oldBattleReport()