提交 f75887bc authored 作者: 吴德鹏's avatar 吴德鹏

优化

上级 31be8022
...@@ -62,11 +62,11 @@ public class DpoPayController extends Controller { ...@@ -62,11 +62,11 @@ public class DpoPayController extends Controller {
System.err.println("transID:" + transId); System.err.println("transID:" + transId);
System.err.println("transToken:" + transToken); System.err.println("transToken:" + transToken);
//logger.info("DPO支付:" + "开始支付校验"); //logger.info("DPO支付:" + "开始支付校验");
Optional<TbCfOrder> byId = repository.findById(orderId); // Optional<TbCfOrder> byId = repository.findById(orderId);
String orderSource = null; // String orderSource = null;
if (byId.isPresent()) { // if (byId.isPresent()) {
orderSource = byId.get().getOrderSource().toString(); // orderSource = byId.get().getOrderSource().toString();
} // }
if (!StringUtils.isBlank(orderId) && !StringUtils.isBlank(transToken)) { if (!StringUtils.isBlank(orderId) && !StringUtils.isBlank(transToken)) {
boolean verifyPay = verifyPay(transToken, orderId); boolean verifyPay = verifyPay(transToken, orderId);
if (verifyPay) { if (verifyPay) {
......
...@@ -65,7 +65,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -65,7 +65,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
http.cors().and().csrf().disable() http.cors().and().csrf().disable()
.exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and() .exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and()
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and() .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
.authorizeRequests().antMatchers("/api/auth/**","/search/image/**", "/itemStation/**", "/startPage/**", "/goodsType/**", "/home/**", "/spider/**", "/store/**", "/shopify/**", "/community/**","/version/**","/flutterwave/notify/**","/dpo/notify/**").permitAll() .authorizeRequests().antMatchers("/api/auth/**","/search/image/**", "/itemStation/**", "/startPage/**", "/goodsType/**", "/home/**", "/spider/**", "/store/**", "/shopify/**", "/community/**","/version/**","/flutterwave/notify/**","/dpo/notify/**","/advertisement/**").permitAll()
.antMatchers("/api/test/**").permitAll() .antMatchers("/api/test/**").permitAll()
.anyRequest().authenticated(); .anyRequest().authenticated();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论