lizhihui

更新190412版本1

Showing 74 changed files with 267 additions and 267 deletions
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
26926AE92254A9E600E23031 /* Twinkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26926AE82254A9E600E23031 /* Twinkle.framework */; };
26310D0422603EB1007A86CC /* Marvel.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26310D0322603EB1007A86CC /* Marvel.framework */; };
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* hnyouai_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* hnyouai_config */; };
......@@ -59,7 +59,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
26926AE82254A9E600E23031 /* Twinkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Twinkle.framework; sourceTree = "<group>"; };
26310D0322603EB1007A86CC /* Marvel.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Marvel.framework; sourceTree = "<group>"; };
269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; };
845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; };
845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; };
......@@ -116,9 +116,9 @@
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
26926AE92254A9E600E23031 /* Twinkle.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
26310D0422603EB1007A86CC /* Marvel.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
26926AE82254A9E600E23031 /* Twinkle.framework */,
26310D0322603EB1007A86CC /* Marvel.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* hnyouai_config */,
......@@ -280,7 +280,7 @@
TargetAttributes = {
BB5F3C871C1811BC00DA339D = {
CreatedOnToolsVersion = 6.4;
DevelopmentTeam = A3DGN26BA8;
DevelopmentTeam = PNDD7Y396D;
ProvisioningStyle = Manual;
};
BB5F3CA01C1811BC00DA339D = {
......@@ -469,7 +469,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = A3DGN26BA8;
DEVELOPMENT_TEAM = PNDD7Y396D;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......@@ -487,10 +487,10 @@
);
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.mihuyo.beta;
PRODUCT_BUNDLE_IDENTIFIER = com.test.youai;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "f5e11833-b2e3-48fd-8903-8da416b533f7";
PROVISIONING_PROFILE_SPECIFIER = dev_provision;
PROVISIONING_PROFILE = "9303482b-bf64-4d76-83c5-97cec24e2bd5";
PROVISIONING_PROFILE_SPECIFIER = dev;
TARGETED_DEVICE_FAMILY = "1,2";
VALID_ARCHS = "arm64 armv7s";
};
......@@ -503,7 +503,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = A3DGN26BA8;
DEVELOPMENT_TEAM = PNDD7Y396D;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......@@ -521,10 +521,10 @@
);
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.mihuyo.beta;
PRODUCT_BUNDLE_IDENTIFIER = com.test.youai;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "f5e11833-b2e3-48fd-8903-8da416b533f7";
PROVISIONING_PROFILE_SPECIFIER = dev_provision;
PROVISIONING_PROFILE = "8e8ee19d-d19f-41ba-9a9d-108915ed5380";
PROVISIONING_PROFILE_SPECIFIER = dis;
TARGETED_DEVICE_FAMILY = "1,2";
VALID_ARCHS = "arm64 armv7s";
};
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) TwinkleHaiBaoJuhereportOpen;
- (void) TwinkleHaiBaoJuhereportSDKOpen;
- (void)TwinkleHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) MarvelHaiBaoJuhereportOpen;
- (void) MarvelHaiBaoJuhereportSDKOpen;
- (void)MarvelHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) TwinkleHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) MarvelHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)TwinkleHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)MarvelHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : TwinkleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MarvelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : MarvelHaiBaoJuheBaseModel
@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 *) TwinkleHaiBaoJuheGetTsign ;
- (NSString *) TwinkleHaiBaoJuheGetTimestamp ;
- (NSString *) MarvelHaiBaoJuheGetTsign ;
- (NSString *) MarvelHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : TwinkleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MarvelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : MarvelHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : TwinkleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MarvelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : MarvelHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// TwinkleHaiBaoJuheReportInfo.h
// MarvelHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : TwinkleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MarvelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : MarvelHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* TwinkleList;
@property(strong) NSMutableArray* MarvelList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)TwinkleHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)MarvelHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface TwinkleControl : NSObject
@interface MarvelControl : NSObject
- (void)initTwinkleInstance;
- (void)initMarvelInstance;
- (void)TwinkleStartGo;
- (void)MarvelStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface TwinkleControl1 : NSObject
@interface MarvelControl1 : NSObject
- (void)initTwinkleInstance;
- (void)initMarvelInstance;
- (void)TwinkleStartGo;
- (void)MarvelStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface TwinkleControl2 : NSObject
@interface MarvelControl2 : NSObject
- (void)initTwinkleInstance;
- (void)initMarvelInstance;
- (void)TwinkleStartGo;
- (void)MarvelStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface TwinkleControl3 : NSObject
@interface MarvelControl3 : NSObject
- (void)initTwinkleInstance;
- (void)initMarvelInstance;
- (void)TwinkleStartGo;
- (void)MarvelStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface TwinkleControl4 : NSObject
@interface MarvelControl4 : NSObject
- (void)initTwinkleInstance;
- (void)initMarvelInstance;
- (void)TwinkleStartGo;
- (void)MarvelStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface TwinkleHaiBaoJuheBaseModel : NSObject
@interface MarvelHaiBaoJuheBaseModel : NSObject
- (NSString *)TwinkleHaiBaoJuheObjectToJsonString;
- (NSString *)MarvelHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface TwinkleHaiBaoJuheDGLogger : NSObject
@interface MarvelHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface MarvelAllManager : NSObject
{
NSString* MarvelAPPID_;
NSString* MarvelAPPKEY_;
NSString* MarvelInviterCode_;
}
@property(strong) NSMutableArray* MarvelList;
@property bool MarvelGeiWoHuaQianBa;
+ (MarvelAllManager *)MarvelInstance;
- (void)MarvelChuShiHua;
- (void)MarvelDengLu:(NSString *)MarvelAPPID : (NSString *)MarvelAPPKEY : (UIViewController *)controller;
- (void)MarvelYangShi:(NSString*)MarvelLeiXing;
- (void)MarvelQuery: (NSString *)MarvelFuWuQiID : (NSString *)MarvelNickName : (NSNumber *)MarvelAmount : (NSString *)MarvelCallBack : (UIViewController *)controller : (NSString *)MarvelServerName;
- (void)MarvelQueryOperation:(UIViewController*)controll MarvelHuoWuID:(NSString*)products MarvelJiaGe:(NSString*)amount MarvelHuoWuMing:(NSString*)productName MarvelDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const MarvelExitNotification;
extern NSString * const MarvelLoginNotification;
extern NSString * const MarvelErrorNotification;
@interface MarvelHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface MarvelIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* MarvelDingDanHao;
@property(nonatomic,strong) NSDictionary* MarvelHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* MarvelHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *MarvelHuoWuLieBiaoView;
- (void)MarvelHuaQianView:(UIViewController*)controller MarvelHuoWuD:(NSString*)products MarvelQian:(NSString*)amount MarvelHuoWuMing:(NSString*)productName MarvelDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface TwinkleInformation : NSObject
@interface MarvelInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (TwinkleInformation *)getInstance;
+ (MarvelInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface TwinkleInformationJM : NSObject
@interface MarvelInformationJM : NSObject
+(NSString *)TwinkleJM:(NSString *)jm;
+(NSString *)MarvelJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface TwinkleLocation : NSObject
@interface MarvelLocation : NSObject
+ (NSString *)TwinkleSKCloudServiceSetupOptionsKey;
+ (NSString *)MarvelSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "TwinkleInformation.h"
#import "MarvelInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface TwinkleMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface MarvelMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webTwinkleView_;
UIWebView *webMarvelView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL TwinkleYouYuanJiao;
@property(assign) BOOL MarvelYouYuanJiao;
- (void)TwinkleSettingTwinkleView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)TwinkleInitWebView;
- (void)MarvelSettingMarvelView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)MarvelInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
No preview for this file type
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface TwinkleAllManager : NSObject
{
NSString* TwinkleAPPID_;
NSString* TwinkleAPPKEY_;
NSString* TwinkleInviterCode_;
}
@property(strong) NSMutableArray* TwinkleList;
@property bool TwinkleGeiWoHuaQianBa;
+ (TwinkleAllManager *)TwinkleInstance;
- (void)TwinkleChuShiHua;
- (void)TwinkleDengLu:(NSString *)TwinkleAPPID : (NSString *)TwinkleAPPKEY : (UIViewController *)controller;
- (void)TwinkleYangShi:(NSString*)TwinkleLeiXing;
- (void)TwinkleQuery: (NSString *)TwinkleFuWuQiID : (NSString *)TwinkleNickName : (NSNumber *)TwinkleAmount : (NSString *)TwinkleCallBack : (UIViewController *)controller : (NSString *)TwinkleServerName;
- (void)TwinkleQueryOperation:(UIViewController*)controll TwinkleHuoWuID:(NSString*)products TwinkleJiaGe:(NSString*)amount TwinkleHuoWuMing:(NSString*)productName TwinkleDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const TwinkleExitNotification;
extern NSString * const TwinkleLoginNotification;
extern NSString * const TwinkleErrorNotification;
@interface TwinkleHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface TwinkleIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* TwinkleDingDanHao;
@property(nonatomic,strong) NSDictionary* TwinkleHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* TwinkleHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *TwinkleHuoWuLieBiaoView;
- (void)TwinkleHuaQianView:(UIViewController*)controller TwinkleHuoWuD:(NSString*)products TwinkleQian:(NSString*)amount TwinkleHuoWuMing:(NSString*)productName TwinkleDingDanHao:(NSString*)DingDanHao;
@end
No preview for this file type
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Twinkle/TwinkleAllManager.h"
#import "Twinkle/TwinkleHuiTiaoNotification.h"
#import "Twinkle/TwinkleInformation.h"
#import "Marvel/MarvelAllManager.h"
#import "Marvel/MarvelHuiTiaoNotification.h"
#import "Marvel/MarvelInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *TwinkleAppId;
NSString *TwinkleAppKey;
NSString *TwinkleLeakOrderUrl;
NSString *MarvelAppId;
NSString *MarvelAppKey;
NSString *MarvelLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *TwinkleLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[TwinkleAllManager TwinkleInstance]TwinkleChuShiHua];
[[TwinkleAllManager TwinkleInstance]TwinkleYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:TwinkleLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"TwinkleToolCallBack" object:nil];
[[MarvelAllManager MarvelInstance]MarvelChuShiHua];
[[MarvelAllManager MarvelInstance]MarvelYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:MarvelLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"MarvelToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *TwinkleLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
TwinkleAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
TwinkleAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[TwinkleAllManager TwinkleInstance]TwinkleDengLu:TwinkleAppId :TwinkleAppKey :self.controller];
MarvelAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
MarvelAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[MarvelAllManager MarvelInstance]MarvelDengLu:MarvelAppId :MarvelAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *TwinkleLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[TwinkleInformation getInstance]openId];
loginInfo.sign = [[TwinkleInformation getInstance] token];
loginInfo.timestamp = [[TwinkleInformation getInstance] timestamp];
loginInfo.openId = [[MarvelInformation getInstance]openId];
loginInfo.sign = [[MarvelInformation getInstance] token];
loginInfo.timestamp = [[MarvelInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *TwinkleLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"TwinkleToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"MarvelToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *TwinkleLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:TwinkleLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:MarvelLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *TwinkleLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
TwinkleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
MarvelLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:TwinkleLeakOrderUrl forKey:@"lastTwinkleLeakOrderUrl"];
[userDefaults setObject:MarvelLeakOrderUrl forKey:@"lastMarvelLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *TwinkleLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:TwinkleLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:MarvelLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *TwinkleLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
TwinkleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
MarvelLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *TwinkleLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastTwinkleLeakOrderUrl = [userDefaults objectForKey:@"lastTwinkleLeakOrderUrl"];
NSString* lastMarvelLeakOrderUrl = [userDefaults objectForKey:@"lastMarvelLeakOrderUrl"];
NSString* result;
if (lastTwinkleLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastTwinkleLeakOrderUrl :receiptDic];
if (lastMarvelLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastMarvelLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *TwinkleLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[TwinkleAllManager TwinkleInstance] TwinkleQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[MarvelAllManager MarvelInstance] MarvelQuery: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];
[[TwinkleAllManager TwinkleInstance] TwinkleQueryOperation:self.controller TwinkleHuoWuID:products TwinkleJiaGe:[payInfo postAmount] TwinkleHuoWuMing:[payInfo productName] TwinkleDingDanHao:queryId];
[[MarvelAllManager MarvelInstance] MarvelQueryOperation:self.controller MarvelHuoWuID:products MarvelJiaGe:[payInfo postAmount] MarvelHuoWuMing:[payInfo productName] MarvelDingDanHao:queryId];
}
}
......
......@@ -10,9 +10,9 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年04月3日版本1<br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年04月12日版本1<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Twinkle.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Marvel.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换HaiBaoJuheSDK.framework ``` <br>
5、``` 原配置文件 替换成新 hnyouai_config文件(可参考demo) ``` <br>
\ No newline at end of file
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) TwinkleHaiBaoJuhereportOpen;
- (void) TwinkleHaiBaoJuhereportSDKOpen;
- (void)TwinkleHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) MarvelHaiBaoJuhereportOpen;
- (void) MarvelHaiBaoJuhereportSDKOpen;
- (void)MarvelHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) TwinkleHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) MarvelHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)TwinkleHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)MarvelHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : TwinkleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MarvelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : MarvelHaiBaoJuheBaseModel
@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 *) TwinkleHaiBaoJuheGetTsign ;
- (NSString *) TwinkleHaiBaoJuheGetTimestamp ;
- (NSString *) MarvelHaiBaoJuheGetTsign ;
- (NSString *) MarvelHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : TwinkleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MarvelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : MarvelHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : TwinkleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MarvelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : MarvelHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// TwinkleHaiBaoJuheReportInfo.h
// MarvelHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : TwinkleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MarvelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : MarvelHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* TwinkleList;
@property(strong) NSMutableArray* MarvelList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)TwinkleHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)MarvelHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface TwinkleControl : NSObject
@interface MarvelControl : NSObject
- (void)initTwinkleInstance;
- (void)initMarvelInstance;
- (void)TwinkleStartGo;
- (void)MarvelStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface TwinkleControl1 : NSObject
@interface MarvelControl1 : NSObject
- (void)initTwinkleInstance;
- (void)initMarvelInstance;
- (void)TwinkleStartGo;
- (void)MarvelStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface TwinkleControl2 : NSObject
@interface MarvelControl2 : NSObject
- (void)initTwinkleInstance;
- (void)initMarvelInstance;
- (void)TwinkleStartGo;
- (void)MarvelStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface TwinkleControl3 : NSObject
@interface MarvelControl3 : NSObject
- (void)initTwinkleInstance;
- (void)initMarvelInstance;
- (void)TwinkleStartGo;
- (void)MarvelStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface TwinkleControl4 : NSObject
@interface MarvelControl4 : NSObject
- (void)initTwinkleInstance;
- (void)initMarvelInstance;
- (void)TwinkleStartGo;
- (void)MarvelStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface TwinkleHaiBaoJuheBaseModel : NSObject
@interface MarvelHaiBaoJuheBaseModel : NSObject
- (NSString *)TwinkleHaiBaoJuheObjectToJsonString;
- (NSString *)MarvelHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface TwinkleHaiBaoJuheDGLogger : NSObject
@interface MarvelHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface MarvelAllManager : NSObject
{
NSString* MarvelAPPID_;
NSString* MarvelAPPKEY_;
NSString* MarvelInviterCode_;
}
@property(strong) NSMutableArray* MarvelList;
@property bool MarvelGeiWoHuaQianBa;
+ (MarvelAllManager *)MarvelInstance;
- (void)MarvelChuShiHua;
- (void)MarvelDengLu:(NSString *)MarvelAPPID : (NSString *)MarvelAPPKEY : (UIViewController *)controller;
- (void)MarvelYangShi:(NSString*)MarvelLeiXing;
- (void)MarvelQuery: (NSString *)MarvelFuWuQiID : (NSString *)MarvelNickName : (NSNumber *)MarvelAmount : (NSString *)MarvelCallBack : (UIViewController *)controller : (NSString *)MarvelServerName;
- (void)MarvelQueryOperation:(UIViewController*)controll MarvelHuoWuID:(NSString*)products MarvelJiaGe:(NSString*)amount MarvelHuoWuMing:(NSString*)productName MarvelDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const MarvelExitNotification;
extern NSString * const MarvelLoginNotification;
extern NSString * const MarvelErrorNotification;
@interface MarvelHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface MarvelIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* MarvelDingDanHao;
@property(nonatomic,strong) NSDictionary* MarvelHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* MarvelHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *MarvelHuoWuLieBiaoView;
- (void)MarvelHuaQianView:(UIViewController*)controller MarvelHuoWuD:(NSString*)products MarvelQian:(NSString*)amount MarvelHuoWuMing:(NSString*)productName MarvelDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface TwinkleInformation : NSObject
@interface MarvelInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (TwinkleInformation *)getInstance;
+ (MarvelInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface TwinkleInformationJM : NSObject
@interface MarvelInformationJM : NSObject
+(NSString *)TwinkleJM:(NSString *)jm;
+(NSString *)MarvelJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface TwinkleLocation : NSObject
@interface MarvelLocation : NSObject
+ (NSString *)TwinkleSKCloudServiceSetupOptionsKey;
+ (NSString *)MarvelSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "TwinkleInformation.h"
#import "MarvelInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface TwinkleMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface MarvelMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webTwinkleView_;
UIWebView *webMarvelView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL TwinkleYouYuanJiao;
@property(assign) BOOL MarvelYouYuanJiao;
- (void)TwinkleSettingTwinkleView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)TwinkleInitWebView;
- (void)MarvelSettingMarvelView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)MarvelInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
No preview for this file type
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Twinkle/TwinkleAllManager.h"
#import "Twinkle/TwinkleHuiTiaoNotification.h"
#import "Twinkle/TwinkleInformation.h"
#import "Marvel/MarvelAllManager.h"
#import "Marvel/MarvelHuiTiaoNotification.h"
#import "Marvel/MarvelInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *TwinkleAppId;
NSString *TwinkleAppKey;
NSString *TwinkleLeakOrderUrl;
NSString *MarvelAppId;
NSString *MarvelAppKey;
NSString *MarvelLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *TwinkleLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[TwinkleAllManager TwinkleInstance]TwinkleChuShiHua];
[[TwinkleAllManager TwinkleInstance]TwinkleYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:TwinkleLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"TwinkleToolCallBack" object:nil];
[[MarvelAllManager MarvelInstance]MarvelChuShiHua];
[[MarvelAllManager MarvelInstance]MarvelYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:MarvelLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"MarvelToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *TwinkleLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
TwinkleAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
TwinkleAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[TwinkleAllManager TwinkleInstance]TwinkleDengLu:TwinkleAppId :TwinkleAppKey :self.controller];
MarvelAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
MarvelAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[MarvelAllManager MarvelInstance]MarvelDengLu:MarvelAppId :MarvelAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *TwinkleLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[TwinkleInformation getInstance]openId];
loginInfo.sign = [[TwinkleInformation getInstance] token];
loginInfo.timestamp = [[TwinkleInformation getInstance] timestamp];
loginInfo.openId = [[MarvelInformation getInstance]openId];
loginInfo.sign = [[MarvelInformation getInstance] token];
loginInfo.timestamp = [[MarvelInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *TwinkleLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"TwinkleToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"MarvelToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *TwinkleLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:TwinkleLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:MarvelLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *TwinkleLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
TwinkleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
MarvelLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:TwinkleLeakOrderUrl forKey:@"lastTwinkleLeakOrderUrl"];
[userDefaults setObject:MarvelLeakOrderUrl forKey:@"lastMarvelLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *TwinkleLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:TwinkleLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:MarvelLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *TwinkleLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
TwinkleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
MarvelLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *TwinkleLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastTwinkleLeakOrderUrl = [userDefaults objectForKey:@"lastTwinkleLeakOrderUrl"];
NSString* lastMarvelLeakOrderUrl = [userDefaults objectForKey:@"lastMarvelLeakOrderUrl"];
NSString* result;
if (lastTwinkleLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastTwinkleLeakOrderUrl :receiptDic];
if (lastMarvelLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastMarvelLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *TwinkleLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[TwinkleAllManager TwinkleInstance] TwinkleQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[MarvelAllManager MarvelInstance] MarvelQuery: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];
[[TwinkleAllManager TwinkleInstance] TwinkleQueryOperation:self.controller TwinkleHuoWuID:products TwinkleJiaGe:[payInfo postAmount] TwinkleHuoWuMing:[payInfo productName] TwinkleDingDanHao:queryId];
[[MarvelAllManager MarvelInstance] MarvelQueryOperation:self.controller MarvelHuoWuID:products MarvelJiaGe:[payInfo postAmount] MarvelHuoWuMing:[payInfo productName] MarvelDingDanHao:queryId];
}
}
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface TwinkleAllManager : NSObject
{
NSString* TwinkleAPPID_;
NSString* TwinkleAPPKEY_;
NSString* TwinkleInviterCode_;
}
@property(strong) NSMutableArray* TwinkleList;
@property bool TwinkleGeiWoHuaQianBa;
+ (TwinkleAllManager *)TwinkleInstance;
- (void)TwinkleChuShiHua;
- (void)TwinkleDengLu:(NSString *)TwinkleAPPID : (NSString *)TwinkleAPPKEY : (UIViewController *)controller;
- (void)TwinkleYangShi:(NSString*)TwinkleLeiXing;
- (void)TwinkleQuery: (NSString *)TwinkleFuWuQiID : (NSString *)TwinkleNickName : (NSNumber *)TwinkleAmount : (NSString *)TwinkleCallBack : (UIViewController *)controller : (NSString *)TwinkleServerName;
- (void)TwinkleQueryOperation:(UIViewController*)controll TwinkleHuoWuID:(NSString*)products TwinkleJiaGe:(NSString*)amount TwinkleHuoWuMing:(NSString*)productName TwinkleDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const TwinkleExitNotification;
extern NSString * const TwinkleLoginNotification;
extern NSString * const TwinkleErrorNotification;
@interface TwinkleHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface TwinkleIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* TwinkleDingDanHao;
@property(nonatomic,strong) NSDictionary* TwinkleHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* TwinkleHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *TwinkleHuoWuLieBiaoView;
- (void)TwinkleHuaQianView:(UIViewController*)controller TwinkleHuoWuD:(NSString*)products TwinkleQian:(NSString*)amount TwinkleHuoWuMing:(NSString*)productName TwinkleDingDanHao:(NSString*)DingDanHao;
@end