lizhihui

更新190819版本2

Showing 60 changed files with 316 additions and 316 deletions
No preview for this file type
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface PromptsAbsenceHaiBaoJuheBaseModelStates : NSObject
@interface BylawsBoostHaiBaoJuheBaseModelDwell : NSObject
- (NSString *) AbsenceHaiBaoJuheObjectToJsonString;
- (NSString *) BoostHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
#import <Foundation/Foundation.h>
@interface AccordAbsenceControlAmple : NSObject
@interface CairoBoostControlSibling : NSObject
- (void)initAbsenceInstance;
- (void)initBoostInstance;
- (void) AbsenceStartGo;
- (void) BoostStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
extern NSString * const GuptaAbsenceExitNotificationLyons;
extern NSString * const AccordAbsenceLoginNotificationAmple;
extern NSString * const PromptsAbsenceErrorNotificationStates;
@interface FreaksAbsenceHuiTiaoNotificationAdding : NSObject
@end
#import <UIKit/UIKit.h>
#import "QuasiAbsenceInformationHires.h"
#import "HigherBoostInformationMedian.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface PrismAbsenceMainVoice : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface GreenBoostMainSwinger : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webAbsenceView_;
UIWebView *webBoostView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL AbsenceYouYuanJiao;
@property(assign) BOOL BoostYouYuanJiao;
- (void)AbsenceSettingAbsenceView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)AbsenceInitWebView;
- (void)BoostSettingBoostView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)BoostInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface PrismHaiBaoJuheUtilsVoice : NSObject
@interface GreenHaiBaoJuheUtilsSwinger : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *) AbsenceHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *) BoostHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)AccordcreateGzyazfUrlAmple;
+(NSString *)SpecifycreateGzyazfUrlCarrie;
+(UIActivityIndicatorView *)showLoadingDialog:(UIView*)parentView;
+(void)dismissLoadingDialog:(UIActivityIndicatorView*)indicatorView;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface GuptaAbsenceAllManagerLyons : NSObject
{
NSString* AbsenceAPPID_;
NSString* AbsenceAPPKEY_;
NSString* AbsenceInviterCode_;
}
@property(strong) NSMutableArray* AbsenceList;
@property bool AbsenceGeiWoHuaQianBa;
+ (GuptaAbsenceAllManagerLyons *)SeventyAbsenceInstanceWines;
- (void)QuasiAbsenceChuShiHuaHires;
- (void)GivingAbsenceDengLuDefend:(NSString *)AbsenceAPPID : (NSString *)AbsenceAPPKEY : (UIViewController *)controller;
- (void)ArsenicAbsenceYangShiScraps:(NSString*)AbsenceLeiXing;
- (void)AbsenceQuery: (NSString *)AbsenceFuWuQiID : (NSString *)AbsenceNickName : (NSNumber *)AbsenceAmount : (NSString *)AbsenceCallBack : (UIViewController *)controller : (NSString *)AbsenceServerName;
- (void)AbsenceQueryOperation:(UIViewController*)controll AbsenceHuoWuID:(NSString*)products AbsenceJiaGe:(NSString*)amount AbsenceHuoWuMing:(NSString*)productName AbsenceDingDanHao:(NSString*) DingDanHao;
@end
#import "PromptsAbsenceHaiBaoJuheBaseModelStates.h"
@interface HaiBaoJuheCreateOrderInfo : PromptsAbsenceHaiBaoJuheBaseModelStates
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface HaiBaoJuheCreateOrderInfo : BylawsBoostHaiBaoJuheBaseModelDwell
@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 *) AbsenceHaiBaoJuheGetTsign ;
- (NSString *) AbsenceHaiBaoJuheGetTimestamp ;
- (NSString *) BoostHaiBaoJuheGetTsign ;
- (NSString *) BoostHaiBaoJuheGetTimestamp ;
@end
......
#import "PromptsAbsenceHaiBaoJuheBaseModelStates.h"
@interface HaiBaoJuheLoginInfo : PromptsAbsenceHaiBaoJuheBaseModelStates
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface HaiBaoJuheLoginInfo : BylawsBoostHaiBaoJuheBaseModelDwell
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// AbsenceHaiBaoJuheReportInfo.h
// BoostHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PromptsAbsenceHaiBaoJuheBaseModelStates.h"
@interface HaiBaoJuheReportInfo : PromptsAbsenceHaiBaoJuheBaseModelStates
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface HaiBaoJuheReportInfo : BylawsBoostHaiBaoJuheBaseModelDwell
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* AbsenceList;
@property(strong) NSMutableArray* BoostList;
@property BOOL isAppleGzyazfing;
......
#import <UIKit/UIKit.h>
#import "BryanHaiBaoJuheCheckerFurnace.h"
#import "SigningHaiBaoJuheCheckerJuliet.h"
#import "HaiBaoJuheReportInfo.h"
#import "HaiBaoJuheLoginInfo.h"
#import "Interface.h"
#import "AccordHaiBaoJuheNotificationAmple.h"
#import "AccordHaiBaoJuheGzyazfInfoAmple.h"
#import "SpecifyHaiBaoJuheNotificationCarrie.h"
#import "SpecifyHaiBaoJuheGzyazfInfoCarrie.h"
#import "UnionInterface.h"
#import "HaiBaoJuheCreateOrderInfo.h"
#import "AccordHaiBaoJuheConfigAmple.h"
#import "PrismHaiBaoJuheUtilsVoice.h"
#import "SpecifyHaiBaoJuheConfigCarrie.h"
#import "GreenHaiBaoJuheUtilsSwinger.h"
#import "NetCenter.h"
#import "HaiBaoJuheSDK.h"
#import "HaiBaoJuheSDKDelegate.h"
......
#import <UIKit/UIKit.h>
@interface HelpfulBoostIAPHelperControlPlacebo : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* BoostDingDanHao;
@property(nonatomic,strong) NSDictionary* BoostHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* BoostHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *BoostHuoWuLieBiaoView;
- (void)BoostHuaQianView:(UIViewController*)controller BoostHuoWuD:(NSString*)products BoostQian:(NSString*)amount BoostHuoWuMing:(NSString*)productName BoostDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface QuasiAbsenceInformationHires : NSObject
@interface HigherBoostInformationMedian : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (QuasiAbsenceInformationHires *)getInstance;
+ (HigherBoostInformationMedian *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface ArsenicAbsenceControlScraps : NSObject
@interface InitialBoostControlMiddot : NSObject
- (void)initAbsenceInstance;
- (void)initBoostInstance;
- (void) AbsenceStartGo;
- (void) BoostStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface FreaksAbsenceControlAdding : NSObject
@interface MarianBoostControlSinking : NSObject
- (void)initAbsenceInstance;
- (void)initBoostInstance;
- (void) AbsenceStartGo;
- (void) BoostStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ArsenicAbsenceInformationJMScraps : NSObject
@interface MarianBoostInformationJMSinking : NSObject
+(NSString *)AbsenceJM:(NSString *)jm;
+(NSString *)BoostJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface MessyBoostAllManagerHenri : NSObject
{
NSString* BoostAPPID_;
NSString* BoostAPPKEY_;
NSString* BoostInviterCode_;
}
@property(strong) NSMutableArray* BoostList;
@property bool BoostGeiWoHuaQianBa;
+ (MessyBoostAllManagerHenri *)HelpfulBoostInstancePlacebo;
- (void)HigherBoostChuShiHuaMedian;
- (void)CairoBoostDengLuSibling:(NSString *)BoostAPPID : (NSString *)BoostAPPKEY : (UIViewController *)controller;
- (void)MarianBoostYangShiSinking:(NSString*)BoostLeiXing;
- (void)BoostQuery: (NSString *)BoostFuWuQiID : (NSString *)BoostNickName : (NSNumber *)BoostAmount : (NSString *)BoostCallBack : (UIViewController *)controller : (NSString *)BoostServerName;
- (void)BoostQueryOperation:(UIViewController*)controll BoostHuoWuID:(NSString*)products BoostJiaGe:(NSString*)amount BoostHuoWuMing:(NSString*)productName BoostDingDanHao:(NSString*) DingDanHao;
@end
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface GuptaAbsenceHaiBaoJuheDGLoggerLyons : NSObject
@interface MessyBoostHaiBaoJuheDGLoggerHenri : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
@interface GivingAbsenceControlDefend : NSObject
@interface PatentBoostControlWalked : NSObject
- (void)initAbsenceInstance;
- (void)initBoostInstance;
- (void) AbsenceStartGo;
- (void) BoostStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
extern NSString * const MessyBoostExitNotificationHenri;
extern NSString * const SpecifyBoostLoginNotificationCarrie;
extern NSString * const BylawsBoostErrorNotificationDwell;
@interface PatentBoostHuiTiaoNotificationWalked : NSObject
@end
#import <UIKit/UIKit.h>
@interface SeventyAbsenceIAPHelperControlWines : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* AbsenceDingDanHao;
@property(nonatomic,strong) NSDictionary* AbsenceHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* AbsenceHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *AbsenceHuoWuLieBiaoView;
- (void)AbsenceHuaQianView:(UIViewController*)controller AbsenceHuoWuD:(NSString*)products AbsenceQian:(NSString*)amount AbsenceHuoWuMing:(NSString*)productName AbsenceDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
@interface BryanAbsenceLocationFurnace : NSObject
@interface SigningBoostLocationJuliet : NSObject
+ (NSString *)AbsenceSKCloudServiceSetupOptionsKey;
+ (NSString *)BoostSKCloudServiceSetupOptionsKey;
@end
......
#import <Foundation/Foundation.h>
#import "HaiBaoJuheLoginInfo.h"
#import "AccordHaiBaoJuheNotificationAmple.h"
#import "SpecifyHaiBaoJuheNotificationCarrie.h"
#import "HaiBaoJuheCreateOrderInfo.h"
#import "AccordHaiBaoJuheGzyazfInfoAmple.h"
#import "SpecifyHaiBaoJuheGzyazfInfoCarrie.h"
#import "HaiBaoJuheReportInfo.h"
#import "HaiBaoJuheSDKDelegate.h"
@interface BryanHaiBaoJuheCheckerFurnace : NSObject<HaiBaoJuheSDKDelegate>
@interface SigningHaiBaoJuheCheckerJuliet : NSObject<HaiBaoJuheSDKDelegate>
@property(nonatomic, strong)NSString *userId;
@property(nonatomic, strong)id<HaiBaoJuheSDKDelegate> mHaiBaoJuheSDKDelegate;
@property bool onlyOneTimeGzyazf;
+ (BryanHaiBaoJuheCheckerFurnace *)SybasegetInstanceJelsoft;
+ (SigningHaiBaoJuheCheckerJuliet *)InitialgetInstanceMiddot;
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) AbsenceHaiBaoJuhereportOpen;
- (void) AbsenceHaiBaoJuhereportSDKOpen;
- (void) AbsenceHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) BoostHaiBaoJuhereportOpen;
- (void) BoostHaiBaoJuhereportSDKOpen;
- (void) BoostHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) AbsenceHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) BoostHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) AbsenceHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void) BoostHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import <Foundation/Foundation.h>
@interface SybaseAbsenceControlJelsoft : NSObject
@interface SpecifyBoostControlCarrie : NSObject
- (void)initAbsenceInstance;
- (void)initBoostInstance;
- (void) AbsenceStartGo;
- (void) BoostStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface AccordHaiBaoJuheConfigAmple : NSObject
@interface SpecifyHaiBaoJuheConfigCarrie : NSObject
@property(nonatomic, strong)NSString *gameSimpleName;
@property(nonatomic, strong)NSString *sdkSimpleName;
......@@ -12,11 +12,11 @@
@property(nonatomic, strong)NSString *c2;
@property(nonatomic, strong)NSString *custom;
+ (AccordHaiBaoJuheConfigAmple *)PromptsgetInstanceStates;
+ (SpecifyHaiBaoJuheConfigCarrie *)BylawsgetInstanceDwell;
- (void) loadFile:(NSString *) fileName;
- (NSString *)GuptagetValueByKeyLyons:(NSString *) key;
- (NSString *)MessygetValueByKeyHenri:(NSString *) key;
- (void) updateC1C2Value:(NSString *)c1 c2:(NSString *)c2;
......
#import "PromptsAbsenceHaiBaoJuheBaseModelStates.h"
@interface AccordHaiBaoJuheGzyazfInfoAmple : PromptsAbsenceHaiBaoJuheBaseModelStates
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface SpecifyHaiBaoJuheGzyazfInfoCarrie : BylawsBoostHaiBaoJuheBaseModelDwell
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// AccordHaiBaoJuheNotificationAmple.h
// SpecifyHaiBaoJuheNotificationCarrie.h
// public_i9133
//
// Created by winFan on 12/1/15.
......@@ -28,7 +28,7 @@ typedef NS_ENUM(int, HaiBaoJuheSDKNotificationType) {
@interface AccordHaiBaoJuheNotificationAmple : NSObject
@interface SpecifyHaiBaoJuheNotificationCarrie : NSObject
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "HaiBaoJuheSDK/GuptaAbsenceAllManagerLyons.h"
#import "HaiBaoJuheSDK/FreaksAbsenceHuiTiaoNotificationAdding.h"
#import "HaiBaoJuheSDK/QuasiAbsenceInformationHires.h"
#import "HaiBaoJuheSDK/MessyBoostAllManagerHenri.h"
#import "HaiBaoJuheSDK/PatentBoostHuiTiaoNotificationWalked.h"
#import "HaiBaoJuheSDK/HigherBoostInformationMedian.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *AbsenceAppId;
NSString *AbsenceAppKey;
NSString *AbsenceLeakOrderUrl;
NSString *BoostAppId;
NSString *BoostAppKey;
NSString *BoostLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
[super SDKinit:control];
[AccordHaiBaoJuheConfigAmple PromptsgetInstanceStates];
[[GuptaAbsenceAllManagerLyons SeventyAbsenceInstanceWines]QuasiAbsenceChuShiHuaHires];
[[GuptaAbsenceAllManagerLyons SeventyAbsenceInstanceWines]ArsenicAbsenceYangShiScraps:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:AccordAbsenceLoginNotificationAmple object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"AbsenceToolCallBack" object:nil];
[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell];
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo]HigherBoostChuShiHuaMedian];
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo]MarianBoostYangShiSinking:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SpecifyBoostLoginNotificationCarrie object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"BoostToolCallBack" object:nil];
[[BryanHaiBaoJuheCheckerFurnace SybasegetInstanceJelsoft] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
[[SigningHaiBaoJuheCheckerJuliet InitialgetInstanceMiddot] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
NSString* channelId = [[AccordHaiBaoJuheConfigAmple PromptsgetInstanceStates] GuptagetValueByKeyLyons:@"gamechannelid"];
NSString* channelId = [[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"gamechannelid"];
if(channelId == nil || [channelId length] <= 0){
channelId = @"unknown";
}
[TrackingIO initWithappKey:[[AccordHaiBaoJuheConfigAmple PromptsgetInstanceStates] GuptagetValueByKeyLyons:@"renyunAppKey"] withChannelId:channelId];
[TrackingIO initWithappKey:[[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"renyunAppKey"] withChannelId:channelId];
}
/**
......@@ -40,9 +40,9 @@ NSString *AbsenceLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
AbsenceAppId = [[AccordHaiBaoJuheConfigAmple PromptsgetInstanceStates] GuptagetValueByKeyLyons:@"APP_ID"];
AbsenceAppKey =[[AccordHaiBaoJuheConfigAmple PromptsgetInstanceStates] GuptagetValueByKeyLyons:@"APP_KEY"];
[[GuptaAbsenceAllManagerLyons SeventyAbsenceInstanceWines]GivingAbsenceDengLuDefend:AbsenceAppId :AbsenceAppKey :self.controller];
BoostAppId = [[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"APP_ID"];
BoostAppKey =[[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"APP_KEY"];
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo]CairoBoostDengLuSibling:BoostAppId :BoostAppKey :self.controller];
}
......@@ -53,12 +53,12 @@ NSString *AbsenceLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[QuasiAbsenceInformationHires getInstance]openId];
loginInfo.sign = [[QuasiAbsenceInformationHires getInstance] token];
loginInfo.timestamp = [[QuasiAbsenceInformationHires getInstance] timestamp];
loginInfo.openId = [[HigherBoostInformationMedian getInstance]openId];
loginInfo.sign = [[HigherBoostInformationMedian getInstance] token];
loginInfo.timestamp = [[HigherBoostInformationMedian getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[BryanHaiBaoJuheCheckerFurnace SybasegetInstanceJelsoft] startCheck:loginInfo];
[[SigningHaiBaoJuheCheckerJuliet InitialgetInstanceMiddot] startCheck:loginInfo];
});
}
......@@ -82,7 +82,7 @@ NSString *AbsenceLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"AbsenceToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"BoostToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,17 +101,17 @@ NSString *AbsenceLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:AbsenceLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:BoostLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
[[BryanHaiBaoJuheCheckerFurnace SybasegetInstanceJelsoft] sendNotice:HaiBaoJuheSDKNotificationGzyazf notiName:@"success" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"success" extendData:nil];
[[SigningHaiBaoJuheCheckerJuliet InitialgetInstanceMiddot] sendNotice:HaiBaoJuheSDKNotificationGzyazf notiName:@"success" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"success" extendData:nil];
//删除已保存的
[userDefaults removeObjectForKey:queryId];
[tempQueryIdArray removeObject:queryId];
[userDefaults setObject:tempQueryIdArray forKey:@"queryIds"];
[userDefaults removeObjectForKey:@"lastqueryid"];
}
[userDefaults synchronize];
[userDefaults synchronize];
}
/**
......@@ -122,11 +122,11 @@ NSString *AbsenceLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
AbsenceLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[PrismHaiBaoJuheUtilsVoice AccordcreateGzyazfUrlAmple],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:AbsenceLeakOrderUrl forKey:@"lastAbsenceLeakOrderUrl"];
BoostLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[GreenHaiBaoJuheUtilsSwinger SpecifycreateGzyazfUrlCarrie],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:BoostLeakOrderUrl forKey:@"lastBoostLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -136,7 +136,7 @@ NSString *AbsenceLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:AbsenceLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:BoostLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -146,10 +146,10 @@ NSString *AbsenceLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
AbsenceLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[PrismHaiBaoJuheUtilsVoice AccordcreateGzyazfUrlAmple],
[payInfo userId],
[payInfo playerId]];
BoostLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[GreenHaiBaoJuheUtilsSwinger SpecifycreateGzyazfUrlCarrie],
[payInfo userId],
[payInfo playerId]];
[userDefaults synchronize];
}
......@@ -213,12 +213,12 @@ NSString *AbsenceLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastAbsenceLeakOrderUrl = [userDefaults objectForKey:@"lastAbsenceLeakOrderUrl"];
NSString* lastBoostLeakOrderUrl = [userDefaults objectForKey:@"lastBoostLeakOrderUrl"];
NSString* result;
if (lastAbsenceLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastAbsenceLeakOrderUrl :receiptDic];
if (lastBoostLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastBoostLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[PrismHaiBaoJuheUtilsVoice AccordcreateGzyazfUrlAmple] :receiptDic];
result = [[NetCenter getInstance] httpPostSyn:[GreenHaiBaoJuheUtilsSwinger SpecifycreateGzyazfUrlCarrie] :receiptDic];
}
if([@"success" isEqualToString:result]){//成功
[userDefaults removeObjectForKey:queryId];
......@@ -240,7 +240,7 @@ NSString *AbsenceLeakOrderUrl;
- (void)receiveCreateOrder:(NSNotification *)notification
{
NSLog(@"创建订单成功");
AccordHaiBaoJuheGzyazfInfoAmple *payInfo = [notification object];
SpecifyHaiBaoJuheGzyazfInfoCarrie *payInfo = [notification object];
NSNumber *amount = @([[payInfo postAmount] integerValue] * mExchange);
NSString *serverId = [payInfo serverId];
......@@ -254,14 +254,14 @@ NSString *AbsenceLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[GuptaAbsenceAllManagerLyons SeventyAbsenceInstanceWines] AbsenceQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo] BoostQuery: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];
[[GuptaAbsenceAllManagerLyons SeventyAbsenceInstanceWines] AbsenceQueryOperation:self.controller AbsenceHuoWuID:products AbsenceJiaGe:[payInfo postAmount] AbsenceHuoWuMing:[payInfo productName] AbsenceDingDanHao:queryId];
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo] BoostQueryOperation:self.controller BoostHuoWuID:products BoostJiaGe:[payInfo postAmount] BoostHuoWuMing:[payInfo productName] BoostDingDanHao:queryId];
}
}
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface PromptsAbsenceHaiBaoJuheBaseModelStates : NSObject
@interface BylawsBoostHaiBaoJuheBaseModelDwell : NSObject
- (NSString *) AbsenceHaiBaoJuheObjectToJsonString;
- (NSString *) BoostHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
#import <Foundation/Foundation.h>
@interface AccordAbsenceControlAmple : NSObject
@interface CairoBoostControlSibling : NSObject
- (void)initAbsenceInstance;
- (void)initBoostInstance;
- (void) AbsenceStartGo;
- (void) BoostStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
extern NSString * const GuptaAbsenceExitNotificationLyons;
extern NSString * const AccordAbsenceLoginNotificationAmple;
extern NSString * const PromptsAbsenceErrorNotificationStates;
@interface FreaksAbsenceHuiTiaoNotificationAdding : NSObject
@end
#import <UIKit/UIKit.h>
#import "QuasiAbsenceInformationHires.h"
#import "HigherBoostInformationMedian.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface PrismAbsenceMainVoice : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface GreenBoostMainSwinger : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webAbsenceView_;
UIWebView *webBoostView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL AbsenceYouYuanJiao;
@property(assign) BOOL BoostYouYuanJiao;
- (void)AbsenceSettingAbsenceView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)AbsenceInitWebView;
- (void)BoostSettingBoostView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)BoostInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface PrismHaiBaoJuheUtilsVoice : NSObject
@interface GreenHaiBaoJuheUtilsSwinger : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *) AbsenceHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *) BoostHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)AccordcreateGzyazfUrlAmple;
+(NSString *)SpecifycreateGzyazfUrlCarrie;
+(UIActivityIndicatorView *)showLoadingDialog:(UIView*)parentView;
+(void)dismissLoadingDialog:(UIActivityIndicatorView*)indicatorView;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface GuptaAbsenceAllManagerLyons : NSObject
{
NSString* AbsenceAPPID_;
NSString* AbsenceAPPKEY_;
NSString* AbsenceInviterCode_;
}
@property(strong) NSMutableArray* AbsenceList;
@property bool AbsenceGeiWoHuaQianBa;
+ (GuptaAbsenceAllManagerLyons *)SeventyAbsenceInstanceWines;
- (void)QuasiAbsenceChuShiHuaHires;
- (void)GivingAbsenceDengLuDefend:(NSString *)AbsenceAPPID : (NSString *)AbsenceAPPKEY : (UIViewController *)controller;
- (void)ArsenicAbsenceYangShiScraps:(NSString*)AbsenceLeiXing;
- (void)AbsenceQuery: (NSString *)AbsenceFuWuQiID : (NSString *)AbsenceNickName : (NSNumber *)AbsenceAmount : (NSString *)AbsenceCallBack : (UIViewController *)controller : (NSString *)AbsenceServerName;
- (void)AbsenceQueryOperation:(UIViewController*)controll AbsenceHuoWuID:(NSString*)products AbsenceJiaGe:(NSString*)amount AbsenceHuoWuMing:(NSString*)productName AbsenceDingDanHao:(NSString*) DingDanHao;
@end
#import "PromptsAbsenceHaiBaoJuheBaseModelStates.h"
@interface HaiBaoJuheCreateOrderInfo : PromptsAbsenceHaiBaoJuheBaseModelStates
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface HaiBaoJuheCreateOrderInfo : BylawsBoostHaiBaoJuheBaseModelDwell
@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 *) AbsenceHaiBaoJuheGetTsign ;
- (NSString *) AbsenceHaiBaoJuheGetTimestamp ;
- (NSString *) BoostHaiBaoJuheGetTsign ;
- (NSString *) BoostHaiBaoJuheGetTimestamp ;
@end
......
#import "PromptsAbsenceHaiBaoJuheBaseModelStates.h"
@interface HaiBaoJuheLoginInfo : PromptsAbsenceHaiBaoJuheBaseModelStates
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface HaiBaoJuheLoginInfo : BylawsBoostHaiBaoJuheBaseModelDwell
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// AbsenceHaiBaoJuheReportInfo.h
// BoostHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PromptsAbsenceHaiBaoJuheBaseModelStates.h"
@interface HaiBaoJuheReportInfo : PromptsAbsenceHaiBaoJuheBaseModelStates
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface HaiBaoJuheReportInfo : BylawsBoostHaiBaoJuheBaseModelDwell
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* AbsenceList;
@property(strong) NSMutableArray* BoostList;
@property BOOL isAppleGzyazfing;
......
#import <UIKit/UIKit.h>
#import "BryanHaiBaoJuheCheckerFurnace.h"
#import "SigningHaiBaoJuheCheckerJuliet.h"
#import "HaiBaoJuheReportInfo.h"
#import "HaiBaoJuheLoginInfo.h"
#import "Interface.h"
#import "AccordHaiBaoJuheNotificationAmple.h"
#import "AccordHaiBaoJuheGzyazfInfoAmple.h"
#import "SpecifyHaiBaoJuheNotificationCarrie.h"
#import "SpecifyHaiBaoJuheGzyazfInfoCarrie.h"
#import "UnionInterface.h"
#import "HaiBaoJuheCreateOrderInfo.h"
#import "AccordHaiBaoJuheConfigAmple.h"
#import "PrismHaiBaoJuheUtilsVoice.h"
#import "SpecifyHaiBaoJuheConfigCarrie.h"
#import "GreenHaiBaoJuheUtilsSwinger.h"
#import "NetCenter.h"
#import "HaiBaoJuheSDK.h"
#import "HaiBaoJuheSDKDelegate.h"
......
#import <UIKit/UIKit.h>
@interface HelpfulBoostIAPHelperControlPlacebo : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* BoostDingDanHao;
@property(nonatomic,strong) NSDictionary* BoostHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* BoostHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *BoostHuoWuLieBiaoView;
- (void)BoostHuaQianView:(UIViewController*)controller BoostHuoWuD:(NSString*)products BoostQian:(NSString*)amount BoostHuoWuMing:(NSString*)productName BoostDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface QuasiAbsenceInformationHires : NSObject
@interface HigherBoostInformationMedian : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (QuasiAbsenceInformationHires *)getInstance;
+ (HigherBoostInformationMedian *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface ArsenicAbsenceControlScraps : NSObject
@interface InitialBoostControlMiddot : NSObject
- (void)initAbsenceInstance;
- (void)initBoostInstance;
- (void) AbsenceStartGo;
- (void) BoostStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface FreaksAbsenceControlAdding : NSObject
@interface MarianBoostControlSinking : NSObject
- (void)initAbsenceInstance;
- (void)initBoostInstance;
- (void) AbsenceStartGo;
- (void) BoostStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ArsenicAbsenceInformationJMScraps : NSObject
@interface MarianBoostInformationJMSinking : NSObject
+(NSString *)AbsenceJM:(NSString *)jm;
+(NSString *)BoostJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface MessyBoostAllManagerHenri : NSObject
{
NSString* BoostAPPID_;
NSString* BoostAPPKEY_;
NSString* BoostInviterCode_;
}
@property(strong) NSMutableArray* BoostList;
@property bool BoostGeiWoHuaQianBa;
+ (MessyBoostAllManagerHenri *)HelpfulBoostInstancePlacebo;
- (void)HigherBoostChuShiHuaMedian;
- (void)CairoBoostDengLuSibling:(NSString *)BoostAPPID : (NSString *)BoostAPPKEY : (UIViewController *)controller;
- (void)MarianBoostYangShiSinking:(NSString*)BoostLeiXing;
- (void)BoostQuery: (NSString *)BoostFuWuQiID : (NSString *)BoostNickName : (NSNumber *)BoostAmount : (NSString *)BoostCallBack : (UIViewController *)controller : (NSString *)BoostServerName;
- (void)BoostQueryOperation:(UIViewController*)controll BoostHuoWuID:(NSString*)products BoostJiaGe:(NSString*)amount BoostHuoWuMing:(NSString*)productName BoostDingDanHao:(NSString*) DingDanHao;
@end
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface GuptaAbsenceHaiBaoJuheDGLoggerLyons : NSObject
@interface MessyBoostHaiBaoJuheDGLoggerHenri : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
@interface GivingAbsenceControlDefend : NSObject
@interface PatentBoostControlWalked : NSObject
- (void)initAbsenceInstance;
- (void)initBoostInstance;
- (void) AbsenceStartGo;
- (void) BoostStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
extern NSString * const MessyBoostExitNotificationHenri;
extern NSString * const SpecifyBoostLoginNotificationCarrie;
extern NSString * const BylawsBoostErrorNotificationDwell;
@interface PatentBoostHuiTiaoNotificationWalked : NSObject
@end
#import <UIKit/UIKit.h>
@interface SeventyAbsenceIAPHelperControlWines : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* AbsenceDingDanHao;
@property(nonatomic,strong) NSDictionary* AbsenceHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* AbsenceHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *AbsenceHuoWuLieBiaoView;
- (void)AbsenceHuaQianView:(UIViewController*)controller AbsenceHuoWuD:(NSString*)products AbsenceQian:(NSString*)amount AbsenceHuoWuMing:(NSString*)productName AbsenceDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
@interface BryanAbsenceLocationFurnace : NSObject
@interface SigningBoostLocationJuliet : NSObject
+ (NSString *)AbsenceSKCloudServiceSetupOptionsKey;
+ (NSString *)BoostSKCloudServiceSetupOptionsKey;
@end
......
#import <Foundation/Foundation.h>
#import "HaiBaoJuheLoginInfo.h"
#import "AccordHaiBaoJuheNotificationAmple.h"
#import "SpecifyHaiBaoJuheNotificationCarrie.h"
#import "HaiBaoJuheCreateOrderInfo.h"
#import "AccordHaiBaoJuheGzyazfInfoAmple.h"
#import "SpecifyHaiBaoJuheGzyazfInfoCarrie.h"
#import "HaiBaoJuheReportInfo.h"
#import "HaiBaoJuheSDKDelegate.h"
@interface BryanHaiBaoJuheCheckerFurnace : NSObject<HaiBaoJuheSDKDelegate>
@interface SigningHaiBaoJuheCheckerJuliet : NSObject<HaiBaoJuheSDKDelegate>
@property(nonatomic, strong)NSString *userId;
@property(nonatomic, strong)id<HaiBaoJuheSDKDelegate> mHaiBaoJuheSDKDelegate;
@property bool onlyOneTimeGzyazf;
+ (BryanHaiBaoJuheCheckerFurnace *)SybasegetInstanceJelsoft;
+ (SigningHaiBaoJuheCheckerJuliet *)InitialgetInstanceMiddot;
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) AbsenceHaiBaoJuhereportOpen;
- (void) AbsenceHaiBaoJuhereportSDKOpen;
- (void) AbsenceHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) BoostHaiBaoJuhereportOpen;
- (void) BoostHaiBaoJuhereportSDKOpen;
- (void) BoostHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) AbsenceHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) BoostHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) AbsenceHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void) BoostHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import <Foundation/Foundation.h>
@interface SybaseAbsenceControlJelsoft : NSObject
@interface SpecifyBoostControlCarrie : NSObject
- (void)initAbsenceInstance;
- (void)initBoostInstance;
- (void) AbsenceStartGo;
- (void) BoostStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface AccordHaiBaoJuheConfigAmple : NSObject
@interface SpecifyHaiBaoJuheConfigCarrie : NSObject
@property(nonatomic, strong)NSString *gameSimpleName;
@property(nonatomic, strong)NSString *sdkSimpleName;
......@@ -12,11 +12,11 @@
@property(nonatomic, strong)NSString *c2;
@property(nonatomic, strong)NSString *custom;
+ (AccordHaiBaoJuheConfigAmple *)PromptsgetInstanceStates;
+ (SpecifyHaiBaoJuheConfigCarrie *)BylawsgetInstanceDwell;
- (void) loadFile:(NSString *) fileName;
- (NSString *)GuptagetValueByKeyLyons:(NSString *) key;
- (NSString *)MessygetValueByKeyHenri:(NSString *) key;
- (void) updateC1C2Value:(NSString *)c1 c2:(NSString *)c2;
......
#import "PromptsAbsenceHaiBaoJuheBaseModelStates.h"
@interface AccordHaiBaoJuheGzyazfInfoAmple : PromptsAbsenceHaiBaoJuheBaseModelStates
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface SpecifyHaiBaoJuheGzyazfInfoCarrie : BylawsBoostHaiBaoJuheBaseModelDwell
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// AccordHaiBaoJuheNotificationAmple.h
// SpecifyHaiBaoJuheNotificationCarrie.h
// public_i9133
//
// Created by winFan on 12/1/15.
......@@ -28,7 +28,7 @@ typedef NS_ENUM(int, HaiBaoJuheSDKNotificationType) {
@interface AccordHaiBaoJuheNotificationAmple : NSObject
@interface SpecifyHaiBaoJuheNotificationCarrie : NSObject
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "HaiBaoJuheSDK/GuptaAbsenceAllManagerLyons.h"
#import "HaiBaoJuheSDK/FreaksAbsenceHuiTiaoNotificationAdding.h"
#import "HaiBaoJuheSDK/QuasiAbsenceInformationHires.h"
#import "HaiBaoJuheSDK/MessyBoostAllManagerHenri.h"
#import "HaiBaoJuheSDK/PatentBoostHuiTiaoNotificationWalked.h"
#import "HaiBaoJuheSDK/HigherBoostInformationMedian.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *AbsenceAppId;
NSString *AbsenceAppKey;
NSString *AbsenceLeakOrderUrl;
NSString *BoostAppId;
NSString *BoostAppKey;
NSString *BoostLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
[super SDKinit:control];
[AccordHaiBaoJuheConfigAmple PromptsgetInstanceStates];
[[GuptaAbsenceAllManagerLyons SeventyAbsenceInstanceWines]QuasiAbsenceChuShiHuaHires];
[[GuptaAbsenceAllManagerLyons SeventyAbsenceInstanceWines]ArsenicAbsenceYangShiScraps:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:AccordAbsenceLoginNotificationAmple object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"AbsenceToolCallBack" object:nil];
[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell];
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo]HigherBoostChuShiHuaMedian];
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo]MarianBoostYangShiSinking:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SpecifyBoostLoginNotificationCarrie object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"BoostToolCallBack" object:nil];
[[BryanHaiBaoJuheCheckerFurnace SybasegetInstanceJelsoft] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
[[SigningHaiBaoJuheCheckerJuliet InitialgetInstanceMiddot] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
NSString* channelId = [[AccordHaiBaoJuheConfigAmple PromptsgetInstanceStates] GuptagetValueByKeyLyons:@"gamechannelid"];
NSString* channelId = [[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"gamechannelid"];
if(channelId == nil || [channelId length] <= 0){
channelId = @"unknown";
}
[TrackingIO initWithappKey:[[AccordHaiBaoJuheConfigAmple PromptsgetInstanceStates] GuptagetValueByKeyLyons:@"renyunAppKey"] withChannelId:channelId];
[TrackingIO initWithappKey:[[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"renyunAppKey"] withChannelId:channelId];
}
/**
......@@ -40,9 +40,9 @@ NSString *AbsenceLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
AbsenceAppId = [[AccordHaiBaoJuheConfigAmple PromptsgetInstanceStates] GuptagetValueByKeyLyons:@"APP_ID"];
AbsenceAppKey =[[AccordHaiBaoJuheConfigAmple PromptsgetInstanceStates] GuptagetValueByKeyLyons:@"APP_KEY"];
[[GuptaAbsenceAllManagerLyons SeventyAbsenceInstanceWines]GivingAbsenceDengLuDefend:AbsenceAppId :AbsenceAppKey :self.controller];
BoostAppId = [[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"APP_ID"];
BoostAppKey =[[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"APP_KEY"];
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo]CairoBoostDengLuSibling:BoostAppId :BoostAppKey :self.controller];
}
......@@ -53,12 +53,12 @@ NSString *AbsenceLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[QuasiAbsenceInformationHires getInstance]openId];
loginInfo.sign = [[QuasiAbsenceInformationHires getInstance] token];
loginInfo.timestamp = [[QuasiAbsenceInformationHires getInstance] timestamp];
loginInfo.openId = [[HigherBoostInformationMedian getInstance]openId];
loginInfo.sign = [[HigherBoostInformationMedian getInstance] token];
loginInfo.timestamp = [[HigherBoostInformationMedian getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[BryanHaiBaoJuheCheckerFurnace SybasegetInstanceJelsoft] startCheck:loginInfo];
[[SigningHaiBaoJuheCheckerJuliet InitialgetInstanceMiddot] startCheck:loginInfo];
});
}
......@@ -82,7 +82,7 @@ NSString *AbsenceLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"AbsenceToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"BoostToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,17 +101,17 @@ NSString *AbsenceLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:AbsenceLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:BoostLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
[[BryanHaiBaoJuheCheckerFurnace SybasegetInstanceJelsoft] sendNotice:HaiBaoJuheSDKNotificationGzyazf notiName:@"success" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"success" extendData:nil];
[[SigningHaiBaoJuheCheckerJuliet InitialgetInstanceMiddot] sendNotice:HaiBaoJuheSDKNotificationGzyazf notiName:@"success" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"success" extendData:nil];
//删除已保存的
[userDefaults removeObjectForKey:queryId];
[tempQueryIdArray removeObject:queryId];
[userDefaults setObject:tempQueryIdArray forKey:@"queryIds"];
[userDefaults removeObjectForKey:@"lastqueryid"];
}
[userDefaults synchronize];
[userDefaults synchronize];
}
/**
......@@ -122,11 +122,11 @@ NSString *AbsenceLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
AbsenceLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[PrismHaiBaoJuheUtilsVoice AccordcreateGzyazfUrlAmple],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:AbsenceLeakOrderUrl forKey:@"lastAbsenceLeakOrderUrl"];
BoostLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[GreenHaiBaoJuheUtilsSwinger SpecifycreateGzyazfUrlCarrie],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:BoostLeakOrderUrl forKey:@"lastBoostLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -136,7 +136,7 @@ NSString *AbsenceLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:AbsenceLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:BoostLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -146,10 +146,10 @@ NSString *AbsenceLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
AbsenceLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[PrismHaiBaoJuheUtilsVoice AccordcreateGzyazfUrlAmple],
[payInfo userId],
[payInfo playerId]];
BoostLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[GreenHaiBaoJuheUtilsSwinger SpecifycreateGzyazfUrlCarrie],
[payInfo userId],
[payInfo playerId]];
[userDefaults synchronize];
}
......@@ -213,12 +213,12 @@ NSString *AbsenceLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastAbsenceLeakOrderUrl = [userDefaults objectForKey:@"lastAbsenceLeakOrderUrl"];
NSString* lastBoostLeakOrderUrl = [userDefaults objectForKey:@"lastBoostLeakOrderUrl"];
NSString* result;
if (lastAbsenceLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastAbsenceLeakOrderUrl :receiptDic];
if (lastBoostLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastBoostLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[PrismHaiBaoJuheUtilsVoice AccordcreateGzyazfUrlAmple] :receiptDic];
result = [[NetCenter getInstance] httpPostSyn:[GreenHaiBaoJuheUtilsSwinger SpecifycreateGzyazfUrlCarrie] :receiptDic];
}
if([@"success" isEqualToString:result]){//成功
[userDefaults removeObjectForKey:queryId];
......@@ -240,7 +240,7 @@ NSString *AbsenceLeakOrderUrl;
- (void)receiveCreateOrder:(NSNotification *)notification
{
NSLog(@"创建订单成功");
AccordHaiBaoJuheGzyazfInfoAmple *payInfo = [notification object];
SpecifyHaiBaoJuheGzyazfInfoCarrie *payInfo = [notification object];
NSNumber *amount = @([[payInfo postAmount] integerValue] * mExchange);
NSString *serverId = [payInfo serverId];
......@@ -254,14 +254,14 @@ NSString *AbsenceLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[GuptaAbsenceAllManagerLyons SeventyAbsenceInstanceWines] AbsenceQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo] BoostQuery: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];
[[GuptaAbsenceAllManagerLyons SeventyAbsenceInstanceWines] AbsenceQueryOperation:self.controller AbsenceHuoWuID:products AbsenceJiaGe:[payInfo postAmount] AbsenceHuoWuMing:[payInfo productName] AbsenceDingDanHao:queryId];
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo] BoostQueryOperation:self.controller BoostHuoWuID:products BoostJiaGe:[payInfo postAmount] BoostHuoWuMing:[payInfo productName] BoostDingDanHao:queryId];
}
}
......