1
This commit is contained in:
parent
6c19381501
commit
f5faabbd27
@ -137,7 +137,7 @@ class BattleDataService extends BaseService {
|
||||
}
|
||||
}
|
||||
//录入战斗记录
|
||||
// $this->saveBattleHistory();
|
||||
$this->saveBattleHistory();
|
||||
|
||||
switch ($matchMode) {
|
||||
case self::MATCH_MODE_PVP:
|
||||
@ -176,7 +176,7 @@ class BattleDataService extends BaseService {
|
||||
private function saveBattleHistory(){
|
||||
$user = myself()->_getOrmUserInfo();
|
||||
$data = array(
|
||||
"battle_uniid" => getReqVal('battle_uniid', 0),
|
||||
"battle_uniid" => getReqVal('battle_uuid', 0),
|
||||
"account_id" => myself()->_getAccountId(),
|
||||
"match_mode" => getReqVal('match_mode', 0),
|
||||
"team_mode" => getReqVal('team_mode', 0),
|
||||
@ -187,7 +187,7 @@ class BattleDataService extends BaseService {
|
||||
"hero_id" => getReqVal('hero_uniid', 0),
|
||||
"weapon1" => getReqVal('weapon_uuid1', 0),
|
||||
"weapon2" => getReqVal('weapon_uuid2', 0),
|
||||
// "damage" => getReqVal('damage_out', 0),
|
||||
"damage" => getReqVal('damage_out', 0),
|
||||
"battle_end_time" => myself()->_getNowTime(),
|
||||
"current_level_class" => $user['rank'],
|
||||
"current_level_class_score" => $user['score'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user