lizhihui

更新190411版本1

Showing 72 changed files with 256 additions and 256 deletions
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
26926B41225AF10200E23031 /* Umbrella.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26926B40225AF10200E23031 /* Umbrella.framework */; };
26310CCA225ED9CD007A86CC /* Felicity.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26310CC9225ED9CC007A86CC /* Felicity.framework */; };
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* haibaoyouxi_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibaoyouxi_config */; };
......@@ -59,7 +59,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
26926B40225AF10200E23031 /* Umbrella.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Umbrella.framework; sourceTree = "<group>"; };
26310CC9225ED9CC007A86CC /* Felicity.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Felicity.framework; sourceTree = "<group>"; };
269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.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>"; };
......@@ -106,7 +106,6 @@
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
26926B41225AF10200E23031 /* Umbrella.framework in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
......@@ -117,6 +116,7 @@
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
26310CCA225ED9CD007A86CC /* Felicity.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
);
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
26926B40225AF10200E23031 /* Umbrella.framework */,
26310CC9225ED9CC007A86CC /* Felicity.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* haibaoyouxi_config */,
......
#import <Foundation/Foundation.h>
@interface UmbrellaControl : NSObject
@interface FelicityControl : NSObject
- (void)initUmbrellaInstance;
- (void)initFelicityInstance;
- (void)UmbrellaStartGo;
- (void)FelicityStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface UmbrellaControl1 : NSObject
@interface FelicityControl1 : NSObject
- (void)initUmbrellaInstance;
- (void)initFelicityInstance;
- (void)UmbrellaStartGo;
- (void)FelicityStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface UmbrellaControl2 : NSObject
@interface FelicityControl2 : NSObject
- (void)initUmbrellaInstance;
- (void)initFelicityInstance;
- (void)UmbrellaStartGo;
- (void)FelicityStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface UmbrellaControl3 : NSObject
@interface FelicityControl3 : NSObject
- (void)initUmbrellaInstance;
- (void)initFelicityInstance;
- (void)UmbrellaStartGo;
- (void)FelicityStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface UmbrellaControl4 : NSObject
@interface FelicityControl4 : NSObject
- (void)initUmbrellaInstance;
- (void)initFelicityInstance;
- (void)UmbrellaStartGo;
- (void)FelicityStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface UmbrellaHaiBaoJuheBaseModel : NSObject
@interface FelicityHaiBaoJuheBaseModel : NSObject
- (NSString *)UmbrellaHaiBaoJuheObjectToJsonString;
- (NSString *)FelicityHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface UmbrellaHaiBaoJuheDGLogger : NSObject
@interface FelicityHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) UmbrellaHaiBaoJuhereportOpen;
- (void) UmbrellaHaiBaoJuhereportSDKOpen;
- (void)UmbrellaHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) FelicityHaiBaoJuhereportOpen;
- (void) FelicityHaiBaoJuhereportSDKOpen;
- (void)FelicityHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) UmbrellaHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) FelicityHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)UmbrellaHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)FelicityHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : UmbrellaHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : FelicityHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *serverId;//服务器ID
@property(nonatomic, strong)NSString *serverName;//服务器名称
......@@ -16,7 +16,7 @@
@property(nonatomic, strong)NSString *userId;//用户ID
@property(nonatomic, strong)NSString *timestamp;//时间戳
- (NSString *) UmbrellaHaiBaoJuheGetTsign ;
- (NSString *) UmbrellaHaiBaoJuheGetTimestamp ;
- (NSString *) FelicityHaiBaoJuheGetTsign ;
- (NSString *) FelicityHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : UmbrellaHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : FelicityHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : UmbrellaHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : FelicityHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// UmbrellaHaiBaoJuheReportInfo.h
// FelicityHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : UmbrellaHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : FelicityHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* UmbrellaList;
@property(strong) NSMutableArray* FelicityList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)UmbrellaHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)FelicityHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface FelicityAllManager : NSObject
{
NSString* FelicityAPPID_;
NSString* FelicityAPPKEY_;
NSString* FelicityInviterCode_;
}
@property bool FelicityGeiWoHuaQianBa;
+ (FelicityAllManager *)FelicityInstance;
- (void)FelicityChuShiHua;
- (void)FelicityDengLu:(NSString *)FelicityAPPID : (NSString *)FelicityAPPKEY : (UIViewController *)controller;
- (void)FelicityYangShi:(NSString*)FelicityLeiXing;
- (void)FelicityQuery: (NSString *)FelicityFuWuQiID : (NSString *)FelicityNickName : (NSNumber *)FelicityAmount : (NSString *)FelicityCallBack : (UIViewController *)controller : (NSString *)FelicityServerName;
- (void)FelicityQueryOperation:(UIViewController*)controll FelicityHuoWuID:(NSString*)products FelicityJiaGe:(NSString*)amount FelicityHuoWuMing:(NSString*)productName FelicityDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const FelicityExitNotification;
extern NSString * const FelicityLoginNotification;
extern NSString * const FelicityErrorNotification;
@interface FelicityHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface FelicityIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* FelicityDingDanHao;
@property(nonatomic,strong) NSDictionary* FelicityHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* FelicityHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *FelicityHuoWuLieBiaoView;
- (void)FelicityHuaQianView:(UIViewController*)controller FelicityHuoWuD:(NSString*)products FelicityQian:(NSString*)amount FelicityHuoWuMing:(NSString*)productName FelicityDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface UmbrellaInformation : NSObject
@interface FelicityInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (UmbrellaInformation *)getInstance;
+ (FelicityInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface UmbrellaInformationJM : NSObject
@interface FelicityInformationJM : NSObject
+(NSString *)UmbrellaJM:(NSString *)jm;
+(NSString *)FelicityJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface UmbrellaLocation : NSObject
@interface FelicityLocation : NSObject
+ (NSString *)UmbrellaSKCloudServiceSetupOptionsKey;
+ (NSString *)FelicitySKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "UmbrellaInformation.h"
#import "FelicityInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface UmbrellaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface FelicityMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webUmbrellaView_;
UIWebView *webFelicityView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL UmbrellaYouYuanJiao;
@property(assign) BOOL FelicityYouYuanJiao;
- (void)UmbrellaSettingUmbrellaView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)UmbrellaInitWebView;
- (void)FelicitySettingFelicityView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)FelicityInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface UmbrellaAllManager : NSObject
{
NSString* UmbrellaAPPID_;
NSString* UmbrellaAPPKEY_;
NSString* UmbrellaInviterCode_;
}
@property bool UmbrellaGeiWoHuaQianBa;
+ (UmbrellaAllManager *)UmbrellaInstance;
- (void)UmbrellaChuShiHua;
- (void)UmbrellaDengLu:(NSString *)UmbrellaAPPID : (NSString *)UmbrellaAPPKEY : (UIViewController *)controller;
- (void)UmbrellaYangShi:(NSString*)UmbrellaLeiXing;
- (void)UmbrellaQuery: (NSString *)UmbrellaFuWuQiID : (NSString *)UmbrellaNickName : (NSNumber *)UmbrellaAmount : (NSString *)UmbrellaCallBack : (UIViewController *)controller : (NSString *)UmbrellaServerName;
- (void)UmbrellaQueryOperation:(UIViewController*)controll UmbrellaHuoWuID:(NSString*)products UmbrellaJiaGe:(NSString*)amount UmbrellaHuoWuMing:(NSString*)productName UmbrellaDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const UmbrellaExitNotification;
extern NSString * const UmbrellaLoginNotification;
extern NSString * const UmbrellaErrorNotification;
@interface UmbrellaHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface UmbrellaIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* UmbrellaDingDanHao;
@property(nonatomic,strong) NSDictionary* UmbrellaHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* UmbrellaHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *UmbrellaHuoWuLieBiaoView;
- (void)UmbrellaHuaQianView:(UIViewController*)controller UmbrellaHuoWuD:(NSString*)products UmbrellaQian:(NSString*)amount UmbrellaHuoWuMing:(NSString*)productName UmbrellaDingDanHao:(NSString*)DingDanHao;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Umbrella/UmbrellaAllManager.h"
#import "Umbrella/UmbrellaHuiTiaoNotification.h"
#import "Umbrella/UmbrellaInformation.h"
#import "Felicity/FelicityAllManager.h"
#import "Felicity/FelicityHuiTiaoNotification.h"
#import "Felicity/FelicityInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *UmbrellaAppId;
NSString *UmbrellaAppKey;
NSString *UmbrellaLeakOrderUrl;
NSString *FelicityAppId;
NSString *FelicityAppKey;
NSString *FelicityLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *UmbrellaLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[UmbrellaAllManager UmbrellaInstance]UmbrellaChuShiHua];
[[UmbrellaAllManager UmbrellaInstance]UmbrellaYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:UmbrellaLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"UmbrellaToolCallBack" object:nil];
[[FelicityAllManager FelicityInstance]FelicityChuShiHua];
[[FelicityAllManager FelicityInstance]FelicityYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:FelicityLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"FelicityToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *UmbrellaLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
UmbrellaAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
UmbrellaAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[UmbrellaAllManager UmbrellaInstance]UmbrellaDengLu:UmbrellaAppId :UmbrellaAppKey :self.controller];
FelicityAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
FelicityAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[FelicityAllManager FelicityInstance]FelicityDengLu:FelicityAppId :FelicityAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *UmbrellaLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[UmbrellaInformation getInstance]openId];
loginInfo.sign = [[UmbrellaInformation getInstance] token];
loginInfo.timestamp = [[UmbrellaInformation getInstance] timestamp];
loginInfo.openId = [[FelicityInformation getInstance]openId];
loginInfo.sign = [[FelicityInformation getInstance] token];
loginInfo.timestamp = [[FelicityInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *UmbrellaLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"UmbrellaToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"FelicityToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *UmbrellaLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:UmbrellaLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:FelicityLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *UmbrellaLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
UmbrellaLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
FelicityLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:UmbrellaLeakOrderUrl forKey:@"lastUmbrellaLeakOrderUrl"];
[userDefaults setObject:FelicityLeakOrderUrl forKey:@"lastFelicityLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *UmbrellaLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:UmbrellaLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:FelicityLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *UmbrellaLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
UmbrellaLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
FelicityLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *UmbrellaLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastUmbrellaLeakOrderUrl = [userDefaults objectForKey:@"lastUmbrellaLeakOrderUrl"];
NSString* lastFelicityLeakOrderUrl = [userDefaults objectForKey:@"lastFelicityLeakOrderUrl"];
NSString* result;
if (lastUmbrellaLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastUmbrellaLeakOrderUrl :receiptDic];
if (lastFelicityLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastFelicityLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *UmbrellaLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[UmbrellaAllManager UmbrellaInstance] UmbrellaQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[FelicityAllManager FelicityInstance] FelicityQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
//保存订单号到本地
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
[userDefaults setObject:queryId forKey:@"lastqueryid"];
[userDefaults synchronize];
[[UmbrellaAllManager UmbrellaInstance] UmbrellaQueryOperation:self.controller UmbrellaHuoWuID:products UmbrellaJiaGe:[payInfo postAmount] UmbrellaHuoWuMing:[payInfo productName] UmbrellaDingDanHao:queryId];
[[FelicityAllManager FelicityInstance] FelicityQueryOperation:self.controller FelicityHuoWuID:products FelicityJiaGe:[payInfo postAmount] FelicityHuoWuMing:[payInfo productName] FelicityDingDanHao:queryId];
}
}
......
......@@ -10,8 +10,8 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年04月08日版本<br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年04月11日版本<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Umbrella.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Felicity.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换HaiBaoJuheSDK.framework ``` <br>
\ No newline at end of file
......
#import <Foundation/Foundation.h>
@interface UmbrellaControl : NSObject
@interface FelicityControl : NSObject
- (void)initUmbrellaInstance;
- (void)initFelicityInstance;
- (void)UmbrellaStartGo;
- (void)FelicityStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface UmbrellaControl1 : NSObject
@interface FelicityControl1 : NSObject
- (void)initUmbrellaInstance;
- (void)initFelicityInstance;
- (void)UmbrellaStartGo;
- (void)FelicityStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface UmbrellaControl2 : NSObject
@interface FelicityControl2 : NSObject
- (void)initUmbrellaInstance;
- (void)initFelicityInstance;
- (void)UmbrellaStartGo;
- (void)FelicityStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface UmbrellaControl3 : NSObject
@interface FelicityControl3 : NSObject
- (void)initUmbrellaInstance;
- (void)initFelicityInstance;
- (void)UmbrellaStartGo;
- (void)FelicityStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface UmbrellaControl4 : NSObject
@interface FelicityControl4 : NSObject
- (void)initUmbrellaInstance;
- (void)initFelicityInstance;
- (void)UmbrellaStartGo;
- (void)FelicityStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface UmbrellaHaiBaoJuheBaseModel : NSObject
@interface FelicityHaiBaoJuheBaseModel : NSObject
- (NSString *)UmbrellaHaiBaoJuheObjectToJsonString;
- (NSString *)FelicityHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface UmbrellaHaiBaoJuheDGLogger : NSObject
@interface FelicityHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) UmbrellaHaiBaoJuhereportOpen;
- (void) UmbrellaHaiBaoJuhereportSDKOpen;
- (void)UmbrellaHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) FelicityHaiBaoJuhereportOpen;
- (void) FelicityHaiBaoJuhereportSDKOpen;
- (void)FelicityHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) UmbrellaHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) FelicityHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)UmbrellaHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)FelicityHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : UmbrellaHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : FelicityHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *serverId;//服务器ID
@property(nonatomic, strong)NSString *serverName;//服务器名称
......@@ -16,7 +16,7 @@
@property(nonatomic, strong)NSString *userId;//用户ID
@property(nonatomic, strong)NSString *timestamp;//时间戳
- (NSString *) UmbrellaHaiBaoJuheGetTsign ;
- (NSString *) UmbrellaHaiBaoJuheGetTimestamp ;
- (NSString *) FelicityHaiBaoJuheGetTsign ;
- (NSString *) FelicityHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : UmbrellaHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : FelicityHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : UmbrellaHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : FelicityHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// UmbrellaHaiBaoJuheReportInfo.h
// FelicityHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : UmbrellaHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : FelicityHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* UmbrellaList;
@property(strong) NSMutableArray* FelicityList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)UmbrellaHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)FelicityHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface FelicityAllManager : NSObject
{
NSString* FelicityAPPID_;
NSString* FelicityAPPKEY_;
NSString* FelicityInviterCode_;
}
@property bool FelicityGeiWoHuaQianBa;
+ (FelicityAllManager *)FelicityInstance;
- (void)FelicityChuShiHua;
- (void)FelicityDengLu:(NSString *)FelicityAPPID : (NSString *)FelicityAPPKEY : (UIViewController *)controller;
- (void)FelicityYangShi:(NSString*)FelicityLeiXing;
- (void)FelicityQuery: (NSString *)FelicityFuWuQiID : (NSString *)FelicityNickName : (NSNumber *)FelicityAmount : (NSString *)FelicityCallBack : (UIViewController *)controller : (NSString *)FelicityServerName;
- (void)FelicityQueryOperation:(UIViewController*)controll FelicityHuoWuID:(NSString*)products FelicityJiaGe:(NSString*)amount FelicityHuoWuMing:(NSString*)productName FelicityDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const FelicityExitNotification;
extern NSString * const FelicityLoginNotification;
extern NSString * const FelicityErrorNotification;
@interface FelicityHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface FelicityIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* FelicityDingDanHao;
@property(nonatomic,strong) NSDictionary* FelicityHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* FelicityHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *FelicityHuoWuLieBiaoView;
- (void)FelicityHuaQianView:(UIViewController*)controller FelicityHuoWuD:(NSString*)products FelicityQian:(NSString*)amount FelicityHuoWuMing:(NSString*)productName FelicityDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface UmbrellaInformation : NSObject
@interface FelicityInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (UmbrellaInformation *)getInstance;
+ (FelicityInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface UmbrellaInformationJM : NSObject
@interface FelicityInformationJM : NSObject
+(NSString *)UmbrellaJM:(NSString *)jm;
+(NSString *)FelicityJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface UmbrellaLocation : NSObject
@interface FelicityLocation : NSObject
+ (NSString *)UmbrellaSKCloudServiceSetupOptionsKey;
+ (NSString *)FelicitySKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "UmbrellaInformation.h"
#import "FelicityInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface UmbrellaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface FelicityMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webUmbrellaView_;
UIWebView *webFelicityView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL UmbrellaYouYuanJiao;
@property(assign) BOOL FelicityYouYuanJiao;
- (void)UmbrellaSettingUmbrellaView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)UmbrellaInitWebView;
- (void)FelicitySettingFelicityView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)FelicityInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Umbrella/UmbrellaAllManager.h"
#import "Umbrella/UmbrellaHuiTiaoNotification.h"
#import "Umbrella/UmbrellaInformation.h"
#import "Felicity/FelicityAllManager.h"
#import "Felicity/FelicityHuiTiaoNotification.h"
#import "Felicity/FelicityInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *UmbrellaAppId;
NSString *UmbrellaAppKey;
NSString *UmbrellaLeakOrderUrl;
NSString *FelicityAppId;
NSString *FelicityAppKey;
NSString *FelicityLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *UmbrellaLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[UmbrellaAllManager UmbrellaInstance]UmbrellaChuShiHua];
[[UmbrellaAllManager UmbrellaInstance]UmbrellaYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:UmbrellaLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"UmbrellaToolCallBack" object:nil];
[[FelicityAllManager FelicityInstance]FelicityChuShiHua];
[[FelicityAllManager FelicityInstance]FelicityYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:FelicityLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"FelicityToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *UmbrellaLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
UmbrellaAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
UmbrellaAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[UmbrellaAllManager UmbrellaInstance]UmbrellaDengLu:UmbrellaAppId :UmbrellaAppKey :self.controller];
FelicityAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
FelicityAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[FelicityAllManager FelicityInstance]FelicityDengLu:FelicityAppId :FelicityAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *UmbrellaLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[UmbrellaInformation getInstance]openId];
loginInfo.sign = [[UmbrellaInformation getInstance] token];
loginInfo.timestamp = [[UmbrellaInformation getInstance] timestamp];
loginInfo.openId = [[FelicityInformation getInstance]openId];
loginInfo.sign = [[FelicityInformation getInstance] token];
loginInfo.timestamp = [[FelicityInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *UmbrellaLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"UmbrellaToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"FelicityToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *UmbrellaLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:UmbrellaLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:FelicityLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *UmbrellaLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
UmbrellaLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
FelicityLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:UmbrellaLeakOrderUrl forKey:@"lastUmbrellaLeakOrderUrl"];
[userDefaults setObject:FelicityLeakOrderUrl forKey:@"lastFelicityLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *UmbrellaLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:UmbrellaLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:FelicityLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *UmbrellaLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
UmbrellaLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
FelicityLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *UmbrellaLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastUmbrellaLeakOrderUrl = [userDefaults objectForKey:@"lastUmbrellaLeakOrderUrl"];
NSString* lastFelicityLeakOrderUrl = [userDefaults objectForKey:@"lastFelicityLeakOrderUrl"];
NSString* result;
if (lastUmbrellaLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastUmbrellaLeakOrderUrl :receiptDic];
if (lastFelicityLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastFelicityLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *UmbrellaLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[UmbrellaAllManager UmbrellaInstance] UmbrellaQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[FelicityAllManager FelicityInstance] FelicityQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
//保存订单号到本地
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
[userDefaults setObject:queryId forKey:@"lastqueryid"];
[userDefaults synchronize];
[[UmbrellaAllManager UmbrellaInstance] UmbrellaQueryOperation:self.controller UmbrellaHuoWuID:products UmbrellaJiaGe:[payInfo postAmount] UmbrellaHuoWuMing:[payInfo productName] UmbrellaDingDanHao:queryId];
[[FelicityAllManager FelicityInstance] FelicityQueryOperation:self.controller FelicityHuoWuID:products FelicityJiaGe:[payInfo postAmount] FelicityHuoWuMing:[payInfo productName] FelicityDingDanHao:queryId];
}
}
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface UmbrellaAllManager : NSObject
{
NSString* UmbrellaAPPID_;
NSString* UmbrellaAPPKEY_;
NSString* UmbrellaInviterCode_;
}
@property bool UmbrellaGeiWoHuaQianBa;
+ (UmbrellaAllManager *)UmbrellaInstance;
- (void)UmbrellaChuShiHua;
- (void)UmbrellaDengLu:(NSString *)UmbrellaAPPID : (NSString *)UmbrellaAPPKEY : (UIViewController *)controller;
- (void)UmbrellaYangShi:(NSString*)UmbrellaLeiXing;
- (void)UmbrellaQuery: (NSString *)UmbrellaFuWuQiID : (NSString *)UmbrellaNickName : (NSNumber *)UmbrellaAmount : (NSString *)UmbrellaCallBack : (UIViewController *)controller : (NSString *)UmbrellaServerName;
- (void)UmbrellaQueryOperation:(UIViewController*)controll UmbrellaHuoWuID:(NSString*)products UmbrellaJiaGe:(NSString*)amount UmbrellaHuoWuMing:(NSString*)productName UmbrellaDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const UmbrellaExitNotification;
extern NSString * const UmbrellaLoginNotification;
extern NSString * const UmbrellaErrorNotification;
@interface UmbrellaHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface UmbrellaIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* UmbrellaDingDanHao;
@property(nonatomic,strong) NSDictionary* UmbrellaHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* UmbrellaHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *UmbrellaHuoWuLieBiaoView;
- (void)UmbrellaHuaQianView:(UIViewController*)controller UmbrellaHuoWuD:(NSString*)products UmbrellaQian:(NSString*)amount UmbrellaHuoWuMing:(NSString*)productName UmbrellaDingDanHao:(NSString*)DingDanHao;
@end