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