Commit defb5e50 by ping.wu

Merge branches 'develop' and 'feature/20220112_银行周周惠_wuping' of…

Merge branches 'develop' and 'feature/20220112_银行周周惠_wuping' of http://gitlab.freemud.com/order-group-application/order-group into develop
parents c6975573 64733e56
...@@ -1316,9 +1316,10 @@ public class PayServiceImpl { ...@@ -1316,9 +1316,10 @@ public class PayServiceImpl {
plugInParameter.setSignMchid(signMchid); plugInParameter.setSignMchid(signMchid);
plugInParameter.setStoreId(thirdStoreId); plugInParameter.setStoreId(thirdStoreId);
String message = "apply_mchid="+applyMchid+"&sign_mchid="+signMchid+"&store_id="+thirdStoreId; String encryptKey = assortmentOpenPlatformPartnerPaymentAuth.getEncryptKey();
String message = "apply_mchid="+applyMchid+"&sign_mchid="+signMchid+"&store_id="+thirdStoreId + "&key="+encryptKey;
String sign = HMacSHA256.encrypt(message,assortmentOpenPlatformPartnerPaymentAuth.getPrivate_key()); String sign = HMacSHA256.encrypt(message,encryptKey);
plugInParameter.setSign(sign); plugInParameter.setSign(sign);
return plugInParameter; return plugInParameter;
......
...@@ -42,7 +42,6 @@ public class HMacSHA256 { ...@@ -42,7 +42,6 @@ public class HMacSHA256 {
hs.append('0'); hs.append('0');
hs.append(stmp); hs.append(stmp);
} }
return hs.toString().toLowerCase(); return hs.toString().toUpperCase();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment