摘要: accessToken:=123 params := g.Map{ "outId": 1, "signature": 2,}header := g.MapStrStr{ "Authorization": fmt.Sprintf(`Bearer %s`, accessToken),}res := g. 阅读全文
posted @ 2021-03-15 09:58 格罗玛什·地狱咆哮 阅读(2674) 评论(0) 推荐(0)
摘要: // createSignature 生成签名// @signStr outId// @DevRsaPrivateKey 私钥func (s *Service) CreateSignatureWithMd5(signStr string, privateKey string) (string, er 阅读全文
posted @ 2021-03-15 09:55 格罗玛什·地狱咆哮 阅读(546) 评论(0) 推荐(1)
摘要: // AesEncrypt 加密// @origData 要加密的字符串func (s *Service) AesEncrypt(encryptStr, key []byte) (string, error) { block, err := aes.NewCipher(key) if err != 阅读全文
posted @ 2021-03-15 09:54 格罗玛什·地狱咆哮 阅读(166) 评论(0) 推荐(0)