摘要:
accessToken:=123 params := g.Map{ "outId": 1, "signature": 2,}header := g.MapStrStr{ "Authorization": fmt.Sprintf(`Bearer %s`, accessToken),}res := g. 阅读全文
摘要:
// createSignature 生成签名// @signStr outId// @DevRsaPrivateKey 私钥func (s *Service) CreateSignatureWithMd5(signStr string, privateKey string) (string, er 阅读全文
摘要:
// AesEncrypt 加密// @origData 要加密的字符串func (s *Service) AesEncrypt(encryptStr, key []byte) (string, error) { block, err := aes.NewCipher(key) if err != 阅读全文