Commit a66dbfcb authored by rlgy's avatar rlgy

错误消息配置

parent b043e979
<?php
/**
* Created by PhpStorm.
* User: rlgyzhcn
* Date: 18-10-18
* Time: 下午2:26
*/
return [
'ErrInsufficientBalance' => 'Insufficient Balance',
'ErrWalletIsLocked' => 'Wallet Is Locked'
];
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: rlgyzhcn
* Date: 18-10-18
* Time: 下午2:26
*/
return [
'ErrInsufficientBalance' => '余额不足',
'ErrWalletIsLocked' => '钱包已锁定'
];
\ No newline at end of file
...@@ -168,7 +168,7 @@ class CoinReleaseCheck extends BaseActiveRecord ...@@ -168,7 +168,7 @@ class CoinReleaseCheck extends BaseActiveRecord
); );
if (is_array($result)) { if (is_array($result)) {
$trans->rollBack(); $trans->rollBack();
throw new \Exception($result['msg'], $result['code']); throw new \Exception(Yii::t('backend', $result['msg']), $result['code']);
} }
$trans->commit(); $trans->commit();
Yii::$app->queue->delay(15)->push(new QueryTransJob([ Yii::$app->queue->delay(15)->push(new QueryTransJob([
......
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