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
c1bc9042
Commit
c1bc9042
authored
Dec 27, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
以万为单位
parent
3d72d072
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
IssueCoinController.php
api/controllers/IssueCoinController.php
+2
-2
IssueCoinController.php
wallet/controllers/IssueCoinController.php
+2
-2
No files found.
api/controllers/IssueCoinController.php
View file @
c1bc9042
...
@@ -193,7 +193,7 @@ class IssueCoinController extends BaseController
...
@@ -193,7 +193,7 @@ 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
*
1e
8
;
$val
->
total
=
(
int
)
$val
->
total
*
1e
4
;
}
}
$data
=
[
$data
=
[
'list'
=>
$models
,
'list'
=>
$models
,
...
@@ -231,7 +231,7 @@ class IssueCoinController extends BaseController
...
@@ -231,7 +231,7 @@ class IssueCoinController extends BaseController
$code
=
-
1
;
$code
=
-
1
;
goto
doEnd
;
goto
doEnd
;
}
}
$data
->
total
=
(
int
)
$data
->
total
*
1e
8
;
$data
->
total
=
(
int
)
$data
->
total
*
1e
4
;
$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'
);
$code
=
0
;
$code
=
0
;
...
...
wallet/controllers/IssueCoinController.php
View file @
c1bc9042
...
@@ -61,7 +61,7 @@ class IssueCoinController extends BaseController
...
@@ -61,7 +61,7 @@ class IssueCoinController extends BaseController
$platform
=
isset
(
$val
->
chain
->
platform
)
?
$val
->
chain
->
platform
:
''
;
$platform
=
isset
(
$val
->
chain
->
platform
)
?
$val
->
chain
->
platform
:
''
;
$val
->
chain_name
=
$platform
;
$val
->
chain_name
=
$platform
;
$val
->
url
=
Yii
::
$app
->
redis
->
hget
(
'platform_brower_info'
,
$platform
);
$val
->
url
=
Yii
::
$app
->
redis
->
hget
(
'platform_brower_info'
,
$platform
);
$val
->
total
=
(
int
)
$val
->
total
*
1e
8
;
$val
->
total
=
(
int
)
$val
->
total
*
1e
4
;
}
}
$data
=
[
$data
=
[
'list'
=>
$models
,
'list'
=>
$models
,
...
@@ -95,7 +95,7 @@ class IssueCoinController extends BaseController
...
@@ -95,7 +95,7 @@ class IssueCoinController extends BaseController
$data
=
CoinIssueCoin
::
find
()
->
where
([
'id'
=>
$id
])
->
one
();
$data
=
CoinIssueCoin
::
find
()
->
where
([
'id'
=>
$id
])
->
one
();
$platform
=
isset
(
$data
->
chain
->
platform
)
?
$data
->
chain
->
platform
:
''
;
$platform
=
isset
(
$data
->
chain
->
platform
)
?
$data
->
chain
->
platform
:
''
;
$data
->
total
=
(
int
)
$data
->
total
*
1e
8
;
$data
->
total
=
(
int
)
$data
->
total
*
1e
4
;
$data
->
issue_charge
=
rtrim
(
sprintf
(
'%.3f'
,
floatval
(
$data
->
charge
)),
'0'
);
$data
->
issue_charge
=
rtrim
(
sprintf
(
'%.3f'
,
floatval
(
$data
->
charge
)),
'0'
);
$data
->
url
=
Yii
::
$app
->
redis
->
hget
(
'platform_brower_info'
,
$platform
);
$data
->
url
=
Yii
::
$app
->
redis
->
hget
(
'platform_brower_info'
,
$platform
);
$code
=
0
;
$code
=
0
;
...
...
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