lizhihui

更新190319版本1

Showing 62 changed files with 233 additions and 233 deletions
No preview for this file type
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface BreathlessAllManager : NSObject
{
NSString* BreathlessAPPID_;
NSString* BreathlessAPPKEY_;
NSString* BreathlessInviterCode_;
}
@property bool BreathlessGeiWoHuaQianBa;
+ (BreathlessAllManager *)BreathlessInstance;
- (void)BreathlessChuShiHua;
- (void)BreathlessDengLu:(NSString *)BreathlessAPPID : (NSString *)BreathlessAPPKEY : (UIViewController *)controller;
- (void)BreathlessYangShi:(NSString*)BreathlessLeiXing;
- (void)BreathlessQuery: (NSString *)BreathlessFuWuQiID : (NSString *)BreathlessNickName : (NSNumber *)BreathlessAmount : (NSString *)BreathlessCallBack : (UIViewController *)controller : (NSString *)BreathlessServerName;
- (void)BreathlessQueryOperation:(UIViewController*)controll BreathlessHuoWuID:(NSString*)products BreathlessJiaGe:(NSString*)amount BreathlessHuoWuMing:(NSString*)productName BreathlessDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const BreathlessExitNotification;
extern NSString * const BreathlessLoginNotification;
extern NSString * const BreathlessErrorNotification;
@interface BreathlessHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface BreathlessIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* BreathlessDingDanHao;
@property(nonatomic,strong) NSDictionary* BreathlessHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* BreathlessHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *BreathlessHuoWuLieBiaoView;
- (void)BreathlessHuaQianView:(UIViewController*)controller BreathlessHuoWuD:(NSString*)products BreathlessQian:(NSString*)amount BreathlessHuoWuMing:(NSString*)productName BreathlessDingDanHao:(NSString*)DingDanHao;
@end
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
265675F02238EA5500E23618 /* Breathless.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 265675EF2238EA5500E23618 /* Breathless.framework */; };
2606300B224090BF00019981 /* Menstruation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2606300A224090BF00019981 /* Menstruation.framework */; };
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* haibaoyouxi_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibaoyouxi_config */; };
......@@ -59,7 +59,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
265675EF2238EA5500E23618 /* Breathless.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Breathless.framework; sourceTree = "<group>"; };
2606300A224090BF00019981 /* Menstruation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Menstruation.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>"; };
......@@ -105,7 +105,6 @@
8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
265675F02238EA5500E23618 /* Breathless.framework in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
......@@ -115,6 +114,7 @@
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
2606300B224090BF00019981 /* Menstruation.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
265675EF2238EA5500E23618 /* Breathless.framework */,
2606300A224090BF00019981 /* Menstruation.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* haibaoyouxi_config */,
......@@ -280,7 +280,7 @@
TargetAttributes = {
BB5F3C871C1811BC00DA339D = {
CreatedOnToolsVersion = 6.4;
DevelopmentTeam = VJWR45W95K;
DevelopmentTeam = A3DGN26BA8;
ProvisioningStyle = Manual;
};
BB5F3CA01C1811BC00DA339D = {
......@@ -469,7 +469,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = VJWR45W95K;
DEVELOPMENT_TEAM = A3DGN26BA8;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......@@ -487,10 +487,10 @@
);
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.zhiZU.Nxiay.pop;
PRODUCT_BUNDLE_IDENTIFIER = com.mihuyo.beta;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "152876c6-4bcd-4cec-b526-7f370953faab";
PROVISIONING_PROFILE_SPECIFIER = dev.zhiZU.Nxiay.pop;
PROVISIONING_PROFILE = "f5e11833-b2e3-48fd-8903-8da416b533f7";
PROVISIONING_PROFILE_SPECIFIER = dev_provision;
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 = VJWR45W95K;
DEVELOPMENT_TEAM = A3DGN26BA8;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......@@ -521,10 +521,10 @@
);
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.zhiZU.Nxiay.pop;
PRODUCT_BUNDLE_IDENTIFIER = com.mihuyo.beta;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "ac55fcfd-bf85-4d33-811e-28619d6dab44";
PROVISIONING_PROFILE_SPECIFIER = dis.zhiZU.Nxiay.pop;
PROVISIONING_PROFILE = "efde732c-987c-4f2a-bc64-c11762722e03";
PROVISIONING_PROFILE_SPECIFIER = dis_provision;
TARGETED_DEVICE_FAMILY = "1,2";
VALID_ARCHS = "arm64 armv7s";
};
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) BreathlessHaiBaoJuhereportOpen;
- (void) BreathlessHaiBaoJuhereportSDKOpen;
- (void)BreathlessHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) MenstruationHaiBaoJuhereportOpen;
- (void) MenstruationHaiBaoJuhereportSDKOpen;
- (void)MenstruationHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) BreathlessHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) MenstruationHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)BreathlessHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)MenstruationHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/BreathlessHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : BreathlessHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MenstruationHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : MenstruationHaiBaoJuheBaseModel
@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 *) BreathlessHaiBaoJuheGetTsign ;
- (NSString *) BreathlessHaiBaoJuheGetTimestamp ;
- (NSString *) MenstruationHaiBaoJuheGetTsign ;
- (NSString *) MenstruationHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/BreathlessHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : BreathlessHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MenstruationHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : MenstruationHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/BreathlessHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : BreathlessHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MenstruationHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : MenstruationHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// BreathlessHaiBaoJuheReportInfo.h
// MenstruationHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/BreathlessHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : BreathlessHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MenstruationHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : MenstruationHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)BreathlessHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)MenstruationHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface BreathlessHaiBaoJuheBaseModel : NSObject
@interface MenstruationHaiBaoJuheBaseModel : NSObject
- (NSString *)BreathlessHaiBaoJuheObjectToJsonString;
- (NSString *)MenstruationHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface BreathlessHaiBaoJuheDGLogger : NSObject
@interface MenstruationHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface MenstruationAllManager : NSObject
{
NSString* MenstruationAPPID_;
NSString* MenstruationAPPKEY_;
NSString* MenstruationInviterCode_;
}
@property bool MenstruationGeiWoHuaQianBa;
+ (MenstruationAllManager *)MenstruationInstance;
- (void)MenstruationChuShiHua;
- (void)MenstruationDengLu:(NSString *)MenstruationAPPID : (NSString *)MenstruationAPPKEY : (UIViewController *)controller;
- (void)MenstruationYangShi:(NSString*)MenstruationLeiXing;
- (void)MenstruationQuery: (NSString *)MenstruationFuWuQiID : (NSString *)MenstruationNickName : (NSNumber *)MenstruationAmount : (NSString *)MenstruationCallBack : (UIViewController *)controller : (NSString *)MenstruationServerName;
- (void)MenstruationQueryOperation:(UIViewController*)controll MenstruationHuoWuID:(NSString*)products MenstruationJiaGe:(NSString*)amount MenstruationHuoWuMing:(NSString*)productName MenstruationDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const MenstruationExitNotification;
extern NSString * const MenstruationLoginNotification;
extern NSString * const MenstruationErrorNotification;
@interface MenstruationHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface MenstruationIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* MenstruationDingDanHao;
@property(nonatomic,strong) NSDictionary* MenstruationHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* MenstruationHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *MenstruationHuoWuLieBiaoView;
- (void)MenstruationHuaQianView:(UIViewController*)controller MenstruationHuoWuD:(NSString*)products MenstruationQian:(NSString*)amount MenstruationHuoWuMing:(NSString*)productName MenstruationDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface BreathlessInformation : NSObject
@interface MenstruationInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (BreathlessInformation *)getInstance;
+ (MenstruationInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface BreathlessInformationJM : NSObject
@interface MenstruationInformationJM : NSObject
+(NSString *)BreathlessJM:(NSString *)jm;
+(NSString *)MenstruationJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface BreathlessLocation : NSObject
@interface MenstruationLocation : NSObject
+ (NSString *)BreathlessSKCloudServiceSetupOptionsKey;
+ (NSString *)MenstruationSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "BreathlessInformation.h"
#import "MenstruationInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface BreathlessMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface MenstruationMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webBreathlessView_;
UIWebView *webMenstruationView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL BreathlessYouYuanJiao;
@property(assign) BOOL MenstruationYouYuanJiao;
- (void)BreathlessSettingBreathlessView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)BreathlessInitWebView;
- (void)MenstruationSettingMenstruationView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)MenstruationInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Breathless/BreathlessAllManager.h"
#import "Breathless/BreathlessHuiTiaoNotification.h"
#import "Breathless/BreathlessInformation.h"
#import "Menstruation/MenstruationAllManager.h"
#import "Menstruation/MenstruationHuiTiaoNotification.h"
#import "Menstruation/MenstruationInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *BreathlessAppId;
NSString *BreathlessAppKey;
NSString *BreathlessLeakOrderUrl;
NSString *MenstruationAppId;
NSString *MenstruationAppKey;
NSString *MenstruationLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *BreathlessLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[BreathlessAllManager BreathlessInstance]BreathlessChuShiHua];
[[BreathlessAllManager BreathlessInstance]BreathlessYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:BreathlessLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"BreathlessToolCallBack" object:nil];
[[MenstruationAllManager MenstruationInstance]MenstruationChuShiHua];
[[MenstruationAllManager MenstruationInstance]MenstruationYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:MenstruationLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"MenstruationToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *BreathlessLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
BreathlessAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
BreathlessAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[BreathlessAllManager BreathlessInstance]BreathlessDengLu:BreathlessAppId :BreathlessAppKey :self.controller];
MenstruationAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
MenstruationAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[MenstruationAllManager MenstruationInstance]MenstruationDengLu:MenstruationAppId :MenstruationAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *BreathlessLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[BreathlessInformation getInstance]openId];
loginInfo.sign = [[BreathlessInformation getInstance] token];
loginInfo.timestamp = [[BreathlessInformation getInstance] timestamp];
loginInfo.openId = [[MenstruationInformation getInstance]openId];
loginInfo.sign = [[MenstruationInformation getInstance] token];
loginInfo.timestamp = [[MenstruationInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *BreathlessLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"BreathlessToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"MenstruationToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *BreathlessLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:BreathlessLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:MenstruationLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *BreathlessLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
BreathlessLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
MenstruationLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:BreathlessLeakOrderUrl forKey:@"lastBreathlessLeakOrderUrl"];
[userDefaults setObject:MenstruationLeakOrderUrl forKey:@"lastMenstruationLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *BreathlessLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:BreathlessLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:MenstruationLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *BreathlessLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
BreathlessLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
MenstruationLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *BreathlessLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastBreathlessLeakOrderUrl = [userDefaults objectForKey:@"lastBreathlessLeakOrderUrl"];
NSString* lastMenstruationLeakOrderUrl = [userDefaults objectForKey:@"lastMenstruationLeakOrderUrl"];
NSString* result;
if (lastBreathlessLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastBreathlessLeakOrderUrl :receiptDic];
if (lastMenstruationLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastMenstruationLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *BreathlessLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[BreathlessAllManager BreathlessInstance] BreathlessQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[MenstruationAllManager MenstruationInstance] MenstruationQuery: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];
[[BreathlessAllManager BreathlessInstance] BreathlessQueryOperation:self.controller BreathlessHuoWuID:products BreathlessJiaGe:[payInfo postAmount] BreathlessHuoWuMing:[payInfo productName] BreathlessDingDanHao:queryId];
[[MenstruationAllManager MenstruationInstance] MenstruationQueryOperation:self.controller MenstruationHuoWuID:products MenstruationJiaGe:[payInfo postAmount] MenstruationHuoWuMing:[payInfo productName] MenstruationDingDanHao:queryId];
}
}
......
......@@ -10,9 +10,9 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年03月13日版本2方法<br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年03月19日版本2方法<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Breathless.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Menstruation.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换HaiBaoJuheSDK.framework ``` <br>
5、``` 原 URL Schemes 中的 i9133public 改为 sdk.uuufish.com (可参考demo中info设置) ``` <br>
\ No newline at end of file
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) BreathlessHaiBaoJuhereportOpen;
- (void) BreathlessHaiBaoJuhereportSDKOpen;
- (void)BreathlessHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) MenstruationHaiBaoJuhereportOpen;
- (void) MenstruationHaiBaoJuhereportSDKOpen;
- (void)MenstruationHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) BreathlessHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) MenstruationHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)BreathlessHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)MenstruationHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/BreathlessHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : BreathlessHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MenstruationHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : MenstruationHaiBaoJuheBaseModel
@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 *) BreathlessHaiBaoJuheGetTsign ;
- (NSString *) BreathlessHaiBaoJuheGetTimestamp ;
- (NSString *) MenstruationHaiBaoJuheGetTsign ;
- (NSString *) MenstruationHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/BreathlessHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : BreathlessHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MenstruationHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : MenstruationHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/BreathlessHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : BreathlessHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MenstruationHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : MenstruationHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// BreathlessHaiBaoJuheReportInfo.h
// MenstruationHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/BreathlessHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : BreathlessHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MenstruationHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : MenstruationHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)BreathlessHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)MenstruationHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface BreathlessHaiBaoJuheBaseModel : NSObject
@interface MenstruationHaiBaoJuheBaseModel : NSObject
- (NSString *)BreathlessHaiBaoJuheObjectToJsonString;
- (NSString *)MenstruationHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface BreathlessHaiBaoJuheDGLogger : NSObject
@interface MenstruationHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface BreathlessAllManager : NSObject
{
NSString* BreathlessAPPID_;
NSString* BreathlessAPPKEY_;
NSString* BreathlessInviterCode_;
}
@property bool BreathlessGeiWoHuaQianBa;
+ (BreathlessAllManager *)BreathlessInstance;
- (void)BreathlessChuShiHua;
- (void)BreathlessDengLu:(NSString *)BreathlessAPPID : (NSString *)BreathlessAPPKEY : (UIViewController *)controller;
- (void)BreathlessYangShi:(NSString*)BreathlessLeiXing;
- (void)BreathlessQuery: (NSString *)BreathlessFuWuQiID : (NSString *)BreathlessNickName : (NSNumber *)BreathlessAmount : (NSString *)BreathlessCallBack : (UIViewController *)controller : (NSString *)BreathlessServerName;
- (void)BreathlessQueryOperation:(UIViewController*)controll BreathlessHuoWuID:(NSString*)products BreathlessJiaGe:(NSString*)amount BreathlessHuoWuMing:(NSString*)productName BreathlessDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const BreathlessExitNotification;
extern NSString * const BreathlessLoginNotification;
extern NSString * const BreathlessErrorNotification;
@interface BreathlessHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface BreathlessIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* BreathlessDingDanHao;
@property(nonatomic,strong) NSDictionary* BreathlessHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* BreathlessHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *BreathlessHuoWuLieBiaoView;
- (void)BreathlessHuaQianView:(UIViewController*)controller BreathlessHuoWuD:(NSString*)products BreathlessQian:(NSString*)amount BreathlessHuoWuMing:(NSString*)productName BreathlessDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface MenstruationAllManager : NSObject
{
NSString* MenstruationAPPID_;
NSString* MenstruationAPPKEY_;
NSString* MenstruationInviterCode_;
}
@property bool MenstruationGeiWoHuaQianBa;
+ (MenstruationAllManager *)MenstruationInstance;
- (void)MenstruationChuShiHua;
- (void)MenstruationDengLu:(NSString *)MenstruationAPPID : (NSString *)MenstruationAPPKEY : (UIViewController *)controller;
- (void)MenstruationYangShi:(NSString*)MenstruationLeiXing;
- (void)MenstruationQuery: (NSString *)MenstruationFuWuQiID : (NSString *)MenstruationNickName : (NSNumber *)MenstruationAmount : (NSString *)MenstruationCallBack : (UIViewController *)controller : (NSString *)MenstruationServerName;
- (void)MenstruationQueryOperation:(UIViewController*)controll MenstruationHuoWuID:(NSString*)products MenstruationJiaGe:(NSString*)amount MenstruationHuoWuMing:(NSString*)productName MenstruationDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const MenstruationExitNotification;
extern NSString * const MenstruationLoginNotification;
extern NSString * const MenstruationErrorNotification;
@interface MenstruationHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface MenstruationIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* MenstruationDingDanHao;
@property(nonatomic,strong) NSDictionary* MenstruationHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* MenstruationHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *MenstruationHuoWuLieBiaoView;
- (void)MenstruationHuaQianView:(UIViewController*)controller MenstruationHuoWuD:(NSString*)products MenstruationQian:(NSString*)amount MenstruationHuoWuMing:(NSString*)productName MenstruationDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface BreathlessInformation : NSObject
@interface MenstruationInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (BreathlessInformation *)getInstance;
+ (MenstruationInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface BreathlessInformationJM : NSObject
@interface MenstruationInformationJM : NSObject
+(NSString *)BreathlessJM:(NSString *)jm;
+(NSString *)MenstruationJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface BreathlessLocation : NSObject
@interface MenstruationLocation : NSObject
+ (NSString *)BreathlessSKCloudServiceSetupOptionsKey;
+ (NSString *)MenstruationSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "BreathlessInformation.h"
#import "MenstruationInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface BreathlessMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface MenstruationMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webBreathlessView_;
UIWebView *webMenstruationView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL BreathlessYouYuanJiao;
@property(assign) BOOL MenstruationYouYuanJiao;
- (void)BreathlessSettingBreathlessView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)BreathlessInitWebView;
- (void)MenstruationSettingMenstruationView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)MenstruationInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Breathless/BreathlessAllManager.h"
#import "Breathless/BreathlessHuiTiaoNotification.h"
#import "Breathless/BreathlessInformation.h"
#import "Menstruation/MenstruationAllManager.h"
#import "Menstruation/MenstruationHuiTiaoNotification.h"
#import "Menstruation/MenstruationInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *BreathlessAppId;
NSString *BreathlessAppKey;
NSString *BreathlessLeakOrderUrl;
NSString *MenstruationAppId;
NSString *MenstruationAppKey;
NSString *MenstruationLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *BreathlessLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[BreathlessAllManager BreathlessInstance]BreathlessChuShiHua];
[[BreathlessAllManager BreathlessInstance]BreathlessYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:BreathlessLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"BreathlessToolCallBack" object:nil];
[[MenstruationAllManager MenstruationInstance]MenstruationChuShiHua];
[[MenstruationAllManager MenstruationInstance]MenstruationYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:MenstruationLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"MenstruationToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *BreathlessLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
BreathlessAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
BreathlessAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[BreathlessAllManager BreathlessInstance]BreathlessDengLu:BreathlessAppId :BreathlessAppKey :self.controller];
MenstruationAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
MenstruationAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[MenstruationAllManager MenstruationInstance]MenstruationDengLu:MenstruationAppId :MenstruationAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *BreathlessLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[BreathlessInformation getInstance]openId];
loginInfo.sign = [[BreathlessInformation getInstance] token];
loginInfo.timestamp = [[BreathlessInformation getInstance] timestamp];
loginInfo.openId = [[MenstruationInformation getInstance]openId];
loginInfo.sign = [[MenstruationInformation getInstance] token];
loginInfo.timestamp = [[MenstruationInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *BreathlessLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"BreathlessToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"MenstruationToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *BreathlessLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:BreathlessLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:MenstruationLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *BreathlessLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
BreathlessLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
MenstruationLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:BreathlessLeakOrderUrl forKey:@"lastBreathlessLeakOrderUrl"];
[userDefaults setObject:MenstruationLeakOrderUrl forKey:@"lastMenstruationLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *BreathlessLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:BreathlessLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:MenstruationLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *BreathlessLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
BreathlessLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
MenstruationLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *BreathlessLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastBreathlessLeakOrderUrl = [userDefaults objectForKey:@"lastBreathlessLeakOrderUrl"];
NSString* lastMenstruationLeakOrderUrl = [userDefaults objectForKey:@"lastMenstruationLeakOrderUrl"];
NSString* result;
if (lastBreathlessLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastBreathlessLeakOrderUrl :receiptDic];
if (lastMenstruationLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastMenstruationLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *BreathlessLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[BreathlessAllManager BreathlessInstance] BreathlessQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[MenstruationAllManager MenstruationInstance] MenstruationQuery: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];
[[BreathlessAllManager BreathlessInstance] BreathlessQueryOperation:self.controller BreathlessHuoWuID:products BreathlessJiaGe:[payInfo postAmount] BreathlessHuoWuMing:[payInfo productName] BreathlessDingDanHao:queryId];
[[MenstruationAllManager MenstruationInstance] MenstruationQueryOperation:self.controller MenstruationHuoWuID:products MenstruationJiaGe:[payInfo postAmount] MenstruationHuoWuMing:[payInfo productName] MenstruationDingDanHao:queryId];
}
}
......