Compare commits
2 Commits
7856c2b6e8
...
1cee8788f2
Author | SHA1 | Date | |
---|---|---|---|
1cee8788f2 | |||
e9a8be0e1b |
@ -269,7 +269,7 @@ wechat:
|
||||
mch-id: 1658665710 # 商户号
|
||||
mch-serial-no: 6BA681D9B219034D6F7851F57D61BE9317AB48FD # 商户证书序列号
|
||||
api-v3-key: T9iE71aHSmjtM35z4bDLuU3gFX8s2I2h # APIv3密钥
|
||||
private-key-path: "/java/cert/apiclient_key.pem" # 商户私钥文件路径
|
||||
private-key-path: "classpath:cert/apiclient_key.pem" # 商户私钥文件路径
|
||||
transfer-notify-url: https://wuzhongjie.com.cn/prod-api/trans/withdraw/callback # 转账回调地址
|
||||
app-id: wxebcdaea31881caab # 应用ID
|
||||
secret: 71826d76bad096ec5407897c6ed1391f # 应用密钥
|
||||
|
@ -13,6 +13,7 @@ public enum RedPacketStatus {
|
||||
private int code;
|
||||
|
||||
RedPacketStatus(int code) {
|
||||
this.code=code;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
|
@ -17,6 +17,7 @@ import org.dromara.common.core.exception.ServiceException;
|
||||
import org.dromara.system.service.ISysConfigService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -61,7 +62,7 @@ public class OrderCashier implements CashierExecute {
|
||||
if (!order.getStatus().equals(OrderStatusEnum.UNPAID.getValue())) {
|
||||
throw new ServiceException(ResultCode.PAY_BAN);
|
||||
}
|
||||
cashierParam.setPrice(order.getTotalAmount().longValue());
|
||||
cashierParam.setPrice(order.getTotalAmount().multiply(BigDecimal.valueOf(100)).longValue());
|
||||
//
|
||||
// try {
|
||||
// BaseSetting baseSetting = JSONUtil.toBean(settingService.get(SettingEnum.BASE_SETTING.name()).getSettingValue(), BaseSetting.class);
|
||||
|
Loading…
x
Reference in New Issue
Block a user