Commit b2df6c11 authored by shajiaiming's avatar shajiaiming

fix

parent d7906fe2
...@@ -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