修复相关

This commit is contained in:
13405411873 2024-10-01 10:11:34 +08:00
parent 97e4a96dca
commit c436aa8d9d
8 changed files with 16 additions and 7 deletions

View File

@ -53,7 +53,8 @@ public class WechatPayConfig {
/** /**
* 支付通知回调地址 * 支付通知回调地址
*/ */
private String notifyUrl="https://www.nuoyunr.com/rescue/rescuePayApi/payNotify"; private String notifyUrl="https://www.nuoyunr.com/admin-api/rescuePayApi/payNotify";
private String jcNotifyUrl="https://www.nuoyunr.com/admin-api/payApi/payNotify";
/** /**
* 退款回调地址 * 退款回调地址
*/ */
@ -83,7 +84,6 @@ public class WechatPayConfig {
private String jcAppId = "wx5eeea06aeaae4f89"; private String jcAppId = "wx5eeea06aeaae4f89";
private String jcAppSecret = "42207958589342d9d1d287b9cb53e289"; private String jcAppSecret = "42207958589342d9d1d287b9cb53e289";
private String jcNotifyUrl="https://www.nuoyunr.com/admin-api/payApi/payNotify";
private String jcRefundNotifyUrl="https://www.nuoyunr.com/admin-api/payApi/refundNotify"; private String jcRefundNotifyUrl="https://www.nuoyunr.com/admin-api/payApi/refundNotify";
private String repairAppId="wxee677d54037bc5ac"; private String repairAppId="wxee677d54037bc5ac";

View File

@ -35,6 +35,7 @@ import org.springframework.stereotype.Service;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Optional;
import java.util.Set; import java.util.Set;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@ -385,7 +386,7 @@ public class AppInspectionGoodsServiceImpl extends ServiceImpl<AppInspectionGood
res.setCouponNum(count); res.setCouponNum(count);
//计算积分余额 //计算积分余额
UserBalance shopUserBalance = userBalanceService.selectShopUserBalanceByUserId(userId); UserBalance shopUserBalance = userBalanceService.selectShopUserBalanceByUserId(userId);
res.setBalance(shopUserBalance.getBalance()); res.setBalance(ObjectUtils.isEmpty(shopUserBalance)?0:shopUserBalance.getBalance());
return res; return res;
} }
} }

View File

