lizhihui

更新 181113 版本

Showing 41 changed files with 165 additions and 165 deletions
No preview for this file type
......@@ -8,7 +8,7 @@
/* Begin PBXBuildFile section */
260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260A34CA21300619003C083C /* PoolSdk.framework */; };
263A4CB921958B0B00DE9B28 /* SingleSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 263A4CB821958B0B00DE9B28 /* SingleSDK.framework */; };
263A4CBB219AC90000DE9B28 /* PepsiSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 263A4CBA219AC90000DE9B28 /* PepsiSDK.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 */; };
......@@ -60,7 +60,7 @@
/* Begin PBXFileReference section */
260A34CA21300619003C083C /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; };
263A4CB821958B0B00DE9B28 /* SingleSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = SingleSDK.framework; sourceTree = "<group>"; };
263A4CBA219AC90000DE9B28 /* PepsiSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PepsiSDK.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>"; };
......@@ -109,11 +109,11 @@
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
263A4CBB219AC90000DE9B28 /* PepsiSDK.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
263A4CB921958B0B00DE9B28 /* SingleSDK.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */,
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
263A4CB821958B0B00DE9B28 /* SingleSDK.framework */,
263A4CBA219AC90000DE9B28 /* PepsiSDK.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* pool_setting */,
......
#import <UIKit/UIKit.h>
@interface PepsiIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* PepsiDingDanHao;
@property(nonatomic,strong) NSDictionary* PepsiHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* PepsiHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *PepsiHuoWuLieBiaoView;
- (void)PepsiHuaQianView:(UIViewController*)controller PepsiHuoWuD:(NSString*)products PepsiQian:(NSString*)amount PepsiHuoWuMing:(NSString*)productName PepsiDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface PepsiAllManager : NSObject
{
NSString* PepsiCKAPPID_;
NSString* PepsiCKAPPKEY_;
NSString* PepsiInviterCode_;
}
@property bool PepsiGeiWoHuaQianBa;
+ (PepsiAllManager *)PepsiInstance;
- (void)PepsiChuShiHua;
- (void)PepsiDengLu:(NSString *)PepsiCKAPPID : (NSString *)PepsiCKAPPKEY : (UIViewController *)controller;
- (void)PepsiYangShi:(NSString*)PepsiLeiXing;
- (void)PepsiCKQuery: (NSString *)PepsiFuWuQiID : (NSString *)PepsiNickName : (NSNumber *)PepsiAmount : (NSString *)PepsiCallBack : (UIViewController *)controller : (NSString *)PepsiServerName;
- (void)PepsiCKQueryOperation:(UIViewController*)controll PepsiHuoWuID:(NSString*)products PepsiJiaGe:(NSString*)amount PepsiHuoWuMing:(NSString*)productName PepsiDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const PepsiCKAssetsExitNotification;
extern NSString * const PepsiCKAssetsLoginNotification;
extern NSString * const PepsiCKAssetsErrorNotification;
@interface PepsiHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface SingleLocation : NSObject
@interface PepsiLocation : NSObject
+ (NSString *)SingleSKCloudServiceSetupOptionsKey;
+ (NSString *)PepsiSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "SingleMessage.h"
#import "PepsiMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface SingleMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface PepsiMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL SingleYouYuanJiao;
@property(assign) BOOL PepsiYouYuanJiao;
- (void)SingleSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)SingleChuShiHuaWebView;
- (void)PepsiSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)PepsiChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface SingleMessage : NSObject
@interface PepsiMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (SingleMessage *)getInstance;
+ (PepsiMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface SingleMessageJM : NSObject
@interface PepsiMessageJM : NSObject
+(NSString *)SingleJM:(NSString *)jm;
+(NSString *)PepsiJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface SingleIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* SingleDingDanHao;
@property(nonatomic,strong) NSDictionary* SingleHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* SingleHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *SingleHuoWuLieBiaoView;
- (void)SingleHuaQianView:(UIViewController*)controller SingleHuoWuD:(NSString*)products SingleQian:(NSString*)amount SingleHuoWuMing:(NSString*)productName SingleDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface SingleAllManager : NSObject
{
NSString* SingleCKAPPID_;
NSString* SingleCKAPPKEY_;
NSString* SingleInviterCode_;
}
@property bool SingleGeiWoHuaQianBa;
+ (SingleAllManager *)SingleInstance;
- (void)SingleChuShiHua;
- (void)SingleDengLu:(NSString *)SingleCKAPPID : (NSString *)SingleCKAPPKEY : (UIViewController *)controller;
- (void)SingleYangShi:(NSString*)SingleLeiXing;
- (void)SingleCKQuery: (NSString *)SingleFuWuQiID : (NSString *)SingleNickName : (NSNumber *)SingleAmount : (NSString *)SingleCallBack : (UIViewController *)controller : (NSString *)SingleServerName;
- (void)SingleCKQueryOperation:(UIViewController*)controll SingleHuoWuID:(NSString*)products SingleJiaGe:(NSString*)amount SingleHuoWuMing:(NSString*)productName SingleDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const SingleCKAssetsExitNotification;
extern NSString * const SingleCKAssetsLoginNotification;
extern NSString * const SingleCKAssetsErrorNotification;
@interface SingleHuiTiaoNotification : NSObject
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "SingleSDK/SingleAllManager.h"
#import "SingleSDK/SingleHuiTiaoNotification.h"
#import "SingleSDK/SingleMessage.h"
#import "PepsiSDK/PepsiAllManager.h"
#import "PepsiSDK/PepsiHuiTiaoNotification.h"
#import "PepsiSDK/PepsiMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *SingleSDKAppId;
NSString *SingleSDKAppKey;
NSString *PepsiSDKAppId;
NSString *PepsiSDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *SingleSDKAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[SingleAllManager SingleInstance]SingleChuShiHua];
[[SingleAllManager SingleInstance]SingleYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SingleCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SingleCKAssetsToolCallBack" object:nil];
[[PepsiAllManager PepsiInstance]PepsiChuShiHua];
[[PepsiAllManager PepsiInstance]PepsiYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:PepsiCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"PepsiCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *SingleSDKAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
SingleSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
SingleSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[SingleAllManager SingleInstance]SingleDengLu:SingleSDKAppId :SingleSDKAppKey :self.controller];
PepsiSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
PepsiSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[PepsiAllManager PepsiInstance]PepsiDengLu:PepsiSDKAppId :PepsiSDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *SingleSDKAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[SingleMessage getInstance]openId];
loginInfo.sign = [[SingleMessage getInstance] token];
loginInfo.timestamp = [[SingleMessage getInstance] timestamp];
loginInfo.openId = [[PepsiMessage getInstance]openId];
loginInfo.sign = [[PepsiMessage getInstance] token];
loginInfo.timestamp = [[PepsiMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *SingleSDKAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"SingleCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"PepsiCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *SingleSDKAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[SingleAllManager SingleInstance] SingleCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[PepsiAllManager PepsiInstance] PepsiCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[SingleAllManager SingleInstance] SingleCKQueryOperation:self.controller SingleHuoWuID:products SingleJiaGe:[payInfo postAmount] SingleHuoWuMing:[payInfo productName] SingleDingDanHao:queryId];
[[PepsiAllManager PepsiInstance] PepsiCKQueryOperation:self.controller PepsiHuoWuID:products PepsiJiaGe:[payInfo postAmount] PepsiHuoWuMing:[payInfo productName] PepsiDingDanHao:queryId];
}
}
......
新接入请参考对接文档和demo<br>
2018-11-09:<br>
1、``` 删除pool_file文件夹中HalloweenSDK.framework ``` <br>
2、引入 ``` SingleSDK.framework ``` <br>
2018-11-13:<br>
1、``` 删除pool_file文件夹中SingleSDK.framework ``` <br>
2、引入 ``` PepsiSDK.framework ``` <br>
3、替换 ``` SDKInterface.m文件 ``` <br>
\ No newline at end of file
......
#import <UIKit/UIKit.h>
@interface PepsiIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* PepsiDingDanHao;
@property(nonatomic,strong) NSDictionary* PepsiHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* PepsiHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *PepsiHuoWuLieBiaoView;
- (void)PepsiHuaQianView:(UIViewController*)controller PepsiHuoWuD:(NSString*)products PepsiQian:(NSString*)amount PepsiHuoWuMing:(NSString*)productName PepsiDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface PepsiAllManager : NSObject
{
NSString* PepsiCKAPPID_;
NSString* PepsiCKAPPKEY_;
NSString* PepsiInviterCode_;
}
@property bool PepsiGeiWoHuaQianBa;
+ (PepsiAllManager *)PepsiInstance;
- (void)PepsiChuShiHua;
- (void)PepsiDengLu:(NSString *)PepsiCKAPPID : (NSString *)PepsiCKAPPKEY : (UIViewController *)controller;
- (void)PepsiYangShi:(NSString*)PepsiLeiXing;
- (void)PepsiCKQuery: (NSString *)PepsiFuWuQiID : (NSString *)PepsiNickName : (NSNumber *)PepsiAmount : (NSString *)PepsiCallBack : (UIViewController *)controller : (NSString *)PepsiServerName;
- (void)PepsiCKQueryOperation:(UIViewController*)controll PepsiHuoWuID:(NSString*)products PepsiJiaGe:(NSString*)amount PepsiHuoWuMing:(NSString*)productName PepsiDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const PepsiCKAssetsExitNotification;
extern NSString * const PepsiCKAssetsLoginNotification;
extern NSString * const PepsiCKAssetsErrorNotification;
@interface PepsiHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface SingleLocation : NSObject
@interface PepsiLocation : NSObject
+ (NSString *)SingleSKCloudServiceSetupOptionsKey;
+ (NSString *)PepsiSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "SingleMessage.h"
#import "PepsiMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface SingleMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface PepsiMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL SingleYouYuanJiao;
@property(assign) BOOL PepsiYouYuanJiao;
- (void)SingleSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)SingleChuShiHuaWebView;
- (void)PepsiSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)PepsiChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface SingleMessage : NSObject
@interface PepsiMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (SingleMessage *)getInstance;
+ (PepsiMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface SingleMessageJM : NSObject
@interface PepsiMessageJM : NSObject
+(NSString *)SingleJM:(NSString *)jm;
+(NSString *)PepsiJM:(NSString *)jm;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "SingleSDK/SingleAllManager.h"
#import "SingleSDK/SingleHuiTiaoNotification.h"
#import "SingleSDK/SingleMessage.h"
#import "PepsiSDK/PepsiAllManager.h"
#import "PepsiSDK/PepsiHuiTiaoNotification.h"
#import "PepsiSDK/PepsiMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *SingleSDKAppId;
NSString *SingleSDKAppKey;
NSString *PepsiSDKAppId;
NSString *PepsiSDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *SingleSDKAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[SingleAllManager SingleInstance]SingleChuShiHua];
[[SingleAllManager SingleInstance]SingleYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SingleCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SingleCKAssetsToolCallBack" object:nil];
[[PepsiAllManager PepsiInstance]PepsiChuShiHua];
[[PepsiAllManager PepsiInstance]PepsiYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:PepsiCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"PepsiCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *SingleSDKAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
SingleSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
SingleSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[SingleAllManager SingleInstance]SingleDengLu:SingleSDKAppId :SingleSDKAppKey :self.controller];
PepsiSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
PepsiSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[PepsiAllManager PepsiInstance]PepsiDengLu:PepsiSDKAppId :PepsiSDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *SingleSDKAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[SingleMessage getInstance]openId];
loginInfo.sign = [[SingleMessage getInstance] token];
loginInfo.timestamp = [[SingleMessage getInstance] timestamp];
loginInfo.openId = [[PepsiMessage getInstance]openId];
loginInfo.sign = [[PepsiMessage getInstance] token];
loginInfo.timestamp = [[PepsiMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *SingleSDKAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"SingleCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"PepsiCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *SingleSDKAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[SingleAllManager SingleInstance] SingleCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[PepsiAllManager PepsiInstance] PepsiCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[SingleAllManager SingleInstance] SingleCKQueryOperation:self.controller SingleHuoWuID:products SingleJiaGe:[payInfo postAmount] SingleHuoWuMing:[payInfo productName] SingleDingDanHao:queryId];
[[PepsiAllManager PepsiInstance] PepsiCKQueryOperation:self.controller PepsiHuoWuID:products PepsiJiaGe:[payInfo postAmount] PepsiHuoWuMing:[payInfo productName] PepsiDingDanHao:queryId];
}
}
......
#import <UIKit/UIKit.h>
@interface SingleIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* SingleDingDanHao;
@property(nonatomic,strong) NSDictionary* SingleHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* SingleHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *SingleHuoWuLieBiaoView;
- (void)SingleHuaQianView:(UIViewController*)controller SingleHuoWuD:(NSString*)products SingleQian:(NSString*)amount SingleHuoWuMing:(NSString*)productName SingleDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface SingleAllManager : NSObject
{
NSString* SingleCKAPPID_;
NSString* SingleCKAPPKEY_;
NSString* SingleInviterCode_;
}
@property bool SingleGeiWoHuaQianBa;
+ (SingleAllManager *)SingleInstance;
- (void)SingleChuShiHua;
- (void)SingleDengLu:(NSString *)SingleCKAPPID : (NSString *)SingleCKAPPKEY : (UIViewController *)controller;
- (void)SingleYangShi:(NSString*)SingleLeiXing;
- (void)SingleCKQuery: (NSString *)SingleFuWuQiID : (NSString *)SingleNickName : (NSNumber *)SingleAmount : (NSString *)SingleCallBack : (UIViewController *)controller : (NSString *)SingleServerName;
- (void)SingleCKQueryOperation:(UIViewController*)controll SingleHuoWuID:(NSString*)products SingleJiaGe:(NSString*)amount SingleHuoWuMing:(NSString*)productName SingleDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const SingleCKAssetsExitNotification;
extern NSString * const SingleCKAssetsLoginNotification;
extern NSString * const SingleCKAssetsErrorNotification;
@interface SingleHuiTiaoNotification : NSObject
@end