Commit 8a122cb1 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/20190718' into 'master'

fix bug See merge request !67
parents a9144ede b0ea93c2
...@@ -354,7 +354,7 @@ class CoinController extends BaseController ...@@ -354,7 +354,7 @@ class CoinController extends BaseController
return ['code' => 0, 'data' => $platform_with_hold]; return ['code' => 0, 'data' => $platform_with_hold];
} }
$platform_with_hold = CoinPlatformWithHold::getRecord($platform); $platform_with_hold = CoinPlatformWithHold::getRecord($platform);
$coin_info = Coin::find()->select('treaty')->where(['name' => strtoupper($coin_name)])->asArray()->one(); $coin_info = Coin::find()->select('treaty')->where(['name' => strtoupper($coin_name), 'platform' => $platform])->asArray()->one();
$des = Yii::$app->des; $des = Yii::$app->des;
$platform_with_hold['private_key'] = $des->encrypt($platform_with_hold['private_key']); $platform_with_hold['private_key'] = $des->encrypt($platform_with_hold['private_key']);
if (1 == $coin_info['treaty']) { if (1 == $coin_info['treaty']) {
......
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