lizhihui

更新190823版本1

Showing 60 changed files with 316 additions and 316 deletions
No preview for this file type
#import <Foundation/Foundation.h>
@interface CairoBoostControlSibling : NSObject
@interface BundlesMotifControlGallons : NSObject
- (void)initBoostInstance;
- (void)initMotifInstance;
- (void) BoostStartGo;
- (void) MotifStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface BylawsBoostHaiBaoJuheBaseModelDwell : NSObject
@interface GilbertMotifHaiBaoJuheBaseModelGoods : NSObject
- (NSString *) BoostHaiBaoJuheObjectToJsonString;
- (NSString *) MotifHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface HaiBaoJuheCreateOrderInfo : BylawsBoostHaiBaoJuheBaseModelDwell
#import "GilbertMotifHaiBaoJuheBaseModelGoods.h"
@interface HaiBaoJuheCreateOrderInfo : GilbertMotifHaiBaoJuheBaseModelGoods
@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 *) BoostHaiBaoJuheGetTsign ;
- (NSString *) BoostHaiBaoJuheGetTimestamp ;
- (NSString *) MotifHaiBaoJuheGetTsign ;
- (NSString *) MotifHaiBaoJuheGetTimestamp ;
@end
......
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface HaiBaoJuheLoginInfo : BylawsBoostHaiBaoJuheBaseModelDwell
#import "GilbertMotifHaiBaoJuheBaseModelGoods.h"
@interface HaiBaoJuheLoginInfo : GilbertMotifHaiBaoJuheBaseModelGoods
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// BoostHaiBaoJuheReportInfo.h
// MotifHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface HaiBaoJuheReportInfo : BylawsBoostHaiBaoJuheBaseModelDwell
#import "GilbertMotifHaiBaoJuheBaseModelGoods.h"
@interface HaiBaoJuheReportInfo : GilbertMotifHaiBaoJuheBaseModelGoods
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* BoostList;
@property(strong) NSMutableArray* MotifList;
@property BOOL isAppleGzyazfing;
......
#import <UIKit/UIKit.h>
#import "SigningHaiBaoJuheCheckerJuliet.h"
#import "TowingHaiBaoJuheCheckerHalfway.h"
#import "HaiBaoJuheReportInfo.h"
#import "HaiBaoJuheLoginInfo.h"
#import "Interface.h"
#import "SpecifyHaiBaoJuheNotificationCarrie.h"
#import "SpecifyHaiBaoJuheGzyazfInfoCarrie.h"
#import "PricingHaiBaoJuheNotificationGrown.h"
#import "PricingHaiBaoJuheGzyazfInfoGrown.h"
#import "UnionInterface.h"
#import "HaiBaoJuheCreateOrderInfo.h"
#import "SpecifyHaiBaoJuheConfigCarrie.h"
#import "GreenHaiBaoJuheUtilsSwinger.h"
#import "PricingHaiBaoJuheConfigGrown.h"
#import "NurseHaiBaoJuheUtilsLinksys.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 <UIKit/UIKit.h>
@interface IbookMotifIAPHelperControlAirmail : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* MotifDingDanHao;
@property(nonatomic,strong) NSDictionary* MotifHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* MotifHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *MotifHuoWuLieBiaoView;
- (void)MotifHuaQianView:(UIViewController*)controller MotifHuoWuD:(NSString*)products MotifQian:(NSString*)amount MotifHuoWuMing:(NSString*)productName MotifDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface InitialBoostControlMiddot : NSObject
@interface ImagesMotifControlMadam : NSObject
- (void)initBoostInstance;
- (void)initMotifInstance;
- (void) BoostStartGo;
- (void) MotifStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
extern NSString * const WantedMotifExitNotificationMariana;
extern NSString * const PricingMotifLoginNotificationGrown;
extern NSString * const GilbertMotifErrorNotificationGoods;
@interface ImagesMotifHuiTiaoNotificationMadam : NSObject
@end
#import <Foundation/Foundation.h>
@interface MarianBoostControlSinking : NSObject
@interface LipitorMotifControlCounter : NSObject
- (void)initBoostInstance;
- (void)initMotifInstance;
- (void) BoostStartGo;
- (void) MotifStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface MarianBoostInformationJMSinking : NSObject
@interface LipitorMotifInformationJMCounter : NSObject
+(NSString *)BoostJM:(NSString *)jm;
+(NSString *)MotifJM:(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
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface GreenHaiBaoJuheUtilsSwinger : NSObject
@interface NurseHaiBaoJuheUtilsLinksys : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *) BoostHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *) MotifHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)SpecifycreateGzyazfUrlCarrie;
+(NSString *)PricingcreateGzyazfUrlGrown;
+(UIActivityIndicatorView *)showLoadingDialog:(UIView*)parentView;
+(void)dismissLoadingDialog:(UIActivityIndicatorView*)indicatorView;
......
#import <UIKit/UIKit.h>
#import "HigherBoostInformationMedian.h"
#import "PearlsMotifInformationSlower.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface GreenBoostMainSwinger : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface NurseMotifMainLinksys : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webBoostView_;
UIWebView *webMotifView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL BoostYouYuanJiao;
@property(assign) BOOL MotifYouYuanJiao;
- (void)BoostSettingBoostView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)BoostInitWebView;
- (void)MotifSettingMotifView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)MotifInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
extern NSString * const MessyBoostExitNotificationHenri;
extern NSString * const SpecifyBoostLoginNotificationCarrie;
extern NSString * const BylawsBoostErrorNotificationDwell;
@interface PatentBoostHuiTiaoNotificationWalked : NSObject
@end
#import <Foundation/Foundation.h>
@interface HigherBoostInformationMedian : NSObject
@interface PearlsMotifInformationSlower : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (HigherBoostInformationMedian *)getInstance;
+ (PearlsMotifInformationSlower *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface PatentBoostControlWalked : NSObject
@interface PerformMotifControlCookie : NSObject
- (void)initBoostInstance;
- (void)initMotifInstance;
- (void) BoostStartGo;
- (void) MotifStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface SpecifyHaiBaoJuheConfigCarrie : NSObject
@interface PricingHaiBaoJuheConfigGrown : 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;
+ (SpecifyHaiBaoJuheConfigCarrie *)BylawsgetInstanceDwell;
+ (PricingHaiBaoJuheConfigGrown *)GilbertgetInstanceGoods;
- (void) loadFile:(NSString *) fileName;
- (NSString *)MessygetValueByKeyHenri:(NSString *) key;
- (NSString *)WantedgetValueByKeyMariana:(NSString *) key;
- (void) updateC1C2Value:(NSString *)c1 c2:(NSString *)c2;
......
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface SpecifyHaiBaoJuheGzyazfInfoCarrie : BylawsBoostHaiBaoJuheBaseModelDwell
#import "GilbertMotifHaiBaoJuheBaseModelGoods.h"
@interface PricingHaiBaoJuheGzyazfInfoGrown : GilbertMotifHaiBaoJuheBaseModelGoods
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// SpecifyHaiBaoJuheNotificationCarrie.h
// PricingHaiBaoJuheNotificationGrown.h
// public_i9133
//
// Created by winFan on 12/1/15.
......@@ -28,7 +28,7 @@ typedef NS_ENUM(int, HaiBaoJuheSDKNotificationType) {
@interface SpecifyHaiBaoJuheNotificationCarrie : NSObject
@interface PricingHaiBaoJuheNotificationGrown : NSObject
@end
......
#import <Foundation/Foundation.h>
@interface SpecifyBoostControlCarrie : NSObject
@interface PricingMotifControlGrown : NSObject
- (void)initBoostInstance;
- (void)initMotifInstance;
- (void) BoostStartGo;
- (void) MotifStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "HaiBaoJuheLoginInfo.h"
#import "SpecifyHaiBaoJuheNotificationCarrie.h"
#import "PricingHaiBaoJuheNotificationGrown.h"
#import "HaiBaoJuheCreateOrderInfo.h"
#import "SpecifyHaiBaoJuheGzyazfInfoCarrie.h"
#import "PricingHaiBaoJuheGzyazfInfoGrown.h"
#import "HaiBaoJuheReportInfo.h"
#import "HaiBaoJuheSDKDelegate.h"
@interface SigningHaiBaoJuheCheckerJuliet : NSObject<HaiBaoJuheSDKDelegate>
@interface TowingHaiBaoJuheCheckerHalfway : NSObject<HaiBaoJuheSDKDelegate>
@property(nonatomic, strong)NSString *userId;
@property(nonatomic, strong)id<HaiBaoJuheSDKDelegate> mHaiBaoJuheSDKDelegate;
@property bool onlyOneTimeGzyazf;
+ (SigningHaiBaoJuheCheckerJuliet *)InitialgetInstanceMiddot;
+ (TowingHaiBaoJuheCheckerHalfway *)BundlesgetInstanceGallons;
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) BoostHaiBaoJuhereportOpen;
- (void) BoostHaiBaoJuhereportSDKOpen;
- (void) BoostHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) MotifHaiBaoJuhereportOpen;
- (void) MotifHaiBaoJuhereportSDKOpen;
- (void) MotifHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) BoostHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) MotifHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) BoostHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void) MotifHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import <UIKit/UIKit.h>
@interface SigningBoostLocationJuliet : NSObject
@interface TowingMotifLocationHalfway : NSObject
+ (NSString *)BoostSKCloudServiceSetupOptionsKey;
+ (NSString *)MotifSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface WantedMotifAllManagerMariana : NSObject
{
NSString* MotifAPPID_;
NSString* MotifAPPKEY_;
NSString* MotifInviterCode_;
}
@property(strong) NSMutableArray* MotifList;
@property bool MotifGeiWoHuaQianBa;
+ (WantedMotifAllManagerMariana *)IbookMotifInstanceAirmail;
- (void)PearlsMotifChuShiHuaSlower;
- (void)PerformMotifDengLuCookie:(NSString *)MotifAPPID : (NSString *)MotifAPPKEY : (UIViewController *)controller;
- (void)LipitorMotifYangShiCounter:(NSString*)MotifLeiXing;
- (void)MotifQuery: (NSString *)MotifFuWuQiID : (NSString *)MotifNickName : (NSNumber *)MotifAmount : (NSString *)MotifCallBack : (UIViewController *)controller : (NSString *)MotifServerName;
- (void)MotifQueryOperation:(UIViewController*)controll MotifHuoWuID:(NSString*)products MotifJiaGe:(NSString*)amount MotifHuoWuMing:(NSString*)productName MotifDingDanHao:(NSString*) DingDanHao;
@end
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface MessyBoostHaiBaoJuheDGLoggerHenri : NSObject
@interface WantedMotifHaiBaoJuheDGLoggerMariana : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "HaiBaoJuheSDK/MessyBoostAllManagerHenri.h"
#import "HaiBaoJuheSDK/PatentBoostHuiTiaoNotificationWalked.h"
#import "HaiBaoJuheSDK/HigherBoostInformationMedian.h"
#import "HaiBaoJuheSDK/WantedMotifAllManagerMariana.h"
#import "HaiBaoJuheSDK/ImagesMotifHuiTiaoNotificationMadam.h"
#import "HaiBaoJuheSDK/PearlsMotifInformationSlower.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *BoostAppId;
NSString *BoostAppKey;
NSString *BoostLeakOrderUrl;
NSString *MotifAppId;
NSString *MotifAppKey;
NSString *MotifLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
[super SDKinit:control];
[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];
[PricingHaiBaoJuheConfigGrown GilbertgetInstanceGoods];
[[WantedMotifAllManagerMariana IbookMotifInstanceAirmail]PearlsMotifChuShiHuaSlower];
[[WantedMotifAllManagerMariana IbookMotifInstanceAirmail]LipitorMotifYangShiCounter:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:PricingMotifLoginNotificationGrown object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"MotifToolCallBack" object:nil];
[[SigningHaiBaoJuheCheckerJuliet InitialgetInstanceMiddot] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
[[TowingHaiBaoJuheCheckerHalfway BundlesgetInstanceGallons] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
NSString* channelId = [[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"gamechannelid"];
NSString* channelId = [[PricingHaiBaoJuheConfigGrown GilbertgetInstanceGoods] WantedgetValueByKeyMariana:@"gamechannelid"];
if(channelId == nil || [channelId length] <= 0){
channelId = @"unknown";
}
[TrackingIO initWithappKey:[[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"renyunAppKey"] withChannelId:channelId];
[TrackingIO initWithappKey:[[PricingHaiBaoJuheConfigGrown GilbertgetInstanceGoods] WantedgetValueByKeyMariana:@"renyunAppKey"] withChannelId:channelId];
}
/**
......@@ -40,9 +40,9 @@ NSString *BoostLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
BoostAppId = [[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"APP_ID"];
BoostAppKey =[[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"APP_KEY"];
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo]CairoBoostDengLuSibling:BoostAppId :BoostAppKey :self.controller];
MotifAppId = [[PricingHaiBaoJuheConfigGrown GilbertgetInstanceGoods] WantedgetValueByKeyMariana:@"APP_ID"];
MotifAppKey =[[PricingHaiBaoJuheConfigGrown GilbertgetInstanceGoods] WantedgetValueByKeyMariana:@"APP_KEY"];
[[WantedMotifAllManagerMariana IbookMotifInstanceAirmail]PerformMotifDengLuCookie:MotifAppId :MotifAppKey :self.controller];
}
......@@ -53,12 +53,12 @@ NSString *BoostLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[HigherBoostInformationMedian getInstance]openId];
loginInfo.sign = [[HigherBoostInformationMedian getInstance] token];
loginInfo.timestamp = [[HigherBoostInformationMedian getInstance] timestamp];
loginInfo.openId = [[PearlsMotifInformationSlower getInstance]openId];
loginInfo.sign = [[PearlsMotifInformationSlower getInstance] token];
loginInfo.timestamp = [[PearlsMotifInformationSlower getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[SigningHaiBaoJuheCheckerJuliet InitialgetInstanceMiddot] startCheck:loginInfo];
[[TowingHaiBaoJuheCheckerHalfway BundlesgetInstanceGallons] startCheck:loginInfo];
});
}
......@@ -82,7 +82,7 @@ NSString *BoostLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"BoostToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"MotifToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,17 +101,17 @@ NSString *BoostLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:BoostLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:MotifLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
[[SigningHaiBaoJuheCheckerJuliet InitialgetInstanceMiddot] sendNotice:HaiBaoJuheSDKNotificationGzyazf notiName:@"success" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"success" extendData:nil];
[[TowingHaiBaoJuheCheckerHalfway BundlesgetInstanceGallons] 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 *BoostLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
BoostLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[GreenHaiBaoJuheUtilsSwinger SpecifycreateGzyazfUrlCarrie],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:BoostLeakOrderUrl forKey:@"lastBoostLeakOrderUrl"];
MotifLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[NurseHaiBaoJuheUtilsLinksys PricingcreateGzyazfUrlGrown],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:MotifLeakOrderUrl forKey:@"lastMotifLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -136,7 +136,7 @@ NSString *BoostLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:BoostLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:MotifLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -146,10 +146,10 @@ NSString *BoostLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
BoostLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[GreenHaiBaoJuheUtilsSwinger SpecifycreateGzyazfUrlCarrie],
[payInfo userId],
[payInfo playerId]];
MotifLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[NurseHaiBaoJuheUtilsLinksys PricingcreateGzyazfUrlGrown],
[payInfo userId],
[payInfo playerId]];
[userDefaults synchronize];
}
......@@ -213,12 +213,12 @@ NSString *BoostLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastBoostLeakOrderUrl = [userDefaults objectForKey:@"lastBoostLeakOrderUrl"];
NSString* lastMotifLeakOrderUrl = [userDefaults objectForKey:@"lastMotifLeakOrderUrl"];
NSString* result;
if (lastBoostLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastBoostLeakOrderUrl :receiptDic];
if (lastMotifLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastMotifLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[GreenHaiBaoJuheUtilsSwinger SpecifycreateGzyazfUrlCarrie] :receiptDic];
result = [[NetCenter getInstance] httpPostSyn:[NurseHaiBaoJuheUtilsLinksys PricingcreateGzyazfUrlGrown] :receiptDic];
}
if([@"success" isEqualToString:result]){//成功
[userDefaults removeObjectForKey:queryId];
......@@ -240,7 +240,7 @@ NSString *BoostLeakOrderUrl;
- (void)receiveCreateOrder:(NSNotification *)notification
{
NSLog(@"创建订单成功");
SpecifyHaiBaoJuheGzyazfInfoCarrie *payInfo = [notification object];
PricingHaiBaoJuheGzyazfInfoGrown *payInfo = [notification object];
NSNumber *amount = @([[payInfo postAmount] integerValue] * mExchange);
NSString *serverId = [payInfo serverId];
......@@ -254,14 +254,14 @@ NSString *BoostLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo] BoostQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[WantedMotifAllManagerMariana IbookMotifInstanceAirmail] MotifQuery: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];
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo] BoostQueryOperation:self.controller BoostHuoWuID:products BoostJiaGe:[payInfo postAmount] BoostHuoWuMing:[payInfo productName] BoostDingDanHao:queryId];
[[WantedMotifAllManagerMariana IbookMotifInstanceAirmail] MotifQueryOperation:self.controller MotifHuoWuID:products MotifJiaGe:[payInfo postAmount] MotifHuoWuMing:[payInfo productName] MotifDingDanHao:queryId];
}
}
......
#import <Foundation/Foundation.h>
@interface CairoBoostControlSibling : NSObject
@interface BundlesMotifControlGallons : NSObject
- (void)initBoostInstance;
- (void)initMotifInstance;
- (void) BoostStartGo;
- (void) MotifStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface BylawsBoostHaiBaoJuheBaseModelDwell : NSObject
@interface GilbertMotifHaiBaoJuheBaseModelGoods : NSObject
- (NSString *) BoostHaiBaoJuheObjectToJsonString;
- (NSString *) MotifHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface HaiBaoJuheCreateOrderInfo : BylawsBoostHaiBaoJuheBaseModelDwell
#import "GilbertMotifHaiBaoJuheBaseModelGoods.h"
@interface HaiBaoJuheCreateOrderInfo : GilbertMotifHaiBaoJuheBaseModelGoods
@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 *) BoostHaiBaoJuheGetTsign ;
- (NSString *) BoostHaiBaoJuheGetTimestamp ;
- (NSString *) MotifHaiBaoJuheGetTsign ;
- (NSString *) MotifHaiBaoJuheGetTimestamp ;
@end
......
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface HaiBaoJuheLoginInfo : BylawsBoostHaiBaoJuheBaseModelDwell
#import "GilbertMotifHaiBaoJuheBaseModelGoods.h"
@interface HaiBaoJuheLoginInfo : GilbertMotifHaiBaoJuheBaseModelGoods
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// BoostHaiBaoJuheReportInfo.h
// MotifHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface HaiBaoJuheReportInfo : BylawsBoostHaiBaoJuheBaseModelDwell
#import "GilbertMotifHaiBaoJuheBaseModelGoods.h"
@interface HaiBaoJuheReportInfo : GilbertMotifHaiBaoJuheBaseModelGoods
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* BoostList;
@property(strong) NSMutableArray* MotifList;
@property BOOL isAppleGzyazfing;
......
#import <UIKit/UIKit.h>
#import "SigningHaiBaoJuheCheckerJuliet.h"
#import "TowingHaiBaoJuheCheckerHalfway.h"
#import "HaiBaoJuheReportInfo.h"
#import "HaiBaoJuheLoginInfo.h"
#import "Interface.h"
#import "SpecifyHaiBaoJuheNotificationCarrie.h"
#import "SpecifyHaiBaoJuheGzyazfInfoCarrie.h"
#import "PricingHaiBaoJuheNotificationGrown.h"
#import "PricingHaiBaoJuheGzyazfInfoGrown.h"
#import "UnionInterface.h"
#import "HaiBaoJuheCreateOrderInfo.h"
#import "SpecifyHaiBaoJuheConfigCarrie.h"
#import "GreenHaiBaoJuheUtilsSwinger.h"
#import "PricingHaiBaoJuheConfigGrown.h"
#import "NurseHaiBaoJuheUtilsLinksys.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 <UIKit/UIKit.h>
@interface IbookMotifIAPHelperControlAirmail : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* MotifDingDanHao;
@property(nonatomic,strong) NSDictionary* MotifHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* MotifHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *MotifHuoWuLieBiaoView;
- (void)MotifHuaQianView:(UIViewController*)controller MotifHuoWuD:(NSString*)products MotifQian:(NSString*)amount MotifHuoWuMing:(NSString*)productName MotifDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface InitialBoostControlMiddot : NSObject
@interface ImagesMotifControlMadam : NSObject
- (void)initBoostInstance;
- (void)initMotifInstance;
- (void) BoostStartGo;
- (void) MotifStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
extern NSString * const WantedMotifExitNotificationMariana;
extern NSString * const PricingMotifLoginNotificationGrown;
extern NSString * const GilbertMotifErrorNotificationGoods;
@interface ImagesMotifHuiTiaoNotificationMadam : NSObject
@end
#import <Foundation/Foundation.h>
@interface MarianBoostControlSinking : NSObject
@interface LipitorMotifControlCounter : NSObject
- (void)initBoostInstance;
- (void)initMotifInstance;
- (void) BoostStartGo;
- (void) MotifStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface MarianBoostInformationJMSinking : NSObject
@interface LipitorMotifInformationJMCounter : NSObject
+(NSString *)BoostJM:(NSString *)jm;
+(NSString *)MotifJM:(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
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface GreenHaiBaoJuheUtilsSwinger : NSObject
@interface NurseHaiBaoJuheUtilsLinksys : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *) BoostHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *) MotifHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)SpecifycreateGzyazfUrlCarrie;
+(NSString *)PricingcreateGzyazfUrlGrown;
+(UIActivityIndicatorView *)showLoadingDialog:(UIView*)parentView;
+(void)dismissLoadingDialog:(UIActivityIndicatorView*)indicatorView;
......
#import <UIKit/UIKit.h>
#import "HigherBoostInformationMedian.h"
#import "PearlsMotifInformationSlower.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface GreenBoostMainSwinger : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface NurseMotifMainLinksys : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webBoostView_;
UIWebView *webMotifView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL BoostYouYuanJiao;
@property(assign) BOOL MotifYouYuanJiao;
- (void)BoostSettingBoostView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)BoostInitWebView;
- (void)MotifSettingMotifView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)MotifInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
extern NSString * const MessyBoostExitNotificationHenri;
extern NSString * const SpecifyBoostLoginNotificationCarrie;
extern NSString * const BylawsBoostErrorNotificationDwell;
@interface PatentBoostHuiTiaoNotificationWalked : NSObject
@end
#import <Foundation/Foundation.h>
@interface HigherBoostInformationMedian : NSObject
@interface PearlsMotifInformationSlower : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (HigherBoostInformationMedian *)getInstance;
+ (PearlsMotifInformationSlower *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface PatentBoostControlWalked : NSObject
@interface PerformMotifControlCookie : NSObject
- (void)initBoostInstance;
- (void)initMotifInstance;
- (void) BoostStartGo;
- (void) MotifStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface SpecifyHaiBaoJuheConfigCarrie : NSObject
@interface PricingHaiBaoJuheConfigGrown : 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;
+ (SpecifyHaiBaoJuheConfigCarrie *)BylawsgetInstanceDwell;
+ (PricingHaiBaoJuheConfigGrown *)GilbertgetInstanceGoods;
- (void) loadFile:(NSString *) fileName;
- (NSString *)MessygetValueByKeyHenri:(NSString *) key;
- (NSString *)WantedgetValueByKeyMariana:(NSString *) key;
- (void) updateC1C2Value:(NSString *)c1 c2:(NSString *)c2;
......
#import "BylawsBoostHaiBaoJuheBaseModelDwell.h"
@interface SpecifyHaiBaoJuheGzyazfInfoCarrie : BylawsBoostHaiBaoJuheBaseModelDwell
#import "GilbertMotifHaiBaoJuheBaseModelGoods.h"
@interface PricingHaiBaoJuheGzyazfInfoGrown : GilbertMotifHaiBaoJuheBaseModelGoods
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// SpecifyHaiBaoJuheNotificationCarrie.h
// PricingHaiBaoJuheNotificationGrown.h
// public_i9133
//
// Created by winFan on 12/1/15.
......@@ -28,7 +28,7 @@ typedef NS_ENUM(int, HaiBaoJuheSDKNotificationType) {
@interface SpecifyHaiBaoJuheNotificationCarrie : NSObject
@interface PricingHaiBaoJuheNotificationGrown : NSObject
@end
......
#import <Foundation/Foundation.h>
@interface SpecifyBoostControlCarrie : NSObject
@interface PricingMotifControlGrown : NSObject
- (void)initBoostInstance;
- (void)initMotifInstance;
- (void) BoostStartGo;
- (void) MotifStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "HaiBaoJuheLoginInfo.h"
#import "SpecifyHaiBaoJuheNotificationCarrie.h"
#import "PricingHaiBaoJuheNotificationGrown.h"
#import "HaiBaoJuheCreateOrderInfo.h"
#import "SpecifyHaiBaoJuheGzyazfInfoCarrie.h"
#import "PricingHaiBaoJuheGzyazfInfoGrown.h"
#import "HaiBaoJuheReportInfo.h"
#import "HaiBaoJuheSDKDelegate.h"
@interface SigningHaiBaoJuheCheckerJuliet : NSObject<HaiBaoJuheSDKDelegate>
@interface TowingHaiBaoJuheCheckerHalfway : NSObject<HaiBaoJuheSDKDelegate>
@property(nonatomic, strong)NSString *userId;
@property(nonatomic, strong)id<HaiBaoJuheSDKDelegate> mHaiBaoJuheSDKDelegate;
@property bool onlyOneTimeGzyazf;
+ (SigningHaiBaoJuheCheckerJuliet *)InitialgetInstanceMiddot;
+ (TowingHaiBaoJuheCheckerHalfway *)BundlesgetInstanceGallons;
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) BoostHaiBaoJuhereportOpen;
- (void) BoostHaiBaoJuhereportSDKOpen;
- (void) BoostHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) MotifHaiBaoJuhereportOpen;
- (void) MotifHaiBaoJuhereportSDKOpen;
- (void) MotifHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) BoostHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) MotifHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) BoostHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void) MotifHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import <UIKit/UIKit.h>
@interface SigningBoostLocationJuliet : NSObject
@interface TowingMotifLocationHalfway : NSObject
+ (NSString *)BoostSKCloudServiceSetupOptionsKey;
+ (NSString *)MotifSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface WantedMotifAllManagerMariana : NSObject
{
NSString* MotifAPPID_;
NSString* MotifAPPKEY_;
NSString* MotifInviterCode_;
}
@property(strong) NSMutableArray* MotifList;
@property bool MotifGeiWoHuaQianBa;
+ (WantedMotifAllManagerMariana *)IbookMotifInstanceAirmail;
- (void)PearlsMotifChuShiHuaSlower;
- (void)PerformMotifDengLuCookie:(NSString *)MotifAPPID : (NSString *)MotifAPPKEY : (UIViewController *)controller;
- (void)LipitorMotifYangShiCounter:(NSString*)MotifLeiXing;
- (void)MotifQuery: (NSString *)MotifFuWuQiID : (NSString *)MotifNickName : (NSNumber *)MotifAmount : (NSString *)MotifCallBack : (UIViewController *)controller : (NSString *)MotifServerName;
- (void)MotifQueryOperation:(UIViewController*)controll MotifHuoWuID:(NSString*)products MotifJiaGe:(NSString*)amount MotifHuoWuMing:(NSString*)productName MotifDingDanHao:(NSString*) DingDanHao;
@end
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface MessyBoostHaiBaoJuheDGLoggerHenri : NSObject
@interface WantedMotifHaiBaoJuheDGLoggerMariana : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "HaiBaoJuheSDK/MessyBoostAllManagerHenri.h"
#import "HaiBaoJuheSDK/PatentBoostHuiTiaoNotificationWalked.h"
#import "HaiBaoJuheSDK/HigherBoostInformationMedian.h"
#import "HaiBaoJuheSDK/WantedMotifAllManagerMariana.h"
#import "HaiBaoJuheSDK/ImagesMotifHuiTiaoNotificationMadam.h"
#import "HaiBaoJuheSDK/PearlsMotifInformationSlower.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *BoostAppId;
NSString *BoostAppKey;
NSString *BoostLeakOrderUrl;
NSString *MotifAppId;
NSString *MotifAppKey;
NSString *MotifLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
[super SDKinit:control];
[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];
[PricingHaiBaoJuheConfigGrown GilbertgetInstanceGoods];
[[WantedMotifAllManagerMariana IbookMotifInstanceAirmail]PearlsMotifChuShiHuaSlower];
[[WantedMotifAllManagerMariana IbookMotifInstanceAirmail]LipitorMotifYangShiCounter:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:PricingMotifLoginNotificationGrown object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"MotifToolCallBack" object:nil];
[[SigningHaiBaoJuheCheckerJuliet InitialgetInstanceMiddot] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
[[TowingHaiBaoJuheCheckerHalfway BundlesgetInstanceGallons] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
NSString* channelId = [[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"gamechannelid"];
NSString* channelId = [[PricingHaiBaoJuheConfigGrown GilbertgetInstanceGoods] WantedgetValueByKeyMariana:@"gamechannelid"];
if(channelId == nil || [channelId length] <= 0){
channelId = @"unknown";
}
[TrackingIO initWithappKey:[[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"renyunAppKey"] withChannelId:channelId];
[TrackingIO initWithappKey:[[PricingHaiBaoJuheConfigGrown GilbertgetInstanceGoods] WantedgetValueByKeyMariana:@"renyunAppKey"] withChannelId:channelId];
}
/**
......@@ -40,9 +40,9 @@ NSString *BoostLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
BoostAppId = [[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"APP_ID"];
BoostAppKey =[[SpecifyHaiBaoJuheConfigCarrie BylawsgetInstanceDwell] MessygetValueByKeyHenri:@"APP_KEY"];
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo]CairoBoostDengLuSibling:BoostAppId :BoostAppKey :self.controller];
MotifAppId = [[PricingHaiBaoJuheConfigGrown GilbertgetInstanceGoods] WantedgetValueByKeyMariana:@"APP_ID"];
MotifAppKey =[[PricingHaiBaoJuheConfigGrown GilbertgetInstanceGoods] WantedgetValueByKeyMariana:@"APP_KEY"];
[[WantedMotifAllManagerMariana IbookMotifInstanceAirmail]PerformMotifDengLuCookie:MotifAppId :MotifAppKey :self.controller];
}
......@@ -53,12 +53,12 @@ NSString *BoostLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[HigherBoostInformationMedian getInstance]openId];
loginInfo.sign = [[HigherBoostInformationMedian getInstance] token];
loginInfo.timestamp = [[HigherBoostInformationMedian getInstance] timestamp];
loginInfo.openId = [[PearlsMotifInformationSlower getInstance]openId];
loginInfo.sign = [[PearlsMotifInformationSlower getInstance] token];
loginInfo.timestamp = [[PearlsMotifInformationSlower getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[SigningHaiBaoJuheCheckerJuliet InitialgetInstanceMiddot] startCheck:loginInfo];
[[TowingHaiBaoJuheCheckerHalfway BundlesgetInstanceGallons] startCheck:loginInfo];
});
}
......@@ -82,7 +82,7 @@ NSString *BoostLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"BoostToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"MotifToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,17 +101,17 @@ NSString *BoostLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:BoostLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:MotifLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
[[SigningHaiBaoJuheCheckerJuliet InitialgetInstanceMiddot] sendNotice:HaiBaoJuheSDKNotificationGzyazf notiName:@"success" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"success" extendData:nil];
[[TowingHaiBaoJuheCheckerHalfway BundlesgetInstanceGallons] 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 *BoostLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
BoostLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[GreenHaiBaoJuheUtilsSwinger SpecifycreateGzyazfUrlCarrie],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:BoostLeakOrderUrl forKey:@"lastBoostLeakOrderUrl"];
MotifLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[NurseHaiBaoJuheUtilsLinksys PricingcreateGzyazfUrlGrown],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:MotifLeakOrderUrl forKey:@"lastMotifLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -136,7 +136,7 @@ NSString *BoostLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:BoostLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:MotifLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -146,10 +146,10 @@ NSString *BoostLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
BoostLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[GreenHaiBaoJuheUtilsSwinger SpecifycreateGzyazfUrlCarrie],
[payInfo userId],
[payInfo playerId]];
MotifLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[NurseHaiBaoJuheUtilsLinksys PricingcreateGzyazfUrlGrown],
[payInfo userId],
[payInfo playerId]];
[userDefaults synchronize];
}
......@@ -213,12 +213,12 @@ NSString *BoostLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastBoostLeakOrderUrl = [userDefaults objectForKey:@"lastBoostLeakOrderUrl"];
NSString* lastMotifLeakOrderUrl = [userDefaults objectForKey:@"lastMotifLeakOrderUrl"];
NSString* result;
if (lastBoostLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastBoostLeakOrderUrl :receiptDic];
if (lastMotifLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastMotifLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[GreenHaiBaoJuheUtilsSwinger SpecifycreateGzyazfUrlCarrie] :receiptDic];
result = [[NetCenter getInstance] httpPostSyn:[NurseHaiBaoJuheUtilsLinksys PricingcreateGzyazfUrlGrown] :receiptDic];
}
if([@"success" isEqualToString:result]){//成功
[userDefaults removeObjectForKey:queryId];
......@@ -240,7 +240,7 @@ NSString *BoostLeakOrderUrl;
- (void)receiveCreateOrder:(NSNotification *)notification
{
NSLog(@"创建订单成功");
SpecifyHaiBaoJuheGzyazfInfoCarrie *payInfo = [notification object];
PricingHaiBaoJuheGzyazfInfoGrown *payInfo = [notification object];
NSNumber *amount = @([[payInfo postAmount] integerValue] * mExchange);
NSString *serverId = [payInfo serverId];
......@@ -254,14 +254,14 @@ NSString *BoostLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo] BoostQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[WantedMotifAllManagerMariana IbookMotifInstanceAirmail] MotifQuery: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];
[[MessyBoostAllManagerHenri HelpfulBoostInstancePlacebo] BoostQueryOperation:self.controller BoostHuoWuID:products BoostJiaGe:[payInfo postAmount] BoostHuoWuMing:[payInfo productName] BoostDingDanHao:queryId];
[[WantedMotifAllManagerMariana IbookMotifInstanceAirmail] MotifQueryOperation:self.controller MotifHuoWuID:products MotifJiaGe:[payInfo postAmount] MotifHuoWuMing:[payInfo productName] MotifDingDanHao:queryId];
}
}
......