| | |
| | | return ResultUtil.error("支付金额必须大于0元"); |
| | | } |
| | | if(payType == 1){//微信支付 |
| | | if(ToolUtil.isEmpty(userInfo.getAppletsOpenId())){ |
| | | return ResultUtil.error("未授权微信,无法完成支付"); |
| | | } |
| | | Integer integer = paymentRecordService.saveData(2, uid, 1, null, null, 1, money, "", 1);//添加预支付数据 |
| | | ResultUtil resultUtil = payMoneyUtil.weixinpay("余额充值",integer.toString(),integer.toString(),money+"","/base/wxCancelUserBalance","JSAPI",userInfo.getAppletsOpenId()); |
| | | if(resultUtil.getCode()==200){ |
| | |
| | | */ |
| | | public String getDefaultName(){ |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyMMdd"); |
| | | String n = sdf.format(new Date()) + UUIDUtil.getNumberCode(3); |
| | | String n = UUIDUtil.getNumberCode(3) + sdf.format(new Date()); |
| | | return "ZY" + n; |
| | | } |
| | | |