mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 12:05:05 +08:00
update 支付宝小程序
This commit is contained in:
@@ -107,7 +107,6 @@ public class AdapayService {
|
||||
if (memberBasicInfo == null) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_GET_OPEN_ID_BY_CODE_ERROR);
|
||||
}
|
||||
String openId = memberBasicInfo.getOpenId();
|
||||
|
||||
// 支付场景
|
||||
String type = dto.getType();
|
||||
@@ -139,7 +138,7 @@ public class AdapayService {
|
||||
createAdaPaymentParam.setDescription(JSON.toJSONString(map));
|
||||
// 异步通知地址,url为http/https路径,服务器POST回调,URL 上请勿附带参数
|
||||
createAdaPaymentParam.setNotify_url(ADAPAY_CALLBACK_URL);
|
||||
createAdaPaymentParam.setExpend(JSON.toJSONString(ImmutableMap.of("open_id", openId)));
|
||||
createAdaPaymentParam.setExpend(JSON.toJSONString(ImmutableMap.of("open_id", memberBasicInfo.getOpenId())));
|
||||
|
||||
// 延时分账
|
||||
if (StringUtils.isNotBlank(payMode)) {
|
||||
@@ -197,7 +196,6 @@ public class AdapayService {
|
||||
if (memberBasicInfo == null) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_GET_OPEN_ID_BY_CODE_ERROR);
|
||||
}
|
||||
String openId = memberBasicInfo.getOpenId();
|
||||
|
||||
// 支付场景
|
||||
String type = dto.getType();
|
||||
@@ -230,7 +228,7 @@ public class AdapayService {
|
||||
createAdaPaymentParam.setNotify_url(ADAPAY_CALLBACK_URL);
|
||||
|
||||
// alipay_lite参数 buyer_id String(100) Y 买家的支付宝用户 id
|
||||
createAdaPaymentParam.setExpend(JSON.toJSONString(ImmutableMap.of("buyer_id", openId)));
|
||||
createAdaPaymentParam.setExpend(JSON.toJSONString(ImmutableMap.of("buyer_id", memberBasicInfo.getBuyerId())));
|
||||
|
||||
// 延时分账
|
||||
if (StringUtils.isNotBlank(payMode)) {
|
||||
|
||||
@@ -9,6 +9,7 @@ import com.alipay.api.AlipayConfig;
|
||||
import com.alipay.api.DefaultAlipayClient;
|
||||
import com.alipay.api.internal.util.AlipayEncrypt;
|
||||
import com.alipay.api.request.AlipaySystemOauthTokenRequest;
|
||||
import com.alipay.easysdk.base.oauth.Client;
|
||||
import com.alipay.easysdk.base.oauth.models.AlipaySystemOauthTokenResponse;
|
||||
import com.alipay.easysdk.factory.Factory;
|
||||
import com.jsowell.alipay.config.AliPayConfig;
|
||||
@@ -43,7 +44,6 @@ public class AliAppletRemoteService {
|
||||
|
||||
String accessToken = token.getAccessToken();
|
||||
|
||||
// Factory.Util.AES().decrypt();
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
@@ -42,6 +42,11 @@ public class MemberBasicInfo extends BaseEntity {
|
||||
*/
|
||||
private String openId;
|
||||
|
||||
/**
|
||||
* 支付宝买家user_id
|
||||
*/
|
||||
private String buyerId;
|
||||
|
||||
/**
|
||||
* 车牌号
|
||||
*/
|
||||
|
||||
@@ -34,4 +34,9 @@ public class MemberRegisterAndLoginDTO extends BaseDTO{
|
||||
* 微信用户openId
|
||||
*/
|
||||
private String openId;
|
||||
|
||||
/**
|
||||
* 支付宝buyer_id
|
||||
*/
|
||||
private String buyerId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user