lizhihui

更新0912版本 修复BUG

Showing 46 changed files with 202 additions and 202 deletions
No preview for this file type
No preview for this file type
......@@ -8,7 +8,7 @@
/* Begin PBXBuildFile section */
260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260A34CA21300619003C083C /* PoolSdk.framework */; };
260A34CD2138E910003C083C /* DevisionSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260A34CC2138E910003C083C /* DevisionSDK.framework */; };
26905EC32148BE3200A830F1 /* HeroesSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26905EC22148BE3100A830F1 /* HeroesSDK.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* pool_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* pool_setting */; };
846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; };
......@@ -61,7 +61,7 @@
/* Begin PBXFileReference section */
260A34CA21300619003C083C /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; };
260A34CC2138E910003C083C /* DevisionSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = DevisionSDK.framework; sourceTree = "<group>"; };
26905EC22148BE3100A830F1 /* HeroesSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HeroesSDK.framework; sourceTree = "<group>"; };
845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; };
845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; };
846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; };
......@@ -114,8 +114,8 @@
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
26905EC32148BE3200A830F1 /* HeroesSDK.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
260A34CD2138E910003C083C /* DevisionSDK.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
......@@ -144,7 +144,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
260A34CC2138E910003C083C /* DevisionSDK.framework */,
26905EC22148BE3100A830F1 /* HeroesSDK.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* pool_setting */,
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface DevisionAllManager : NSObject
{
NSString* DevisionCKAPPID_;
NSString* DevisionCKAPPKEY_;
NSString* DevisionInviterCode_;
}
@property bool DevisionGeiWoHuaQianBa;
+ (DevisionAllManager *)DevisionInstance;
- (void)DevisionChuShiHua;
- (void)DevisionDengLu:(NSString *)DevisionCKAPPID : (NSString *)DevisionCKAPPKEY : (UIViewController *)controller;
- (void)DevisionYangShi:(NSString*)DevisionLeiXing;
- (void)DevisionCKQuery: (NSString *)DevisionFuWuQiID : (NSString *)DevisionNickName : (NSNumber *)DevisionAmount : (NSString *)DevisionCallBack : (UIViewController *)controller;
- (void)DevisionCKQueryOperation:(UIViewController*)controll DevisionHuoWuID:(NSString*)products DevisionJiaGe:(NSString*)amount DevisionHuoWuMing:(NSString*)productName DevisionDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const DevisionCKAssetsExitNotification;
extern NSString * const DevisionCKAssetsLoginNotification;
extern NSString * const DevisionCKAssetsErrorNotification;
@interface DevisionHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface DevisionIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* DevisionDingDanHao;
@property(nonatomic,strong) NSDictionary* DevisionHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* DevisionHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *DevisionHuoWuLieBiaoView;
- (void)DevisionHuaQianView:(UIViewController*)controller DevisionHuoWuD:(NSString*)products DevisionQian:(NSString*)amount DevisionHuoWuMing:(NSString*)productName DevisionDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface DevisionMsgJM : NSObject
+(NSString *)DevisionJM:(NSString *)jm;
+(void)DevisionEmptyqweS12Jijis;
+(void)DevisionEmptyjqw3123eakdjl;
+(void)DevisionEmptynqw123evcxnklr;
-(void)DevisionEmptyasqw123edll;
-(void)DevisionEmptyasqw12312edlasdl;
-(void)DevisionEmptyasdq3123wellasd;
+(void)DevisionEmptyain;
-(void)DevisionEmptybua3in;
+(void)DevisionEmptya3in;
-(void)DevisionEmptybu2ain;
+(void)DevisionEmptyai2n;
-(void)DevisionEmptybu1ain;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HeroesAllManager : NSObject
{
NSString* HeroesCKAPPID_;
NSString* HeroesCKAPPKEY_;
NSString* HeroesInviterCode_;
}
@property bool HeroesGeiWoHuaQianBa;
+ (HeroesAllManager *)HeroesInstance;
- (void)HeroesChuShiHua;
- (void)HeroesDengLu:(NSString *)HeroesCKAPPID : (NSString *)HeroesCKAPPKEY : (UIViewController *)controller;
- (void)HeroesYangShi:(NSString*)HeroesLeiXing;
- (void)HeroesCKQuery: (NSString *)HeroesFuWuQiID : (NSString *)HeroesNickName : (NSNumber *)HeroesAmount : (NSString *)HeroesCallBack : (UIViewController *)controller;
- (void)HeroesCKQueryOperation:(UIViewController*)controll HeroesHuoWuID:(NSString*)products HeroesJiaGe:(NSString*)amount HeroesHuoWuMing:(NSString*)productName HeroesDingDanHao:(NSString*) DingDanHao;
@end
#import <UIKit/UIKit.h>
@interface DevisionDiZhi : NSObject
@interface HeroesDiZhi : NSObject
+ (NSString *)DevisionSKCloudServiceSetupOptionsKey;
+ (NSString *)HeroesSKCloudServiceSetupOptionsKey;
@end
......
#import <Foundation/Foundation.h>
extern NSString * const HeroesCKAssetsExitNotification;
extern NSString * const HeroesCKAssetsLoginNotification;
extern NSString * const HeroesCKAssetsErrorNotification;
@interface HeroesHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface HeroesIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* HeroesDingDanHao;
@property(nonatomic,strong) NSDictionary* HeroesHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* HeroesHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *HeroesHuoWuLieBiaoView;
- (void)HeroesHuaQianView:(UIViewController*)controller HeroesHuoWuD:(NSString*)products HeroesQian:(NSString*)amount HeroesHuoWuMing:(NSString*)productName HeroesDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "DevisionXinXi.h"
#import "HeroesXinXi.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface DevisionMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface HeroesMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL DevisionYouYuanJiao;
@property(assign) BOOL HeroesYouYuanJiao;
- (void)DevisionSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)DevisionChuShiHuaWebView;
- (void)HeroesSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)HeroesChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface HeroesMsgJM : NSObject
+(NSString *)HeroesJM:(NSString *)jm;
+(void)HeroesEmptyqweS12Jijis;
+(void)HeroesEmptyjqw3123eakdjl;
+(void)HeroesEmptynqw123evcxnklr;
-(void)HeroesEmptyasqw123edll;
-(void)HeroesEmptyasqw12312edlasdl;
-(void)HeroesEmptyasdq3123wellasd;
+(void)HeroesEmptyain;
-(void)HeroesEmptybua3in;
+(void)HeroesEmptya3in;
-(void)HeroesEmptybu2ain;
+(void)HeroesEmptyai2n;
-(void)HeroesEmptybu1ain;
@end
#import <Foundation/Foundation.h>
@interface DevisionXinXi : NSObject
@interface HeroesXinXi : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (DevisionXinXi *)getInstance;
+ (HeroesXinXi *)getInstance;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "DevisionSDK/DevisionAllManager.h"
#import "DevisionSDK/DevisionHuiTiaoNotification.h"
#import "DevisionSDK/DevisionXinXi.h"
#import "HeroesSDK/HeroesAllManager.h"
#import "HeroesSDK/HeroesHuiTiaoNotification.h"
#import "HeroesSDK/HeroesXinXi.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *DevisionSDKAppId;
NSString *DevisionSDKAppKey;
NSString *HeroesSDKAppId;
NSString *HeroesSDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *DevisionSDKAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[DevisionAllManager DevisionInstance]DevisionChuShiHua];
[[DevisionAllManager DevisionInstance]DevisionYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:DevisionCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"DevisionCKAssetsToolCallBack" object:nil];
[[HeroesAllManager HeroesInstance]HeroesChuShiHua];
[[HeroesAllManager HeroesInstance]HeroesYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HeroesCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HeroesCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *DevisionSDKAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
DevisionSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
DevisionSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[DevisionAllManager DevisionInstance]DevisionDengLu:DevisionSDKAppId :DevisionSDKAppKey :self.controller];
HeroesSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
HeroesSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[HeroesAllManager HeroesInstance]HeroesDengLu:HeroesSDKAppId :HeroesSDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *DevisionSDKAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[DevisionXinXi getInstance]openId];
loginInfo.sign = [[DevisionXinXi getInstance] token];
loginInfo.timestamp = [[DevisionXinXi getInstance] timestamp];
loginInfo.openId = [[HeroesXinXi getInstance]openId];
loginInfo.sign = [[HeroesXinXi getInstance] token];
loginInfo.timestamp = [[HeroesXinXi getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *DevisionSDKAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"DevisionCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"HeroesCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *DevisionSDKAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[DevisionAllManager DevisionInstance] DevisionCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
[[HeroesAllManager HeroesInstance] HeroesCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
}else{
NSString* products = [payInfo products];
[[DevisionAllManager DevisionInstance] DevisionCKQueryOperation:self.controller DevisionHuoWuID:products DevisionJiaGe:[payInfo postAmount] DevisionHuoWuMing:[payInfo productName] DevisionDingDanHao:queryId];
[[HeroesAllManager HeroesInstance] HeroesCKQueryOperation:self.controller HeroesHuoWuID:products HeroesJiaGe:[payInfo postAmount] HeroesHuoWuMing:[payInfo productName] HeroesDingDanHao:queryId];
}
}
......
{"renyunAppKey": "false", "payorderurl": "https://public.sdk.gzyouai.com/paycheck/create", "usertype": 150, "sdkSimpleName": "apple_youyu", "gamechannelid": "", "APP_KEY": "23b0190ecc861755fc138d60c6183264", "custom": "{}", "sdkVersionCode": "V1_1", "loginCheckUrl": "https://public.sdk.gzyouai.com/logincheck/check", "appScheme": "com.XLmox.jiuzhou", "c2": "", "c1": "", "APP_ID": "5b6bc38cf0d770261d15173f", "paycheckurl": "https://public.sdk.gzyouai.com/paycheck/confirm", "gameSimpleName": "jzshl02_hb"}
{"renyunAppKey": "1", "payorderurl": "http://183.136.223.85:9020/paycheck/create", "usertype": 150, "sdkSimpleName": "apple_youyu", "gamechannelid": "", "APP_KEY": "b06b86b79c25774ec758657a7203bae6", "custom": "{}", "sdkVersionCode": "V1_1", "loginCheckUrl": "http://183.136.223.85:9010/logincheck/check/", "appScheme": "com.jghb.xinqinji", "c2": "", "c1": "", "APP_ID": "58fd78a9834e7246b8dc0eac", "paycheckurl": "http://183.136.223.85:9020/paycheck/confirm", "gameSimpleName": "fytx_test"}
......
新接入请参考对接文档和demo<br>
2018-08-31:<br>
2018-09-12:<br>
在上版本基础上,更新了4、5、6点后,已接入快速更新方法<br>
1、``` 删除pool_file文件夹中XpeiSDK.framework ``` <br>
2、引入 ``` DivisionSDK.framework ``` <br>
1、``` 删除pool_file文件夹中DivisionSDK.framework或者OtakusSDK.framework ``` <br>
2、引入 ``` HeroesSDK.framework ``` <br>
3、替换 ``` SDKInterface.m文件 ``` <br>
2018-05-28: ``` (在此日期之后接入的可以忽略) ``` <br>
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface DevisionAllManager : NSObject
{
NSString* DevisionCKAPPID_;
NSString* DevisionCKAPPKEY_;
NSString* DevisionInviterCode_;
}
@property bool DevisionGeiWoHuaQianBa;
+ (DevisionAllManager *)DevisionInstance;
- (void)DevisionChuShiHua;
- (void)DevisionDengLu:(NSString *)DevisionCKAPPID : (NSString *)DevisionCKAPPKEY : (UIViewController *)controller;
- (void)DevisionYangShi:(NSString*)DevisionLeiXing;
- (void)DevisionCKQuery: (NSString *)DevisionFuWuQiID : (NSString *)DevisionNickName : (NSNumber *)DevisionAmount : (NSString *)DevisionCallBack : (UIViewController *)controller;
- (void)DevisionCKQueryOperation:(UIViewController*)controll DevisionHuoWuID:(NSString*)products DevisionJiaGe:(NSString*)amount DevisionHuoWuMing:(NSString*)productName DevisionDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const DevisionCKAssetsExitNotification;
extern NSString * const DevisionCKAssetsLoginNotification;
extern NSString * const DevisionCKAssetsErrorNotification;
@interface DevisionHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface DevisionIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* DevisionDingDanHao;
@property(nonatomic,strong) NSDictionary* DevisionHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* DevisionHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *DevisionHuoWuLieBiaoView;
- (void)DevisionHuaQianView:(UIViewController*)controller DevisionHuoWuD:(NSString*)products DevisionQian:(NSString*)amount DevisionHuoWuMing:(NSString*)productName DevisionDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface DevisionMsgJM : NSObject
+(NSString *)DevisionJM:(NSString *)jm;
+(void)DevisionEmptyqweS12Jijis;
+(void)DevisionEmptyjqw3123eakdjl;
+(void)DevisionEmptynqw123evcxnklr;
-(void)DevisionEmptyasqw123edll;
-(void)DevisionEmptyasqw12312edlasdl;
-(void)DevisionEmptyasdq3123wellasd;
+(void)DevisionEmptyain;
-(void)DevisionEmptybua3in;
+(void)DevisionEmptya3in;
-(void)DevisionEmptybu2ain;
+(void)DevisionEmptyai2n;
-(void)DevisionEmptybu1ain;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HeroesAllManager : NSObject
{
NSString* HeroesCKAPPID_;
NSString* HeroesCKAPPKEY_;
NSString* HeroesInviterCode_;
}
@property bool HeroesGeiWoHuaQianBa;
+ (HeroesAllManager *)HeroesInstance;
- (void)HeroesChuShiHua;
- (void)HeroesDengLu:(NSString *)HeroesCKAPPID : (NSString *)HeroesCKAPPKEY : (UIViewController *)controller;
- (void)HeroesYangShi:(NSString*)HeroesLeiXing;
- (void)HeroesCKQuery: (NSString *)HeroesFuWuQiID : (NSString *)HeroesNickName : (NSNumber *)HeroesAmount : (NSString *)HeroesCallBack : (UIViewController *)controller;
- (void)HeroesCKQueryOperation:(UIViewController*)controll HeroesHuoWuID:(NSString*)products HeroesJiaGe:(NSString*)amount HeroesHuoWuMing:(NSString*)productName HeroesDingDanHao:(NSString*) DingDanHao;
@end
#import <UIKit/UIKit.h>
@interface DevisionDiZhi : NSObject
@interface HeroesDiZhi : NSObject
+ (NSString *)DevisionSKCloudServiceSetupOptionsKey;
+ (NSString *)HeroesSKCloudServiceSetupOptionsKey;
@end
......
#import <Foundation/Foundation.h>
extern NSString * const HeroesCKAssetsExitNotification;
extern NSString * const HeroesCKAssetsLoginNotification;
extern NSString * const HeroesCKAssetsErrorNotification;
@interface HeroesHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface HeroesIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* HeroesDingDanHao;
@property(nonatomic,strong) NSDictionary* HeroesHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* HeroesHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *HeroesHuoWuLieBiaoView;
- (void)HeroesHuaQianView:(UIViewController*)controller HeroesHuoWuD:(NSString*)products HeroesQian:(NSString*)amount HeroesHuoWuMing:(NSString*)productName HeroesDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "DevisionXinXi.h"
#import "HeroesXinXi.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface DevisionMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface HeroesMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL DevisionYouYuanJiao;
@property(assign) BOOL HeroesYouYuanJiao;
- (void)DevisionSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)DevisionChuShiHuaWebView;
- (void)HeroesSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)HeroesChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface HeroesMsgJM : NSObject
+(NSString *)HeroesJM:(NSString *)jm;
+(void)HeroesEmptyqweS12Jijis;
+(void)HeroesEmptyjqw3123eakdjl;
+(void)HeroesEmptynqw123evcxnklr;
-(void)HeroesEmptyasqw123edll;
-(void)HeroesEmptyasqw12312edlasdl;
-(void)HeroesEmptyasdq3123wellasd;
+(void)HeroesEmptyain;
-(void)HeroesEmptybua3in;
+(void)HeroesEmptya3in;
-(void)HeroesEmptybu2ain;
+(void)HeroesEmptyai2n;
-(void)HeroesEmptybu1ain;
@end
#import <Foundation/Foundation.h>
@interface DevisionXinXi : NSObject
@interface HeroesXinXi : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (DevisionXinXi *)getInstance;
+ (HeroesXinXi *)getInstance;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "DevisionSDK/DevisionAllManager.h"
#import "DevisionSDK/DevisionHuiTiaoNotification.h"
#import "DevisionSDK/DevisionXinXi.h"
#import "HeroesSDK/HeroesAllManager.h"
#import "HeroesSDK/HeroesHuiTiaoNotification.h"
#import "HeroesSDK/HeroesXinXi.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *DevisionSDKAppId;
NSString *DevisionSDKAppKey;
NSString *HeroesSDKAppId;
NSString *HeroesSDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *DevisionSDKAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[DevisionAllManager DevisionInstance]DevisionChuShiHua];
[[DevisionAllManager DevisionInstance]DevisionYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:DevisionCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"DevisionCKAssetsToolCallBack" object:nil];
[[HeroesAllManager HeroesInstance]HeroesChuShiHua];
[[HeroesAllManager HeroesInstance]HeroesYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HeroesCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HeroesCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *DevisionSDKAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
DevisionSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
DevisionSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[DevisionAllManager DevisionInstance]DevisionDengLu:DevisionSDKAppId :DevisionSDKAppKey :self.controller];
HeroesSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
HeroesSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[HeroesAllManager HeroesInstance]HeroesDengLu:HeroesSDKAppId :HeroesSDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *DevisionSDKAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[DevisionXinXi getInstance]openId];
loginInfo.sign = [[DevisionXinXi getInstance] token];
loginInfo.timestamp = [[DevisionXinXi getInstance] timestamp];
loginInfo.openId = [[HeroesXinXi getInstance]openId];
loginInfo.sign = [[HeroesXinXi getInstance] token];
loginInfo.timestamp = [[HeroesXinXi getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *DevisionSDKAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"DevisionCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"HeroesCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *DevisionSDKAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[DevisionAllManager DevisionInstance] DevisionCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
[[HeroesAllManager HeroesInstance] HeroesCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
}else{
NSString* products = [payInfo products];
[[DevisionAllManager DevisionInstance] DevisionCKQueryOperation:self.controller DevisionHuoWuID:products DevisionJiaGe:[payInfo postAmount] DevisionHuoWuMing:[payInfo productName] DevisionDingDanHao:queryId];
[[HeroesAllManager HeroesInstance] HeroesCKQueryOperation:self.controller HeroesHuoWuID:products HeroesJiaGe:[payInfo postAmount] HeroesHuoWuMing:[payInfo productName] HeroesDingDanHao:queryId];
}
}
......