Showing
3 changed files
with
33 additions
and
0 deletions
No preview for this file type
| ... | @@ -661,6 +661,39 @@ PoolSdkHelper.trackEvent(getApplicationContext(), PoolEventType.POOL_RES_LOADED, | ... | @@ -661,6 +661,39 @@ PoolSdkHelper.trackEvent(getApplicationContext(), PoolEventType.POOL_RES_LOADED, |
| 661 | ``` | 661 | ``` |
| 662 | 662 | ||
| 663 | 663 | ||
| 664 | + | ||
| 665 | +### 2.20、客服中心接口 | ||
| 666 | + | ||
| 667 | + - 判断是否有客服接口 | ||
| 668 | + | ||
| 669 | + ```java | ||
| 670 | + /** * 是否存在接口 | ||
| 671 | + * @param functionName (客服中心传"hasAssistantCenter") | ||
| 672 | + * @return true:为存在 false:不存在 */ | ||
| 673 | + public static boolean hasFunction(String functionName){ | ||
| 674 | + } | ||
| 675 | + ``` | ||
| 676 | + | ||
| 677 | +- 客服接口 | ||
| 678 | + | ||
| 679 | + ```java | ||
| 680 | + /** * | ||
| 681 | + * @param funcName 方法名 (客服中心传"openAssistantCenter") | ||
| 682 | + * @param param 传空Map | ||
| 683 | + * @return | ||
| 684 | + */ | ||
| 685 | + public static String callFunc(String funcName, Map<Object, Object> param){} | ||
| 686 | + ``` | ||
| 687 | + | ||
| 688 | +- 例子: | ||
| 689 | + | ||
| 690 | + ```java | ||
| 691 | + if(PoolSdkHelper.hasFunction("hasAssistantCenter")) | ||
| 692 | + {//存在客服接口 | ||
| 693 | + Map<Object,Object> map = new HashMap<>(); PoolSdkHelper.callFunc("openAssistantCenter",map); | ||
| 694 | + } | ||
| 695 | + ``` | ||
| 696 | + | ||
| 664 | # 3、自测用例 # | 697 | # 3、自测用例 # |
| 665 | 698 | ||
| 666 | ### 3.1、接入环境下调用登录sdk会有默认测试账号进行登录,游戏会直接收到登录回调数据 ### | 699 | ### 3.1、接入环境下调用登录sdk会有默认测试账号进行登录,游戏会直接收到登录回调数据 ### | ... | ... |
No preview for this file type
-
Please register or login to post a comment