'add'], [['id', 'name'], 'required', 'on' => 'update'], ]; } public function attributeLabels() { return [ 'id' => 'ID', 'name' => '名称', 'nickname' => '别称', 'icon' => '图标', 'introduce' => '介绍', 'official' => '官网', 'paper' => '白皮书', 'release' => '发行时间', 'platform' => '平台', 'chain' => '主链', 'price' => '众筹价格', 'area_search' => '区块链查询', 'publish_count' => '发行总量', 'circulate_count' => '流通总量', 'address' => '合约地址', 'decimals' => '精度' ]; } public function scenarios() { return [ 'add' => [ 'id', 'name', 'nickname', 'icon', 'introduce', 'official', 'paper', 'release', 'platform', 'chain', 'price', 'area_search', 'publish_count', 'circulate_count', ], 'update' => [ 'id', 'name', 'nickname', 'icon', 'introduce', 'official', 'paper', 'release', 'platform', 'chain', 'price', 'area_search', 'publish_count', 'circulate_count', ], ]; } }