add 3 new api
This commit is contained in:
		| @@ -6,7 +6,6 @@ import ( | ||||
| 	"fmt" | ||||
| 	"github.com/pkg/errors" | ||||
| 	"io" | ||||
| 	"log" | ||||
| 	"net/http" | ||||
| 	"strconv" | ||||
| 	"time" | ||||
| @@ -99,18 +98,14 @@ func (w *WestDexService) CallAPI(code string, reqData map[string]interface{}) (r | ||||
| 				return nil, DecryptErr | ||||
| 			} | ||||
| 			return decryptedData, errors.New(westDexResp.Message) | ||||
| 			log.Println(string(decryptedData)) | ||||
| 		} | ||||
| 		if westDexResp.Data == "" { | ||||
| 			return nil, errors.New(westDexResp.Message) | ||||
| 		} | ||||
| 		// 解密响应数据 | ||||
| 		decryptedData, DecryptErr := crypto.WestDexDecrypt(westDexResp.Data, w.config.Key) | ||||
| 		if DecryptErr != nil { | ||||
| 			return nil, DecryptErr | ||||
| 		} | ||||
| 		// 输出解密后的数据 | ||||
| 		log.Println(string(decryptedData)) | ||||
|  | ||||
| 		return decryptedData, nil | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user