Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
token
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wallet
token
Commits
88a0a0b8
Commit
88a0a0b8
authored
Jan 11, 2020
by
shajiaming
Browse files
Options
Browse Files
Download
Plain Diff
fix
parents
b75921b9
396683b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
IssueCoinController.php
api/controllers/IssueCoinController.php
+7
-3
No files found.
api/controllers/IssueCoinController.php
View file @
88a0a0b8
...
@@ -206,7 +206,7 @@ class IssueCoinController extends BaseController
...
@@ -206,7 +206,7 @@ class IssueCoinController extends BaseController
$size
=
\Yii
::
$app
->
request
->
get
(
'size'
,
5
);
$size
=
\Yii
::
$app
->
request
->
get
(
'size'
,
5
);
$query
=
CoinIssueCoin
::
find
()
$query
=
CoinIssueCoin
::
find
()
->
select
(
'id, name, symbol, type, total, create_time, status, chain_id'
)
->
select
(
'id, name, symbol, type, total, create_time, status, chain_id
, token_type
'
)
->
where
([
'owner'
=>
$address
])
->
where
([
'owner'
=>
$address
])
->
andWhere
([
'in'
,
'status'
,
[
CoinIssueCoin
::
STATUS_PEDDING
,
CoinIssueCoin
::
STATUS_CANCEL_SUCCESS
,
CoinIssueCoin
::
STATUS_CANCEL_FAILED
,
CoinIssueCoin
::
STATUS_CONFIRM
,
CoinIssueCoin
::
STATUS_ALLOW
,
CoinIssueCoin
::
STATUS_REFUSE
,
CoinIssueCoin
::
STATUS_SUCCESS
,
CoinIssueCoin
::
STATUS_FAILED
]])
->
andWhere
([
'in'
,
'status'
,
[
CoinIssueCoin
::
STATUS_PEDDING
,
CoinIssueCoin
::
STATUS_CANCEL_SUCCESS
,
CoinIssueCoin
::
STATUS_CANCEL_FAILED
,
CoinIssueCoin
::
STATUS_CONFIRM
,
CoinIssueCoin
::
STATUS_ALLOW
,
CoinIssueCoin
::
STATUS_REFUSE
,
CoinIssueCoin
::
STATUS_SUCCESS
,
CoinIssueCoin
::
STATUS_FAILED
]])
->
orderBy
(
'create_time desc'
);
->
orderBy
(
'create_time desc'
);
...
@@ -216,7 +216,9 @@ class IssueCoinController extends BaseController
...
@@ -216,7 +216,9 @@ class IssueCoinController extends BaseController
$pages
=
new
Pagination
([
'totalCount'
=>
$countQuery
->
count
(),
'pageSize'
=>
$size
]);
$pages
=
new
Pagination
([
'totalCount'
=>
$countQuery
->
count
(),
'pageSize'
=>
$size
]);
foreach
(
$models
as
&
$val
)
{
foreach
(
$models
as
&
$val
)
{
$val
->
chain_id
=
$val
->
chain
->
platform
;
$val
->
chain_id
=
$val
->
chain
->
platform
;
$val
->
total
=
(
int
)
$val
->
total
*
1e4
;
if
(
0
!=
$val
->
token_type
)
{
$val
->
total
=
(
int
)
$val
->
total
*
1e4
;
}
}
}
$data
=
[
$data
=
[
'list'
=>
$models
,
'list'
=>
$models
,
...
@@ -254,7 +256,9 @@ class IssueCoinController extends BaseController
...
@@ -254,7 +256,9 @@ class IssueCoinController extends BaseController
$code
=
-
1
;
$code
=
-
1
;
goto
doEnd
;
goto
doEnd
;
}
}
$data
->
total
=
(
int
)
$data
->
total
*
1e4
;
if
(
0
!=
$data
->
token_type
)
{
$data
->
total
=
(
int
)
$data
->
total
*
1e4
;
}
$data
->
chain_name
=
$data
->
chain
->
platform
;
$data
->
chain_name
=
$data
->
chain
->
platform
;
$data
->
issue_charge
=
rtrim
(
sprintf
(
'%.3f'
,
floatval
(
$data
->
charge
)),
'0'
);
$data
->
issue_charge
=
rtrim
(
sprintf
(
'%.3f'
,
floatval
(
$data
->
charge
)),
'0'
);
$data
->
template
=
isset
(
$data
->
templated
->
template
)
?
$data
->
templated
->
template
:
null
;
$data
->
template
=
isset
(
$data
->
templated
->
template
)
?
$data
->
templated
->
template
:
null
;
...
...
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