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
74b51139
Commit
74b51139
authored
Nov 18, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
728e07c9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
IssueCoinController.php
api/controllers/IssueCoinController.php
+7
-0
ErrorMessage.php
common/components/ErrorMessage.php
+2
-1
No files found.
api/controllers/IssueCoinController.php
View file @
74b51139
...
@@ -246,6 +246,13 @@ class IssueCoinController extends BaseController
...
@@ -246,6 +246,13 @@ class IssueCoinController extends BaseController
$msg
=
'发行失败。失败原因:'
.
ErrorMessage
::
getMessage
(
$data
->
transfer
->
finish_query_transaction
);
$msg
=
'发行失败。失败原因:'
.
ErrorMessage
::
getMessage
(
$data
->
transfer
->
finish_query_transaction
);
}
}
}
}
if
(
CoinIssueCoin
::
STATUS_REFUSE
==
$data
->
status
)
{
$code
=
-
1
;
$msg
=
'预发行失败。失败原因:'
.
$data
->
transfer
->
finish_query_transaction
;
}
if
(
CoinIssueCoin
::
STATUS_CANCEL_FAILED
==
$data
->
status
)
{
if
(
CoinIssueCoin
::
STATUS_CANCEL_FAILED
==
$data
->
status
)
{
$code
=
-
1
;
$code
=
-
1
;
$msg
=
'撤消失败。失败原因:'
.
ErrorMessage
::
getMessage
(
$data
->
revoke
->
revoke_query_transaction
);
$msg
=
'撤消失败。失败原因:'
.
ErrorMessage
::
getMessage
(
$data
->
revoke
->
revoke_query_transaction
);
...
...
common/components/ErrorMessage.php
View file @
74b51139
...
@@ -32,7 +32,7 @@ class ErrorMessage extends Component
...
@@ -32,7 +32,7 @@ class ErrorMessage extends Component
*/
*/
public
static
function
getMessage
(
$msg
)
public
static
function
getMessage
(
$msg
)
{
{
$message
=
isset
(
self
::
$errors
[
$msg
])
?
self
::
$errors
[
$msg
]
:
$msg
;
$message
=
isset
(
self
::
$errors
[
$msg
])
?
self
::
$errors
[
$msg
]
:
'未知错误'
;
return
$message
;
return
$message
;
}
}
}
}
\ No newline at end of file
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