lizhihui

更新0823版本

Showing 47 changed files with 195 additions and 195 deletions
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
26044C0B211D3DE500C7A6ED /* XpeiSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26044C0A211D3DE500C7A6ED /* XpeiSDK.framework */; };
26449088212E685800EA3BCC /* OtakusSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26449087212E685800EA3BCC /* OtakusSDK.framework */; };
8425EC1A1F0E3CBD00B0D868 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8425EC191F0E3CBD00B0D868 /* PoolSdk.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* pool_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* pool_setting */; };
......@@ -60,7 +60,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
26044C0A211D3DE500C7A6ED /* XpeiSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = XpeiSDK.framework; sourceTree = "<group>"; };
26449087212E685800EA3BCC /* OtakusSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = OtakusSDK.framework; sourceTree = "<group>"; };
8425EC191F0E3CBD00B0D868 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.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>"; };
......@@ -104,12 +104,12 @@
buildActionMask = 2147483647;
files = (
8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
26044C0B211D3DE500C7A6ED /* XpeiSDK.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
26449088212E685800EA3BCC /* OtakusSDK.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
......@@ -136,7 +136,7 @@
8476DF631C4DD70500EC42BA /* poolsdk_file */ = {
isa = PBXGroup;
children = (
26044C0A211D3DE500C7A6ED /* XpeiSDK.framework */,
26449087212E685800EA3BCC /* OtakusSDK.framework */,
8476DF641C4DD71D00EC42BA /* poolsdk */,
);
name = poolsdk_file;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface OtakusAllManager : NSObject
{
NSString* OtakusCKAPPID_;
NSString* OtakusCKAPPKEY_;
NSString* OtakusInviterCode_;
}
@property bool OtakusGeiWoHuaQianBa;
+ (OtakusAllManager *)OtakusInstance;
- (void)OtakusChuShiHua;
- (void)OtakusDengLu:(NSString *)OtakusCKAPPID : (NSString *)OtakusCKAPPKEY : (UIViewController *)controller;
- (void)OtakusYangShi:(NSString*)OtakusLeiXing;
- (void)OtakusCKQuery: (NSString *)OtakusFuWuQiID : (NSString *)OtakusNickName : (NSNumber *)OtakusAmount : (NSString *)OtakusCallBack : (UIViewController *)controller;
- (void)OtakusCKQueryOperation:(UIViewController*)controll OtakusHuoWuID:(NSString*)products OtakusJiaGe:(NSString*)amount OtakusHuoWuMing:(NSString*)productName OtakusDingDanHao:(NSString*) DingDanHao;
@end
#import <UIKit/UIKit.h>
@interface XpeiCKRecorder : NSObject
@interface OtakusDiZhi : NSObject
+ (NSString *)XpeiSKCloudServiceSetupOptionsKey;
+ (NSString *)OtakusSKCloudServiceSetupOptionsKey;
@end
......
#import <Foundation/Foundation.h>
extern NSString * const OtakusCKAssetsExitNotification;
extern NSString * const OtakusCKAssetsLoginNotification;
extern NSString * const OtakusCKAssetsErrorNotification;
@interface OtakusHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface OtakusIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* OtakusDingDanHao;
@property(nonatomic,strong) NSDictionary* OtakusHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* OtakusHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *OtakusHuoWuLieBiaoView;
- (void)OtakusHuaQianView:(UIViewController*)controller OtakusHuoWuD:(NSString*)products OtakusQian:(NSString*)amount OtakusHuoWuMing:(NSString*)productName OtakusDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "XpeiIAPShareHelper.h"
#import "OtakusXinXi.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface XpeiCKRecordZone : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface OtakusMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL XpeiYouYuanJiao;
@property(assign) BOOL OtakusYouYuanJiao;
- (void)XpeiSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)XpeiChuShiHuaWebView;
- (void)OtakusSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)OtakusChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface OtakusMsgJM : NSObject
+(NSString *)OtakusJM:(NSString *)jm;
+(void)OtakusEmptyqweS12Jijis;
+(void)OtakusEmptyjqw3123eakdjl;
+(void)OtakusEmptynqw123evcxnklr;
-(void)OtakusEmptyasqw123edll;
-(void)OtakusEmptyasqw12312edlasdl;
-(void)OtakusEmptyasdq3123wellasd;
+(void)OtakusEmptyain;
-(void)OtakusEmptybuain;
@end
#import <Foundation/Foundation.h>
@interface XpeiIAPShareHelper : NSObject
@interface OtakusXinXi : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (XpeiIAPShareHelper *)getInstance;
+ (OtakusXinXi *)getInstance;
@end
......
No preview for this file type
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface XpeiCKManager : NSObject
{
NSString* XpeiCKAPPID_;
NSString* XpeiCKAPPKEY_;
NSString* XpeiInviterCode_;
}
@property bool XpeiGeiWoHuaQianBa;
+ (XpeiCKManager *)XpeiInstance;
- (void)XpeiChuShiHua;
- (void)XpeiDengLu:(NSString *)XpeiCKAPPID : (NSString *)XpeiCKAPPKEY : (UIViewController *)controller;
- (void)XpeiYangShi:(NSString*)XpeiLeiXing;
- (void)XpeiCKQuery: (NSString *)XpeiFuWuQiID : (NSString *)XpeiNickName : (NSNumber *)XpeiAmount : (NSString *)XpeiCallBack : (UIViewController *)controller;
- (void)XpeiCKQueryOperation:(UIViewController*)controll XpeiShangPinID:(NSString*)products XpeiJiaGe:(NSString*)amount XpeiShangPinMing:(NSString*)productName XpeiDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface XpeiCKRecordZoneJM : NSObject
+(NSString *)XpeiJM:(NSString *)jm;
+(void)XpeiqweS12Jijisd;
+(void)Xpeijqw3123eakdjl;
+(void)Xpeinqw123evcxnklr;
-(void)Xpeiasqw123edll;
-(void)Xpeiasqw12312edlasdl;
-(void)Xpeiasdq3123wellasd;
+(void)Xpeiaini;
-(void)Xpeibuaini;
@end
#import <Foundation/Foundation.h>
extern NSString * const XpeiCKAssetsExitNotification;
extern NSString * const XpeiCKAssetsLoginNotification;
extern NSString * const XpeiCKAssetsErrorNotification;
@interface XpeiHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface XpeiIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* XpeiDingDanHao;
@property(nonatomic,strong) NSDictionary* XpeiShangPinLieBiao;
@property(nonatomic,strong) NSMutableArray* XpeiShangPinIDLieBiao;
@property(nonatomic, strong) UITableView *XpeiShangPinLieBiaoView;
- (void)XpeiHuaQianView:(UIViewController*)controller XpeiShangPinD:(NSString*)products XpeiQian:(NSString*)amount XpeiShangPinMing:(NSString*)productName XpeiDingDanHao:(NSString*)DingDanHao;
@end
No preview for this file type
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "XpeiSDK/XpeiCKManager.h"
#import "XpeiSDK/XpeiHuiTiaoNotification.h"
#import "XpeiSDK/XpeiIAPShareHelper.h"
#import "OtakusSDK/OtakusAllManager.h"
#import "OtakusSDK/OtakusHuiTiaoNotification.h"
#import "OtakusSDK/OtakusXinXi.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *XpeiSDKAppId;
NSString *XpeiSDKAppKey;
NSString *OtakusSDKAppId;
NSString *OtakusSDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *XpeiSDKAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[XpeiCKManager XpeiInstance]XpeiChuShiHua];
[[XpeiCKManager XpeiInstance]XpeiYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:XpeiCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"XpeiCKAssetsToolCallBack" object:nil];
[[OtakusAllManager OtakusInstance]OtakusChuShiHua];
[[OtakusAllManager OtakusInstance]OtakusYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:OtakusCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"OtakusCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *XpeiSDKAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
XpeiSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
XpeiSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[XpeiCKManager XpeiInstance]XpeiDengLu:XpeiSDKAppId :XpeiSDKAppKey :self.controller];
OtakusSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
OtakusSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[OtakusAllManager OtakusInstance]OtakusDengLu:OtakusSDKAppId :OtakusSDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *XpeiSDKAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[XpeiIAPShareHelper getInstance]openId];
loginInfo.sign = [[XpeiIAPShareHelper getInstance] token];
loginInfo.timestamp = [[XpeiIAPShareHelper getInstance] timestamp];
loginInfo.openId = [[OtakusXinXi getInstance]openId];
loginInfo.sign = [[OtakusXinXi getInstance] token];
loginInfo.timestamp = [[OtakusXinXi getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *XpeiSDKAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"XpeiCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"OtakusCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *XpeiSDKAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[XpeiCKManager XpeiInstance] XpeiCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
[[OtakusAllManager OtakusInstance] OtakusCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
}else{
NSString* products = [payInfo products];
[[XpeiCKManager XpeiInstance] XpeiCKQueryOperation:self.controller XpeiShangPinID:products XpeiJiaGe:[payInfo postAmount] XpeiShangPinMing:[payInfo productName] XpeiDingDanHao:queryId];
[[OtakusAllManager OtakusInstance] OtakusCKQueryOperation:self.controller OtakusHuoWuID:products OtakusJiaGe:[payInfo postAmount] OtakusHuoWuMing:[payInfo productName] OtakusDingDanHao:queryId];
}
}
......
{"renyunAppKey": "edac9e6bf2fc5eb8423af546c129d284", "payorderurl": "https://public.sdk.gzyouai.com/paycheck/create", "usertype": 150, "sdkSimpleName": "apple_youyu", "gamechannelid": "", "APP_KEY": "d724b75942454a0825caee31f51d4774", "custom": "{}", "sdkVersionCode": "V1_1", "loginCheckUrl": "https://public.sdk.gzyouai.com/logincheck/check", "appScheme": "com.jghb.xinqinji", "c2": "", "c1": "", "APP_ID": "5a2df3c7f0d7700a6f4124ca", "paycheckurl": "https://public.sdk.gzyouai.com/paycheck/confirm", "gameSimpleName": "xqj_hb"}
{"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"}
......
新接入请参考对接文档和demo<br>
2018-08-10:<br>
2018-08-23:<br>
在上版本基础上,更新了4、5、6点后,已接入快速更新方法<br>
1、删除pool_file文件夹中HMHomeSDK.framework或者DevCatSDK.framework<br>
2、引入XpeiSDK.framework<br>
3、替换SDKInterface.m文件<br>
1、``` 删除pool_file文件夹中XpeiSDK.framework或者DevCatSDK.framework ``` <br>
2、引入 ``` OtakusSDK.framework ``` <br>
3、替换 ``` SDKInterface.m文件 ``` <br>
2018-05-28: ``` (在此日期之后接入的可以忽略) ``` <br>
已接入快速更新方法<br>
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface OtakusAllManager : NSObject
{
NSString* OtakusCKAPPID_;
NSString* OtakusCKAPPKEY_;
NSString* OtakusInviterCode_;
}
@property bool OtakusGeiWoHuaQianBa;
+ (OtakusAllManager *)OtakusInstance;
- (void)OtakusChuShiHua;
- (void)OtakusDengLu:(NSString *)OtakusCKAPPID : (NSString *)OtakusCKAPPKEY : (UIViewController *)controller;
- (void)OtakusYangShi:(NSString*)OtakusLeiXing;
- (void)OtakusCKQuery: (NSString *)OtakusFuWuQiID : (NSString *)OtakusNickName : (NSNumber *)OtakusAmount : (NSString *)OtakusCallBack : (UIViewController *)controller;
- (void)OtakusCKQueryOperation:(UIViewController*)controll OtakusHuoWuID:(NSString*)products OtakusJiaGe:(NSString*)amount OtakusHuoWuMing:(NSString*)productName OtakusDingDanHao:(NSString*) DingDanHao;
@end
#import <UIKit/UIKit.h>
@interface XpeiCKRecorder : NSObject
@interface OtakusDiZhi : NSObject
+ (NSString *)XpeiSKCloudServiceSetupOptionsKey;
+ (NSString *)OtakusSKCloudServiceSetupOptionsKey;
@end
......
#import <Foundation/Foundation.h>
extern NSString * const OtakusCKAssetsExitNotification;
extern NSString * const OtakusCKAssetsLoginNotification;
extern NSString * const OtakusCKAssetsErrorNotification;
@interface OtakusHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface OtakusIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* OtakusDingDanHao;
@property(nonatomic,strong) NSDictionary* OtakusHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* OtakusHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *OtakusHuoWuLieBiaoView;
- (void)OtakusHuaQianView:(UIViewController*)controller OtakusHuoWuD:(NSString*)products OtakusQian:(NSString*)amount OtakusHuoWuMing:(NSString*)productName OtakusDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "XpeiIAPShareHelper.h"
#import "OtakusXinXi.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface XpeiCKRecordZone : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface OtakusMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL XpeiYouYuanJiao;
@property(assign) BOOL OtakusYouYuanJiao;
- (void)XpeiSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)XpeiChuShiHuaWebView;
- (void)OtakusSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)OtakusChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface OtakusMsgJM : NSObject
+(NSString *)OtakusJM:(NSString *)jm;
+(void)OtakusEmptyqweS12Jijis;
+(void)OtakusEmptyjqw3123eakdjl;
+(void)OtakusEmptynqw123evcxnklr;
-(void)OtakusEmptyasqw123edll;
-(void)OtakusEmptyasqw12312edlasdl;
-(void)OtakusEmptyasdq3123wellasd;
+(void)OtakusEmptyain;
-(void)OtakusEmptybuain;
@end
#import <Foundation/Foundation.h>
@interface XpeiIAPShareHelper : NSObject
@interface OtakusXinXi : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (XpeiIAPShareHelper *)getInstance;
+ (OtakusXinXi *)getInstance;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "XpeiSDK/XpeiCKManager.h"
#import "XpeiSDK/XpeiHuiTiaoNotification.h"
#import "XpeiSDK/XpeiIAPShareHelper.h"
#import "OtakusSDK/OtakusAllManager.h"
#import "OtakusSDK/OtakusHuiTiaoNotification.h"
#import "OtakusSDK/OtakusXinXi.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *XpeiSDKAppId;
NSString *XpeiSDKAppKey;
NSString *OtakusSDKAppId;
NSString *OtakusSDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *XpeiSDKAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[XpeiCKManager XpeiInstance]XpeiChuShiHua];
[[XpeiCKManager XpeiInstance]XpeiYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:XpeiCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"XpeiCKAssetsToolCallBack" object:nil];
[[OtakusAllManager OtakusInstance]OtakusChuShiHua];
[[OtakusAllManager OtakusInstance]OtakusYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:OtakusCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"OtakusCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *XpeiSDKAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
XpeiSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
XpeiSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[XpeiCKManager XpeiInstance]XpeiDengLu:XpeiSDKAppId :XpeiSDKAppKey :self.controller];
OtakusSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
OtakusSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[OtakusAllManager OtakusInstance]OtakusDengLu:OtakusSDKAppId :OtakusSDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *XpeiSDKAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[XpeiIAPShareHelper getInstance]openId];
loginInfo.sign = [[XpeiIAPShareHelper getInstance] token];
loginInfo.timestamp = [[XpeiIAPShareHelper getInstance] timestamp];
loginInfo.openId = [[OtakusXinXi getInstance]openId];
loginInfo.sign = [[OtakusXinXi getInstance] token];
loginInfo.timestamp = [[OtakusXinXi getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *XpeiSDKAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"XpeiCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"OtakusCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *XpeiSDKAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[XpeiCKManager XpeiInstance] XpeiCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
[[OtakusAllManager OtakusInstance] OtakusCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
}else{
NSString* products = [payInfo products];
[[XpeiCKManager XpeiInstance] XpeiCKQueryOperation:self.controller XpeiShangPinID:products XpeiJiaGe:[payInfo postAmount] XpeiShangPinMing:[payInfo productName] XpeiDingDanHao:queryId];
[[OtakusAllManager OtakusInstance] OtakusCKQueryOperation:self.controller OtakusHuoWuID:products OtakusJiaGe:[payInfo postAmount] OtakusHuoWuMing:[payInfo productName] OtakusDingDanHao:queryId];
}
}
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface XpeiCKManager : NSObject
{
NSString* XpeiCKAPPID_;
NSString* XpeiCKAPPKEY_;
NSString* XpeiInviterCode_;
}
@property bool XpeiGeiWoHuaQianBa;
+ (XpeiCKManager *)XpeiInstance;
- (void)XpeiChuShiHua;
- (void)XpeiDengLu:(NSString *)XpeiCKAPPID : (NSString *)XpeiCKAPPKEY : (UIViewController *)controller;
- (void)XpeiYangShi:(NSString*)XpeiLeiXing;
- (void)XpeiCKQuery: (NSString *)XpeiFuWuQiID : (NSString *)XpeiNickName : (NSNumber *)XpeiAmount : (NSString *)XpeiCallBack : (UIViewController *)controller;
- (void)XpeiCKQueryOperation:(UIViewController*)controll XpeiShangPinID:(NSString*)products XpeiJiaGe:(NSString*)amount XpeiShangPinMing:(NSString*)productName XpeiDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface XpeiCKRecordZoneJM : NSObject
+(NSString *)XpeiJM:(NSString *)jm;
+(void)XpeiqweS12Jijisd;
+(void)Xpeijqw3123eakdjl;
+(void)Xpeinqw123evcxnklr;
-(void)Xpeiasqw123edll;
-(void)Xpeiasqw12312edlasdl;
-(void)Xpeiasdq3123wellasd;
+(void)Xpeiaini;
-(void)Xpeibuaini;
@end
#import <Foundation/Foundation.h>
extern NSString * const XpeiCKAssetsExitNotification;
extern NSString * const XpeiCKAssetsLoginNotification;
extern NSString * const XpeiCKAssetsErrorNotification;
@interface XpeiHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface XpeiIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* XpeiDingDanHao;
@property(nonatomic,strong) NSDictionary* XpeiShangPinLieBiao;
@property(nonatomic,strong) NSMutableArray* XpeiShangPinIDLieBiao;
@property(nonatomic, strong) UITableView *XpeiShangPinLieBiaoView;
- (void)XpeiHuaQianView:(UIViewController*)controller XpeiShangPinD:(NSString*)products XpeiQian:(NSString*)amount XpeiShangPinMing:(NSString*)productName XpeiDingDanHao:(NSString*)DingDanHao;
@end