Commit 0b1e965a authored by shajiaiming's avatar shajiaiming

fix

parent f4709fab
......@@ -118,12 +118,18 @@ class IssueChainController extends BaseController
$issue_charge = isset($result['issue_charge']) ? $result['issue_charge'] : '';
$charge_unit = isset($result['charge_unit']) ? strtoupper($result['charge_unit']) : '';
if (false == $issue_charge || false == $charge_unit || false == $platform_id) {
if (false == $charge_unit || false == $platform_id) {
$msg = '提交数据有误';
$code = -1;
goto doEnd;
}
if (floatval($issue_charge) == 0) {
$msg = '数量错误';
$code = -1;
goto doEnd;
}
$chain_model = CoinPlatform::find()->where(['id' => $platform_id])->andWhere(['<>', 'chain_id', 0])->one();
if (false == $chain_model) {
$msg = '钱包尚未开通一键发币功能,不能设置手续费';
......
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