lizhihui

更新190408版本1

Showing 74 changed files with 265 additions and 265 deletions
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
260631BB224CC24700019981 /* OldTimes.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260631BA224CC24700019981 /* OldTimes.framework */; };
26926B41225AF10200E23031 /* Umbrella.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26926B40225AF10200E23031 /* Umbrella.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 */
260631BA224CC24700019981 /* OldTimes.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = OldTimes.framework; sourceTree = "<group>"; };
26926B40225AF10200E23031 /* Umbrella.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Umbrella.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,8 +106,8 @@
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 */,
260631BB224CC24700019981 /* OldTimes.framework in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
260631BA224CC24700019981 /* OldTimes.framework */,
26926B40225AF10200E23031 /* Umbrella.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* haibaoyouxi_config */,
......@@ -280,7 +280,7 @@
TargetAttributes = {
BB5F3C871C1811BC00DA339D = {
CreatedOnToolsVersion = 6.4;
DevelopmentTeam = A3DGN26BA8;
DevelopmentTeam = PNDD7Y396D;
ProvisioningStyle = Manual;
};
BB5F3CA01C1811BC00DA339D = {
......@@ -469,7 +469,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = A3DGN26BA8;
DEVELOPMENT_TEAM = PNDD7Y396D;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......@@ -487,10 +487,10 @@
);
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.mihuyo.beta;
PRODUCT_BUNDLE_IDENTIFIER = com.test.youai;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "f5e11833-b2e3-48fd-8903-8da416b533f7";
PROVISIONING_PROFILE_SPECIFIER = dev_provision;
PROVISIONING_PROFILE = "9303482b-bf64-4d76-83c5-97cec24e2bd5";
PROVISIONING_PROFILE_SPECIFIER = dev;
TARGETED_DEVICE_FAMILY = "1,2";
VALID_ARCHS = "arm64 armv7s";
};
......@@ -503,7 +503,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = A3DGN26BA8;
DEVELOPMENT_TEAM = PNDD7Y396D;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......@@ -521,10 +521,10 @@
);
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.mihuyo.beta;
PRODUCT_BUNDLE_IDENTIFIER = com.test.youai;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "efde732c-987c-4f2a-bc64-c11762722e03";
PROVISIONING_PROFILE_SPECIFIER = dis_provision;
PROVISIONING_PROFILE = "8e8ee19d-d19f-41ba-9a9d-108915ed5380";
PROVISIONING_PROFILE_SPECIFIER = dis;
TARGETED_DEVICE_FAMILY = "1,2";
VALID_ARCHS = "arm64 armv7s";
};
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) OldTimesHaiBaoJuhereportOpen;
- (void) OldTimesHaiBaoJuhereportSDKOpen;
- (void)OldTimesHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) UmbrellaHaiBaoJuhereportOpen;
- (void) UmbrellaHaiBaoJuhereportSDKOpen;
- (void)UmbrellaHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) OldTimesHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) UmbrellaHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)OldTimesHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)UmbrellaHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/OldTimesHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : OldTimesHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : UmbrellaHaiBaoJuheBaseModel
@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 *) OldTimesHaiBaoJuheGetTsign ;
- (NSString *) OldTimesHaiBaoJuheGetTimestamp ;
- (NSString *) UmbrellaHaiBaoJuheGetTsign ;
- (NSString *) UmbrellaHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/OldTimesHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : OldTimesHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : UmbrellaHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/OldTimesHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : OldTimesHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : UmbrellaHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// OldTimesHaiBaoJuheReportInfo.h
// UmbrellaHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/OldTimesHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : OldTimesHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : UmbrellaHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* OldTimesList;
@property(strong) NSMutableArray* UmbrellaList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)OldTimesHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)UmbrellaHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface OldTimesControl : NSObject
@interface UmbrellaControl : NSObject
- (void)initOldTimesInstance;
- (void)initUmbrellaInstance;
- (void)OldTimesStartGo;
- (void)UmbrellaStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface OldTimesControl1 : NSObject
@interface UmbrellaControl1 : NSObject
- (void)initOldTimesInstance;
- (void)initUmbrellaInstance;
- (void)OldTimesStartGo;
- (void)UmbrellaStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface OldTimesControl2 : NSObject
@interface UmbrellaControl2 : NSObject
- (void)initOldTimesInstance;
- (void)initUmbrellaInstance;
- (void)OldTimesStartGo;
- (void)UmbrellaStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface OldTimesControl3 : NSObject
@interface UmbrellaControl3 : NSObject
- (void)initOldTimesInstance;
- (void)initUmbrellaInstance;
- (void)OldTimesStartGo;
- (void)UmbrellaStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface OldTimesControl4 : NSObject
@interface UmbrellaControl4 : NSObject
- (void)initOldTimesInstance;
- (void)initUmbrellaInstance;
- (void)OldTimesStartGo;
- (void)UmbrellaStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface OldTimesHaiBaoJuheBaseModel : NSObject
@interface UmbrellaHaiBaoJuheBaseModel : NSObject
- (NSString *)OldTimesHaiBaoJuheObjectToJsonString;
- (NSString *)UmbrellaHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface OldTimesHaiBaoJuheDGLogger : NSObject
@interface UmbrellaHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface OldTimesAllManager : NSObject
{
NSString* OldTimesAPPID_;
NSString* OldTimesAPPKEY_;
NSString* OldTimesInviterCode_;
}
@property bool OldTimesGeiWoHuaQianBa;
+ (OldTimesAllManager *)OldTimesInstance;
- (void)OldTimesChuShiHua;
- (void)OldTimesDengLu:(NSString *)OldTimesAPPID : (NSString *)OldTimesAPPKEY : (UIViewController *)controller;
- (void)OldTimesYangShi:(NSString*)OldTimesLeiXing;
- (void)OldTimesQuery: (NSString *)OldTimesFuWuQiID : (NSString *)OldTimesNickName : (NSNumber *)OldTimesAmount : (NSString *)OldTimesCallBack : (UIViewController *)controller : (NSString *)OldTimesServerName;
- (void)OldTimesQueryOperation:(UIViewController*)controll OldTimesHuoWuID:(NSString*)products OldTimesJiaGe:(NSString*)amount OldTimesHuoWuMing:(NSString*)productName OldTimesDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const OldTimesExitNotification;
extern NSString * const OldTimesLoginNotification;
extern NSString * const OldTimesErrorNotification;
@interface OldTimesHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface OldTimesIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* OldTimesDingDanHao;
@property(nonatomic,strong) NSDictionary* OldTimesHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* OldTimesHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *OldTimesHuoWuLieBiaoView;
- (void)OldTimesHuaQianView:(UIViewController*)controller OldTimesHuoWuD:(NSString*)products OldTimesQian:(NSString*)amount OldTimesHuoWuMing:(NSString*)productName OldTimesDingDanHao:(NSString*)DingDanHao;
@end
#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
#import <Foundation/Foundation.h>
@interface OldTimesInformation : NSObject
@interface UmbrellaInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (OldTimesInformation *)getInstance;
+ (UmbrellaInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface OldTimesInformationJM : NSObject
@interface UmbrellaInformationJM : NSObject
+(NSString *)OldTimesJM:(NSString *)jm;
+(NSString *)UmbrellaJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface OldTimesLocation : NSObject
@interface UmbrellaLocation : NSObject
+ (NSString *)OldTimesSKCloudServiceSetupOptionsKey;
+ (NSString *)UmbrellaSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "OldTimesInformation.h"
#import "UmbrellaInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface OldTimesMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface UmbrellaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webOldTimesView_;
UIWebView *webUmbrellaView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL OldTimesYouYuanJiao;
@property(assign) BOOL UmbrellaYouYuanJiao;
- (void)OldTimesSettingOldTimesView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)OldTimesInitWebView;
- (void)UmbrellaSettingUmbrellaView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)UmbrellaInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
No preview for this file type
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "OldTimes/OldTimesAllManager.h"
#import "OldTimes/OldTimesHuiTiaoNotification.h"
#import "OldTimes/OldTimesInformation.h"
#import "Umbrella/UmbrellaAllManager.h"
#import "Umbrella/UmbrellaHuiTiaoNotification.h"
#import "Umbrella/UmbrellaInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *OldTimesAppId;
NSString *OldTimesAppKey;
NSString *OldTimesLeakOrderUrl;
NSString *UmbrellaAppId;
NSString *UmbrellaAppKey;
NSString *UmbrellaLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *OldTimesLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[OldTimesAllManager OldTimesInstance]OldTimesChuShiHua];
[[OldTimesAllManager OldTimesInstance]OldTimesYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:OldTimesLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"OldTimesToolCallBack" object:nil];
[[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];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *OldTimesLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
OldTimesAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
OldTimesAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[OldTimesAllManager OldTimesInstance]OldTimesDengLu:OldTimesAppId :OldTimesAppKey :self.controller];
UmbrellaAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
UmbrellaAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[UmbrellaAllManager UmbrellaInstance]UmbrellaDengLu:UmbrellaAppId :UmbrellaAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *OldTimesLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[OldTimesInformation getInstance]openId];
loginInfo.sign = [[OldTimesInformation getInstance] token];
loginInfo.timestamp = [[OldTimesInformation getInstance] timestamp];
loginInfo.openId = [[UmbrellaInformation getInstance]openId];
loginInfo.sign = [[UmbrellaInformation getInstance] token];
loginInfo.timestamp = [[UmbrellaInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *OldTimesLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"OldTimesToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"UmbrellaToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *OldTimesLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:OldTimesLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:UmbrellaLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *OldTimesLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
OldTimesLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
UmbrellaLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:OldTimesLeakOrderUrl forKey:@"lastOldTimesLeakOrderUrl"];
[userDefaults setObject:UmbrellaLeakOrderUrl forKey:@"lastUmbrellaLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *OldTimesLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:OldTimesLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:UmbrellaLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *OldTimesLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
OldTimesLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
UmbrellaLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *OldTimesLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastOldTimesLeakOrderUrl = [userDefaults objectForKey:@"lastOldTimesLeakOrderUrl"];
NSString* lastUmbrellaLeakOrderUrl = [userDefaults objectForKey:@"lastUmbrellaLeakOrderUrl"];
NSString* result;
if (lastOldTimesLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastOldTimesLeakOrderUrl :receiptDic];
if (lastUmbrellaLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastUmbrellaLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *OldTimesLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[OldTimesAllManager OldTimesInstance] OldTimesQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[UmbrellaAllManager UmbrellaInstance] UmbrellaQuery: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];
[[OldTimesAllManager OldTimesInstance] OldTimesQueryOperation:self.controller OldTimesHuoWuID:products OldTimesJiaGe:[payInfo postAmount] OldTimesHuoWuMing:[payInfo productName] OldTimesDingDanHao:queryId];
[[UmbrellaAllManager UmbrellaInstance] UmbrellaQueryOperation:self.controller UmbrellaHuoWuID:products UmbrellaJiaGe:[payInfo postAmount] UmbrellaHuoWuMing:[payInfo productName] UmbrellaDingDanHao:queryId];
}
}
......
......@@ -10,8 +10,8 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年03月28日版本<br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年04月08日版本<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中OldTimes.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Umbrella.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) OldTimesHaiBaoJuhereportOpen;
- (void) OldTimesHaiBaoJuhereportSDKOpen;
- (void)OldTimesHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) UmbrellaHaiBaoJuhereportOpen;
- (void) UmbrellaHaiBaoJuhereportSDKOpen;
- (void)UmbrellaHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) OldTimesHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) UmbrellaHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)OldTimesHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)UmbrellaHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/OldTimesHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : OldTimesHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : UmbrellaHaiBaoJuheBaseModel
@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 *) OldTimesHaiBaoJuheGetTsign ;
- (NSString *) OldTimesHaiBaoJuheGetTimestamp ;
- (NSString *) UmbrellaHaiBaoJuheGetTsign ;
- (NSString *) UmbrellaHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/OldTimesHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : OldTimesHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : UmbrellaHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/OldTimesHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : OldTimesHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : UmbrellaHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// OldTimesHaiBaoJuheReportInfo.h
// UmbrellaHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/OldTimesHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : OldTimesHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/UmbrellaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : UmbrellaHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* OldTimesList;
@property(strong) NSMutableArray* UmbrellaList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)OldTimesHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)UmbrellaHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface OldTimesControl : NSObject
@interface UmbrellaControl : NSObject
- (void)initOldTimesInstance;
- (void)initUmbrellaInstance;
- (void)OldTimesStartGo;
- (void)UmbrellaStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface OldTimesControl1 : NSObject
@interface UmbrellaControl1 : NSObject
- (void)initOldTimesInstance;
- (void)initUmbrellaInstance;
- (void)OldTimesStartGo;
- (void)UmbrellaStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface OldTimesControl2 : NSObject
@interface UmbrellaControl2 : NSObject
- (void)initOldTimesInstance;
- (void)initUmbrellaInstance;
- (void)OldTimesStartGo;
- (void)UmbrellaStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface OldTimesControl3 : NSObject
@interface UmbrellaControl3 : NSObject
- (void)initOldTimesInstance;
- (void)initUmbrellaInstance;
- (void)OldTimesStartGo;
- (void)UmbrellaStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface OldTimesControl4 : NSObject
@interface UmbrellaControl4 : NSObject
- (void)initOldTimesInstance;
- (void)initUmbrellaInstance;
- (void)OldTimesStartGo;
- (void)UmbrellaStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface OldTimesHaiBaoJuheBaseModel : NSObject
@interface UmbrellaHaiBaoJuheBaseModel : NSObject
- (NSString *)OldTimesHaiBaoJuheObjectToJsonString;
- (NSString *)UmbrellaHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface OldTimesHaiBaoJuheDGLogger : NSObject
@interface UmbrellaHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface OldTimesAllManager : NSObject
{
NSString* OldTimesAPPID_;
NSString* OldTimesAPPKEY_;
NSString* OldTimesInviterCode_;
}
@property bool OldTimesGeiWoHuaQianBa;
+ (OldTimesAllManager *)OldTimesInstance;
- (void)OldTimesChuShiHua;
- (void)OldTimesDengLu:(NSString *)OldTimesAPPID : (NSString *)OldTimesAPPKEY : (UIViewController *)controller;
- (void)OldTimesYangShi:(NSString*)OldTimesLeiXing;
- (void)OldTimesQuery: (NSString *)OldTimesFuWuQiID : (NSString *)OldTimesNickName : (NSNumber *)OldTimesAmount : (NSString *)OldTimesCallBack : (UIViewController *)controller : (NSString *)OldTimesServerName;
- (void)OldTimesQueryOperation:(UIViewController*)controll OldTimesHuoWuID:(NSString*)products OldTimesJiaGe:(NSString*)amount OldTimesHuoWuMing:(NSString*)productName OldTimesDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const OldTimesExitNotification;
extern NSString * const OldTimesLoginNotification;
extern NSString * const OldTimesErrorNotification;
@interface OldTimesHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface OldTimesIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* OldTimesDingDanHao;
@property(nonatomic,strong) NSDictionary* OldTimesHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* OldTimesHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *OldTimesHuoWuLieBiaoView;
- (void)OldTimesHuaQianView:(UIViewController*)controller OldTimesHuoWuD:(NSString*)products OldTimesQian:(NSString*)amount OldTimesHuoWuMing:(NSString*)productName OldTimesDingDanHao:(NSString*)DingDanHao;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "OldTimes/OldTimesAllManager.h"
#import "OldTimes/OldTimesHuiTiaoNotification.h"
#import "OldTimes/OldTimesInformation.h"
#import "Umbrella/UmbrellaAllManager.h"
#import "Umbrella/UmbrellaHuiTiaoNotification.h"
#import "Umbrella/UmbrellaInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *OldTimesAppId;
NSString *OldTimesAppKey;
NSString *OldTimesLeakOrderUrl;
NSString *UmbrellaAppId;
NSString *UmbrellaAppKey;
NSString *UmbrellaLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *OldTimesLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[OldTimesAllManager OldTimesInstance]OldTimesChuShiHua];
[[OldTimesAllManager OldTimesInstance]OldTimesYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:OldTimesLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"OldTimesToolCallBack" object:nil];
[[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];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *OldTimesLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
OldTimesAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
OldTimesAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[OldTimesAllManager OldTimesInstance]OldTimesDengLu:OldTimesAppId :OldTimesAppKey :self.controller];
UmbrellaAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
UmbrellaAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[UmbrellaAllManager UmbrellaInstance]UmbrellaDengLu:UmbrellaAppId :UmbrellaAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *OldTimesLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[OldTimesInformation getInstance]openId];
loginInfo.sign = [[OldTimesInformation getInstance] token];
loginInfo.timestamp = [[OldTimesInformation getInstance] timestamp];
loginInfo.openId = [[UmbrellaInformation getInstance]openId];
loginInfo.sign = [[UmbrellaInformation getInstance] token];
loginInfo.timestamp = [[UmbrellaInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *OldTimesLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"OldTimesToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"UmbrellaToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *OldTimesLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:OldTimesLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:UmbrellaLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *OldTimesLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
OldTimesLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
UmbrellaLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:OldTimesLeakOrderUrl forKey:@"lastOldTimesLeakOrderUrl"];
[userDefaults setObject:UmbrellaLeakOrderUrl forKey:@"lastUmbrellaLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *OldTimesLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:OldTimesLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:UmbrellaLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *OldTimesLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
OldTimesLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
UmbrellaLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *OldTimesLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastOldTimesLeakOrderUrl = [userDefaults objectForKey:@"lastOldTimesLeakOrderUrl"];
NSString* lastUmbrellaLeakOrderUrl = [userDefaults objectForKey:@"lastUmbrellaLeakOrderUrl"];
NSString* result;
if (lastOldTimesLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastOldTimesLeakOrderUrl :receiptDic];
if (lastUmbrellaLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastUmbrellaLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *OldTimesLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[OldTimesAllManager OldTimesInstance] OldTimesQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[UmbrellaAllManager UmbrellaInstance] UmbrellaQuery: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];
[[OldTimesAllManager OldTimesInstance] OldTimesQueryOperation:self.controller OldTimesHuoWuID:products OldTimesJiaGe:[payInfo postAmount] OldTimesHuoWuMing:[payInfo productName] OldTimesDingDanHao:queryId];
[[UmbrellaAllManager UmbrellaInstance] UmbrellaQueryOperation:self.controller UmbrellaHuoWuID:products UmbrellaJiaGe:[payInfo postAmount] UmbrellaHuoWuMing:[payInfo productName] UmbrellaDingDanHao: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
#import <Foundation/Foundation.h>
@interface OldTimesInformation : NSObject
@interface UmbrellaInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (OldTimesInformation *)getInstance;
+ (UmbrellaInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface OldTimesInformationJM : NSObject
@interface UmbrellaInformationJM : NSObject
+(NSString *)OldTimesJM:(NSString *)jm;
+(NSString *)UmbrellaJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface OldTimesLocation : NSObject
@interface UmbrellaLocation : NSObject
+ (NSString *)OldTimesSKCloudServiceSetupOptionsKey;
+ (NSString *)UmbrellaSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "OldTimesInformation.h"
#import "UmbrellaInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface OldTimesMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface UmbrellaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webOldTimesView_;
UIWebView *webUmbrellaView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL OldTimesYouYuanJiao;
@property(assign) BOOL UmbrellaYouYuanJiao;
- (void)OldTimesSettingOldTimesView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)OldTimesInitWebView;
- (void)UmbrellaSettingUmbrellaView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)UmbrellaInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......