From c3a9e2006172ddf38a3653ab62ea6c4ee70ca529 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 14 Jun 2022 15:05:53 +0800 Subject: [PATCH] 1 --- webapp/controller/HeroController.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index f5662633..1449842f 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -377,6 +377,10 @@ class HeroController extends BaseAuthedController { $this->_rspErr(1, 'hero does not exist'); return; } + if ($heroDb['advanced_count'] >= mt\Parameter::getVal('advence_limit', 0)) { + $this->_rspErr(1, 'hero does not exist'); + return; + } if ($heroDb['state'] != Hero::GETED_STATE) { $this->_rspErr(3, 'Trial hero cannot operate'); return;