| | |
| | | * JSAPI下单 |
| | | * @param order 下单请求对象,包含需要传入的参数 |
| | | * @param bindingResult |
| | | * @return |
| | | * @return 预支付交易会话标识(有效期2小时) |
| | | */ |
| | | @Operation(summary = "JSAPI下单", description = "JSAPI下单") |
| | | @ApiResponses(value = { |
| | |
| | | |
| | | // 暂时注释掉,认证通过后再放开 |
| | | JSONObject job_result = restTemplateUtil.post(PayInfo.orderUrl, body, headers); |
| | | if(job_result != null) { |
| | | System.out.println(job_result.toString()); |
| | | prepayId = job_result.getString("prepay_id"); |
| | | if(job_result == null) { |
| | | return BaseResponseUtils.buildFail(SellResultCode.RECHARGE_ADD_FAIL.getMessage()); |
| | | } |
| | | |
| | | return BaseResponseUtils.buildSuccess(prepayId) ; |
| | | return BaseResponseUtils.buildSuccess(job_result) ; |
| | | } |
| | | |
| | | /** |