Commit a6469308 authored by jiaorz's avatar jiaorz

修改订单出车时间限制

parent 705c2872
...@@ -411,7 +411,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> implements In ...@@ -411,7 +411,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> implements In
AlipayFundTransToaccountTransferRequest request = new AlipayFundTransToaccountTransferRequest(); AlipayFundTransToaccountTransferRequest request = new AlipayFundTransToaccountTransferRequest();
request.setBizContent("{" + request.setBizContent("{" +
"\"out_biz_no\":\"" + fundPayVo.getOutBizNo() + "\"," + "\"out_biz_no\":\"" + fundPayVo.getOutBizNo() + "\"," +
"\"payee_type\":\"ALIPAY_LOGONID\"," + "\"payee_type\":\"ALIPAY_USERID\"," +
"\"payee_account\":\"" + fundPayVo.getPayeeAccount() + "\"," + "\"payee_account\":\"" + fundPayVo.getPayeeAccount() + "\"," +
"\"amount\":\"" + fundPayVo.getAmount() + "\"," + "\"amount\":\"" + fundPayVo.getAmount() + "\"," +
"\"payer_show_name\":\"" + fundPayVo.getPayerShowName() + "\"," + "\"payer_show_name\":\"" + fundPayVo.getPayerShowName() + "\"," +
...@@ -446,6 +446,32 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> implements In ...@@ -446,6 +446,32 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> implements In
} }
} }
/**
*
* @param alipayClient
* @param code
* @return
* @throws AlipayApiException
*/
public String getAlipayToken(AlipayClient alipayClient, String code) throws AlipayApiException{
AlipaySystemOauthTokenRequest request = new AlipaySystemOauthTokenRequest();
request.setGrantType("authorization_code");
request.setCode(code);
AlipaySystemOauthTokenResponse response = alipayClient.execute(request);
if(response.isSuccess()){
System.out.println("调用成功");
} else {
System.out.println("调用失败");
}
return response.toString();
}
//解冻预授权 //解冻预授权
public void fundAuthOrderUnFreeze(AlipayClient alipayClient) throws AlipayApiException { public void fundAuthOrderUnFreeze(AlipayClient alipayClient) throws AlipayApiException {
AlipayFundAuthOrderUnfreezeRequest request = new AlipayFundAuthOrderUnfreezeRequest(); AlipayFundAuthOrderUnfreezeRequest request = new AlipayFundAuthOrderUnfreezeRequest();
...@@ -561,19 +587,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> implements In ...@@ -561,19 +587,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> implements In
} }
public static void main(String[] args) { public static void main(String[] args) {
OrderPayBiz orderPayBiz = new OrderPayBiz();
AlipayClient alipayClient = orderPayBiz.getAlipayClient();
FundPayVo fundPayVo = new FundPayVo();
fundPayVo.setAmount("0.50");
fundPayVo.setOutBizNo("2019101015543");
fundPayVo.setPayeeAccount("2724520350@qq.com");
fundPayVo.setPayerShowName("欣欣房车网络科技");
fundPayVo.setRemark("测试转账");
try {
orderPayBiz.alipayfundTrans(alipayClient, fundPayVo);
} catch (AlipayApiException e) {
e.printStackTrace();
}
} }
@Override @Override
......
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 to comment