|
@@ -11,6 +11,7 @@ import com.minpay.common.util.CommonUtil;
|
|
|
import com.startup.minpay.frame.target.MINComponent;
|
|
|
import com.sun.jmx.snmp.Timestamp;
|
|
|
|
|
|
+import java.text.DecimalFormat;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
import java.util.UUID;
|
|
@@ -71,7 +72,10 @@ public class HuilianPayServiceImpl implements IHuilianPayService {
|
|
|
// form.put("OutTradeNo", UUID.randomUUID().toString().replaceAll("-", ""));
|
|
|
form.put("OutTradeNo",huilianpay.getOutTradeNo());
|
|
|
form.put("Body", huilianpay.getGoodName());
|
|
|
- form.put("TotalAmount", CommonUtil.multiply(huilianpay.getTotalAmount(),"100"));//换算成分
|
|
|
+ Double aa = Double.valueOf(CommonUtil.multiply(huilianpay.getTotalAmount(),"100"));
|
|
|
+ DecimalFormat df = new DecimalFormat("######0");
|
|
|
+ String totalAmountStr = df.format(aa);
|
|
|
+ form.put("TotalAmount", totalAmountStr);//换算成分
|
|
|
form.put("Currency", "CNY");
|
|
|
form.put("HlMerchantId", huilianpay.getHlMerchantId());
|
|
|
form.put("IsvOrgId", MyConfig.isvOrgId);
|
|
@@ -88,7 +92,7 @@ public class HuilianPayServiceImpl implements IHuilianPayService {
|
|
|
form.put("OperatorId", "test");
|
|
|
form.put("StoreId", "test");
|
|
|
form.put("DeviceId", "1");
|
|
|
- form.put("ExpireExpress", "5");
|
|
|
+ form.put("ExpireExpress", "60");
|
|
|
form.put("NotifyUrl", huilianpay.getNotifyUrl());
|
|
|
//form.put("NotifyUrl", "http://1k7s239485.51mypc.cn/pay/notify");
|
|
|
form.put("Attach", "test");
|