|
|
@@ -74,7 +74,8 @@ public class WxPayV3 { |
|
|
//处理中文 |
|
|
//处理中文 |
|
|
public static String handleChinese(String content) throws UnsupportedEncodingException { |
|
|
public static String handleChinese(String content) throws UnsupportedEncodingException { |
|
|
//中文必须要这样,否则会双方签名失败 |
|
|
//中文必须要这样,否则会双方签名失败 |
|
|
return new String(content.getBytes("ISO-8859-1"), "UTF-8"); |
|
|
|
|
|
|
|
|
//return new String(content.getBytes("ISO-8859-1"), "UTF-8"); |
|
|
|
|
|
return content; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//小程序下单支付签名 |
|
|
//小程序下单支付签名 |
|
|
|