|
@@ -124,7 +124,7 @@ public class ExamOrderController extends BaseController {
|
|
|
if (createTime.before(beforeDate)) {
|
|
|
return failed("订单已超时,请重新下单");
|
|
|
}
|
|
|
- amount = examRegistrationPayment.getTransAmount();
|
|
|
+ amount = examRegistrationPayment.getTransAmount().setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
|
|
|
|
Date expireDate = DateUtil.addMinutes(createTime, 30);
|
|
|
String timeExpire = new SimpleDateFormat("yyyyMMddHHmmss").format(expireDate);
|
|
@@ -133,7 +133,7 @@ public class ExamOrderController extends BaseController {
|
|
|
paymentParams.put("app_id", ConfigInit.appId);
|
|
|
paymentParams.put("order_no", orderNo);
|
|
|
paymentParams.put("pay_channel", payChannel);
|
|
|
- paymentParams.put("pay_amt", amount.setScale(2,BigDecimal.ROUND_HALF_UP));
|
|
|
+ paymentParams.put("pay_amt", amount);
|
|
|
paymentParams.put("goods_title", orderSubject);
|
|
|
paymentParams.put("goods_desc", orderBody);
|
|
|
paymentParams.put("time_expire", timeExpire);
|