@@ -37,6 +37,8 @@ func (a *OtaUpgradeParams) Validate() error {
if a.FileId == "" {
return errors.New("非法参数:[file_id]")
}
-
+ if len(a.DeviceIDs) == 0 {
+ return errors.New("device_ids 不能为空")
+ }
return nil