From ad47ae4d92a52ab4f84b0b796ed10e4a55970e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cxxxxxxx=E8=AF=A6?= <286460656@qq.com> Date: Wed, 30 Aug 2023 15:59:30 +0800 Subject: [PATCH] =?UTF-8?q?1688=E6=8E=88=E6=9D=83=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/spi/callback/MemberAuthCallback.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/ms-biz/src/main/java/com/ms/api/spi/callback/MemberAuthCallback.java b/ms-biz/src/main/java/com/ms/api/spi/callback/MemberAuthCallback.java index 6d72f452..b8417013 100644 --- a/ms-biz/src/main/java/com/ms/api/spi/callback/MemberAuthCallback.java +++ b/ms-biz/src/main/java/com/ms/api/spi/callback/MemberAuthCallback.java @@ -13,6 +13,8 @@ import com.ms.api.service.ShopService; import com.ms.api.service.ShopTo1688DsMemberService; import com.ms.api.tool.CommonTool; import com.ms.dal.entity.Shop; +import com.ms.dal.entity.Shop1688DsAuth; +import com.ms.dal.entity.ShopTo1688DsMember; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; @@ -34,12 +36,16 @@ public class MemberAuthCallback extends SPIBaseService implements ExtensionServi // ----参数校验---- MemberAuthCallBackRequestDTO fields = req.getData(); -// Shop shop = shop1688DsAuthService.selectByPrimaryKey(); -// if (Objects.isNull(shop)) { -// shop = new Shop(); -// shop.setShopId(shopId); -// shopService.insert(shop); -// } + Shop1688DsAuth shop1688DsAuth = new Shop1688DsAuth(); + shop1688DsAuth.setAuthCode(fields.getAuthCode()); + shop1688DsAuth.setShopId(shopId); + shop1688DsAuthService.insert(shop1688DsAuth); + + ShopTo1688DsMember shopTo1688DsMember= new ShopTo1688DsMember(); + shopTo1688DsMember.setCnaliMemberId(fields.getCnaliMemberId()); + shopTo1688DsMember.setShopId(shopId); +// shopTo1688DsMember.setGmtExpire(fields.getGmtMemberExpireTime()); + shopTo1688DsMemberService.insert(shopTo1688DsMember); log.info("receive callback: " + JSON.toJSONString(fields));