1.集成支付宝沙箱支付功能

2.订单下单
3.回调通知(未成功)
4.回查订单支付状态
This commit is contained in:
海言
2025-10-22 17:41:38 +08:00
parent b6eb4d5341
commit 7c33311efb
16 changed files with 414 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ import cn.xf.basedemo.common.utils.StringUtil;
import cn.xf.basedemo.config.GlobalConfig;
import cn.xf.basedemo.mappers.UserMapper;
import cn.xf.basedemo.model.domain.User;
import cn.xf.basedemo.model.res.LoginInfoRes;
import cn.xf.basedemo.model.req.LoginInfoReq;
import cn.xf.basedemo.mq.RocketMqMsgProducer;
import cn.xf.basedemo.service.UserService;
import com.alibaba.fastjson.JSONObject;
@@ -24,7 +24,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RestController;
import java.util.Objects;
import java.util.concurrent.TimeUnit;
@@ -56,7 +55,7 @@ public class UserServiceImpl implements UserService {
private RocketMqMsgProducer rocketMqMsgProducer;
@Override
public RetObj login(LoginInfoRes res) {
public RetObj login(LoginInfoReq res) {
if (Objects.isNull(res) || StringUtils.isEmpty(res.getEncryptedData())) {
return null;