Commit 51261096dc121e34c338a64e258e3ff1e3536b2d
1 parent
772f91c828
Exists in
master
and in
1 other branch
1、js 方法增加getChannelId的方法,获取参数。
2、sessionkey 失效时间接口返回相应修改。
Showing 2 changed files with 5 additions and 2 deletions Side-by-side Diff
ios/GameSDKDemo/GameSDKDemo.xcodeproj/project.xcworkspace/xcuserdata/yanglele.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
ios/GameSDKResources.bundle/Js.txt
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | var messagingIframe, |
3 | 3 | bridge = 'sdk', |
4 | 4 | CUSTOM_PROTOCOL_SCHEME = 'jscall'; |
5 | -var appId = '%@' ,deviceId='%@'; | |
5 | +var appId = '%@' ,deviceId='%@' ,channelId='%@'; | |
6 | 6 | |
7 | 7 | |
8 | 8 | if (window[bridge]) { return } |
... | ... | @@ -23,6 +23,9 @@ window[bridge]['getAppId']=function getAppId(){ |
23 | 23 | window[bridge]['getDeviceId']=function getDeviceId(){ |
24 | 24 | return deviceId; |
25 | 25 | }; |
26 | +window[bridge]['getChannelId']=function getChannelId(){ | |
27 | + return channelId; | |
28 | +}; | |
26 | 29 | |
27 | 30 | window[bridge]['closeWin'] = function closeWin(uid,nick,sessionKey){ |
28 | 31 | document.location=CUSTOM_PROTOCOL_SCHEME + ':' + arguments.callee.name + ':' + encodeURIComponent(JSON.stringify(arguments)); |
... | ... | @@ -43,4 +46,4 @@ _createQueueReadyIframe(document); |
43 | 46 | if(typeof(onInjectJsOver)=='function') |
44 | 47 | onInjectJsOver(); |
45 | 48 | |
46 | -})(); | |
47 | 49 | \ No newline at end of file |
50 | +})(); |