Commit 343e2798 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into 'master'

fix See merge request !461
parents 3f41290c b2df6c11
...@@ -26,13 +26,14 @@ class CoinPlatformCoins extends BaseActiveRecord ...@@ -26,13 +26,14 @@ class CoinPlatformCoins extends BaseActiveRecord
{ {
return [ return [
[['coins_name', 'coins_address', 'type', 'deviceCode', 'platform_id'], 'required'], [['coins_name', 'coins_address', 'type', 'deviceCode', 'platform_id'], 'required'],
[['device', 'version'], 'safe'],
]; ];
} }
public function scenarios() public function scenarios()
{ {
$scenarios = [ $scenarios = [
self:: SCENARIOS_CREATE => ['coins_name', 'coins_address', 'type', 'deviceCode', 'platform_id'], self:: SCENARIOS_CREATE => ['coins_name', 'coins_address', 'type', 'deviceCode', 'platform_id', 'device', 'version'],
]; ];
return array_merge(parent:: scenarios(), $scenarios); return array_merge(parent:: scenarios(), $scenarios);
} }
......
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