xuguohong

add dabaisha

Showing 100 changed files with 99 additions and 246 deletions
......@@ -20,14 +20,15 @@
2017-2-09
1、已接入直接替换poolsdkV2.jar
```
```xml
2017-4-24
1、删除了SDK相关so库
2017-2-22
1、assets中添加sdk,sdk.zip,sdkconfig.ini文件
2、替换YouaiSDK.jar为XingWanSDK.jar
3、更新poolsdkV2.jar
```
2017-07-07<br>
1、sdk更新和添加文件损坏处理
2017-07-24<br>
1、添加聊天统计,安装统计方法修改
\ No newline at end of file
1、添加聊天统计,修改安装标识码
\ No newline at end of file
......
No preview for this file type
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<config>
<sdkconfig
YA_APPID="58fd78a9834e7246b8dc0eac"
YA_APPKEY="b06b86b79c25774ec758657a7203bae6"
YA_APPKEY="df6f75922f7ad59d525faefaa7867718"
YA_APPID="5976b34740fc0e393f51a4b4"
weixinId=""
gamesimplename="fytx_test"
sdksimplename="youyu"
sdksimplename="dabaisha"
sdkversioncode="V1_0"
channelparameter1=""
channelparameter2=""
custom=""
usertype="5"
gamechannelid=""
logincheckurl="http://login.public.sdk.gzyouai.com/logincheck/check"
paycheckurl="http://pay.public.sdk.gzyouai.com/paycheck/confirm"
payorderurl="http://pay.public.sdk.gzyouai.com/paycheck/create"
usertype="gssaXIIEiL0=" />
channelparameter1="a"
channelparameter2="a"
logincheckurl="http://183.57.76.181:9010/logincheck/check"
payorderurl="http://183.57.76.181:9020/paycheck/create"
paycheckurl="http://183.57.76.181:9020/paycheck/confirm"
custom="111"
reportEventWithEventTypeOpen = "true"
</config>
\ No newline at end of file
payCallbackUrl=""
/>
</config>
......
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>sdk_3</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.aptana.editor.php.aptanaPhpBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.aptana.ide.core.unifiedBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.aptana.projects.webnature</nature>
<nature>com.aptana.editor.php.phpNature</nature>
</natures>
<filteredResources>
<filter>
<id>1489975865951</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-node_modules</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
This diff is collapsed. Click to expand it.
No preview for this file type
This diff is collapsed. Click to expand it.
......@@ -143,12 +143,12 @@ function initMatching(){
var ratio = window.devicePixelRatio;
Core.ratio = ratio;
Core.PLATFORM_NAME = '海豹';
Core.PLATFORM_NAME = '大白鲨';
if(Core.isIos){
Core.server = 'https://sdk.uuufish.com';
Core.server = 'https://sdk.dbs168.com';
}else{
Core.server = 'http://sdk.uuufish.com';
Core.server = 'http://sdk.dbs168.com';
}
......
......@@ -70,9 +70,6 @@
if (!tryAutoLogin)
goInit();
Core.ajax({
type: 'GET',
url: url + '?' + params,
......
......@@ -36,4 +36,4 @@ instructions:处理支付方式点击支付图标出现 input_item 为undefind 的bug(将150行$c
date:2017-5-12
author:lizenghua
instructions:修改充值的界面显示大小
\ No newline at end of file
instructions:与游娱同步
\ No newline at end of file
......
#!/bin/sh
#js css压缩,生成更新包打包
CDN_SERVER='http://cdn.9133.com/static'
CDN_SERVER='http://sdk.dbs168.com/static'
DIR_PATH="$( cd "$( dirname "$0" )" && pwd )"
......
SERVER_URL=http://sdk.uuufish.com
CDN_SERVER_URL=http://sdk.uuufish.com
SDK_TYPE=.sys_config_youyu
\ No newline at end of file
SERVER_URL=http://sdk.dbs168.com/
CDN_SERVER_URL=http://sdk.dbs168.com/
SDK_TYPE=.sys_config_dbs
\ No newline at end of file
......
No preview for this file type
......@@ -105,6 +105,11 @@
android:name=".wxapi.WXEntryActivity"
android:exported="true"
android:launchMode="singleTop" />
<uses-library
android:name="org.simalliance.openmobileapi"
android:required="false" />
<!-- SDK end -->
</application>
......
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<config>
<sdkconfig
YA_APPID="58fd78a9834e7246b8dc0eac"
YA_APPKEY="b06b86b79c25774ec758657a7203bae6"
YA_APPKEY="df6f75922f7ad59d525faefaa7867718"
YA_APPID="5976b34740fc0e393f51a4b4"
weixinId=""
gamesimplename="fytx_test"
sdksimplename="youyu"
sdksimplename="dabaisha"
sdkversioncode="V1_0"
channelparameter1=""
channelparameter2=""
custom=""
usertype="5"
gamechannelid=""
logincheckurl="http://login.public.sdk.gzyouai.com/logincheck/check"
paycheckurl="http://pay.public.sdk.gzyouai.com/paycheck/confirm"
payorderurl="http://pay.public.sdk.gzyouai.com/paycheck/create"
usertype="gssaXIIEiL0=" />
channelparameter1="a"
channelparameter2="a"
logincheckurl="http://183.57.76.181:9010/logincheck/check"
payorderurl="http://183.57.76.181:9020/paycheck/create"
paycheckurl="http://183.57.76.181:9020/paycheck/confirm"
custom="111"
reportEventWithEventTypeOpen = "true"
</config>
\ No newline at end of file
payCallbackUrl=""
/>
</config>
......
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>sdk_3</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.aptana.editor.php.aptanaPhpBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.aptana.ide.core.unifiedBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.aptana.projects.webnature</nature>
<nature>com.aptana.editor.php.phpNature</nature>
</natures>
<filteredResources>
<filter>
<id>1489975865951</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-node_modules</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
This diff is collapsed. Click to expand it.
......@@ -143,12 +143,12 @@ function initMatching(){
var ratio = window.devicePixelRatio;
Core.ratio = ratio;
Core.PLATFORM_NAME = '海豹';
Core.PLATFORM_NAME = '大白鲨';
if(Core.isIos){
Core.server = 'https://sdk.uuufish.com';
Core.server = 'https://sdk.dbs168.com';
}else{
Core.server = 'http://sdk.uuufish.com';
Core.server = 'http://sdk.dbs168.com';
}
......
......@@ -70,9 +70,6 @@
if (!tryAutoLogin)
goInit();
Core.ajax({
type: 'GET',
url: url + '?' + params,
......
......@@ -36,4 +36,4 @@ instructions:处理支付方式点击支付图标出现 input_item 为undefind 的bug(将150行$c
date:2017-5-12
author:lizenghua
instructions:修改充值的界面显示大小
\ No newline at end of file
instructions:与游娱同步
\ No newline at end of file
......
#!/bin/sh
#js css压缩,生成更新包打包
CDN_SERVER='http://cdn.9133.com/static'
CDN_SERVER='http://sdk.dbs168.com/static'
DIR_PATH="$( cd "$( dirname "$0" )" && pwd )"
......
SERVER_URL=http://sdk.uuufish.com
CDN_SERVER_URL=http://sdk.uuufish.com
SDK_TYPE=.sys_config_youyu
\ No newline at end of file
SERVER_URL=http://sdk.dbs168.com/
CDN_SERVER_URL=http://sdk.dbs168.com/
SDK_TYPE=.sys_config_dbs
\ No newline at end of file
......
......@@ -6,7 +6,6 @@ import android.content.DialogInterface;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.view.WindowManager.LayoutParams;
......@@ -14,11 +13,13 @@ import android.widget.Button;
import com.gzyouai.fengniao.sdk.framework.PoolExitDialogListener;
import com.gzyouai.fengniao.sdk.framework.PoolExitListener;
import com.gzyouai.fengniao.sdk.framework.PoolExpansionListener;
import com.gzyouai.fengniao.sdk.framework.PoolLoginInfo;
import com.gzyouai.fengniao.sdk.framework.PoolLoginListener;
import com.gzyouai.fengniao.sdk.framework.PoolLogoutListener;
import com.gzyouai.fengniao.sdk.framework.PoolPayInfo;
import com.gzyouai.fengniao.sdk.framework.PoolPayListener;
import com.gzyouai.fengniao.sdk.framework.PoolReport;
import com.gzyouai.fengniao.sdk.framework.PoolRoleInfo;
import com.gzyouai.fengniao.sdk.framework.PoolRoleListener;
import com.gzyouai.fengniao.sdk.framework.PoolSDKCallBackListener;
......@@ -253,6 +254,7 @@ public class AppActivity extends Activity {
} else if (view == yaEnterGameBt) {
setContentView(getRedIdByName("public_sdk_self_game", "layout"));// (R.layout.game);
initGameView();
PoolReport.reportEnterGame("chufan","角色名", 12, "201","服务器名");
} else if (view == yaPayBt) {
pay();
} else if (view == yaSubmitRoleDataBt) {
......@@ -274,10 +276,10 @@ public class AppActivity extends Activity {
private void switchAccount() {
if(PoolSdkHelper.hasSwitchAccount()){
PoolSdkHelper.switchAccount(this);
}else if(PoolSdkHelper.hasLogout()){
PoolSdkHelper.logout(this);//在注销监听回调中处理注销
}else if(PoolSdkHelper.hasChannelCenter()){//打开渠道中心看是否有切换账号
PoolSdkHelper.openChannelCenter();
}else if(PoolSdkHelper.hasLogout()){
PoolSdkHelper.logout(this);//在注销监听回调中处理注销
}else{
//直接回到登录界面调用登录
int layoutId = getResources().getIdentifier(
......@@ -298,8 +300,6 @@ public class AppActivity extends Activity {
}
private void login() {
Log.e("gamechanelId", PoolSdkHelper.getGameChannelId());
PoolSdkHelper.login("登录自定义字段", new PoolLoginListener() {
@Override
public void onLoginSuccess(PoolLoginInfo poolLoginInfo) {
......@@ -407,11 +407,24 @@ public class AppActivity extends Activity {
/**
* 用户中心
*
* 游戏方先调用PoolSdkHelper.hasChannelCenter()获取是否有用户中心,
* 如果有的话,游戏中需要添加按钮,点击按钮调用PoolSdkHelper.openChannelCenter();
* 游戏方先调用YASDKHelper.hasChannelCenter()获取是否有用户中心,
* 如果有的话,游戏中需要添加按钮,点击按钮调用YASDKHelper.openChannelCenter();
* 如果没有,则不需要显示按钮,也不用调用下面的接口
*/
private void channelCenter() {
PoolSdkHelper.openChannelCenter();
}
/**
* 扩展接口
*/
private void expansionInterface() {
PoolSdkHelper.expansionInterface("自定义参数", new PoolExpansionListener() {
@Override
public void onSuccess(String paramCustom) {
}
});
}
}
......
......@@ -7,15 +7,13 @@
userType | int | 用户类型 ID(渠道类型,兼容以 前帐号体系)
openId | string | 平台渠道方返回用户ID
timestamp | string | 时间戳,公共SDK发送到客户端的参数timestamp, 服务端可以判断 timestamp 是否 在有效的登录时间内
serverSign | string | 验证密钥,公共 SDK 发送到 客户端的参数 serverSign,加密串:gameAppkey=%s&userType=% s&openId=%s&timestamp=%s注意:(改为游戏本身的gameAppkey值)
serverSign | string | 验证密钥,公共 SDK 发送到 客户端的参数 serverSign,加密串:gameAppkey=%s&userType=% s&openId=%s&timestamp=%s
验证方式:
serverSign=MD5(gameAppkey=%s&userType=%s&openId=%s&timestamp=%s) 如:
md5("gameAppkey=xxxx&userType=1&openId=123&timestamp=111111111111")
gameAppkey : 在公共SDK后台的 Md5加密的KEY
`注意!CP必须要以userType+openId保证帐号唯一性`
### 2. 充值验证(通知游戏方发货)
公共SDK服务器接收到渠道服务器充值回调,对回调进行 MD5 验证,如果验证通过, 则采用Post方式马上回调给游戏充值服务器,否则不会回调充值服务器,然后再返回 信息给渠道服务器。回调参数如下:
参数 | 类型 | 描述
......@@ -26,19 +24,16 @@ orderId | string | 渠道方订单 ID
payAmount | double | 充值金额(如有商品 ID,此值为商 品的金额)
currency | string | 充值货币(CNY:人民币)
goodsId | string | 商品ID,参数对一些有商品列表 的充值有效
goodsName | string | 商品名称
remoteIp | string | 客户端充值 IP
goodsName | string | 客户端充值 IP
custom | string | 透传参数 ,长度 512
serverSign | string | 发给充值服务器验证的注意:(改为游戏本身的 gameAppkey 值)
serverSign | string | 发给充值服务器验证的
uId | string | 平台渠道帐号 ID
gameSimpleName | string | 平台SDK后台游戏代号
sdkSimpleName | string | 平台SDK代号
queryId | string | 平台SDK订单号
gameSimpleName | string | 公告SDK后台游戏
sdkSimpleName | string | 平台渠道代号
queryId | string | 公共SDK订单号
postTime | string | 订单创建时间戳
验证方式:
serverSign=MD5(serverId=%s&playerId=%s&orderId=%s&gameAppKey=%s)%s:为相应的值
gameAppkey : 在公共SDK后台的Md5加密的KEY
验证通过后,返回公共 SDK 服务器数据,数据格式:{"code":0,"message":"无订 单"}。code:0 表示失败,1 表示成功,message:描述原因。
`注意!CP必须要以orderId+sdkSimpleName保证订单唯一性`
\ No newline at end of file
验证通过后,返回公共 SDK 服务器数据,数据格式:{"code":0,"message":"无订 单"}。code:0 表示失败,1 表示成功,message:描述原因。
\ No newline at end of file
......
## 1.魅族 ##
### 调试登录时,提示“游戏不存在”或“游戏签名不正确” ###
SDK 服务端会对参数作必要的校验,校验不通过则有此提示
1、联系运营检查该游戏是否打开了联调状态
2、联系运营检查是否创建了该游戏
3、上架后的游戏需要从游戏中心下载 APK 包进行安装
## 2.搜狗 ##
### 参数QQ_APPID要自行到QQ开放平台申请手Q ID ###
签名必须跟应用宝YSDK一致
## 3.华为 ##
### 需要母包删除 libs 中的 YouaiSDK.jar 再打包 ###
## 4.三星 ##
### 参数 waresid 为商品ID,需去三星后台设置为应用传入价格 ###
## 5.联想 ##
### waresid请到联想后台申请商品编码(使用开放价格模式) ###
## 6.UC ##
### 提交角色信息接口 ###
PoolSdkHelper.submitRoleData接口中的角色创建时间和角色等级变化时间需传正确的值,否则不过审
poolRoleInfo.setRoleChangeTime();//角色等级变化时间
poolRoleInfo.setRoleCTime();//角色创建时间
## 7.酷派 ##
### platPublicKey平台公钥默认值 ###
```
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLx50R+CpH6VD/EfavOTpHOydfAQVjvm/h/SGG/RbM/03ZDfk8JrgezyFwqX06pjKevHZz66Umoq1/3Z9oqhBlJezsM03q2woKbReGSKAPQSkuJg2FY6DdZ1v1gMuCRtF6WOHV7n2TbUvRhZugMpx8PJEV+r6Qf1L41Gt8w6FN8wIDAQAB
```
如渠道有提供以提供为准,没有填默认值
## 8.应用宝YSDK ##
### 请保留好在应用宝后台申请时使用的签名文件,打包时需使用一致的 ###
## 9.OPPO ##
### publicKey应用公钥 ###
```
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCmreYIkPwVovKR8rLHWlFVw7YDfm9uQOJKL89Smt6ypXGVdrAKKl0wNYc3/jecAoPi2ylChfa2iRu5gunJyNmpWZzlCNRIau55fxGW0XEu553IiprOZcaw5OuYGlf60ga8QT6qToP0/dpiL/ZbmNUO9kUhosIjEu22uFgR+5cYyQIDAQAB
```
如渠道有提供以提供为准,没有填默认值
## 10.HTC ##
### joloPrivateKey私钥 ###
- "HTC秘钥生成工具与文档"
[https://pan.baidu.com/s/1dE7FSm1](https://pan.baidu.com/s/1dE7FSm1 "HTC秘钥生成工具与文档")
强烈建议找渠道技术帮忙生成
## 11.卓易 ##
### 1.注册账号时输入的账号密码文字颜色和输入框底色相同 ###
<Application>的theme改成android:theme="@android:style/Theme.Black.NoTitleBar"
或者把Activity的theme改成android:theme="@android:style/Theme.Black.NoTitleBar"
### 2.集成到游戏后,发现卓易悬浮图标点击没反应 ###
如果是Unity3D的游戏的话,由于Unity3D和Android之间的事件冲突,导致Android事件得不到响应。
解决办法是,需要将游戏的主Activity(游戏入口)默认继承的NativeActivity或UnityPlayerNativeActivity改为继承Activity,把UnityPlayerNativeActivity里面的方法(如下图所示)拷贝到主Activity。
现在最新Unity3D版本游戏入口也是默认继承Activity。
![](http://i.imgur.com/SlVKWAp.png)
## 12. 打包 ##
参数提前确定准备好,尤其是icon,闪图那些
填写某渠道参数时,请牢记到对应渠道后台填写充值回调地址
No preview for this file type

121 KB | W: | H:

57.5 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

149 KB | W: | H:

149 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

48.8 KB | W: | H:

48.8 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

98.7 KB | W: | H:

98.7 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
No preview for this file type
No preview for this file type
No preview for this file type