From 2fea397f468224cac726b4570a2bd41bb6e4d6b0 Mon Sep 17 00:00:00 2001 From: hujiabin Date: Sat, 8 Oct 2022 21:20:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=88=98=E6=96=97=E5=8E=86?= =?UTF-8?q?=E5=8F=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/gamedb.sql | 1 + webapp/services/BattleDataService.php | 1 + 2 files changed, 2 insertions(+) diff --git a/sql/gamedb.sql b/sql/gamedb.sql index 396c3b11..13694359 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -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 '当前用户排位分', diff --git a/webapp/services/BattleDataService.php b/webapp/services/BattleDataService.php index bca0cdef..f4dabaa6 100644 --- a/webapp/services/BattleDataService.php +++ b/webapp/services/BattleDataService.php @@ -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'],