Commit 9c43ba1b by 程裕兵

feat:pay get ali openid

parent f8619233
......@@ -131,7 +131,8 @@ public class PayServiceImpl implements PayService {
case ALI:
try {
AlipaySystemOauthTokenResponse response = aliClientMap.get(appId).execute(convert(authCode));
return response.getUserId();
log.info("get ali openId response {}, {}, {}", appId, authCode, JSON.toJSONString(response));
return response.getOpenId();
} catch (AlipayApiException e) {
throw new BizException(e.getErrCode(), e.getMessage());
}
......
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