| | |
| | | * 签名证书序列号 |
| | | */ |
| | | private String signNo; |
| | | /** |
| | | * 证书 |
| | | */ |
| | | private String cer; |
| | | /** |
| | | * 证书 |
| | | */ |
| | | private String sm2; |
| | | /** |
| | | * |
| | | */ |
| | | private String password; |
| | | |
| | | /** |
| | | * 获取不同环境的配置 |
| | |
| | | this.url = "https://gatewaytest.zqpay.com"; |
| | | this.appid = "F9BFEEA567196A92E053376010ACF004"; |
| | | this.merchNo = "B00000871"; |
| | | this.encrpNo = "123456"; |
| | | this.signNo = "123456"; |
| | | this.encrpNo = "1055490595"; |
| | | this.signNo = "1066348524"; |
| | | this.cer = "C:\\Users\\39373\\Desktop\\UAT-demo-公用\\1055490595.cer"; |
| | | this.sm2 = "C:\\Users\\39373\\Desktop\\UAT-demo-公用\\871_111111.sm2"; |
| | | this.password = "111111"; |
| | | } |
| | | if("test".equals(activeProfile)){ |
| | | this.url = "https://gatewaytest.zqpay.com"; |
| | | this.appid = "F9BFEEA567196A92E053376010ACF004"; |
| | | this.merchNo = "B00000871"; |
| | | this.encrpNo = "123456"; |
| | | this.signNo = "123456"; |
| | | this.encrpNo = "1055490595"; |
| | | this.signNo = "1066348524"; |
| | | this.cer = "C:\\Users\\39373\\Desktop\\UAT-demo-公用\\1055490595.cer"; |
| | | this.sm2 = "C:\\Users\\39373\\Desktop\\UAT-demo-公用\\871_111111.sm2"; |
| | | this.password = "111111"; |
| | | } |
| | | if("prod".equals(activeProfile)){ |
| | | this.url = "https://gateway.zqpay.com"; |
| | |
| | | this.merchNo = ""; |
| | | this.encrpNo = ""; |
| | | this.signNo = ""; |
| | | this.cer = ""; |
| | | this.sm2 = ""; |
| | | this.password = ""; |
| | | } |
| | | return this; |
| | | } |