From e83e3964186c74f9e89519e0b0c3be131b22f129 Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Fri, 16 Jun 2023 15:45:19 +0800 Subject: [PATCH] 1 --- webapp/controller/PassController.class.php | 12 ++------- webapp/services/callback/ActiveCbService.php | 25 +++++++++++++++++++ .../services/callback/BuyLevelCbService.php | 10 ++++++++ 3 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 webapp/services/callback/ActiveCbService.php create mode 100644 webapp/services/callback/BuyLevelCbService.php diff --git a/webapp/controller/PassController.class.php b/webapp/controller/PassController.class.php index a3879a42..0352b925 100644 --- a/webapp/controller/PassController.class.php +++ b/webapp/controller/PassController.class.php @@ -42,8 +42,8 @@ class PassController extends BaseAuthedController { $data = emptyReplace(json_decode($row['data'], true), array()); $this->_rspData(array( 'time_info' => array( - 'name'=>strtotime($this->currSeasonMeta['battlepass_name']), - 'sub_name'=>strtotime($this->currSeasonMeta['battlepass_sub_name']), + 'name'=>$this->currSeasonMeta['battlepass_name'], + 'sub_name'=>$this->currSeasonMeta['battlepass_sub_name'], 'begin_time'=>strtotime($this->currSeasonMeta['begin_time']), 'end_time'=>strtotime($this->currSeasonMeta['end_time']) ), @@ -166,14 +166,6 @@ class PassController extends BaseAuthedController { )); } - public function activePlatinumPass(){ - - } - - public function buyPassLevel(){ - - } - public function resetPassLevel(){ } diff --git a/webapp/services/callback/ActiveCbService.php b/webapp/services/callback/ActiveCbService.php new file mode 100644 index 00000000..0b9e7cdf --- /dev/null +++ b/webapp/services/callback/ActiveCbService.php @@ -0,0 +1,25 @@ +