Skip to content

Commit

Permalink
chore: 移除积分配置信息获取接口,合并进入启动接口
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Nov 29, 2018
1 parent a36de81 commit 51533b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 52 deletions.
3 changes: 3 additions & 0 deletions app/Http/Controllers/APIs/V2/BootstrappersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ public function show(BootstrapAPIsEventer $events, AdvertisingSpace $space, Gold
'recharge-min' => 100,
'cash-max' => 10000000,
'cash-min' => 100,
'cash-type' => ($cash = CommonConfig::where('name', 'cash')->where('namespace', 'wallet')->first()) ? json_decode($cash->value) : [],
'apple-IAP-rule' => config('currency.recharge.IAP.rule', ''),
'recharge-type' => ($recharge_type = CommonConfig::where('name', 'wallet:recharge-type')->where('namespace', 'common')->first()) ? json_decode($recharge_type->value) : [],
]),
];

Expand Down
48 changes: 0 additions & 48 deletions app/Http/Controllers/APIs/V2/CurrencyConfigController.php

This file was deleted.

4 changes: 0 additions & 4 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,6 @@

// 积分部分
$api->group(['prefix' => 'currency'], function (RouteContract $api) {

// 获取积分配置
$api->get('/', API2\CurrencyConfigController::class.'@show');

// 积分流水
$api->get('/orders', API2\CurrencyRechargeController::class.'@index');

Expand Down

0 comments on commit 51533b7

Please sign in to comment.