Commit 7673b523 authored by shajiaiming's avatar shajiaiming

设置手续费调整

parent 098cac4a
......@@ -101,6 +101,7 @@ class IssueChainController extends BaseController
$result = Yii::$app->request->post();
$issue_charge = isset($result['issue_charge']) ? $result['issue_charge'] : '';
$charge_unit_id = isset($result['charge_unit_id']) ? strtoupper($result['charge_unit_id']) : '';
$id = isset($result['platform_id']) ? (int)$result['platform_id'] : 0;
if (false == $issue_charge || false == $charge_unit_id) {
$msg = '提交数据有误';
......@@ -108,6 +109,10 @@ class IssueChainController extends BaseController
goto doEnd;
}
if (1 != $platform_id) {
$platform_id = $id;
}
$chain_model = CoinPlatform::find()->where(['id' => $platform_id])->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