第一版跨服务调用校验身份,用不了
This commit is contained in:
-12
@@ -86,18 +86,6 @@ public class PayPaymentRecordServiceImpl extends ServiceImpl<PayPaymentRecordMap
|
||||
* @return
|
||||
*/
|
||||
public List<PayCommonProject> mainList(Page page, PayCommonProject payCommonProject){
|
||||
//使用公钥加密token
|
||||
byte[] bytes = standardsUtil.encryptByRsaPriKey();
|
||||
//从标协项目获取公钥
|
||||
String publicKey = HttpUtil.get("http://localhost:8080/api/authenticationUtils/getPublicKey");
|
||||
|
||||
HashMap<String, Object> paramMap = new HashMap<>();
|
||||
|
||||
paramMap.put("token", Base64.getEncoder().encodeToString(bytes));
|
||||
paramMap.put("publicKey", publicKey);
|
||||
|
||||
String result3= HttpUtil.get("http://localhost:8080/api/paymentInfo/incomingPaymentCheck", paramMap);
|
||||
|
||||
return payPaymentRecordMapper.mainList(page, payCommonProject);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user