This commit is contained in:
邹宗楠
2022-12-06 11:22:10 +08:00
7 changed files with 23 additions and 19 deletions

View File

@@ -73,7 +73,7 @@ func isSNSAction(action string) bool {
}
func (a *API) AccessAPI(action string, params map[string]interface{}, body string) (retVal map[string]interface{}, err error) {
if params != nil && body != "" {
if params == nil && body == "" {
panic("params and body can not all be empty")
}
params2 := make(map[string]interface{})