lizhihui

Update

Showing 42 changed files with 328 additions and 161 deletions
No preview for this file type
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
267C159120D13FBE00DEDCC3 /* IAPHelperSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 267C159020D13FBE00DEDCC3 /* IAPHelperSDK.framework */; };
2659891520E1D6C200CE8E6A /* DevCatSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2659891420E1D6C200CE8E6A /* DevCatSDK.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 */
267C159020D13FBE00DEDCC3 /* IAPHelperSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = IAPHelperSDK.framework; sourceTree = "<group>"; };
2659891420E1D6C200CE8E6A /* DevCatSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = DevCatSDK.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>"; };
......@@ -105,10 +105,10 @@
files = (
8484E5161EE7E36800B402D1 /* SystemConfiguration.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 */,
267C159120D13FBE00DEDCC3 /* IAPHelperSDK.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
......@@ -136,7 +136,7 @@
8476DF631C4DD70500EC42BA /* poolsdk_file */ = {
isa = PBXGroup;
children = (
267C159020D13FBE00DEDCC3 /* IAPHelperSDK.framework */,
2659891420E1D6C200CE8E6A /* DevCatSDK.framework */,
8476DF641C4DD71D00EC42BA /* poolsdk */,
);
name = poolsdk_file;
......
#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 <UIKit/UIKit.h>
#import "HMUser.h"
#import "woshiIAPShareHelper.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface HMHome : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface woshiCKRecordZone : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL hasCorner;
@property(assign) BOOL woshiYouYuanJiao;
-(void)settingHMZoneView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)initHMZoneWebView;
- (void)woshiSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)woshiChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#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 <UIKit/UIKit.h>
@interface CKRecord : NSObject
@interface woshiCKRecorder : NSObject
+ (NSString *)SKCloudServiceSetupOptionsKey;
+ (NSString *)woshiSKCloudServiceSetupOptionsKey;
@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 <Foundation/Foundation.h>
@interface IAPShareHelper : NSObject
@interface woshiIAPShareHelper : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (IAPShareHelper *)getInstance;
+ (woshiIAPShareHelper *)getInstance;
@end
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface CKManager : NSObject
{
NSString* CKAPPID_;
NSString* CKAPPKEY_;
NSString* inviterCode_;
}
@property bool NengBuNengHuaQian;
+ (CKManager *)NaDaoInstance;
- (void)ChuShiHua;
- (void)DengLu:(NSString *)CKAPPID : (NSString *)CKAPPKEY : (UIViewController *)controller;
- (void)YangShi:(NSString*)LeiXing;
- (void)CKQuery: (NSString *)FuWuQiID : (NSString *)nickName : (NSNumber *)amount : (NSString *)callBack : (UIViewController *)controller;
- (void)CKQueryOperation:(UIViewController*)controll ShangPinID:(NSString*)products JiaGe:(NSString*)amount ShangPinMing:(NSString*)productName DingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface CKRecordZoneJM : NSObject
+(NSString *)JM:(NSString *)jm;
+(void)qweSJijisd;
+(void)jqweakdjl;
+(void)nqwevcxnklr;
-(void)asqwedll;
-(void)asqwedlasdl;
-(void)asdqwellasd;
+(void)SJasdijisd;
+(void)jakasddjl;
+(void)nvasdcxnklr;
-(void)asasddll;
-(void)asasddlasdl;
-(void)asdasdllasd;
@end
#import <Foundation/Foundation.h>
extern NSString * const CKAssetsExitNotification;
extern NSString * const CKAssetsLoginNotification;
extern NSString * const CKAssetsErrorNotification;
@interface HuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface IAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* DingDanHao;
@property(nonatomic,strong) NSDictionary* ShangPinLieBiao;
@property(nonatomic,strong) NSMutableArray* ShangPinIDLieBiao;
@property(nonatomic, strong) UITableView *ShangPinLieBiaoView;
- (void)HuaQianView:(UIViewController*)controller products:(NSString*)products amount:(NSString*)amount productName:(NSString*)productName DingDanHao:(NSString*)DingDanHao;
@end
......@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1.408</string>
<string>1.1.407</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "IAPHelperSDK/CKManager.h"
#import "IAPHelperSDK/HuiTiaoNotification.h"
#import "IAPHelperSDK/IAPShareHelper.h"
#import "DevCatSDK/woshiCKManager.h"
#import "DevCatSDK/woshiHuiTiaoNotification.h"
#import "DevCatSDK/woshiIAPShareHelper.h"
#import "TrackingIO.h"
......@@ -19,10 +19,10 @@ NSString *sdkAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[CKManager NaDaoInstance]ChuShiHua];
[[CKManager NaDaoInstance]YangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:CKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"CKAssetsToolCallBack" object:nil];
[[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];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -41,7 +41,7 @@ NSString *sdkAppKey;
//APPID APPKEY
sdkAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
sdkAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[CKManager NaDaoInstance]DengLu:sdkAppId :sdkAppKey :self.controller];
[[woshiCKManager woshiInstance]woshiDengLu:sdkAppId :sdkAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *sdkAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[IAPShareHelper getInstance]openId];
loginInfo.sign = [[IAPShareHelper getInstance] token];
loginInfo.timestamp = [IAPShareHelper getInstance].timestamp;
loginInfo.openId = [[woshiIAPShareHelper getInstance]openId];
loginInfo.sign = [[woshiIAPShareHelper getInstance] token];
loginInfo.timestamp = [woshiIAPShareHelper 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:@"CKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"woshiCKAssetsToolResult"];
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) {
[[CKManager NaDaoInstance] CKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
[[woshiCKManager woshiInstance] woshiCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
}else{
NSString* products = [payInfo products];
[[CKManager NaDaoInstance] CKQueryOperation:self.controller ShangPinID:products JiaGe:[payInfo postAmount] ShangPinMing:[payInfo productName] DingDanHao:queryId];
[[woshiCKManager woshiInstance] woshiCKQueryOperation:self.controller woshiShangPinID:products woshiJiaGe:[payInfo postAmount] woshiShangPinMing:[payInfo productName] woshiDingDanHao:queryId];
}
}
......
新接入请参考对接文档和demo<br>
2018-06-14:<br>
2018-06-26:<br>
在上版本基础上,更新了4、5、6点后,已接入快速更新方法<br>
1、删除HMHomeSDK.framework<br>
2、引入IAPHelperSDK.framework<br>
2、引入DevCatSDK.framework<br>
3、替换SDKInterface.m文件<br>
2018-05-28:<br>
......@@ -11,6 +11,7 @@
1、删除XiongDiSDK.framework 删除HaibaoSDK.framework<br>
2、引入HMHomeSDK.framework<br>
3、替换SDKInterface.h和SDKInterface.m文件<br>
4、5、6点为公共层SDK(PoolSdk.framework)更新<br>
4、 替换PoolSdk.framework<br>
5、 支付接口[[PoolSdk shareSDK] payWithPaymentInfo:orderInfo];修改为[[PoolSdk shareSDK] gzyazfWithGzyazfmentInfo:orderInfo];<br>
6、 回调PoolSDKNotificationPay 修改为 PoolSDKNotificationGzyazf<br>
......
//
// IAPHelper.h
//
// Original Created by Ray Wenderlich on 2/28/11.
// Created by saturngod on 7/9/12.
// Copyright 2011 Ray Wenderlich. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "StoreKit/StoreKit.h"
typedef void (^IAPProductsResponseBlock)(SKProductsRequest* request , SKProductsResponse* response);
typedef void (^IAPbuyProductCompleteResponseBlock)(SKPaymentTransaction* transcation);
typedef void (^checkReceiptCompleteResponseBlock)(NSString* response,NSError* error);
typedef void (^resoreProductsCompleteResponseBlock) (SKPaymentQueue* payment,NSError* error);
@interface IAPHelper : NSObject <SKProductsRequestDelegate, SKPaymentTransactionObserver>
@property (nonatomic,strong) NSSet *productIdentifiers;
@property (nonatomic,strong) NSArray * products;
@property (nonatomic,strong) NSMutableSet *purchasedProducts;
@property (nonatomic,strong) SKProductsRequest *request;
@property (nonatomic) BOOL production;
//init With Product Identifiers
- (id)initWithProductIdentifiers:(NSSet *)productIdentifiers;
//get Products List
- (void)requestProductsWithCompletion:(IAPProductsResponseBlock)completion;
//Buy Product
- (void)buyProduct:(SKProduct *)productIdentifier onCompletion:(IAPbuyProductCompleteResponseBlock)completion;
//restore Products
- (void)restoreProductsWithCompletion:(resoreProductsCompleteResponseBlock)completion;
//check isPurchased or not
- (BOOL)isPurchasedProductsIdentifier:(NSString*)productID;
//check receipt but recommend to use in server side instead of using this function
- (void)checkReceipt:(NSData*)receiptData onCompletion:(checkReceiptCompleteResponseBlock)completion;
- (void)checkReceipt:(NSData*)receiptData AndSharedSecret:(NSString*)secretKey onCompletion:(checkReceiptCompleteResponseBlock)completion;
//saved purchased product
- (void)provideContentWithTransaction:(SKPaymentTransaction *)transaction;
- (void)provideContent:(NSString *)productIdentifier __deprecated_msg("use provideContentWithTransaction: instead.");
//clear the saved products
- (void)clearSavedPurchasedProducts;
- (void)clearSavedPurchasedProductByID:(NSString*)productIdentifier;
//Get The Price with local currency
- (NSString *)getLocalePrice:(SKProduct *)product;
@end
//
// IAPShare.h
// ;
//
// Created by Htain Lin Shwe on 10/7/12.
// Copyright (c) 2012 Edenpod. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "IAPHelper.h"
@interface IAPShare : NSObject
@property (nonatomic,strong) IAPHelper *iap;
+ (IAPShare *) sharedHelper;
+(id)toJSON:(NSString*)json;
@end
//
// NSString+Base64.h
// Newsstand
//
// Created by Carlo Vigiani on 29/Oct/11.
// Copyright (c) 2011 viggiosoft. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (Base64)
+ (NSString *) base64StringFromData:(NSData *)data length:(long)length;
@end
#import <Foundation/Foundation.h>
@interface NSURLRequest (SSL)
+(BOOL)allowsAnyHTTPSCertificateForHost:(NSString*)host;
+(void)setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString*)host;
@end
//
// SFHFKeychainUtils.h
//
// Created by Buzz Andersen on 10/20/08.
// Based partly on code by Jonathan Wight, Jon Crosby, and Mike Malone.
// Copyright 2008 Sci-Fi Hi-Fi. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following
// conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
//
#import <UIKit/UIKit.h>
@interface SFHFKeychainUtils : NSObject {
}
+ (NSString *) getPasswordForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error;
+ (BOOL) storeUsername: (NSString *) username andPassword: (NSString *) password forServiceName: (NSString *) serviceName updateExisting: (BOOL) updateExisting error: (NSError **) error;
+ (BOOL) deleteItemForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error;
@end
\ No newline at end of file
#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 <UIKit/UIKit.h>
#import "IAPShareHelper.h"
#import "woshiIAPShareHelper.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface CKRecordZone : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface woshiCKRecordZone : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL youYuanJiao;
@property(assign) BOOL woshiYouYuanJiao;
- (void)settingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ChuShiHuaWebView;
- (void)woshiSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)woshiChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#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 <UIKit/UIKit.h>
@interface HMRoom : NSObject
@interface woshiCKRecorder : NSObject
+ (NSString *)IAPAdress;
+ (NSString *)woshiSKCloudServiceSetupOptionsKey;
@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 <Foundation/Foundation.h>
@interface HMUser : NSObject
@interface woshiIAPShareHelper : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (HMUser *)getInstance;
+ (woshiIAPShareHelper *)getInstance;
@end
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HMHomeManager : NSObject
{
NSString* HMAPPID_;
NSString* HMAPPKEY_;
NSString* inviterCode_;
}
@property bool banana;
+ (HMHomeManager *)getInstance;
- (void)initHMZoneSDK;
- (void)startHMZoneLogin:(NSString *)HMAPPID : (NSString *)HMAPPKEY : (UIViewController *)controller;
- (void)setBabyStyleName:(NSString*)styleName;
- (void)startHMZoneAlisha: (NSString *)fwqid : (NSString *)nickName : (NSNumber *)amount : (NSString *)callBack : (UIViewController *)controller;
- (void)startWithHMZoneAlisha:(UIViewController*)controll products:(NSString*)products amount:(NSString*)amount productName:(NSString*)productName DdhID:(NSString*) DdhID;
@end
#import <Foundation/Foundation.h>
extern NSString * const HMZoneExitNotification;
extern NSString * const HMZoneLoginNotification;
extern NSString * const HMZoneErrorNotification;
@interface HMNotifications : NSObject
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "HMHomeSDK/HMHomeManager.h"
#import "HMHomeSDK/HMNotifications.h"
#import "HMHomeSDK/HMUser.h"
#import "DevCatSDK/woshiCKManager.h"
#import "DevCatSDK/woshiHuiTiaoNotification.h"
#import "DevCatSDK/woshiIAPShareHelper.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
......@@ -18,10 +19,10 @@ NSString *sdkAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[HMHomeManager getInstance]initHMZoneSDK];
[[HMHomeManager getInstance]setBabyStyleName:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HMZoneLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HMZoneToolCallBack:) name:@"HMZoneToolCallBack" object:nil];
[[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];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,7 +41,7 @@ NSString *sdkAppKey;
//APPID APPKEY
sdkAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
sdkAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[HMHomeManager getInstance]startHMZoneLogin:sdkAppId :sdkAppKey :self.controller];
[[woshiCKManager woshiInstance]woshiDengLu:sdkAppId :sdkAppKey :self.controller];
}
......@@ -51,9 +52,9 @@ NSString *sdkAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[HMUser getInstance]openId];
loginInfo.sign = [[HMUser getInstance] token];
loginInfo.timestamp = [HMUser getInstance].timestamp;
loginInfo.openId = [[woshiIAPShareHelper getInstance]openId];
loginInfo.sign = [[woshiIAPShareHelper getInstance] token];
loginInfo.timestamp = [woshiIAPShareHelper getInstance].timestamp;
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -77,11 +78,11 @@ NSString *sdkAppKey;
苹果支付结果回调
*/
- (void)HMZoneToolCallBack:(NSNotification *)notification
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"HMZoneToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"woshiCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -215,10 +216,10 @@ NSString *sdkAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[HMHomeManager getInstance] startHMZoneAlisha:serverId :roleName :amount :[payInfo queryId] :self.controller];
[[woshiCKManager woshiInstance] woshiCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
}else{
NSString* products = [payInfo products];
[[HMHomeManager getInstance] startWithHMZoneAlisha:self.controller products:products amount:[payInfo postAmount] productName:[payInfo productName] DdhID:queryId];
[[woshiCKManager woshiInstance] woshiCKQueryOperation:self.controller woshiShangPinID:products woshiJiaGe:[payInfo postAmount] woshiShangPinMing:[payInfo productName] woshiDingDanHao:queryId];
}
}
......