Commit abafb42249b3a6f74379cf0f71c66cd977b24f62
1 parent
e4307bd087
Exists in
master
修改初始化方法
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
doc/AndroidDocument.md
... | ... | @@ -117,7 +117,7 @@ Help==>About Eclips点击Android对应的图标就可以查看版本了. |
117 | 117 | GumpSDK.init(Appid, Appkey,FacebookId); |
118 | 118 | 如果需要定义渠道,必须使用如下方法 |
119 | 119 | |
120 | - GumpSDK.init(Appid, Appkey,FacebookId,ChannelId,ServerId,RoleId); | |
120 | + GumpSDK.init(Appid, Appkey,FacebookId,ChannelId); | |
121 | 121 | 2.调用GumpSDK的开始方法,将执行登录流程,需要一个Activity实例作参数 |
122 | 122 | |
123 | 123 | GumpSDK.start(Activity); |
... | ... | @@ -158,6 +158,8 @@ Help==>About Eclips点击Android对应的图标就可以查看版本了. |
158 | 158 | payInfo.putString("product", "元宝"); |
159 | 159 | payInfo.putFloat("amount", 40.0f); |
160 | 160 | payInfo.putString("extraInfo", "This is demo!"); |
161 | + payInfo.putString("serverId", "B4003"); | |
162 | + payInfo.putString("roleId", "10010"); | |
161 | 163 | GumpSDK.pay(MainActivity.this, payInfo); |
162 | 164 | 调用pay方法时,必须穿入一个bundle对象,包含如上字段,可以设置值为空,但是字段必须全部包含,支付完成仍然通过onActivityResult回调,requestCode为GumpSDK.PAY_REQUEST_CODE,回调信息除code和msg外,还含有orderId和传入的extraInfo. |
163 | 165 | 5.注销登录 |