Commit 74b51139 authored by shajiaiming's avatar shajiaiming

fix

parent 728e07c9
......@@ -246,6 +246,13 @@ class IssueCoinController extends BaseController
$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) {
$code = -1;
$msg = '撤消失败。失败原因:' . ErrorMessage::getMessage($data->revoke->revoke_query_transaction);
......
......@@ -32,7 +32,7 @@ class ErrorMessage extends Component
*/
public static function getMessage($msg)
{
$message = isset(self::$errors[$msg]) ? self::$errors[$msg] : $msg;
$message = isset(self::$errors[$msg]) ? self::$errors[$msg] : '未知错误';
return $message;
}
}
\ No newline at end of file
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