'add'], [['id', 'platform_withhold_id', 'symbol'], 'required', 'on' => 'update'], ]; } public function attributeLabels() { return [ 'id' => 'ID', 'platform_withhold_id' => '对应链', 'symbol' => '货币对', ]; } public function scenarios() { return [ 'add' => [ 'platform_withhold_id', 'symbol' ], 'update' => [ 'id', 'platform_withhold_id', 'symbol' ], ]; } }