This commit is contained in:
jiangyong 2026-09-08 23:02:51 +08:00
parent a8bb15f309
commit 521caaa702
1 changed files with 6 additions and 11 deletions

View File

@ -1,10 +1,5 @@
package unify
import (
"errors"
"strings"
)
type BaseResponse struct {
Code int `json:"code"`
Message string `json:"message"`
@ -39,12 +34,12 @@ type Result struct {
}
func (c *Request) Check() error {
if strings.ToLower(c.Os) != "ios" && c.Channel == "" {
return errors.New("channel must set")
}
if c.Version == "" {
return errors.New("version must set")
}
//if strings.ToLower(c.Os) != "ios" && c.Channel == "" {
// return errors.New("channel must set")
//}
//if c.Version == "" {
// return errors.New("version must set")
//}
return nil
}