From 951034c457d01f3cc0290ec361fca84bc0900d3b Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Tue, 4 Jul 2023 11:24:45 +0800 Subject: [PATCH] 1 --- webapp/models/HeroPreset.php | 2 +- webapp/mt/Skill.php | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/webapp/models/HeroPreset.php b/webapp/models/HeroPreset.php index 20e82aca..97c1adf4 100644 --- a/webapp/models/HeroPreset.php +++ b/webapp/models/HeroPreset.php @@ -53,7 +53,7 @@ class HeroPreset extends BaseModel { } }else{ $data = array( - 'skill_id' => mt\Skill::DEFAULT_SKILL, + 'skill_id' => mt\Skill::getDefSkill(), 'weapon_uid1' => 0, 'weapon_uid2' => 0, 'gun_id1'=>0, diff --git a/webapp/mt/Skill.php b/webapp/mt/Skill.php index e047f198..93d9c412 100644 --- a/webapp/mt/Skill.php +++ b/webapp/mt/Skill.php @@ -1,17 +1,26 @@