|
|
@@ -171,6 +171,9 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
|
BigDecimal unit = new BigDecimal(100);
|
|
|
price = price.multiply(unit);
|
|
|
Map<String, String> data = new HashMap<String, String>();
|
|
|
+ if(price==null){
|
|
|
+ throw new CustomException("金额错误"+price);
|
|
|
+ }
|
|
|
// data.put("attach", "pay");
|
|
|
data.put("body", body);
|
|
|
data.put("out_trade_no", out_trade_no);
|