更新保证金订单交易列表
This commit is contained in:
parent
16b3c51d31
commit
6f07577185
@ -307,6 +307,15 @@ class Auth extends BaseController
|
|||||||
return app('json')->success($payInfo);
|
return app('json')->success($payInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function marginList()
|
||||||
|
{
|
||||||
|
$user = $this->request->userInfo();
|
||||||
|
[$page, $limit] = $this->getPage();
|
||||||
|
$count = Db::name('margin_order')->where('uid', $user['uid'])->count();
|
||||||
|
$list = Db::name('margin_order')->where('uid', $user['uid'])->page($page, $limit)->select()->toArray();
|
||||||
|
return app('json')->success(compact('count', 'list'));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws DataNotFoundException
|
* @throws DataNotFoundException
|
||||||
|
@ -69,6 +69,7 @@ Route::group('api/', function () {
|
|||||||
Route::post('user/spread', 'api.Auth/spread');
|
Route::post('user/spread', 'api.Auth/spread');
|
||||||
//用户缴纳保证金
|
//用户缴纳保证金
|
||||||
Route::post('user/margin', 'api.Auth/doMargin');
|
Route::post('user/margin', 'api.Auth/doMargin');
|
||||||
|
Route::get('user/margin/list', 'api.Auth/marginList');
|
||||||
|
|
||||||
//优惠券
|
//优惠券
|
||||||
Route::group('coupon', function () {
|
Route::group('coupon', function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user