微信支付开启聊天功能

上级 6da4442a
流水线 #8417 已通过 于阶段
in 2 分 17 秒
......@@ -57,4 +57,7 @@ public interface UserAppApi {
*/
@PostMapping("/userapp/user-account/feignListAppUserAccount")
List<UserAccountSimpleDTO> feignListAppUserAccount(@ApiParam(value = "账号查询QO", required = true) @RequestBody UserAccountQO userAccountQO, @RequestHeader("token") String token);
@GetMapping("/userapp/message/timeTypeById")
Integer timeTypeById(@RequestParam Integer typeId);
}
......@@ -37,4 +37,11 @@ public class UserAppApiHystrix implements UserAppApi {
log.error("熔断:feignListAppUserAccount:{}", userAccountQO);
return null;
}
@Override
public Integer timeTypeById(Integer id) {
log.error("熔断:timeTypeById:{}", id);
return null;
}
}
......@@ -26,5 +26,7 @@ public class OrderRequestParamsVO implements Serializable {
private Integer orderPort;
@ApiModelProperty(value = "附加参数 :附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用,实际情况下只有支付完成状态才会返回该字段。")
private String attach;
@ApiModelProperty(value = "聊天包类型id")
private Integer chatType;
}
......@@ -44,6 +44,7 @@ import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.io.BufferedReader;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
......@@ -74,6 +75,10 @@ public class WechatPayServiceImpl implements WechatPayService {
if (userSimpleInfo == null) {
throw new RuntimeException("服务器内部错误!");
}
if(orderRequestParamsVO.getChatType() != null && orderRequestParamsVO.getOrderPort() == 7){
Integer integer = userAppApi.timeTypeById(orderRequestParamsVO.getChatType()) ;
orderRequestParamsVO.setAmount(integer);
}
Config config = wxConfigUtils.createConfig();
// 查询该订单是否已下单
WxPayLogDO wxPayLogDO = wechatPayDao.selectWxPayInfoByOrderNo(orderRequestParamsVO.getOrderNo());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论