objcoding/wxpay

wxpay 下的util.go的nonceStr() 方法报错

Rellopn opened this issue · 0 comments

package wxpay
// 生成随机字符串
func nonceStr() string {
	uid := uuid.NewV4()
	//if err != nil {
	//	return errors.New("生成随机字符串").Error()
	//}
	return strings.Replace(uid.String(), "-", "", -1)
}```