update 把会员系统校验方法变为静态的
This commit is contained in:
+1
@@ -195,4 +195,5 @@ public class PayMeetingSituationController extends JeroController<PayMeetingSitu
|
||||
return Result.OK("合并开票成功!");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
+1
-3
@@ -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<>();
|
||||
//从标协项目获取公钥
|
||||
|
||||
Reference in New Issue
Block a user