Commit 2883ad2c authored by jiaorz's avatar jiaorz

添加支付宝授权接口

parent a6469308
......@@ -448,13 +448,13 @@ 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{
public String getAlipayToken(String code) throws AlipayApiException{
AlipayClient alipayClient = getAlipayClient();
AlipaySystemOauthTokenRequest request = new AlipaySystemOauthTokenRequest();
request.setGrantType("authorization_code");
request.setCode(code);
......
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