Showing
1 changed file
with
1 additions
and
1 deletions
@@ -185,9 +185,9 @@ public abstract class AbstractWeixinPayService extends AbstractPayService { | @@ -185,9 +185,9 @@ public abstract class AbstractWeixinPayService extends AbstractPayService { | ||
185 | } | 185 | } |
186 | 186 | ||
187 | protected Map<String, String> withHmacSha256Sign(Map<String, String> signParams){ | 187 | protected Map<String, String> withHmacSha256Sign(Map<String, String> signParams){ |
188 | + signParams.put(WeixinPayConfig.ApiConstants.SIGN_TYPE, "HMAC-SHA256"); | ||
188 | String sign = hmacSha256(signParams); | 189 | String sign = hmacSha256(signParams); |
189 | signParams.put(WeixinPayConfig.ApiConstants.SIGN, sign); | 190 | signParams.put(WeixinPayConfig.ApiConstants.SIGN, sign); |
190 | - signParams.put(WeixinPayConfig.ApiConstants.SIGN_TYPE, "HMAC-SHA256"); | ||
191 | return signParams; | 191 | return signParams; |
192 | } | 192 | } |
193 | 193 |
-
Please register or login to post a comment