lizhihui

更新190516版本2

Showing 74 changed files with 256 additions and 256 deletions
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
261A1D14228D3946008025AB /* Sakura.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 261A1D13228D3946008025AB /* Sakura.framework */; };
261A1D4E228D3C06008025AB /* Remaster.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 261A1D4D228D3C06008025AB /* Remaster.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 */
261A1D13228D3946008025AB /* Sakura.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sakura.framework; sourceTree = "<group>"; };
261A1D4D228D3C06008025AB /* Remaster.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Remaster.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>"; };
......@@ -114,9 +114,9 @@
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
261A1D14228D3946008025AB /* Sakura.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
261A1D4E228D3C06008025AB /* Remaster.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
);
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
261A1D13228D3946008025AB /* Sakura.framework */,
261A1D4D228D3C06008025AB /* Remaster.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* haibaoyouxi_config */,
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) SakuraHaiBaoJuhereportOpen;
- (void) SakuraHaiBaoJuhereportSDKOpen;
- (void)SakuraHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) RemasterHaiBaoJuhereportOpen;
- (void) RemasterHaiBaoJuhereportSDKOpen;
- (void)RemasterHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) SakuraHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) RemasterHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)SakuraHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)RemasterHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/SakuraHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : SakuraHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RemasterHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : RemasterHaiBaoJuheBaseModel
@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 *) SakuraHaiBaoJuheGetTsign ;
- (NSString *) SakuraHaiBaoJuheGetTimestamp ;
- (NSString *) RemasterHaiBaoJuheGetTsign ;
- (NSString *) RemasterHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/SakuraHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : SakuraHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RemasterHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : RemasterHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/SakuraHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : SakuraHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RemasterHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : RemasterHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// SakuraHaiBaoJuheReportInfo.h
// RemasterHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/SakuraHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : SakuraHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RemasterHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : RemasterHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* SakuraList;
@property(strong) NSMutableArray* RemasterList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)SakuraHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)RemasterHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface SakuraControl : NSObject
@interface RemasterControl : NSObject
- (void)initSakuraInstance;
- (void)initRemasterInstance;
- (void)SakuraStartGo;
- (void)RemasterStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface SakuraControl1 : NSObject
@interface RemasterControl1 : NSObject
- (void)initSakuraInstance;
- (void)initRemasterInstance;
- (void)SakuraStartGo;
- (void)RemasterStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface SakuraControl2 : NSObject
@interface RemasterControl2 : NSObject
- (void)initSakuraInstance;
- (void)initRemasterInstance;
- (void)SakuraStartGo;
- (void)RemasterStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface SakuraControl3 : NSObject
@interface RemasterControl3 : NSObject
- (void)initSakuraInstance;
- (void)initRemasterInstance;
- (void)SakuraStartGo;
- (void)RemasterStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface SakuraControl4 : NSObject
@interface RemasterControl4 : NSObject
- (void)initSakuraInstance;
- (void)initRemasterInstance;
- (void)SakuraStartGo;
- (void)RemasterStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface SakuraHaiBaoJuheBaseModel : NSObject
@interface RemasterHaiBaoJuheBaseModel : NSObject
- (NSString *)SakuraHaiBaoJuheObjectToJsonString;
- (NSString *)RemasterHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface SakuraHaiBaoJuheDGLogger : NSObject
@interface RemasterHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface RemasterAllManager : NSObject
{
NSString* RemasterAPPID_;
NSString* RemasterAPPKEY_;
NSString* RemasterInviterCode_;
}
@property bool RemasterGeiWoHuaQianBa;
+ (RemasterAllManager *)RemasterInstance;
- (void)RemasterChuShiHua;
- (void)RemasterDengLu:(NSString *)RemasterAPPID : (NSString *)RemasterAPPKEY : (UIViewController *)controller;
- (void)RemasterYangShi:(NSString*)RemasterLeiXing;
- (void)RemasterQuery: (NSString *)RemasterFuWuQiID : (NSString *)RemasterNickName : (NSNumber *)RemasterAmount : (NSString *)RemasterCallBack : (UIViewController *)controller : (NSString *)RemasterServerName;
- (void)RemasterQueryOperation:(UIViewController*)controll RemasterHuoWuID:(NSString*)products RemasterJiaGe:(NSString*)amount RemasterHuoWuMing:(NSString*)productName RemasterDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const RemasterExitNotification;
extern NSString * const RemasterLoginNotification;
extern NSString * const RemasterErrorNotification;
@interface RemasterHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface RemasterIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* RemasterDingDanHao;
@property(nonatomic,strong) NSDictionary* RemasterHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* RemasterHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *RemasterHuoWuLieBiaoView;
- (void)RemasterHuaQianView:(UIViewController*)controller RemasterHuoWuD:(NSString*)products RemasterQian:(NSString*)amount RemasterHuoWuMing:(NSString*)productName RemasterDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface SakuraInformation : NSObject
@interface RemasterInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (SakuraInformation *)getInstance;
+ (RemasterInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface SakuraInformationJM : NSObject
@interface RemasterInformationJM : NSObject
+(NSString *)SakuraJM:(NSString *)jm;
+(NSString *)RemasterJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface SakuraLocation : NSObject
@interface RemasterLocation : NSObject
+ (NSString *)SakuraSKCloudServiceSetupOptionsKey;
+ (NSString *)RemasterSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "SakuraInformation.h"
#import "RemasterInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface SakuraMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface RemasterMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webSakuraView_;
UIWebView *webRemasterView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL SakuraYouYuanJiao;
@property(assign) BOOL RemasterYouYuanJiao;
- (void)SakuraSettingSakuraView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)SakuraInitWebView;
- (void)RemasterSettingRemasterView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)RemasterInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
No preview for this file type
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface SakuraAllManager : NSObject
{
NSString* SakuraAPPID_;
NSString* SakuraAPPKEY_;
NSString* SakuraInviterCode_;
}
@property bool SakuraGeiWoHuaQianBa;
+ (SakuraAllManager *)SakuraInstance;
- (void)SakuraChuShiHua;
- (void)SakuraDengLu:(NSString *)SakuraAPPID : (NSString *)SakuraAPPKEY : (UIViewController *)controller;
- (void)SakuraYangShi:(NSString*)SakuraLeiXing;
- (void)SakuraQuery: (NSString *)SakuraFuWuQiID : (NSString *)SakuraNickName : (NSNumber *)SakuraAmount : (NSString *)SakuraCallBack : (UIViewController *)controller : (NSString *)SakuraServerName;
- (void)SakuraQueryOperation:(UIViewController*)controll SakuraHuoWuID:(NSString*)products SakuraJiaGe:(NSString*)amount SakuraHuoWuMing:(NSString*)productName SakuraDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const SakuraExitNotification;
extern NSString * const SakuraLoginNotification;
extern NSString * const SakuraErrorNotification;
@interface SakuraHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface SakuraIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* SakuraDingDanHao;
@property(nonatomic,strong) NSDictionary* SakuraHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* SakuraHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *SakuraHuoWuLieBiaoView;
- (void)SakuraHuaQianView:(UIViewController*)controller SakuraHuoWuD:(NSString*)products SakuraQian:(NSString*)amount SakuraHuoWuMing:(NSString*)productName SakuraDingDanHao:(NSString*)DingDanHao;
@end
No preview for this file type
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Sakura/SakuraAllManager.h"
#import "Sakura/SakuraHuiTiaoNotification.h"
#import "Sakura/SakuraInformation.h"
#import "Remaster/RemasterAllManager.h"
#import "Remaster/RemasterHuiTiaoNotification.h"
#import "Remaster/RemasterInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *SakuraAppId;
NSString *SakuraAppKey;
NSString *SakuraLeakOrderUrl;
NSString *RemasterAppId;
NSString *RemasterAppKey;
NSString *RemasterLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *SakuraLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[SakuraAllManager SakuraInstance]SakuraChuShiHua];
[[SakuraAllManager SakuraInstance]SakuraYangShi:@"sdk4"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SakuraLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SakuraToolCallBack" object:nil];
[[RemasterAllManager RemasterInstance]RemasterChuShiHua];
[[RemasterAllManager RemasterInstance]RemasterYangShi:@"sdk4"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:RemasterLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"RemasterToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *SakuraLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
SakuraAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
SakuraAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[SakuraAllManager SakuraInstance]SakuraDengLu:SakuraAppId :SakuraAppKey :self.controller];
RemasterAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
RemasterAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[RemasterAllManager RemasterInstance]RemasterDengLu:RemasterAppId :RemasterAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *SakuraLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[SakuraInformation getInstance]openId];
loginInfo.sign = [[SakuraInformation getInstance] token];
loginInfo.timestamp = [[SakuraInformation getInstance] timestamp];
loginInfo.openId = [[RemasterInformation getInstance]openId];
loginInfo.sign = [[RemasterInformation getInstance] token];
loginInfo.timestamp = [[RemasterInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *SakuraLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"SakuraToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"RemasterToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *SakuraLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:SakuraLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:RemasterLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *SakuraLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
SakuraLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
RemasterLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:SakuraLeakOrderUrl forKey:@"lastSakuraLeakOrderUrl"];
[userDefaults setObject:RemasterLeakOrderUrl forKey:@"lastRemasterLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *SakuraLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:SakuraLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:RemasterLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *SakuraLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
SakuraLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
RemasterLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *SakuraLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastSakuraLeakOrderUrl = [userDefaults objectForKey:@"lastSakuraLeakOrderUrl"];
NSString* lastRemasterLeakOrderUrl = [userDefaults objectForKey:@"lastRemasterLeakOrderUrl"];
NSString* result;
if (lastSakuraLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastSakuraLeakOrderUrl :receiptDic];
if (lastRemasterLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastRemasterLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *SakuraLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[SakuraAllManager SakuraInstance] SakuraQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[RemasterAllManager RemasterInstance] RemasterQuery: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];
[[SakuraAllManager SakuraInstance] SakuraQueryOperation:self.controller SakuraHuoWuID:products SakuraJiaGe:[payInfo postAmount] SakuraHuoWuMing:[payInfo productName] SakuraDingDanHao:queryId];
[[RemasterAllManager RemasterInstance] RemasterQueryOperation:self.controller RemasterHuoWuID:products RemasterJiaGe:[payInfo postAmount] RemasterHuoWuMing:[payInfo productName] RemasterDingDanHao:queryId];
}
}
......
......@@ -10,8 +10,8 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年05月16日版本1<br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年05月16日版本2<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Sakura.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Remarks.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换HaiBaoJuheSDK.framework ``` <br>
\ No newline at end of file
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) SakuraHaiBaoJuhereportOpen;
- (void) SakuraHaiBaoJuhereportSDKOpen;
- (void)SakuraHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) RemasterHaiBaoJuhereportOpen;
- (void) RemasterHaiBaoJuhereportSDKOpen;
- (void)RemasterHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) SakuraHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) RemasterHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)SakuraHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)RemasterHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/SakuraHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : SakuraHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RemasterHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : RemasterHaiBaoJuheBaseModel
@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 *) SakuraHaiBaoJuheGetTsign ;
- (NSString *) SakuraHaiBaoJuheGetTimestamp ;
- (NSString *) RemasterHaiBaoJuheGetTsign ;
- (NSString *) RemasterHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/SakuraHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : SakuraHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RemasterHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : RemasterHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/SakuraHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : SakuraHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RemasterHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : RemasterHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// SakuraHaiBaoJuheReportInfo.h
// RemasterHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/SakuraHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : SakuraHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RemasterHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : RemasterHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* SakuraList;
@property(strong) NSMutableArray* RemasterList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)SakuraHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)RemasterHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface SakuraControl : NSObject
@interface RemasterControl : NSObject
- (void)initSakuraInstance;
- (void)initRemasterInstance;
- (void)SakuraStartGo;
- (void)RemasterStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface SakuraControl1 : NSObject
@interface RemasterControl1 : NSObject
- (void)initSakuraInstance;
- (void)initRemasterInstance;
- (void)SakuraStartGo;
- (void)RemasterStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface SakuraControl2 : NSObject
@interface RemasterControl2 : NSObject
- (void)initSakuraInstance;
- (void)initRemasterInstance;
- (void)SakuraStartGo;
- (void)RemasterStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface SakuraControl3 : NSObject
@interface RemasterControl3 : NSObject
- (void)initSakuraInstance;
- (void)initRemasterInstance;
- (void)SakuraStartGo;
- (void)RemasterStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface SakuraControl4 : NSObject
@interface RemasterControl4 : NSObject
- (void)initSakuraInstance;
- (void)initRemasterInstance;
- (void)SakuraStartGo;
- (void)RemasterStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface SakuraHaiBaoJuheBaseModel : NSObject
@interface RemasterHaiBaoJuheBaseModel : NSObject
- (NSString *)SakuraHaiBaoJuheObjectToJsonString;
- (NSString *)RemasterHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface SakuraHaiBaoJuheDGLogger : NSObject
@interface RemasterHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface RemasterAllManager : NSObject
{
NSString* RemasterAPPID_;
NSString* RemasterAPPKEY_;
NSString* RemasterInviterCode_;
}
@property bool RemasterGeiWoHuaQianBa;
+ (RemasterAllManager *)RemasterInstance;
- (void)RemasterChuShiHua;
- (void)RemasterDengLu:(NSString *)RemasterAPPID : (NSString *)RemasterAPPKEY : (UIViewController *)controller;
- (void)RemasterYangShi:(NSString*)RemasterLeiXing;
- (void)RemasterQuery: (NSString *)RemasterFuWuQiID : (NSString *)RemasterNickName : (NSNumber *)RemasterAmount : (NSString *)RemasterCallBack : (UIViewController *)controller : (NSString *)RemasterServerName;
- (void)RemasterQueryOperation:(UIViewController*)controll RemasterHuoWuID:(NSString*)products RemasterJiaGe:(NSString*)amount RemasterHuoWuMing:(NSString*)productName RemasterDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const RemasterExitNotification;
extern NSString * const RemasterLoginNotification;
extern NSString * const RemasterErrorNotification;
@interface RemasterHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface RemasterIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* RemasterDingDanHao;
@property(nonatomic,strong) NSDictionary* RemasterHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* RemasterHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *RemasterHuoWuLieBiaoView;
- (void)RemasterHuaQianView:(UIViewController*)controller RemasterHuoWuD:(NSString*)products RemasterQian:(NSString*)amount RemasterHuoWuMing:(NSString*)productName RemasterDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface SakuraInformation : NSObject
@interface RemasterInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (SakuraInformation *)getInstance;
+ (RemasterInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface SakuraInformationJM : NSObject
@interface RemasterInformationJM : NSObject
+(NSString *)SakuraJM:(NSString *)jm;
+(NSString *)RemasterJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface SakuraLocation : NSObject
@interface RemasterLocation : NSObject
+ (NSString *)SakuraSKCloudServiceSetupOptionsKey;
+ (NSString *)RemasterSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "SakuraInformation.h"
#import "RemasterInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface SakuraMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface RemasterMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webSakuraView_;
UIWebView *webRemasterView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL SakuraYouYuanJiao;
@property(assign) BOOL RemasterYouYuanJiao;
- (void)SakuraSettingSakuraView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)SakuraInitWebView;
- (void)RemasterSettingRemasterView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)RemasterInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Sakura/SakuraAllManager.h"
#import "Sakura/SakuraHuiTiaoNotification.h"
#import "Sakura/SakuraInformation.h"
#import "Remaster/RemasterAllManager.h"
#import "Remaster/RemasterHuiTiaoNotification.h"
#import "Remaster/RemasterInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *SakuraAppId;
NSString *SakuraAppKey;
NSString *SakuraLeakOrderUrl;
NSString *RemasterAppId;
NSString *RemasterAppKey;
NSString *RemasterLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *SakuraLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[SakuraAllManager SakuraInstance]SakuraChuShiHua];
[[SakuraAllManager SakuraInstance]SakuraYangShi:@"sdk4"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SakuraLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SakuraToolCallBack" object:nil];
[[RemasterAllManager RemasterInstance]RemasterChuShiHua];
[[RemasterAllManager RemasterInstance]RemasterYangShi:@"sdk4"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:RemasterLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"RemasterToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *SakuraLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
SakuraAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
SakuraAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[SakuraAllManager SakuraInstance]SakuraDengLu:SakuraAppId :SakuraAppKey :self.controller];
RemasterAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
RemasterAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[RemasterAllManager RemasterInstance]RemasterDengLu:RemasterAppId :RemasterAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *SakuraLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[SakuraInformation getInstance]openId];
loginInfo.sign = [[SakuraInformation getInstance] token];
loginInfo.timestamp = [[SakuraInformation getInstance] timestamp];
loginInfo.openId = [[RemasterInformation getInstance]openId];
loginInfo.sign = [[RemasterInformation getInstance] token];
loginInfo.timestamp = [[RemasterInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *SakuraLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"SakuraToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"RemasterToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *SakuraLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:SakuraLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:RemasterLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *SakuraLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
SakuraLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
RemasterLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:SakuraLeakOrderUrl forKey:@"lastSakuraLeakOrderUrl"];
[userDefaults setObject:RemasterLeakOrderUrl forKey:@"lastRemasterLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *SakuraLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:SakuraLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:RemasterLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *SakuraLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
SakuraLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
RemasterLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *SakuraLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastSakuraLeakOrderUrl = [userDefaults objectForKey:@"lastSakuraLeakOrderUrl"];
NSString* lastRemasterLeakOrderUrl = [userDefaults objectForKey:@"lastRemasterLeakOrderUrl"];
NSString* result;
if (lastSakuraLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastSakuraLeakOrderUrl :receiptDic];
if (lastRemasterLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastRemasterLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *SakuraLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[SakuraAllManager SakuraInstance] SakuraQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[RemasterAllManager RemasterInstance] RemasterQuery: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];
[[SakuraAllManager SakuraInstance] SakuraQueryOperation:self.controller SakuraHuoWuID:products SakuraJiaGe:[payInfo postAmount] SakuraHuoWuMing:[payInfo productName] SakuraDingDanHao:queryId];
[[RemasterAllManager RemasterInstance] RemasterQueryOperation:self.controller RemasterHuoWuID:products RemasterJiaGe:[payInfo postAmount] RemasterHuoWuMing:[payInfo productName] RemasterDingDanHao:queryId];
}
}
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface SakuraAllManager : NSObject
{
NSString* SakuraAPPID_;
NSString* SakuraAPPKEY_;
NSString* SakuraInviterCode_;
}
@property bool SakuraGeiWoHuaQianBa;
+ (SakuraAllManager *)SakuraInstance;
- (void)SakuraChuShiHua;
- (void)SakuraDengLu:(NSString *)SakuraAPPID : (NSString *)SakuraAPPKEY : (UIViewController *)controller;
- (void)SakuraYangShi:(NSString*)SakuraLeiXing;
- (void)SakuraQuery: (NSString *)SakuraFuWuQiID : (NSString *)SakuraNickName : (NSNumber *)SakuraAmount : (NSString *)SakuraCallBack : (UIViewController *)controller : (NSString *)SakuraServerName;
- (void)SakuraQueryOperation:(UIViewController*)controll SakuraHuoWuID:(NSString*)products SakuraJiaGe:(NSString*)amount SakuraHuoWuMing:(NSString*)productName SakuraDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const SakuraExitNotification;
extern NSString * const SakuraLoginNotification;
extern NSString * const SakuraErrorNotification;
@interface SakuraHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface SakuraIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* SakuraDingDanHao;
@property(nonatomic,strong) NSDictionary* SakuraHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* SakuraHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *SakuraHuoWuLieBiaoView;
- (void)SakuraHuaQianView:(UIViewController*)controller SakuraHuoWuD:(NSString*)products SakuraQian:(NSString*)amount SakuraHuoWuMing:(NSString*)productName SakuraDingDanHao:(NSString*)DingDanHao;
@end