@ -5,6 +5,7 @@ import cn.hutool.core.util.ObjectUtil;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import cn.iocoder.yudao.framework.security.core.LoginUser; import cn.iocoder.yudao.framework.security.core.LoginUser;
import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils; import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
import cn.iocoder.yudao.module.inspection.service.AppInspectionPartnerService; import cn.iocoder.yudao.module.inspection.service.AppInspectionPartnerService;
import cn.iocoder.yudao.module.partner.entity.PartnerBankInfo; import cn.iocoder.yudao.module.partner.entity.PartnerBankInfo;
import cn.iocoder.yudao.module.payment.entity.FzRecord; import cn.iocoder.yudao.module.payment.entity.FzRecord;
@ -187,6 +188,7 @@ public class WxPayController {
*/ */
@GetMapping("/jcPrepayment") @GetMapping("/jcPrepayment")
@TenantIgnore
public Map<String,Object> jcPrepayment(String type,Long orderId) throws SignatureException, NoSuchAlgorithmException, InvalidKeyException, IOException { public Map<String,Object> jcPrepayment(String type,Long orderId) throws SignatureException, NoSuchAlgorithmException, InvalidKeyException, IOException {
LoginUser loginUser = SecurityFrameworkUtils.getLoginUser(); LoginUser loginUser = SecurityFrameworkUtils.getLoginUser();
@ -198,7 +200,7 @@ public class WxPayController {
String prepayId = this.toGetPayInfo(wechatPayConfig.getJcAppId(), bankInfo.getMchId(), bankInfo.getApiclientKey(), orderInfo.getPayMoney().intValue() String prepayId = this.toGetPayInfo(wechatPayConfig.getJcAppId(), bankInfo.getMchId(), bankInfo.getApiclientKey(), orderInfo.getPayMoney().intValue()
, user.getJcOpenId(), bankInfo.getSerialNo(), bankInfo.getApiV3Key(), orderInfo.getGoodsTitle(), , user.getJcOpenId(), bankInfo.getSerialNo(), bankInfo.getApiV3Key(), orderInfo.getGoodsTitle(),
wechatPayConfig.getNotifyUrl(), orderInfo.getOrderNo()); wechatPayConfig.getJcNotifyUrl(), orderInfo.getOrderNo());
Map<String, Object> resMap = paySignMsg(prepayId, wechatPayConfig.getJcAppId(),bankInfo.getApiclientKey()); Map<String, Object> resMap = paySignMsg(prepayId, wechatPayConfig.getJcAppId(),bankInfo.getApiclientKey());
return resMap; return resMap;
} }

View File

@ -113,7 +113,7 @@
sum((oi.pay_time like CONCAT(#{timeStr},'%') and oi.create_time like CONCAT(#{timeStr},'%'))),0) as workedNum sum((oi.pay_time like CONCAT(#{timeStr},'%') and oi.create_time like CONCAT(#{timeStr},'%'))),0) as workedNum
FROM FROM
order_info oi order_info oi
WHERE oi.partner_id = #{partnerId}
</select> </select>
<select id="allAmount" resultType="java.lang.Integer"> <select id="allAmount" resultType="java.lang.Integer">
SELECT SELECT

View File

@ -19,7 +19,7 @@ import java.util.concurrent.ConcurrentHashMap;
* @Date: 2023/7/9 10:21 * @Date: 2023/7/9 10:21
* @Description : * @Description :
*/ */
@ServerEndpoint(value = "/admin-api/websocket/rescueDriver/{driverId}") @ServerEndpoint(value = "/websocket/rescueDriver/{driverId}")
@Component @Component
public class RescueDriverSocket { public class RescueDriverSocket {
private final static Logger log = LoggerFactory.getLogger(RescueDriverSocket.class); private final static Logger log = LoggerFactory.getLogger(RescueDriverSocket.class);

View File

@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.rescue.controller.admin;
import cn.iocoder.yudao.framework.common.pojo.CommonResult; import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
import cn.iocoder.yudao.module.rescue.core.controller.BaseController; import cn.iocoder.yudao.module.rescue.core.controller.BaseController;
import cn.iocoder.yudao.module.rescue.domain.RescueInfo; import cn.iocoder.yudao.module.rescue.domain.RescueInfo;
import cn.iocoder.yudao.module.rescue.service.IRescueOrderInfoService; import cn.iocoder.yudao.module.rescue.service.IRescueOrderInfoService;
@ -28,6 +29,7 @@ public class RescuePayController extends BaseController {
} }
// @ApiOperation(value = "支付回调", notes = "支付回调") // @ApiOperation(value = "支付回调", notes = "支付回调")
@PostMapping("/payNotify") @PostMapping("/payNotify")
@TenantIgnore
public Map<String, String> payNotify(@RequestBody JSONObject jsonObject) { public Map<String, String> payNotify(@RequestBody JSONObject jsonObject) {
return rescueOrderInfoService.payNotify(jsonObject); return rescueOrderInfoService.payNotify(jsonObject);
} }

View File

@ -148,7 +148,7 @@ public class YudaoWebSecurityConfigurerAdapter {
.antMatchers("/userClient/pay/**").permitAll() .antMatchers("/userClient/pay/**").permitAll()
.antMatchers("/userClient/weChat/**","/userClient/repair/wxLogin").permitAll() .antMatchers("/userClient/weChat/**","/userClient/repair/wxLogin").permitAll()
.antMatchers("/admin-api/websocket/**").permitAll() .antMatchers("/admin-api/websocket/**").permitAll()
.antMatchers("/websocket/**").permitAll() .antMatchers("/websocket/**","/admin-api/payApi/payNotify","/admin-api/rescuePayApi/payNotify").permitAll()
// 小程序首页 // 小程序首页
.antMatchers("/admin-api/system/notice/listWx","/admin-api/system/swiper/listWx","/admin-api/system/shopconfig/listWx").permitAll() .antMatchers("/admin-api/system/notice/listWx","/admin-api/system/swiper/listWx","/admin-api/system/shopconfig/listWx").permitAll()
// 蓝安救援 // 蓝安救援

View File

@ -235,6 +235,8 @@ yudao:
- /userClient/base/company/page #查询可提供服务的子公司,不需要登录 - /userClient/base/company/page #查询可提供服务的子公司,不需要登录
- /userClient/base/company/get #查询可提供服务的子公司详情,不需要登录 - /userClient/base/company/get #查询可提供服务的子公司详情,不需要登录
- /admin-api/rescue/driverLogin - /admin-api/rescue/driverLogin
- /admin-api/rescuePayApi/payNotify
- /admin-api/payApi/payNotify
websocket: websocket:
enable: true # websocket的开关 enable: true # websocket的开关
path: /infra/ws # 路径 path: /infra/ws # 路径
@ -292,6 +294,8 @@ yudao:
- /userClient/** - /userClient/**
- /admin-api/ueditor/** - /admin-api/ueditor/**
- /admin-api/rescue/driverLogin - /admin-api/rescue/driverLogin
- /admin-api/rescuePayApi/payNotify
- /admin-api/payApi/payNotify
ignore-tables: ignore-tables:
- system_tenant - system_tenant