Commit 49e33b46 by haojie[

1

parent d7ca190b
......@@ -144,8 +144,9 @@ public function inscriptionList($page, $limit)
$buy_fee = app(AdminConfigService::class)->getBuyFee();
// 指定返回的字段
$field = ['id', 'inscription', 'status', 'original_amount'];
$model = InscriptionTrading::with(['inscriptions']);
// $item->buy_real_amount = $item->original_amount + $item->original_amount * ($buy_fee / 100);
$model = $this->model()->where('status', self::ORDER_STATUS_ON)
$model = $model->where('status', self::ORDER_STATUS_ON)
->orderBy('id', 'desc')->paginate($limit, $field, 'page', $page);
// 获取分页后的data
$data = $model->items();
......
{
"name": "dex-trade",
"name": "dex-admin",
"lockfileVersion": 2,
"requires": true,
"packages": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment