保存战斗历史
This commit is contained in:
parent
0b854bbdf5
commit
2fea397f46
@ -661,6 +661,7 @@ CREATE TABLE `t_battle_history` (
|
||||
`hero_id` int(11) NOT NULL DEFAULT '0' COMMENT '英雄 id',
|
||||
`weapon1` int(11) NOT NULL DEFAULT '0' COMMENT '枪械1 id',
|
||||
`weapon2` int(11) NOT NULL DEFAULT '0' COMMENT '枪械2 id',
|
||||
`damage` int(11) NOT NULL DEFAULT '0' COMMENT '伤害',
|
||||
`battle_end_time` int(11) NOT NULL DEFAULT '0' COMMENT '战斗结束时间',
|
||||
`current_level_class` varchar(60) NOT NULL DEFAULT '0' COMMENT '当前用户段位',
|
||||
`current_level_class_score` int(11) NOT NULL DEFAULT '0' COMMENT '当前用户排位分',
|
||||
|
@ -187,6 +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),
|
||||
"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