Переглянути джерело

feat : 非嵌入式SDK接入, 接口提交01

bilingfeng 11 місяців тому
батько
коміт
3b5e59cb8a

+ 1 - 1
game-module/game-module-sdk/src/main/java/com/zanxiang/game/module/sdk/SDKApplication.java

@@ -23,7 +23,7 @@ public class SDKApplication {
 
     public static void main(String[] args) {
         SpringApplication.run(SDKApplication.class, args);
-        System.out.println("赞象SDK服务启动成功 <非嵌入式SDK接入, 接口提交01> ( ´・・)ノ(._.`) \n" +
+        System.out.println("赞象SDK服务启动成功 <非嵌入式SDK接入, 接口提交02> ( ´・・)ノ(._.`) \n" +
                 " ___________ _   __\n" +
                 "/  ___|  _  \\ | / /\n" +
                 "\\ `--.| | | | |/ / \n" +

+ 2 - 0
game-module/game-module-sdk/src/main/java/com/zanxiang/game/module/sdk/service/impl/CpPushDataServiceImpl.java

@@ -504,8 +504,10 @@ public class CpPushDataServiceImpl implements ICpPushDataService {
 
     private User transform(Long gameId, Long agentId, User shareUser, CpPushUserParam param) {
         return User.builder()
+                .openId(param.getOpenId())
                 .regAgentId(agentId)
                 .agentId(agentId)
+                .channel(param.getChannel())
                 .gameId(gameId)
                 .username(param.getOpenId())
                 .nickname(RegisterUtil.randomNickName(param.getOpenId()))