Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dex-admin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
dex-admin
Commits
7b8d3a9a
Commit
7b8d3a9a
authored
Jul 04, 2023
by
haojie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://124.223.61.50:8099/haojie/dex-admin
parents
bae477c9
49e33b46
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
app/Service/TradeService.php
+2
-1
composer.lock
+0
-0
package-lock.json
+1
-1
No files found.
app/Service/TradeService.php
View file @
7b8d3a9a
...
@@ -144,8 +144,9 @@ public function inscriptionList($page, $limit)
...
@@ -144,8 +144,9 @@ public function inscriptionList($page, $limit)
$buy_fee
=
app
(
AdminConfigService
::
class
)
->
getBuyFee
();
$buy_fee
=
app
(
AdminConfigService
::
class
)
->
getBuyFee
();
// 指定返回的字段
// 指定返回的字段
$field
=
[
'id'
,
'inscription'
,
'status'
,
'original_amount'
];
$field
=
[
'id'
,
'inscription'
,
'status'
,
'original_amount'
];
$model
=
InscriptionTrading
::
with
([
'inscriptions'
]);
// $item->buy_real_amount = $item->original_amount + $item->original_amount * ($buy_fee / 100);
// $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
);
->
orderBy
(
'id'
,
'desc'
)
->
paginate
(
$limit
,
$field
,
'page'
,
$page
);
// 获取分页后的data
// 获取分页后的data
$data
=
$model
->
items
();
$data
=
$model
->
items
();
...
...
composer.lock
View file @
7b8d3a9a
This diff is collapsed.
Click to expand it.
package-lock.json
View file @
7b8d3a9a
{
{
"name"
:
"dex-
trade
"
,
"name"
:
"dex-
admin
"
,
"lockfileVersion"
:
2
,
"lockfileVersion"
:
2
,
"requires"
:
true
,
"requires"
:
true
,
"packages"
:
{
"packages"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment