lizhihui

更新0807版本

Showing 46 changed files with 204 additions and 192 deletions
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
2659891520E1D6C200CE8E6A /* DevCatSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2659891420E1D6C200CE8E6A /* DevCatSDK.framework */; };
263EB752211985B30023A312 /* PiDan0807SDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 263EB751211985B30023A312 /* PiDan0807SDK.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 */
2659891420E1D6C200CE8E6A /* DevCatSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = DevCatSDK.framework; sourceTree = "<group>"; };
263EB751211985B30023A312 /* PiDan0807SDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PiDan0807SDK.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,8 +104,8 @@
buildActionMask = 2147483647;
files = (
8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
263EB752211985B30023A312 /* PiDan0807SDK.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
2659891520E1D6C200CE8E6A /* DevCatSDK.framework in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
......@@ -136,7 +136,7 @@
8476DF631C4DD70500EC42BA /* poolsdk_file */ = {
isa = PBXGroup;
children = (
2659891420E1D6C200CE8E6A /* DevCatSDK.framework */,
263EB751211985B30023A312 /* PiDan0807SDK.framework */,
8476DF641C4DD71D00EC42BA /* poolsdk */,
);
name = poolsdk_file;
......@@ -481,7 +481,7 @@
"$(PROJECT_DIR)",
);
INFOPLIST_FILE = poolsdk_file/poolsdk/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
......@@ -516,7 +516,7 @@
"$(PROJECT_DIR)",
);
INFOPLIST_FILE = poolsdk_file/poolsdk/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
......
......@@ -167,7 +167,6 @@
if (image != nil) {
NSLog(@"截图成功!");
UIImageWriteToSavedPhotosAlbum(image,self,@selector(image:didFinishSavingWithError:contextInfo:),NULL);
}
}
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface woshiCKManager : NSObject
{
NSString* woshiCKAPPID_;
NSString* woshiCKAPPKEY_;
NSString* woshiInviterCode_;
}
@property bool woshiGeiWoHuaQianBa;
+ (woshiCKManager *)woshiInstance;
- (void)woshiChuShiHua;
- (void)woshiDengLu:(NSString *)woshiCKAPPID : (NSString *)woshiCKAPPKEY : (UIViewController *)controller;
- (void)woshiYangShi:(NSString*)woshiLeiXing;
- (void)woshiCKQuery: (NSString *)woshiFuWuQiID : (NSString *)woshiNickName : (NSNumber *)woshiAmount : (NSString *)woshiCallBack : (UIViewController *)controller;
- (void)woshiCKQueryOperation:(UIViewController*)controll woshiShangPinID:(NSString*)products woshiJiaGe:(NSString*)amount woshiShangPinMing:(NSString*)productName woshiDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface woshiCKRecordZoneJM : NSObject
+(NSString *)JM:(NSString *)jm;
+(void)qweS12Jijisd;
+(void)jqw3123eakdjl;
+(void)nqw123evcxnklr;
-(void)asqw123edll;
-(void)asqw12312edlasdl;
-(void)asdq3123wellasd;
@end
#import <Foundation/Foundation.h>
extern NSString * const woshiCKAssetsExitNotification;
extern NSString * const woshiCKAssetsLoginNotification;
extern NSString * const woshiCKAssetsErrorNotification;
@interface woshiHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface woshiIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* woshiDingDanHao;
@property(nonatomic,strong) NSDictionary* woshiShangPinLieBiao;
@property(nonatomic,strong) NSMutableArray* woshiShangPinIDLieBiao;
@property(nonatomic, strong) UITableView *woshiShangPinLieBiaoView;
- (void)woshiHuaQianView:(UIViewController*)controller woshiShangPinD:(NSString*)products woshiQian:(NSString*)amount woshiShangPinMing:(NSString*)productName woshiDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface pidanCKManager : NSObject
{
NSString* pidanCKAPPID_;
NSString* pidanCKAPPKEY_;
NSString* pidanInviterCode_;
}
@property bool pidanGeiWoHuaQianBa;
+ (pidanCKManager *)pidanInstance;
- (void)pidanChuShiHua;
- (void)pidanDengLu:(NSString *)pidanCKAPPID : (NSString *)pidanCKAPPKEY : (UIViewController *)controller;
- (void)pidanYangShi:(NSString*)pidanLeiXing;
- (void)pidanCKQuery: (NSString *)pidanFuWuQiID : (NSString *)pidanNickName : (NSNumber *)pidanAmount : (NSString *)pidanCallBack : (UIViewController *)controller;
- (void)pidanCKQueryOperation:(UIViewController*)controll pidanShangPinID:(NSString*)products pidanJiaGe:(NSString*)amount pidanShangPinMing:(NSString*)productName pidanDingDanHao:(NSString*) DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "woshiIAPShareHelper.h"
#import "pidanIAPShareHelper.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface woshiCKRecordZone : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface pidanCKRecordZone : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL woshiYouYuanJiao;
@property(assign) BOOL pidanYouYuanJiao;
- (void)woshiSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)woshiChuShiHuaWebView;
- (void)pidanSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)pidanChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface pidanCKRecordZoneJM : NSObject
+(NSString *)pidanJM:(NSString *)jm;
+(void)pidanqweS12Jijisd;
+(void)pidanjqw3123eakdjl;
+(void)pidannqw123evcxnklr;
-(void)pidanasqw123edll;
-(void)pidanasqw12312edlasdl;
-(void)pidanasdq3123wellasd;
@end
#import <UIKit/UIKit.h>
@interface woshiCKRecorder : NSObject
@interface pidanCKRecorder : NSObject
+ (NSString *)woshiSKCloudServiceSetupOptionsKey;
+ (NSString *)pidanSKCloudServiceSetupOptionsKey;
@end
......
#import <Foundation/Foundation.h>
extern NSString * const pidanCKAssetsExitNotification;
extern NSString * const pidanCKAssetsLoginNotification;
extern NSString * const pidanCKAssetsErrorNotification;
@interface pidanHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface pidanIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* pidanDingDanHao;
@property(nonatomic,strong) NSDictionary* pidanShangPinLieBiao;
@property(nonatomic,strong) NSMutableArray* pidanShangPinIDLieBiao;
@property(nonatomic, strong) UITableView *pidanShangPinLieBiaoView;
- (void)pidanHuaQianView:(UIViewController*)controller pidanShangPinD:(NSString*)products pidanQian:(NSString*)amount pidanShangPinMing:(NSString*)productName pidanDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface woshiIAPShareHelper : NSObject
@interface pidanIAPShareHelper : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (woshiIAPShareHelper *)getInstance;
+ (pidanIAPShareHelper *)getInstance;
@end
......
......@@ -2,6 +2,16 @@
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
......@@ -29,6 +39,11 @@
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
......
......@@ -4,8 +4,6 @@
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>大胸弟</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
......@@ -17,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1.407</string>
<string>1.1.408</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "DevCatSDK/woshiCKManager.h"
#import "DevCatSDK/woshiHuiTiaoNotification.h"
#import "DevCatSDK/woshiIAPShareHelper.h"
#import "PiDan0807SDK/pidanCKManager.h"
#import "PiDan0807SDK/pidanHuiTiaoNotification.h"
#import "PiDan0807SDK/pidanIAPShareHelper.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *sdkAppId;
NSString *sdkAppKey;
NSString *pidanSDKAppId;
NSString *pidanSDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *sdkAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[woshiCKManager woshiInstance]woshiChuShiHua];
[[woshiCKManager woshiInstance]woshiYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:woshiCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"woshiCKAssetsToolCallBack" object:nil];
[[pidanCKManager pidanInstance]pidanChuShiHua];
[[pidanCKManager pidanInstance]pidanYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:pidanCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"pidanCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *sdkAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
sdkAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
sdkAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[woshiCKManager woshiInstance]woshiDengLu:sdkAppId :sdkAppKey :self.controller];
pidanSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
pidanSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[pidanCKManager pidanInstance]pidanDengLu:pidanSDKAppId :pidanSDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *sdkAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[woshiIAPShareHelper getInstance]openId];
loginInfo.sign = [[woshiIAPShareHelper getInstance] token];
loginInfo.timestamp = [woshiIAPShareHelper getInstance].timestamp;
loginInfo.openId = [[pidanIAPShareHelper getInstance]openId];
loginInfo.sign = [[pidanIAPShareHelper getInstance] token];
loginInfo.timestamp = [[pidanIAPShareHelper getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *sdkAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"woshiCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"pidanCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *sdkAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[woshiCKManager woshiInstance] woshiCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
[[pidanCKManager pidanInstance] pidanCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
}else{
NSString* products = [payInfo products];
[[woshiCKManager woshiInstance] woshiCKQueryOperation:self.controller woshiShangPinID:products woshiJiaGe:[payInfo postAmount] woshiShangPinMing:[payInfo productName] woshiDingDanHao:queryId];
[[pidanCKManager pidanInstance] pidanCKQueryOperation:self.controller pidanShangPinID:products pidanJiaGe:[payInfo postAmount] pidanShangPinMing:[payInfo productName] pidanDingDanHao:queryId];
}
}
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface woshiCKManager : NSObject
{
NSString* woshiCKAPPID_;
NSString* woshiCKAPPKEY_;
NSString* woshiInviterCode_;
}
@property bool woshiGeiWoHuaQianBa;
+ (woshiCKManager *)woshiInstance;
- (void)woshiChuShiHua;
- (void)woshiDengLu:(NSString *)woshiCKAPPID : (NSString *)woshiCKAPPKEY : (UIViewController *)controller;
- (void)woshiYangShi:(NSString*)woshiLeiXing;
- (void)woshiCKQuery: (NSString *)woshiFuWuQiID : (NSString *)woshiNickName : (NSNumber *)woshiAmount : (NSString *)woshiCallBack : (UIViewController *)controller;
- (void)woshiCKQueryOperation:(UIViewController*)controll woshiShangPinID:(NSString*)products woshiJiaGe:(NSString*)amount woshiShangPinMing:(NSString*)productName woshiDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface woshiCKRecordZoneJM : NSObject
+(NSString *)JM:(NSString *)jm;
+(void)qweS12Jijisd;
+(void)jqw3123eakdjl;
+(void)nqw123evcxnklr;
-(void)asqw123edll;
-(void)asqw12312edlasdl;
-(void)asdq3123wellasd;
@end
#import <Foundation/Foundation.h>
extern NSString * const woshiCKAssetsExitNotification;
extern NSString * const woshiCKAssetsLoginNotification;
extern NSString * const woshiCKAssetsErrorNotification;
@interface woshiHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface woshiIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* woshiDingDanHao;
@property(nonatomic,strong) NSDictionary* woshiShangPinLieBiao;
@property(nonatomic,strong) NSMutableArray* woshiShangPinIDLieBiao;
@property(nonatomic, strong) UITableView *woshiShangPinLieBiaoView;
- (void)woshiHuaQianView:(UIViewController*)controller woshiShangPinD:(NSString*)products woshiQian:(NSString*)amount woshiShangPinMing:(NSString*)productName woshiDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface pidanCKManager : NSObject
{
NSString* pidanCKAPPID_;
NSString* pidanCKAPPKEY_;
NSString* pidanInviterCode_;
}
@property bool pidanGeiWoHuaQianBa;
+ (pidanCKManager *)pidanInstance;
- (void)pidanChuShiHua;
- (void)pidanDengLu:(NSString *)pidanCKAPPID : (NSString *)pidanCKAPPKEY : (UIViewController *)controller;
- (void)pidanYangShi:(NSString*)pidanLeiXing;
- (void)pidanCKQuery: (NSString *)pidanFuWuQiID : (NSString *)pidanNickName : (NSNumber *)pidanAmount : (NSString *)pidanCallBack : (UIViewController *)controller;
- (void)pidanCKQueryOperation:(UIViewController*)controll pidanShangPinID:(NSString*)products pidanJiaGe:(NSString*)amount pidanShangPinMing:(NSString*)productName pidanDingDanHao:(NSString*) DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "woshiIAPShareHelper.h"
#import "pidanIAPShareHelper.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface woshiCKRecordZone : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface pidanCKRecordZone : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL woshiYouYuanJiao;
@property(assign) BOOL pidanYouYuanJiao;
- (void)woshiSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)woshiChuShiHuaWebView;
- (void)pidanSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)pidanChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface pidanCKRecordZoneJM : NSObject
+(NSString *)pidanJM:(NSString *)jm;
+(void)pidanqweS12Jijisd;
+(void)pidanjqw3123eakdjl;
+(void)pidannqw123evcxnklr;
-(void)pidanasqw123edll;
-(void)pidanasqw12312edlasdl;
-(void)pidanasdq3123wellasd;
@end
#import <UIKit/UIKit.h>
@interface woshiCKRecorder : NSObject
@interface pidanCKRecorder : NSObject
+ (NSString *)woshiSKCloudServiceSetupOptionsKey;
+ (NSString *)pidanSKCloudServiceSetupOptionsKey;
@end
......
#import <Foundation/Foundation.h>
extern NSString * const pidanCKAssetsExitNotification;
extern NSString * const pidanCKAssetsLoginNotification;
extern NSString * const pidanCKAssetsErrorNotification;
@interface pidanHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface pidanIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* pidanDingDanHao;
@property(nonatomic,strong) NSDictionary* pidanShangPinLieBiao;
@property(nonatomic,strong) NSMutableArray* pidanShangPinIDLieBiao;
@property(nonatomic, strong) UITableView *pidanShangPinLieBiaoView;
- (void)pidanHuaQianView:(UIViewController*)controller pidanShangPinD:(NSString*)products pidanQian:(NSString*)amount pidanShangPinMing:(NSString*)productName pidanDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface woshiIAPShareHelper : NSObject
@interface pidanIAPShareHelper : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (woshiIAPShareHelper *)getInstance;
+ (pidanIAPShareHelper *)getInstance;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "DevCatSDK/woshiCKManager.h"
#import "DevCatSDK/woshiHuiTiaoNotification.h"
#import "DevCatSDK/woshiIAPShareHelper.h"
#import "PiDan0807SDK/pidanCKManager.h"
#import "PiDan0807SDK/pidanHuiTiaoNotification.h"
#import "PiDan0807SDK/pidanIAPShareHelper.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *sdkAppId;
NSString *sdkAppKey;
NSString *pidanSDKAppId;
NSString *pidanSDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *sdkAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[woshiCKManager woshiInstance]woshiChuShiHua];
[[woshiCKManager woshiInstance]woshiYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:woshiCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"woshiCKAssetsToolCallBack" object:nil];
[[pidanCKManager pidanInstance]pidanChuShiHua];
[[pidanCKManager pidanInstance]pidanYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:pidanCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"pidanCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *sdkAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
sdkAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
sdkAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[woshiCKManager woshiInstance]woshiDengLu:sdkAppId :sdkAppKey :self.controller];
pidanSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
pidanSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[pidanCKManager pidanInstance]pidanDengLu:pidanSDKAppId :pidanSDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *sdkAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[woshiIAPShareHelper getInstance]openId];
loginInfo.sign = [[woshiIAPShareHelper getInstance] token];
loginInfo.timestamp = [woshiIAPShareHelper getInstance].timestamp;
loginInfo.openId = [[pidanIAPShareHelper getInstance]openId];
loginInfo.sign = [[pidanIAPShareHelper getInstance] token];
loginInfo.timestamp = [[pidanIAPShareHelper getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *sdkAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"woshiCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"pidanCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *sdkAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[woshiCKManager woshiInstance] woshiCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
[[pidanCKManager pidanInstance] pidanCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
}else{
NSString* products = [payInfo products];
[[woshiCKManager woshiInstance] woshiCKQueryOperation:self.controller woshiShangPinID:products woshiJiaGe:[payInfo postAmount] woshiShangPinMing:[payInfo productName] woshiDingDanHao:queryId];
[[pidanCKManager pidanInstance] pidanCKQueryOperation:self.controller pidanShangPinID:products pidanJiaGe:[payInfo postAmount] pidanShangPinMing:[payInfo productName] pidanDingDanHao:queryId];
}
}
......