|
@@ -1410,7 +1410,7 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
WxSendRedPacketParam packetParam = new WxSendRedPacketParam();
|
|
WxSendRedPacketParam packetParam = new WxSendRedPacketParam();
|
|
|
|
|
|
|
|
//判断是否走服务号openId发红包
|
|
//判断是否走服务号openId发红包
|
|
|
- if (user.getMpOpenId()!=null&&!isNewWxMerchant){
|
|
|
|
|
|
|
+ if (config.getMiniAppAuthType()==2 && user.getMpOpenId()!=null&&!isNewWxMerchant ){
|
|
|
packetParam.setOpenId(user.getMpOpenId());
|
|
packetParam.setOpenId(user.getMpOpenId());
|
|
|
}else {
|
|
}else {
|
|
|
//查询是否绑定小程序
|
|
//查询是否绑定小程序
|
|
@@ -1423,7 +1423,7 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//判断服务号配置是否存在
|
|
//判断服务号配置是否存在
|
|
|
- if (StringUtils.isNotEmpty(config.getMpAppId())){
|
|
|
|
|
|
|
+ if (config.getMiniAppAuthType()==2 && StringUtils.isNotEmpty(config.getMpAppId()) ){
|
|
|
packetParam.setMpAppId(config.getMpAppId());
|
|
packetParam.setMpAppId(config.getMpAppId());
|
|
|
}
|
|
}
|
|
|
packetParam.setAmount(amount);
|
|
packetParam.setAmount(amount);
|