Commit 845dae22 authored by shajiaiming's avatar shajiaiming

fix

parents 7fcf42ad ad55fa40
...@@ -85,6 +85,11 @@ class CoinPlatform extends BaseActiveRecord ...@@ -85,6 +85,11 @@ class CoinPlatform extends BaseActiveRecord
return $this->hasOne(CoinPlatformWithHold::className(), ['id' => 'chain_id']); return $this->hasOne(CoinPlatformWithHold::className(), ['id' => 'chain_id']);
} }
public function getGas()
{
return $this->hasOne(CoinSupportedCoin::className(), ['id' => 'charge_unit_id']);
}
public function getCurrency() public function getCurrency()
{ {
return $this->hasMany(CoinSupportedCurrency::className(), ['platform_id' => 'id']); return $this->hasMany(CoinSupportedCurrency::className(), ['platform_id' => 'id']);
......
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