提交代码

master
胡锐 2 months ago
parent 829e638cdd
commit aa43445bcc
  1. 3
      service/src/main/java/com/hfkj/service/pay/huift/TradeService.java

@ -5,6 +5,7 @@ import com.hfkj.common.exception.ErrorCode;
import com.hfkj.common.exception.ErrorHelp;
import com.hfkj.common.exception.SysCode;
import com.hfkj.common.utils.HttpsUtils;
import com.hfkj.common.utils.RandomUtils;
import com.hfkj.config.CommonSysConst;
import com.hfkj.entity.BsOrder;
import com.hfkj.model.order.OrderModel;
@ -39,7 +40,7 @@ public class TradeService {
public JSONObject thirdPreOrder(OrderModel order) throws Exception {
Map<String,Object> param = new HashMap<>();
param.put("shopCode", HuiftConfig.shopcode);
param.put("outTradeNo", order.getOrderNo());
param.put("outTradeNo", order.getOrderNo()+"_"+RandomUtils.number(3,true));
param.put("transAmt", order.getPayRealPrice().multiply(new BigDecimal("100")).intValue());
param.put("callbackUrl", CommonSysConst.getSysConfig().getDomainName() + "/order/notify/huiftPay");
// param.put("remark", ""); // 备注

Loading…
Cancel
Save