添加:买单记录
This commit is contained in:
parent
862e7eded6
commit
5e61da43a2
|
|
@ -2485,6 +2485,7 @@ class StoreOrderRepository extends BaseRepository
|
|||
$query->field('mer_id,mer_name,mer_avatar')->bind(['mer_name','mer_avatar']);
|
||||
},
|
||||
])
|
||||
->where('activity_type',30)
|
||||
->order('create_time DESC,order_id DESC');
|
||||
$count = $query->count();
|
||||
$list = $query->page($page,$limit)->select();
|
||||
|
|
|
|||
|
|
@ -70,9 +70,21 @@ class OnlinePay extends BaseController{
|
|||
return app('json')->status('error', $e->getMessage(), ['order_id' => $groupOrder->group_order_id]);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Common: 获取买单记录
|
||||
* Author: wu-hui
|
||||
* Time: 2024/01/15 9:23
|
||||
* @return mixed
|
||||
*/
|
||||
public function getRecord(){
|
||||
$params = $this->request->params(['uid','mer_id']);
|
||||
$params['uid'] = $this->request->uid();
|
||||
[$page, $limit] = $this->getPage();
|
||||
|
||||
$data = app()->make(StoreOrderRepository::class)->getOnlineOrderList((array)$params,(int)$page,(int)$limit);
|
||||
|
||||
|
||||
return app('json')->success($data);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -344,6 +344,7 @@ Route::group('api/', function () {
|
|||
Route::group('onlinePayment', function () {
|
||||
Route::get('searchMerList', 'OnlinePay/searchMer');
|
||||
Route::get('createOrder', 'OnlinePay/createOrder');
|
||||
Route::get('record', 'OnlinePay/getRecord');
|
||||
})->prefix('api.store.order.');
|
||||
// 商品兑换
|
||||
Route::group('exchange', function () {
|
||||
|
|
|
|||
Loading…
Reference in New Issue