- handle mtps data is not map[string]interface{}.
This commit is contained in:
@@ -167,9 +167,10 @@ func (m *MTPSAPI) AccessMTPS(action string, params map[string]interface{}) (retV
|
||||
retVal = &MTPSResult{
|
||||
Code: code,
|
||||
}
|
||||
m.sugarLogger.Debug(jsonResult1)
|
||||
if code == mtpsStatusSuccess {
|
||||
if innerData, ok := jsonResult1["data"]; ok {
|
||||
retVal.Data = innerData.(map[string]interface{})
|
||||
retVal.Data, _ = innerData.(map[string]interface{})
|
||||
}
|
||||
return common.PAErrorLevelSuccess, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user