add 3 new api

This commit is contained in:
2025-03-12 22:35:46 +08:00
parent 42ea1bd929
commit ece4b5d1b1
6 changed files with 121 additions and 50 deletions

View File

@@ -89,7 +89,7 @@ func (w *WestDexService) CallAPI(code string, reqData map[string]interface{}) (r
if UnmarshalErr != nil {
return nil, UnmarshalErr
}
if westDexResp.Code != "00000" {
if westDexResp.Code != "00000" && westDexResp.Code != "0" {
if westDexResp.Data == "" {
return nil, errors.New(westDexResp.Message)
}