1
This commit is contained in:
@@ -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{})
|
||||
|
||||
Reference in New Issue
Block a user