update 把会员系统校验方法变为静态的

This commit is contained in:
lijiarao
2021-09-15 11:07:34 +08:00
parent 6d221f9f27
commit ba55ca2faa
3 changed files with 13 additions and 7 deletions
@@ -195,4 +195,5 @@ public class PayMeetingSituationController extends JeroController<PayMeetingSitu
return Result.OK("合并开票成功!");
}
}
@@ -73,8 +73,6 @@ public class PayPaymentRecordServiceImpl extends ServiceImpl<PayPaymentRecordMap
private PayMemberProjectSubitemMapper payMemberProjectSubitemMapper;
@Resource
private TbMemberProjectSubitemMapper tbMemberProjectSubitemMapper;
@Resource
private AuthenticationUtils authenticationUtils;
@Value("${jero.path.upload}")
private String upLoadPath;
@@ -337,7 +335,7 @@ public class PayPaymentRecordServiceImpl extends ServiceImpl<PayPaymentRecordMap
*/
private void sendToStandards(TbMemberProjectSubitem tbMember,PayPaymentRecord payPaymentRecord){
//获取公钥并使用公钥加密token
Map<String, String> map = authenticationUtils.encryptByRsaPriKey();
Map<String, String> map = AuthenticationUtils.encryptByRsaPriKey();
HashMap<String, Object> paramMap = new HashMap<>();
@@ -21,16 +21,23 @@ import java.util.Map;
@Component
public class AuthenticationUtils {
@Value("${standards.url}")
private String URL;
private static String URL;
private static String APPLICATION_TOKEN;
@Value("${standards.url}")
public void setURL(String URL) {
AuthenticationUtils.URL = URL;
}
@Value("${standards.token}")
private String APPLICATION_TOKEN;
public void setApplicationToken(String applicationToken) {
APPLICATION_TOKEN = applicationToken;
}
/**
* 获取公钥并使用公钥加密token
*/
public Map<String,String> encryptByRsaPriKey() {
public static Map<String,String> encryptByRsaPriKey() {
Map<String,String> map= new HashMap<>();
//从标协项目获取公钥