Commit b213fe5d by zhangchen

1.截取字符串

parent 05dae89b
...@@ -206,7 +206,7 @@ public class WeiXinAtcion { ...@@ -206,7 +206,7 @@ public class WeiXinAtcion {
paymentPo.put("wxappid", Configure.getAppID()); paymentPo.put("wxappid", Configure.getAppID());
paymentPo.put("send_name","Iwangolf"); paymentPo.put("send_name","Iwangolf");
paymentPo.put("re_openid",openId); paymentPo.put("re_openid",openId);
paymentPo.put("total_amount",amount.multiply(new BigDecimal(100)).toString()); paymentPo.put("total_amount",amount.multiply(new BigDecimal(100)).toString().substring(0, amount.multiply(new BigDecimal(100)).toString().length()-3));
paymentPo.put("total_num", "1"); paymentPo.put("total_num", "1");
paymentPo.put("wishing", "happy"); paymentPo.put("wishing", "happy");
paymentPo.put("client_ip", "127.0.0.1"); paymentPo.put("client_ip", "127.0.0.1");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment