lizhihui

更新190612版本

Showing 72 changed files with 258 additions and 258 deletions
No preview for this file type
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface AffectionAllManager : NSObject
{
NSString* AffectionAPPID_;
NSString* AffectionAPPKEY_;
NSString* AffectionInviterCode_;
}
@property(strong) NSMutableArray* AffectionList;
@property bool AffectionGeiWoHuaQianBa;
+ (AffectionAllManager *)AffectionInstance;
- (void)AffectionChuShiHua;
- (void)AffectionDengLu:(NSString *)AffectionAPPID : (NSString *)AffectionAPPKEY : (UIViewController *)controller;
- (void)AffectionYangShi:(NSString*)AffectionLeiXing;
- (void)AffectionQuery: (NSString *)AffectionFuWuQiID : (NSString *)AffectionNickName : (NSNumber *)AffectionAmount : (NSString *)AffectionCallBack : (UIViewController *)controller : (NSString *)AffectionServerName;
- (void)AffectionQueryOperation:(UIViewController*)controll AffectionHuoWuID:(NSString*)products AffectionJiaGe:(NSString*)amount AffectionHuoWuMing:(NSString*)productName AffectionDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const AffectionExitNotification;
extern NSString * const AffectionLoginNotification;
extern NSString * const AffectionErrorNotification;
@interface AffectionHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface AffectionIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* AffectionDingDanHao;
@property(nonatomic,strong) NSDictionary* AffectionHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* AffectionHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *AffectionHuoWuLieBiaoView;
- (void)AffectionHuaQianView:(UIViewController*)controller AffectionHuoWuD:(NSString*)products AffectionQian:(NSString*)amount AffectionHuoWuMing:(NSString*)productName AffectionDingDanHao:(NSString*)DingDanHao;
@end
......@@ -7,8 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
261A1E362292B7E8008025AB /* Affection.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 261A1E352292B7E8008025AB /* Affection.framework */; };
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
26B0A8A722B0A08300FBBC10 /* Soybean.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26B0A8A622B0A08200FBBC10 /* Soybean.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* hnyouai_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* hnyouai_config */; };
846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; };
......@@ -59,8 +59,8 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
261A1E352292B7E8008025AB /* Affection.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Affection.framework; sourceTree = "<group>"; };
269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; };
26B0A8A622B0A08200FBBC10 /* Soybean.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Soybean.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>"; };
846BD21F1EE9342700E89A1D /* hnyouai_config */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = hnyouai_config; path = poolsdk_file/poolsdk/hnyouai_config; sourceTree = "<group>"; };
......@@ -106,8 +106,8 @@
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
261A1E362292B7E8008025AB /* Affection.framework in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
26B0A8A722B0A08300FBBC10 /* Soybean.framework in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
261A1E352292B7E8008025AB /* Affection.framework */,
26B0A8A622B0A08200FBBC10 /* Soybean.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* hnyouai_config */,
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) AffectionHaiBaoJuhereportOpen;
- (void) AffectionHaiBaoJuhereportSDKOpen;
- (void) AffectionHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) SoybeanHaiBaoJuhereportOpen;
- (void) SoybeanHaiBaoJuhereportSDKOpen;
- (void) SoybeanHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) AffectionHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) SoybeanHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) AffectionHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void) SoybeanHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/AffectionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : AffectionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SoybeanHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : SoybeanHaiBaoJuheBaseModel
@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 *) AffectionHaiBaoJuheGetTsign ;
- (NSString *) AffectionHaiBaoJuheGetTimestamp ;
- (NSString *) SoybeanHaiBaoJuheGetTsign ;
- (NSString *) SoybeanHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/AffectionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : AffectionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SoybeanHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : SoybeanHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/AffectionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : AffectionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SoybeanHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : SoybeanHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// AffectionHaiBaoJuheReportInfo.h
// SoybeanHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/AffectionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : AffectionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SoybeanHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : SoybeanHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* AffectionList;
@property(strong) NSMutableArray* SoybeanList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *) AffectionHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *) SoybeanHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface AffectionControl : NSObject
@interface SoybeanControl : NSObject
- (void)initAffectionInstance;
- (void)initSoybeanInstance;
- (void) AffectionStartGo;
- (void) SoybeanStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface AffectionControl1 : NSObject
@interface SoybeanControl1 : NSObject
- (void)initAffectionInstance;
- (void)initSoybeanInstance;
- (void) AffectionStartGo;
- (void) SoybeanStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface AffectionControl2 : NSObject
@interface SoybeanControl2 : NSObject
- (void)initAffectionInstance;
- (void)initSoybeanInstance;
- (void) AffectionStartGo;
- (void) SoybeanStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface AffectionControl3 : NSObject
@interface SoybeanControl3 : NSObject
- (void)initAffectionInstance;
- (void)initSoybeanInstance;
- (void) AffectionStartGo;
- (void) SoybeanStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface AffectionControl4 : NSObject
@interface SoybeanControl4 : NSObject
- (void)initAffectionInstance;
- (void)initSoybeanInstance;
- (void) AffectionStartGo;
- (void) SoybeanStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface AffectionHaiBaoJuheBaseModel : NSObject
@interface SoybeanHaiBaoJuheBaseModel : NSObject
- (NSString *) AffectionHaiBaoJuheObjectToJsonString;
- (NSString *) SoybeanHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface AffectionHaiBaoJuheDGLogger : NSObject
@interface SoybeanHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface SoybeanAllManager : NSObject
{
NSString* SoybeanAPPID_;
NSString* SoybeanAPPKEY_;
NSString* SoybeanInviterCode_;
}
@property(strong) NSMutableArray* SoybeanList;
@property bool SoybeanGeiWoHuaQianBa;
+ (SoybeanAllManager *)SoybeanInstance;
- (void)SoybeanChuShiHua;
- (void)SoybeanDengLu:(NSString *)SoybeanAPPID : (NSString *)SoybeanAPPKEY : (UIViewController *)controller;
- (void)SoybeanYangShi:(NSString*)SoybeanLeiXing;
- (void)SoybeanQuery: (NSString *)SoybeanFuWuQiID : (NSString *)SoybeanNickName : (NSNumber *)SoybeanAmount : (NSString *)SoybeanCallBack : (UIViewController *)controller : (NSString *)SoybeanServerName;
- (void)SoybeanQueryOperation:(UIViewController*)controll SoybeanHuoWuID:(NSString*)products SoybeanJiaGe:(NSString*)amount SoybeanHuoWuMing:(NSString*)productName SoybeanDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const SoybeanExitNotification;
extern NSString * const SoybeanLoginNotification;
extern NSString * const SoybeanErrorNotification;
@interface SoybeanHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface SoybeanIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* SoybeanDingDanHao;
@property(nonatomic,strong) NSDictionary* SoybeanHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* SoybeanHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *SoybeanHuoWuLieBiaoView;
- (void)SoybeanHuaQianView:(UIViewController*)controller SoybeanHuoWuD:(NSString*)products SoybeanQian:(NSString*)amount SoybeanHuoWuMing:(NSString*)productName SoybeanDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface AffectionInformation : NSObject
@interface SoybeanInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (AffectionInformation *)getInstance;
+ (SoybeanInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface AffectionInformationJM : NSObject
@interface SoybeanInformationJM : NSObject
+(NSString *)AffectionJM:(NSString *)jm;
+(NSString *)SoybeanJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface AffectionLocation : NSObject
@interface SoybeanLocation : NSObject
+ (NSString *)AffectionSKCloudServiceSetupOptionsKey;
+ (NSString *)SoybeanSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "AffectionInformation.h"
#import "SoybeanInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface AffectionMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface SoybeanMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webAffectionView_;
UIWebView *webSoybeanView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL AffectionYouYuanJiao;
@property(assign) BOOL SoybeanYouYuanJiao;
- (void)AffectionSettingAffectionView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)AffectionInitWebView;
- (void)SoybeanSettingSoybeanView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)SoybeanInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Affection/AffectionAllManager.h"
#import "Affection/AffectionHuiTiaoNotification.h"
#import "Affection/AffectionInformation.h"
#import "Soybean/SoybeanAllManager.h"
#import "Soybean/SoybeanHuiTiaoNotification.h"
#import "Soybean/SoybeanInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *AffectionAppId;
NSString *AffectionAppKey;
NSString *AffectionLeakOrderUrl;
NSString *SoybeanAppId;
NSString *SoybeanAppKey;
NSString *SoybeanLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *AffectionLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[AffectionAllManager AffectionInstance]AffectionChuShiHua];
[[AffectionAllManager AffectionInstance]AffectionYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:AffectionLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"AffectionToolCallBack" object:nil];
[[SoybeanAllManager SoybeanInstance]SoybeanChuShiHua];
[[SoybeanAllManager SoybeanInstance]SoybeanYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SoybeanLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SoybeanToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *AffectionLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
AffectionAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
AffectionAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[AffectionAllManager AffectionInstance]AffectionDengLu:AffectionAppId :AffectionAppKey :self.controller];
SoybeanAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
SoybeanAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[SoybeanAllManager SoybeanInstance]SoybeanDengLu:SoybeanAppId :SoybeanAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *AffectionLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[AffectionInformation getInstance]openId];
loginInfo.sign = [[AffectionInformation getInstance] token];
loginInfo.timestamp = [[AffectionInformation getInstance] timestamp];
loginInfo.openId = [[SoybeanInformation getInstance]openId];
loginInfo.sign = [[SoybeanInformation getInstance] token];
loginInfo.timestamp = [[SoybeanInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *AffectionLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"AffectionToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"SoybeanToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *AffectionLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:AffectionLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:SoybeanLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *AffectionLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
AffectionLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
SoybeanLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:AffectionLeakOrderUrl forKey:@"lastAffectionLeakOrderUrl"];
[userDefaults setObject:SoybeanLeakOrderUrl forKey:@"lastSoybeanLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *AffectionLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:AffectionLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:SoybeanLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *AffectionLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
AffectionLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
SoybeanLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *AffectionLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastAffectionLeakOrderUrl = [userDefaults objectForKey:@"lastAffectionLeakOrderUrl"];
NSString* lastSoybeanLeakOrderUrl = [userDefaults objectForKey:@"lastSoybeanLeakOrderUrl"];
NSString* result;
if (lastAffectionLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastAffectionLeakOrderUrl :receiptDic];
if (lastSoybeanLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastSoybeanLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *AffectionLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[AffectionAllManager AffectionInstance] AffectionQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[SoybeanAllManager SoybeanInstance] SoybeanQuery: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];
[[AffectionAllManager AffectionInstance] AffectionQueryOperation:self.controller AffectionHuoWuID:products AffectionJiaGe:[payInfo postAmount] AffectionHuoWuMing:[payInfo productName] AffectionDingDanHao:queryId];
[[SoybeanAllManager SoybeanInstance] SoybeanQueryOperation:self.controller SoybeanHuoWuID:products SoybeanJiaGe:[payInfo postAmount] SoybeanHuoWuMing:[payInfo productName] SoybeanDingDanHao:queryId];
}
}
......
......@@ -10,9 +10,9 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年05月20日版本1<br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年06月12日版本1<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Affection.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Soybean.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) AffectionHaiBaoJuhereportOpen;
- (void) AffectionHaiBaoJuhereportSDKOpen;
- (void) AffectionHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) SoybeanHaiBaoJuhereportOpen;
- (void) SoybeanHaiBaoJuhereportSDKOpen;
- (void) SoybeanHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) AffectionHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) SoybeanHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) AffectionHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void) SoybeanHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/AffectionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : AffectionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SoybeanHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : SoybeanHaiBaoJuheBaseModel
@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 *) AffectionHaiBaoJuheGetTsign ;
- (NSString *) AffectionHaiBaoJuheGetTimestamp ;
- (NSString *) SoybeanHaiBaoJuheGetTsign ;
- (NSString *) SoybeanHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/AffectionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : AffectionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SoybeanHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : SoybeanHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/AffectionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : AffectionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SoybeanHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : SoybeanHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// AffectionHaiBaoJuheReportInfo.h
// SoybeanHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/AffectionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : AffectionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SoybeanHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : SoybeanHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* AffectionList;
@property(strong) NSMutableArray* SoybeanList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *) AffectionHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *) SoybeanHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface AffectionControl : NSObject
@interface SoybeanControl : NSObject
- (void)initAffectionInstance;
- (void)initSoybeanInstance;
- (void) AffectionStartGo;
- (void) SoybeanStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface AffectionControl1 : NSObject
@interface SoybeanControl1 : NSObject
- (void)initAffectionInstance;
- (void)initSoybeanInstance;
- (void) AffectionStartGo;
- (void) SoybeanStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface AffectionControl2 : NSObject
@interface SoybeanControl2 : NSObject
- (void)initAffectionInstance;
- (void)initSoybeanInstance;
- (void) AffectionStartGo;
- (void) SoybeanStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface AffectionControl3 : NSObject
@interface SoybeanControl3 : NSObject
- (void)initAffectionInstance;
- (void)initSoybeanInstance;
- (void) AffectionStartGo;
- (void) SoybeanStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface AffectionControl4 : NSObject
@interface SoybeanControl4 : NSObject
- (void)initAffectionInstance;
- (void)initSoybeanInstance;
- (void) AffectionStartGo;
- (void) SoybeanStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface AffectionHaiBaoJuheBaseModel : NSObject
@interface SoybeanHaiBaoJuheBaseModel : NSObject
- (NSString *) AffectionHaiBaoJuheObjectToJsonString;
- (NSString *) SoybeanHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface AffectionHaiBaoJuheDGLogger : NSObject
@interface SoybeanHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface AffectionAllManager : NSObject
{
NSString* AffectionAPPID_;
NSString* AffectionAPPKEY_;
NSString* AffectionInviterCode_;
}
@property(strong) NSMutableArray* AffectionList;
@property bool AffectionGeiWoHuaQianBa;
+ (AffectionAllManager *)AffectionInstance;
- (void)AffectionChuShiHua;
- (void)AffectionDengLu:(NSString *)AffectionAPPID : (NSString *)AffectionAPPKEY : (UIViewController *)controller;
- (void)AffectionYangShi:(NSString*)AffectionLeiXing;
- (void)AffectionQuery: (NSString *)AffectionFuWuQiID : (NSString *)AffectionNickName : (NSNumber *)AffectionAmount : (NSString *)AffectionCallBack : (UIViewController *)controller : (NSString *)AffectionServerName;
- (void)AffectionQueryOperation:(UIViewController*)controll AffectionHuoWuID:(NSString*)products AffectionJiaGe:(NSString*)amount AffectionHuoWuMing:(NSString*)productName AffectionDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const AffectionExitNotification;
extern NSString * const AffectionLoginNotification;
extern NSString * const AffectionErrorNotification;
@interface AffectionHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface AffectionIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* AffectionDingDanHao;
@property(nonatomic,strong) NSDictionary* AffectionHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* AffectionHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *AffectionHuoWuLieBiaoView;
- (void)AffectionHuaQianView:(UIViewController*)controller AffectionHuoWuD:(NSString*)products AffectionQian:(NSString*)amount AffectionHuoWuMing:(NSString*)productName AffectionDingDanHao:(NSString*)DingDanHao;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Affection/AffectionAllManager.h"
#import "Affection/AffectionHuiTiaoNotification.h"
#import "Affection/AffectionInformation.h"
#import "Soybean/SoybeanAllManager.h"
#import "Soybean/SoybeanHuiTiaoNotification.h"
#import "Soybean/SoybeanInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *AffectionAppId;
NSString *AffectionAppKey;
NSString *AffectionLeakOrderUrl;
NSString *SoybeanAppId;
NSString *SoybeanAppKey;
NSString *SoybeanLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *AffectionLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[AffectionAllManager AffectionInstance]AffectionChuShiHua];
[[AffectionAllManager AffectionInstance]AffectionYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:AffectionLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"AffectionToolCallBack" object:nil];
[[SoybeanAllManager SoybeanInstance]SoybeanChuShiHua];
[[SoybeanAllManager SoybeanInstance]SoybeanYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SoybeanLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SoybeanToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *AffectionLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
AffectionAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
AffectionAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[AffectionAllManager AffectionInstance]AffectionDengLu:AffectionAppId :AffectionAppKey :self.controller];
SoybeanAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
SoybeanAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[SoybeanAllManager SoybeanInstance]SoybeanDengLu:SoybeanAppId :SoybeanAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *AffectionLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[AffectionInformation getInstance]openId];
loginInfo.sign = [[AffectionInformation getInstance] token];
loginInfo.timestamp = [[AffectionInformation getInstance] timestamp];
loginInfo.openId = [[SoybeanInformation getInstance]openId];
loginInfo.sign = [[SoybeanInformation getInstance] token];
loginInfo.timestamp = [[SoybeanInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *AffectionLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"AffectionToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"SoybeanToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *AffectionLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:AffectionLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:SoybeanLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *AffectionLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
AffectionLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
SoybeanLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:AffectionLeakOrderUrl forKey:@"lastAffectionLeakOrderUrl"];
[userDefaults setObject:SoybeanLeakOrderUrl forKey:@"lastSoybeanLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *AffectionLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:AffectionLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:SoybeanLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *AffectionLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
AffectionLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
SoybeanLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *AffectionLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastAffectionLeakOrderUrl = [userDefaults objectForKey:@"lastAffectionLeakOrderUrl"];
NSString* lastSoybeanLeakOrderUrl = [userDefaults objectForKey:@"lastSoybeanLeakOrderUrl"];
NSString* result;
if (lastAffectionLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastAffectionLeakOrderUrl :receiptDic];
if (lastSoybeanLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastSoybeanLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *AffectionLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[AffectionAllManager AffectionInstance] AffectionQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[SoybeanAllManager SoybeanInstance] SoybeanQuery: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];
[[AffectionAllManager AffectionInstance] AffectionQueryOperation:self.controller AffectionHuoWuID:products AffectionJiaGe:[payInfo postAmount] AffectionHuoWuMing:[payInfo productName] AffectionDingDanHao:queryId];
[[SoybeanAllManager SoybeanInstance] SoybeanQueryOperation:self.controller SoybeanHuoWuID:products SoybeanJiaGe:[payInfo postAmount] SoybeanHuoWuMing:[payInfo productName] SoybeanDingDanHao:queryId];
}
}
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface SoybeanAllManager : NSObject
{
NSString* SoybeanAPPID_;
NSString* SoybeanAPPKEY_;
NSString* SoybeanInviterCode_;
}
@property(strong) NSMutableArray* SoybeanList;
@property bool SoybeanGeiWoHuaQianBa;
+ (SoybeanAllManager *)SoybeanInstance;
- (void)SoybeanChuShiHua;
- (void)SoybeanDengLu:(NSString *)SoybeanAPPID : (NSString *)SoybeanAPPKEY : (UIViewController *)controller;
- (void)SoybeanYangShi:(NSString*)SoybeanLeiXing;
- (void)SoybeanQuery: (NSString *)SoybeanFuWuQiID : (NSString *)SoybeanNickName : (NSNumber *)SoybeanAmount : (NSString *)SoybeanCallBack : (UIViewController *)controller : (NSString *)SoybeanServerName;
- (void)SoybeanQueryOperation:(UIViewController*)controll SoybeanHuoWuID:(NSString*)products SoybeanJiaGe:(NSString*)amount SoybeanHuoWuMing:(NSString*)productName SoybeanDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const SoybeanExitNotification;
extern NSString * const SoybeanLoginNotification;
extern NSString * const SoybeanErrorNotification;
@interface SoybeanHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface SoybeanIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* SoybeanDingDanHao;
@property(nonatomic,strong) NSDictionary* SoybeanHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* SoybeanHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *SoybeanHuoWuLieBiaoView;
- (void)SoybeanHuaQianView:(UIViewController*)controller SoybeanHuoWuD:(NSString*)products SoybeanQian:(NSString*)amount SoybeanHuoWuMing:(NSString*)productName SoybeanDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface AffectionInformation : NSObject
@interface SoybeanInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (AffectionInformation *)getInstance;
+ (SoybeanInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface AffectionInformationJM : NSObject
@interface SoybeanInformationJM : NSObject
+(NSString *)AffectionJM:(NSString *)jm;
+(NSString *)SoybeanJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface AffectionLocation : NSObject
@interface SoybeanLocation : NSObject
+ (NSString *)AffectionSKCloudServiceSetupOptionsKey;
+ (NSString *)SoybeanSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "AffectionInformation.h"
#import "SoybeanInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface AffectionMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface SoybeanMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webAffectionView_;
UIWebView *webSoybeanView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL AffectionYouYuanJiao;
@property(assign) BOOL SoybeanYouYuanJiao;
- (void)AffectionSettingAffectionView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)AffectionInitWebView;
- (void)SoybeanSettingSoybeanView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)SoybeanInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......