Browse Source

修改文档

#Suyghur 3 năm trước cách đây
mục cha
commit
f5382375db

+ 87 - 47
README.md

@@ -1,5 +1,3 @@
-[TOC]
-
 # 修订记录
 
 | 日期         | 版本    | 说明   | 作者  |
@@ -17,7 +15,7 @@
 - Gradle Version : 7.0.2+
 
 - Android Studio开启Android X支持,请在游戏项目根目录的**`gradle.properties`**中设置
-  
+
   ```properties
   android.useAndroidX=true
   android.enableJetifier=true
@@ -38,9 +36,9 @@
 - 3.拷贝对应渠道目录下**`res/values/strings.xml`**中的内容至项目中相应的文档中,如果没有strings.xml则新建一份即可,如果该目录没有则不需要处理
 
 - 4.在应用**`build.gradle`**中**`dependencies`**节点下添加SDK依赖,目前只提供远程依赖
-  
+
   > 在项目级**`build.gradle`**文件下的**`allprojects`**节点下添加仓库的url
-  
+
   ```groovy
       allprojects {
           repositories {
@@ -52,15 +50,28 @@
           }
       }
   ```
-  
+
   > 在应用级**`build.gradle`**文件下的**`allprojects`**节点下添加仓库的url
-  
+
   ```groovy
-    implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-comm:1.0.0-rc3'
-    implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-impl:1.0.0-rc3'
+    implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-comm:1.0.0-rc6'
+    implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-impl:1.0.0-rc4'
+
+    // 以下sdk按接入需求引入,注意不能同时引入
+
+    // 元游sdk(谷歌包官网包)
+    implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-core:1.0.0-rc5'
     // 以下sdk依赖在生成对应包时按需引入,为了避免资源冲突请不要同时引入
-    implementation 'io.github.yyxxgame.sdk:eyuancomm-channel-lib-huawei:1.0.0-rc3'
-    implementation 'io.github.yyxxgame.sdk:eyuancomm-channel-lib-oppo:1.0.0-rc3'
+    // 元游sdk港台繁体语言包
+    implementation 'io.github.yyxxgame.sdk:eyuancomm-lang-hk:1.0.0-rc4'
+    // 元游sdk越南语言包
+    implementation 'io.github.yyxxgame.sdk:eyuancomm-lang-vn:1.0.0-rc4'
+
+    // 华为渠道sdk
+    implementation 'io.github.yyxxgame.sdk:eyuancomm-channel-lib-huawei:1.0.0-rc4'
+
+    // oppo渠道sdk
+    implementation 'io.github.yyxxgame.sdk:eyuancomm-channel-lib-huawei:1.0.0-rc4'
   ```
 
 # 3.接口说明
@@ -293,18 +304,21 @@
 
 角色信息实体对象SdkRoleInfo,如无特别说明所有字段均不能为null或空串""
 
-| 参数            | 类型     | 说明                          |
-|:-------------:|:------:|:---------------------------:|
-| userId        | string | 当前用户ID                      |
-| serverId      | string | 当前角色所在的服务器ID                |
-| serverName    | string | 当前角色所在的服务器名                 |
-| roleId        | string | 当前角色ID                      |
-| roleName      | string | 当前角色名                       |
-| roleLevel     | string | 当前角色等级                      |
-| roleCTime     | long   | 当前角色创建的时间戳(10位),角色一旦创建则是固定值 |
-| vipLevel      | string | 当前Vip角色等级,若无传"none"         |
-| balance       | string | 当前角色游戏币余额,若无传"none"         |
-| totalPurchase | int    | 累计充值金额,若无传0)                |
+| 参数         | 类型     | 说明                          |
+|:----------:|:------:|:---------------------------:|
+| userId     | string | 当前用户ID                      |
+| serverId   | string | 当前角色所在的服务器ID                |
+| serverName | string | 当前角色所在的服务器名                 |
+| roleId     | string | 当前角色ID                      |
+| roleName   | string | 当前角色名                       |
+| roleLevel  | string | 当前角色等级                      |
+| rolePower  | int    | 当前角色战力                      |
+| roleGold   | int    | 当前角色元宝                      |
+| roleChange | int    | 当前角色累充金额(单位分)               |
+| roleCTime  | long   | 当前角色创建的时间戳(10位),角色一旦创建则是固定值 |
+| vipLevel   | string | 当前Vip角色等级,若无传"none"         |
+| partyId    | string | 当前角色帮派Id,若无传"none"          |
+| partyName  | string | 当前角色帮派名称,若无传"none"          |
 
 > 角色创建
 
@@ -346,26 +360,32 @@
 
 ```java
     SdkRoleInfo gameRoleInfo = new SdkRoleInfo();
-    //用户ID
+    // 用户ID
     gameRoleInfo.setUserId(EYuanGame.getInstance().getCurrentUserId());
-    //角色ID
+    // 角色ID
     gameRoleInfo.setRoleId(roleId);
-    //角色名称
+    // 角色名称
     gameRoleInfo.setRoleName(roleName);
-    //角色等级
+    // 角色等级
     gameRoleInfo.setRoleLevel(roleLevel);
-    //创角时间戳(角色一旦创角则是固定值)
+    // 创角时间戳(角色一旦创角则是固定值)
     gameRoleInfo.setRoleCTime(System.currentTimeMillis()/1000)
-    //服务器ID
+    // 角色战力
+    gameRoleInfo.setRolePower(100);
+    // 角色元宝
+    gameRoleInfo.setRoleGold(200);
+    // 角色累充金额
+    gameRoleInfo.setRoleChange(2000);
+    // 帮派Id
+    gameRoleInfo.setPartyId("1231");
+    // 帮派名称
+    gameRoleInfo.setPartyName("帮派1231")
+    // 服务器ID
     gameRoleInfo.setServerId(serverId);
-    //服务器名
+    // 服务器名
     gameRoleInfo.setServerName(serverName);
-    //用户VIP等级,无该字段则传空串""
+    // 用户VIP等级,无该字段则传空串"none"
     gameRoleInfo.setVipLevel("1");
-    //当前角色游戏币余额
-    gameRoleInfo.setBalance("600");
-    //累计充值金额,若无传0)
-    gameRoleInfo.setTotalPurchase(0)
 
     //角色创建