Showing
100 changed files
with
99 additions
and
246 deletions
... | @@ -20,14 +20,15 @@ | ... | @@ -20,14 +20,15 @@ |
20 | 2017-2-09 | 20 | 2017-2-09 |
21 | 1、已接入直接替换poolsdkV2.jar | 21 | 1、已接入直接替换poolsdkV2.jar |
22 | ``` | 22 | ``` |
23 | - | ||
24 | ```xml | 23 | ```xml |
25 | -2017-4-24 | 24 | +2017-2-22 |
26 | -1、删除了SDK相关so库 | 25 | +1、assets中添加sdk,sdk.zip,sdkconfig.ini文件 |
26 | +2、替换YouaiSDK.jar为XingWanSDK.jar | ||
27 | +3、更新poolsdkV2.jar | ||
27 | ``` | 28 | ``` |
28 | 29 | ||
29 | 2017-07-07<br> | 30 | 2017-07-07<br> |
30 | 1、sdk更新和添加文件损坏处理 | 31 | 1、sdk更新和添加文件损坏处理 |
31 | 32 | ||
32 | 2017-07-24<br> | 33 | 2017-07-24<br> |
33 | -1、添加聊天统计,安装统计方法修改 | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
34 | +1、添加聊天统计,修改安装标识码 | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
publicAndroidSDK/.DS_Store
100755 → 100644
No preview for this file type
1 | -<?xml version="1.0" encoding="utf-8"?> | 1 | +<?xml version="1.0" encoding="UTF-8"?> |
2 | <config> | 2 | <config> |
3 | - | ||
4 | <sdkconfig | 3 | <sdkconfig |
5 | - YA_APPID="58fd78a9834e7246b8dc0eac" | 4 | + YA_APPKEY="df6f75922f7ad59d525faefaa7867718" |
6 | - YA_APPKEY="b06b86b79c25774ec758657a7203bae6" | 5 | + YA_APPID="5976b34740fc0e393f51a4b4" |
6 | + weixinId="" | ||
7 | + | ||
7 | gamesimplename="fytx_test" | 8 | gamesimplename="fytx_test" |
8 | - sdksimplename="youyu" | 9 | + sdksimplename="dabaisha" |
9 | sdkversioncode="V1_0" | 10 | sdkversioncode="V1_0" |
10 | - channelparameter1="" | 11 | + usertype="5" |
11 | - channelparameter2="" | 12 | + |
12 | - custom="" | ||
13 | gamechannelid="" | 13 | gamechannelid="" |
14 | - logincheckurl="http://login.public.sdk.gzyouai.com/logincheck/check" | 14 | + channelparameter1="a" |
15 | - paycheckurl="http://pay.public.sdk.gzyouai.com/paycheck/confirm" | 15 | + channelparameter2="a" |
16 | - payorderurl="http://pay.public.sdk.gzyouai.com/paycheck/create" | 16 | + |
17 | - usertype="gssaXIIEiL0=" /> | 17 | + logincheckurl="http://183.57.76.181:9010/logincheck/check" |
18 | + payorderurl="http://183.57.76.181:9020/paycheck/create" | ||
19 | + paycheckurl="http://183.57.76.181:9020/paycheck/confirm" | ||
20 | + | ||
21 | + custom="111" | ||
22 | + reportEventWithEventTypeOpen = "true" | ||
23 | + | ||
18 | 24 | ||
19 | -</config> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
25 | + payCallbackUrl="" | ||
26 | + | ||
27 | + /> | ||
28 | +</config> | ... | ... |
publicAndroidSDK/assets/sdk/.project
deleted
100644 → 0
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<projectDescription> | ||
3 | - <name>sdk_3</name> | ||
4 | - <comment></comment> | ||
5 | - <projects> | ||
6 | - </projects> | ||
7 | - <buildSpec> | ||
8 | - <buildCommand> | ||
9 | - <name>com.aptana.editor.php.aptanaPhpBuilder</name> | ||
10 | - <arguments> | ||
11 | - </arguments> | ||
12 | - </buildCommand> | ||
13 | - <buildCommand> | ||
14 | - <name>com.aptana.ide.core.unifiedBuilder</name> | ||
15 | - <arguments> | ||
16 | - </arguments> | ||
17 | - </buildCommand> | ||
18 | - </buildSpec> | ||
19 | - <natures> | ||
20 | - <nature>com.aptana.projects.webnature</nature> | ||
21 | - <nature>com.aptana.editor.php.phpNature</nature> | ||
22 | - </natures> | ||
23 | - <filteredResources> | ||
24 | - <filter> | ||
25 | - <id>1489975865951</id> | ||
26 | - <name></name> | ||
27 | - <type>26</type> | ||
28 | - <matcher> | ||
29 | - <id>org.eclipse.ui.ide.multiFilter</id> | ||
30 | - <arguments>1.0-name-matches-false-false-node_modules</arguments> | ||
31 | - </matcher> | ||
32 | - </filter> | ||
33 | - </filteredResources> | ||
34 | -</projectDescription> |
This diff is collapsed. Click to expand it.

