From ec8841d67e602f389de21e44f2acff2053fdd84f Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Fri, 5 Jul 2024 15:49:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=85=E5=80=BC=E9=87=87=E8=B4=AD=E6=AC=BE?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/UserRechargeController.php | 37 ++++++++++++++++++- app/store/controller/user/UserController.php | 35 ++++++++++++++++++ 2 files changed, 71 insertions(+), 1 deletion(-) diff --git a/app/api/controller/user/UserRechargeController.php b/app/api/controller/user/UserRechargeController.php index ba97d6a54..95ebf071c 100644 --- a/app/api/controller/user/UserRechargeController.php +++ b/app/api/controller/user/UserRechargeController.php @@ -10,7 +10,6 @@ use app\api\lists\user\UserRechargeLists; class UserRechargeController extends BaseApiController { - /** * @notes 获取用户充值 * @return \support\Response @@ -21,4 +20,40 @@ use app\api\lists\user\UserRechargeLists; { return $this->dataLists(new UserRechargeLists()); } + + public function recharge_list() + { + $buy_bar = "元采购包"; + $send_bar = "品牌礼品券"; + $arr = [ + [ + 'money'=>1000,//采购包 + 'send'=>249,//礼品券 + 'money_string'=>$buy_bar, + 'send_string'=>$send_bar, + ], + [ + 'money'=>2000,//采购包 + 'send'=>560,//礼品券 + 'money_string'=>$buy_bar, + 'send_string'=>$send_bar, + ], + [ + 'money'=>5000,//采购包 + 'send'=>1550,//礼品券 + 'money_string'=>$buy_bar, + 'send_string'=>$send_bar, + ], + [ + 'money'=>10000,//采购包 + 'send'=>3500,//礼品券 + 'money_string'=>$buy_bar, + 'send_string'=>$send_bar, + ] + ]; + return $this->success('ok',$arr); + + + } + } diff --git a/app/store/controller/user/UserController.php b/app/store/controller/user/UserController.php index 47e6b8653..8ebd04a39 100644 --- a/app/store/controller/user/UserController.php +++ b/app/store/controller/user/UserController.php @@ -83,4 +83,39 @@ class UserController extends BaseAdminController return $this->success('设置成功'); } + public function recharge_list() + { + $buy_bar = "元采购包"; + $send_bar = "品牌礼品券"; + $arr = [ + [ + 'money'=>1000,//采购包 + 'send'=>249,//礼品券 + 'money_string'=>$buy_bar, + 'send_string'=>$send_bar, + ], + [ + 'money'=>2000,//采购包 + 'send'=>560,//礼品券 + 'money_string'=>$buy_bar, + 'send_string'=>$send_bar, + ], + [ + 'money'=>5000,//采购包 + 'send'=>1550,//礼品券 + 'money_string'=>$buy_bar, + 'send_string'=>$send_bar, + ], + [ + 'money'=>10000,//采购包 + 'send'=>3500,//礼品券 + 'money_string'=>$buy_bar, + 'send_string'=>$send_bar, + ] + ]; + return $this->success('ok',$arr); + + + } + } \ No newline at end of file