81 KB
1 | -20170511 |
No preview for this file type
publicAndroidSDK/assets/sdk_dbs/.DS_Store
0 → 100644
No preview for this file type
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
No preview for this file type
File moved
No preview for this file type
No preview for this file type

11 KB
File moved
... | @@ -143,12 +143,12 @@ function initMatching(){ | ... | @@ -143,12 +143,12 @@ function initMatching(){ |
143 | var ratio = window.devicePixelRatio; | 143 | var ratio = window.devicePixelRatio; |
144 | Core.ratio = ratio; | 144 | Core.ratio = ratio; |
145 | 145 | ||
146 | - Core.PLATFORM_NAME = '海豹'; | 146 | + Core.PLATFORM_NAME = '大白鲨'; |
147 | 147 | ||
148 | if(Core.isIos){ | 148 | if(Core.isIos){ |
149 | - Core.server = 'https://sdk.uuufish.com'; | 149 | + Core.server = 'https://sdk.dbs168.com'; |
150 | }else{ | 150 | }else{ |
151 | - Core.server = 'http://sdk.uuufish.com'; | 151 | + Core.server = 'http://sdk.dbs168.com'; |
152 | } | 152 | } |
153 | 153 | ||
154 | 154 | ... | ... |
File moved
This diff is collapsed. Click to expand it.
File moved
File moved
File moved
File moved
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
... | @@ -36,4 +36,4 @@ instructions:处理支付方式点击支付图标出现 input_item 为undefind 的bug(将150行$c | ... | @@ -36,4 +36,4 @@ instructions:处理支付方式点击支付图标出现 input_item 为undefind 的bug(将150行$c |
36 | 36 | ||
37 | date:2017-5-12 | 37 | date:2017-5-12 |
38 | author:lizenghua | 38 | author:lizenghua |
39 | -instructions:修改充值的界面显示大小 | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
39 | +instructions:与游娱同步 | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
File moved
publicAndroidSDK/assets/sdk_dbs/version.txt
0 → 100644
1 | +20170707 |
1 | -SERVER_URL=http://sdk.uuufish.com | ||
2 | -CDN_SERVER_URL=http://sdk.uuufish.com | ||
3 | -SDK_TYPE=.sys_config_youyu | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +SERVER_URL=http://sdk.dbs168.com/ | ||
2 | +CDN_SERVER_URL=http://sdk.dbs168.com/ | ||
3 | +SDK_TYPE=.sys_config_dbs | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
publicAndroidSDK/demo/.DS_Store
100755 → 100644
No preview for this file type
... | @@ -105,6 +105,11 @@ | ... | @@ -105,6 +105,11 @@ |
105 | android:name=".wxapi.WXEntryActivity" | 105 | android:name=".wxapi.WXEntryActivity" |
106 | android:exported="true" | 106 | android:exported="true" |
107 | android:launchMode="singleTop" /> | 107 | android:launchMode="singleTop" /> |
108 | + | ||
109 | + <uses-library | ||
110 | + android:name="org.simalliance.openmobileapi" | ||
111 | + android:required="false" /> | ||
112 | + | ||
108 | <!-- SDK end --> | 113 | <!-- SDK end --> |
109 | </application> | 114 | </application> |
110 | 115 | ... | ... |
1 | -<?xml version="1.0" encoding="utf-8"?> | 1 | +<?xml version="1.0" encoding="UTF-8"?> |
2 | <config> | 2 | <config> |
3 | - | ||
4 | <sdkconfig | 3 | <sdkconfig |
5 | - YA_APPID="58fd78a9834e7246b8dc0eac" | 4 | + YA_APPKEY="df6f75922f7ad59d525faefaa7867718" |
6 | - YA_APPKEY="b06b86b79c25774ec758657a7203bae6" | 5 | + YA_APPID="5976b34740fc0e393f51a4b4" |
6 | + weixinId="" | ||
7 | + | ||
7 | gamesimplename="fytx_test" | 8 | gamesimplename="fytx_test" |
8 | - sdksimplename="youyu" | 9 | + sdksimplename="dabaisha" |
9 | sdkversioncode="V1_0" | 10 | sdkversioncode="V1_0" |
10 | - channelparameter1="" | 11 | + usertype="5" |
11 | - channelparameter2="" | 12 | + |
12 | - custom="" | ||
13 | gamechannelid="" | 13 | gamechannelid="" |
14 | - logincheckurl="http://login.public.sdk.gzyouai.com/logincheck/check" | 14 | + channelparameter1="a" |
15 | - paycheckurl="http://pay.public.sdk.gzyouai.com/paycheck/confirm" | 15 | + channelparameter2="a" |
16 | - payorderurl="http://pay.public.sdk.gzyouai.com/paycheck/create" | 16 | + |
17 | - usertype="gssaXIIEiL0=" /> | 17 | + logincheckurl="http://183.57.76.181:9010/logincheck/check" |
18 | + payorderurl="http://183.57.76.181:9020/paycheck/create" | ||
19 | + paycheckurl="http://183.57.76.181:9020/paycheck/confirm" | ||
20 | + | ||
21 | + custom="111" | ||
22 | + reportEventWithEventTypeOpen = "true" | ||
23 | + | ||
18 | 24 | ||
19 | -</config> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
25 | + payCallbackUrl="" | ||
26 | + | ||
27 | + /> | ||
28 | +</config> | ... | ... |
No preview for this file type
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<projectDescription> | ||
3 | - <name>sdk_3</name> | ||
4 | - <comment></comment> | ||
5 | - <projects> | ||
6 | - </projects> | ||
7 | - <buildSpec> | ||
8 | - <buildCommand> | ||
9 | - <name>com.aptana.editor.php.aptanaPhpBuilder</name> | ||
10 | - <arguments> | ||
11 | - </arguments> | ||
12 | - </buildCommand> | ||
13 | - <buildCommand> | ||
14 | - <name>com.aptana.ide.core.unifiedBuilder</name> | ||
15 | - <arguments> | ||
16 | - </arguments> | ||
17 | - </buildCommand> | ||
18 | - </buildSpec> | ||
19 | - <natures> | ||
20 | - <nature>com.aptana.projects.webnature</nature> | ||
21 | - <nature>com.aptana.editor.php.phpNature</nature> | ||
22 | - </natures> | ||
23 | - <filteredResources> | ||
24 | - <filter> | ||
25 | - <id>1489975865951</id> | ||
26 | - <name></name> | ||
27 | - <type>26</type> | ||
28 | - <matcher> | ||
29 | - <id>org.eclipse.ui.ide.multiFilter</id> | ||
30 | - <arguments>1.0-name-matches-false-false-node_modules</arguments> | ||
31 | - </matcher> | ||
32 | - </filter> | ||
33 | - </filteredResources> | ||
34 | -</projectDescription> |
This diff is collapsed. Click to expand it.
1 | -20170511 |
No preview for this file type
No preview for this file type
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
No preview for this file type
No preview for this file type
No preview for this file type
... | @@ -143,12 +143,12 @@ function initMatching(){ | ... | @@ -143,12 +143,12 @@ function initMatching(){ |
143 | var ratio = window.devicePixelRatio; | 143 | var ratio = window.devicePixelRatio; |
144 | Core.ratio = ratio; | 144 | Core.ratio = ratio; |
145 | 145 | ||
146 | - Core.PLATFORM_NAME = '海豹'; | 146 | + Core.PLATFORM_NAME = '大白鲨'; |
147 | 147 | ||
148 | if(Core.isIos){ | 148 | if(Core.isIos){ |
149 | - Core.server = 'https://sdk.uuufish.com'; | 149 | + Core.server = 'https://sdk.dbs168.com'; |
150 | }else{ | 150 | }else{ |
151 | - Core.server = 'http://sdk.uuufish.com'; | 151 | + Core.server = 'http://sdk.dbs168.com'; |
152 | } | 152 | } |
153 | 153 | ||
154 | 154 | ... | ... |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
... | @@ -36,4 +36,4 @@ instructions:处理支付方式点击支付图标出现 input_item 为undefind 的bug(将150行$c | ... | @@ -36,4 +36,4 @@ instructions:处理支付方式点击支付图标出现 input_item 为undefind 的bug(将150行$c |
36 | 36 | ||
37 | date:2017-5-12 | 37 | date:2017-5-12 |
38 | author:lizenghua | 38 | author:lizenghua |
39 | -instructions:修改充值的界面显示大小 | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
39 | +instructions:与游娱同步 | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
1 | +20170707 |
1 | -SERVER_URL=http://sdk.uuufish.com | ||
2 | -CDN_SERVER_URL=http://sdk.uuufish.com | ||
3 | -SDK_TYPE=.sys_config_youyu | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +SERVER_URL=http://sdk.dbs168.com/ | ||
2 | +CDN_SERVER_URL=http://sdk.dbs168.com/ | ||
3 | +SDK_TYPE=.sys_config_dbs | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
No preview for this file type
No preview for this file type
... | @@ -6,7 +6,6 @@ import android.content.DialogInterface; | ... | @@ -6,7 +6,6 @@ import android.content.DialogInterface; |
6 | import android.content.Intent; | 6 | import android.content.Intent; |
7 | import android.content.res.Configuration; | 7 | import android.content.res.Configuration; |
8 | import android.os.Bundle; | 8 | import android.os.Bundle; |
9 | -import android.util.Log; | ||
10 | import android.view.KeyEvent; | 9 | import android.view.KeyEvent; |
11 | import android.view.View; | 10 | import android.view.View; |
12 | import android.view.WindowManager.LayoutParams; | 11 | import android.view.WindowManager.LayoutParams; |
... | @@ -14,11 +13,13 @@ import android.widget.Button; | ... | @@ -14,11 +13,13 @@ import android.widget.Button; |
14 | 13 | ||
15 | import com.gzyouai.fengniao.sdk.framework.PoolExitDialogListener; | 14 | import com.gzyouai.fengniao.sdk.framework.PoolExitDialogListener; |
16 | import com.gzyouai.fengniao.sdk.framework.PoolExitListener; | 15 | import com.gzyouai.fengniao.sdk.framework.PoolExitListener; |
16 | +import com.gzyouai.fengniao.sdk.framework.PoolExpansionListener; | ||
17 | import com.gzyouai.fengniao.sdk.framework.PoolLoginInfo; | 17 | import com.gzyouai.fengniao.sdk.framework.PoolLoginInfo; |
18 | import com.gzyouai.fengniao.sdk.framework.PoolLoginListener; | 18 | import com.gzyouai.fengniao.sdk.framework.PoolLoginListener; |
19 | import com.gzyouai.fengniao.sdk.framework.PoolLogoutListener; | 19 | import com.gzyouai.fengniao.sdk.framework.PoolLogoutListener; |
20 | import com.gzyouai.fengniao.sdk.framework.PoolPayInfo; | 20 | import com.gzyouai.fengniao.sdk.framework.PoolPayInfo; |
21 | import com.gzyouai.fengniao.sdk.framework.PoolPayListener; | 21 | import com.gzyouai.fengniao.sdk.framework.PoolPayListener; |
22 | +import com.gzyouai.fengniao.sdk.framework.PoolReport; | ||
22 | import com.gzyouai.fengniao.sdk.framework.PoolRoleInfo; | 23 | import com.gzyouai.fengniao.sdk.framework.PoolRoleInfo; |
23 | import com.gzyouai.fengniao.sdk.framework.PoolRoleListener; | 24 | import com.gzyouai.fengniao.sdk.framework.PoolRoleListener; |
24 | import com.gzyouai.fengniao.sdk.framework.PoolSDKCallBackListener; | 25 | import com.gzyouai.fengniao.sdk.framework.PoolSDKCallBackListener; |
... | @@ -253,6 +254,7 @@ public class AppActivity extends Activity { | ... | @@ -253,6 +254,7 @@ public class AppActivity extends Activity { |
253 | } else if (view == yaEnterGameBt) { | 254 | } else if (view == yaEnterGameBt) { |
254 | setContentView(getRedIdByName("public_sdk_self_game", "layout"));// (R.layout.game); | 255 | setContentView(getRedIdByName("public_sdk_self_game", "layout"));// (R.layout.game); |
255 | initGameView(); | 256 | initGameView(); |
257 | + PoolReport.reportEnterGame("chufan","角色名", 12, "201","服务器名"); | ||
256 | } else if (view == yaPayBt) { | 258 | } else if (view == yaPayBt) { |
257 | pay(); | 259 | pay(); |
258 | } else if (view == yaSubmitRoleDataBt) { | 260 | } else if (view == yaSubmitRoleDataBt) { |
... | @@ -274,10 +276,10 @@ public class AppActivity extends Activity { | ... | @@ -274,10 +276,10 @@ public class AppActivity extends Activity { |
274 | private void switchAccount() { | 276 | private void switchAccount() { |
275 | if(PoolSdkHelper.hasSwitchAccount()){ | 277 | if(PoolSdkHelper.hasSwitchAccount()){ |
276 | PoolSdkHelper.switchAccount(this); | 278 | PoolSdkHelper.switchAccount(this); |
277 | - }else if(PoolSdkHelper.hasLogout()){ | ||
278 | - PoolSdkHelper.logout(this);//在注销监听回调中处理注销 | ||
279 | }else if(PoolSdkHelper.hasChannelCenter()){//打开渠道中心看是否有切换账号 | 279 | }else if(PoolSdkHelper.hasChannelCenter()){//打开渠道中心看是否有切换账号 |
280 | PoolSdkHelper.openChannelCenter(); | 280 | PoolSdkHelper.openChannelCenter(); |
281 | + }else if(PoolSdkHelper.hasLogout()){ | ||
282 | + PoolSdkHelper.logout(this);//在注销监听回调中处理注销 | ||
281 | }else{ | 283 | }else{ |
282 | //直接回到登录界面调用登录 | 284 | //直接回到登录界面调用登录 |
283 | int layoutId = getResources().getIdentifier( | 285 | int layoutId = getResources().getIdentifier( |
... | @@ -298,8 +300,6 @@ public class AppActivity extends Activity { | ... | @@ -298,8 +300,6 @@ public class AppActivity extends Activity { |
298 | } | 300 | } |
299 | 301 | ||
300 | private void login() { | 302 | private void login() { |
301 | - | ||
302 | - Log.e("gamechanelId", PoolSdkHelper.getGameChannelId()); | ||
303 | PoolSdkHelper.login("登录自定义字段", new PoolLoginListener() { | 303 | PoolSdkHelper.login("登录自定义字段", new PoolLoginListener() { |
304 | @Override | 304 | @Override |
305 | public void onLoginSuccess(PoolLoginInfo poolLoginInfo) { | 305 | public void onLoginSuccess(PoolLoginInfo poolLoginInfo) { |
... | @@ -407,11 +407,24 @@ public class AppActivity extends Activity { | ... | @@ -407,11 +407,24 @@ public class AppActivity extends Activity { |
407 | /** | 407 | /** |
408 | * 用户中心 | 408 | * 用户中心 |
409 | * | 409 | * |
410 | - * 游戏方先调用PoolSdkHelper.hasChannelCenter()获取是否有用户中心, | 410 | + * 游戏方先调用YASDKHelper.hasChannelCenter()获取是否有用户中心, |
411 | - * 如果有的话,游戏中需要添加按钮,点击按钮调用PoolSdkHelper.openChannelCenter(); | 411 | + * 如果有的话,游戏中需要添加按钮,点击按钮调用YASDKHelper.openChannelCenter(); |
412 | * 如果没有,则不需要显示按钮,也不用调用下面的接口 | 412 | * 如果没有,则不需要显示按钮,也不用调用下面的接口 |
413 | */ | 413 | */ |
414 | private void channelCenter() { | 414 | private void channelCenter() { |
415 | PoolSdkHelper.openChannelCenter(); | 415 | PoolSdkHelper.openChannelCenter(); |
416 | } | 416 | } |
417 | + | ||
418 | + /** | ||
419 | + * 扩展接口 | ||
420 | + */ | ||
421 | + private void expansionInterface() { | ||
422 | + PoolSdkHelper.expansionInterface("自定义参数", new PoolExpansionListener() { | ||
423 | + | ||
424 | + @Override | ||
425 | + public void onSuccess(String paramCustom) { | ||
426 | + | ||
427 | + } | ||
428 | + }); | ||
429 | + } | ||
417 | } | 430 | } | ... | ... |
No preview for this file type
This diff is collapsed. Click to expand it.
... | @@ -7,15 +7,13 @@ | ... | @@ -7,15 +7,13 @@ |
7 | userType | int | 用户类型 ID(渠道类型,兼容以 前帐号体系) | 7 | userType | int | 用户类型 ID(渠道类型,兼容以 前帐号体系) |
8 | openId | string | 平台渠道方返回用户ID | 8 | openId | string | 平台渠道方返回用户ID |
9 | timestamp | string | 时间戳,公共SDK发送到客户端的参数timestamp, 服务端可以判断 timestamp 是否 在有效的登录时间内 | 9 | timestamp | string | 时间戳,公共SDK发送到客户端的参数timestamp, 服务端可以判断 timestamp 是否 在有效的登录时间内 |
10 | -serverSign | string | 验证密钥,公共 SDK 发送到 客户端的参数 serverSign,加密串:gameAppkey=%s&userType=% s&openId=%s×tamp=%s注意:(改为游戏本身的gameAppkey值) | 10 | +serverSign | string | 验证密钥,公共 SDK 发送到 客户端的参数 serverSign,加密串:gameAppkey=%s&userType=% s&openId=%s×tamp=%s |
11 | 11 | ||
12 | 验证方式: | 12 | 验证方式: |
13 | serverSign=MD5(gameAppkey=%s&userType=%s&openId=%s×tamp=%s) 如: | 13 | serverSign=MD5(gameAppkey=%s&userType=%s&openId=%s×tamp=%s) 如: |
14 | md5("gameAppkey=xxxx&userType=1&openId=123×tamp=111111111111") | 14 | md5("gameAppkey=xxxx&userType=1&openId=123×tamp=111111111111") |
15 | gameAppkey : 在公共SDK后台的 Md5加密的KEY | 15 | gameAppkey : 在公共SDK后台的 Md5加密的KEY |
16 | 16 | ||
17 | -`注意!CP必须要以userType+openId保证帐号唯一性` | ||
18 | - | ||
19 | ### 2. 充值验证(通知游戏方发货) | 17 | ### 2. 充值验证(通知游戏方发货) |
20 | 公共SDK服务器接收到渠道服务器充值回调,对回调进行 MD5 验证,如果验证通过, 则采用Post方式马上回调给游戏充值服务器,否则不会回调充值服务器,然后再返回 信息给渠道服务器。回调参数如下: | 18 | 公共SDK服务器接收到渠道服务器充值回调,对回调进行 MD5 验证,如果验证通过, 则采用Post方式马上回调给游戏充值服务器,否则不会回调充值服务器,然后再返回 信息给渠道服务器。回调参数如下: |
21 | 参数 | 类型 | 描述 | 19 | 参数 | 类型 | 描述 |
... | @@ -26,19 +24,16 @@ orderId | string | 渠道方订单 ID | ... | @@ -26,19 +24,16 @@ orderId | string | 渠道方订单 ID |
26 | payAmount | double | 充值金额(如有商品 ID,此值为商 品的金额) | 24 | payAmount | double | 充值金额(如有商品 ID,此值为商 品的金额) |
27 | currency | string | 充值货币(CNY:人民币) | 25 | currency | string | 充值货币(CNY:人民币) |
28 | goodsId | string | 商品ID,参数对一些有商品列表 的充值有效 | 26 | goodsId | string | 商品ID,参数对一些有商品列表 的充值有效 |
29 | -goodsName | string | 商品名称 | 27 | +goodsName | string | 客户端充值 IP |
30 | -remoteIp | string | 客户端充值 IP | ||
31 | custom | string | 透传参数 ,长度 512 | 28 | custom | string | 透传参数 ,长度 512 |
32 | -serverSign | string | 发给充值服务器验证的注意:(改为游戏本身的 gameAppkey 值) | 29 | +serverSign | string | 发给充值服务器验证的 |
33 | uId | string | 平台渠道帐号 ID | 30 | uId | string | 平台渠道帐号 ID |
34 | -gameSimpleName | string | 平台SDK后台游戏代号名 | 31 | +gameSimpleName | string | 公告SDK后台游戏名 |
35 | -sdkSimpleName | string | 平台SDK代号 | 32 | +sdkSimpleName | string | 平台渠道代号 |
36 | -queryId | string | 平台SDK订单号 | 33 | +queryId | string | 公共SDK订单号 |
37 | postTime | string | 订单创建时间戳 | 34 | postTime | string | 订单创建时间戳 |
38 | 35 | ||
39 | 验证方式: | 36 | 验证方式: |
40 | serverSign=MD5(serverId=%s&playerId=%s&orderId=%s&gameAppKey=%s)%s:为相应的值 | 37 | serverSign=MD5(serverId=%s&playerId=%s&orderId=%s&gameAppKey=%s)%s:为相应的值 |
41 | gameAppkey : 在公共SDK后台的Md5加密的KEY | 38 | gameAppkey : 在公共SDK后台的Md5加密的KEY |
42 | -验证通过后,返回公共 SDK 服务器数据,数据格式:{"code":0,"message":"无订 单"}。code:0 表示失败,1 表示成功,message:描述原因。 | ||
43 | - | ||
44 | -`注意!CP必须要以orderId+sdkSimpleName保证订单唯一性` | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
39 | +验证通过后,返回公共 SDK 服务器数据,数据格式:{"code":0,"message":"无订 单"}。code:0 表示失败,1 表示成功,message:描述原因。 | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
publicAndroidSDK/doc/接入常见问题.md
deleted
100644 → 0
1 | - | ||
2 | -## 1.魅族 ## | ||
3 | - | ||
4 | -### 调试登录时,提示“游戏不存在”或“游戏签名不正确” ### | ||
5 | - | ||
6 | -SDK 服务端会对参数作必要的校验,校验不通过则有此提示 | ||
7 | - | ||
8 | -1、联系运营检查该游戏是否打开了联调状态 | ||
9 | - | ||
10 | -2、联系运营检查是否创建了该游戏 | ||
11 | - | ||
12 | -3、上架后的游戏需要从游戏中心下载 APK 包进行安装 | ||
13 | - | ||
14 | -## 2.搜狗 ## | ||
15 | - | ||
16 | -### 参数QQ_APPID要自行到QQ开放平台申请手Q ID ### | ||
17 | - | ||
18 | -签名必须跟应用宝YSDK一致 | ||
19 | - | ||
20 | -## 3.华为 ## | ||
21 | - | ||
22 | -### 需要母包删除 libs 中的 YouaiSDK.jar 再打包 ### | ||
23 | - | ||
24 | -## 4.三星 ## | ||
25 | - | ||
26 | -### 参数 waresid 为商品ID,需去三星后台设置为应用传入价格 ### | ||
27 | - | ||
28 | -## 5.联想 ## | ||
29 | - | ||
30 | -### waresid请到联想后台申请商品编码(使用开放价格模式) ### | ||
31 | - | ||
32 | - | ||
33 | -## 6.UC ## | ||
34 | - | ||
35 | -### 提交角色信息接口 ### | ||
36 | - | ||
37 | -PoolSdkHelper.submitRoleData接口中的角色创建时间和角色等级变化时间需传正确的值,否则不过审 | ||
38 | - | ||
39 | -poolRoleInfo.setRoleChangeTime();//角色等级变化时间 | ||
40 | - | ||
41 | -poolRoleInfo.setRoleCTime();//角色创建时间 | ||
42 | - | ||
43 | -## 7.酷派 ## | ||
44 | - | ||
45 | -### platPublicKey平台公钥默认值 ### | ||
46 | - | ||
47 | -``` | ||
48 | -MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLx50R+CpH6VD/EfavOTpHOydfAQVjvm/h/SGG/RbM/03ZDfk8JrgezyFwqX06pjKevHZz66Umoq1/3Z9oqhBlJezsM03q2woKbReGSKAPQSkuJg2FY6DdZ1v1gMuCRtF6WOHV7n2TbUvRhZugMpx8PJEV+r6Qf1L41Gt8w6FN8wIDAQAB | ||
49 | -``` | ||
50 | - | ||
51 | -如渠道有提供以提供为准,没有填默认值 | ||
52 | - | ||
53 | -## 8.应用宝YSDK ## | ||
54 | - | ||
55 | -### 请保留好在应用宝后台申请时使用的签名文件,打包时需使用一致的 ### | ||
56 | - | ||
57 | - | ||
58 | -## 9.OPPO ## | ||
59 | - | ||
60 | -### publicKey应用公钥 ### | ||
61 | - | ||
62 | -``` | ||
63 | -MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCmreYIkPwVovKR8rLHWlFVw7YDfm9uQOJKL89Smt6ypXGVdrAKKl0wNYc3/jecAoPi2ylChfa2iRu5gunJyNmpWZzlCNRIau55fxGW0XEu553IiprOZcaw5OuYGlf60ga8QT6qToP0/dpiL/ZbmNUO9kUhosIjEu22uFgR+5cYyQIDAQAB | ||
64 | -``` | ||
65 | - | ||
66 | -如渠道有提供以提供为准,没有填默认值 | ||
67 | - | ||
68 | -## 10.HTC ## | ||
69 | - | ||
70 | -### joloPrivateKey私钥 ### | ||
71 | - | ||
72 | -- "HTC秘钥生成工具与文档" | ||
73 | - | ||
74 | -[https://pan.baidu.com/s/1dE7FSm1](https://pan.baidu.com/s/1dE7FSm1 "HTC秘钥生成工具与文档") | ||
75 | - | ||
76 | -强烈建议找渠道技术帮忙生成 | ||
77 | - | ||
78 | - | ||
79 | -## 11.卓易 ## | ||
80 | - | ||
81 | -### 1.注册账号时输入的账号密码文字颜色和输入框底色相同 ### | ||
82 | -把<Application>的theme改成android:theme="@android:style/Theme.Black.NoTitleBar" | ||
83 | - | ||
84 | -或者把Activity的theme改成android:theme="@android:style/Theme.Black.NoTitleBar" | ||
85 | - | ||
86 | - | ||
87 | -### 2.集成到游戏后,发现卓易悬浮图标点击没反应 ### | ||
88 | - | ||
89 | -如果是Unity3D的游戏的话,由于Unity3D和Android之间的事件冲突,导致Android事件得不到响应。 | ||
90 | - | ||
91 | -解决办法是,需要将游戏的主Activity(游戏入口)默认继承的NativeActivity或UnityPlayerNativeActivity改为继承Activity,把UnityPlayerNativeActivity里面的方法(如下图所示)拷贝到主Activity。 | ||
92 | - | ||
93 | -现在最新Unity3D版本游戏入口也是默认继承Activity。 | ||
94 | - | ||
95 | - | ||
96 | - | ||
97 | -## 12. 打包 ## | ||
98 | - | ||
99 | -参数提前确定准备好,尤其是icon,闪图那些 | ||
100 | - | ||
101 | -填写某渠道参数时,请牢记到对应渠道后台填写充值回调地址 | ||
102 | - | ||
103 | - | ||
104 | - | ||
105 | - |
publicAndroidSDK/image/.DS_Store
100755 → 100644
No preview for this file type
publicAndroidSDK/image/image1.png
100755 → 100644
publicAndroidSDK/image/image5.png
100755 → 100644
publicAndroidSDK/image/image6.png
100755 → 100644
publicAndroidSDK/image/image7.png
100755 → 100644
publicAndroidSDK/libs/PoolOkhttp.jar
100755 → 100644
No preview for this file type
publicAndroidSDK/libs/android-support-v4.jar
100755 → 100644
No preview for this file type
No preview for this file type
publicAndroidSDK/libs/okio-1.6.0.jar
100755 → 100644
No preview for this file type
No preview for this file type
-
Please register or login to post a comment