lizhihui

更新190412版本

Showing 74 changed files with 256 additions and 256 deletions
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
26310CCA225ED9CD007A86CC /* Felicity.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26310CC9225ED9CC007A86CC /* Felicity.framework */; };
26310D3E2260450A007A86CC /* WorkersDay.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26310D3D2260450A007A86CC /* WorkersDay.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 */
26310CC9225ED9CC007A86CC /* Felicity.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Felicity.framework; sourceTree = "<group>"; };
26310D3D2260450A007A86CC /* WorkersDay.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = WorkersDay.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>"; };
......@@ -111,12 +111,12 @@
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
26310D3E2260450A007A86CC /* WorkersDay.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
26310CCA225ED9CD007A86CC /* Felicity.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
);
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
26310CC9225ED9CC007A86CC /* Felicity.framework */,
26310D3D2260450A007A86CC /* WorkersDay.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* haibaoyouxi_config */,
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) FelicityHaiBaoJuhereportOpen;
- (void) FelicityHaiBaoJuhereportSDKOpen;
- (void)FelicityHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) WorkersDayHaiBaoJuhereportOpen;
- (void) WorkersDayHaiBaoJuhereportSDKOpen;
- (void)WorkersDayHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) FelicityHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) WorkersDayHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)FelicityHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)WorkersDayHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : FelicityHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WorkersDayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : WorkersDayHaiBaoJuheBaseModel
@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 *) FelicityHaiBaoJuheGetTsign ;
- (NSString *) FelicityHaiBaoJuheGetTimestamp ;
- (NSString *) WorkersDayHaiBaoJuheGetTsign ;
- (NSString *) WorkersDayHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : FelicityHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WorkersDayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : WorkersDayHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : FelicityHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WorkersDayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : WorkersDayHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// FelicityHaiBaoJuheReportInfo.h
// WorkersDayHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : FelicityHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WorkersDayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : WorkersDayHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* FelicityList;
@property(strong) NSMutableArray* WorkersDayList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)FelicityHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)WorkersDayHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface FelicityControl : NSObject
@interface WorkersDayControl : NSObject
- (void)initFelicityInstance;
- (void)initWorkersDayInstance;
- (void)FelicityStartGo;
- (void)WorkersDayStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface FelicityControl1 : NSObject
@interface WorkersDayControl1 : NSObject
- (void)initFelicityInstance;
- (void)initWorkersDayInstance;
- (void)FelicityStartGo;
- (void)WorkersDayStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface FelicityControl2 : NSObject
@interface WorkersDayControl2 : NSObject
- (void)initFelicityInstance;
- (void)initWorkersDayInstance;
- (void)FelicityStartGo;
- (void)WorkersDayStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface FelicityControl3 : NSObject
@interface WorkersDayControl3 : NSObject
- (void)initFelicityInstance;
- (void)initWorkersDayInstance;
- (void)FelicityStartGo;
- (void)WorkersDayStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface FelicityControl4 : NSObject
@interface WorkersDayControl4 : NSObject
- (void)initFelicityInstance;
- (void)initWorkersDayInstance;
- (void)FelicityStartGo;
- (void)WorkersDayStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface FelicityHaiBaoJuheBaseModel : NSObject
@interface WorkersDayHaiBaoJuheBaseModel : NSObject
- (NSString *)FelicityHaiBaoJuheObjectToJsonString;
- (NSString *)WorkersDayHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface FelicityHaiBaoJuheDGLogger : NSObject
@interface WorkersDayHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface FelicityAllManager : NSObject
{
NSString* FelicityAPPID_;
NSString* FelicityAPPKEY_;
NSString* FelicityInviterCode_;
}
@property bool FelicityGeiWoHuaQianBa;
+ (FelicityAllManager *)FelicityInstance;
- (void)FelicityChuShiHua;
- (void)FelicityDengLu:(NSString *)FelicityAPPID : (NSString *)FelicityAPPKEY : (UIViewController *)controller;
- (void)FelicityYangShi:(NSString*)FelicityLeiXing;
- (void)FelicityQuery: (NSString *)FelicityFuWuQiID : (NSString *)FelicityNickName : (NSNumber *)FelicityAmount : (NSString *)FelicityCallBack : (UIViewController *)controller : (NSString *)FelicityServerName;
- (void)FelicityQueryOperation:(UIViewController*)controll FelicityHuoWuID:(NSString*)products FelicityJiaGe:(NSString*)amount FelicityHuoWuMing:(NSString*)productName FelicityDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const FelicityExitNotification;
extern NSString * const FelicityLoginNotification;
extern NSString * const FelicityErrorNotification;
@interface FelicityHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface FelicityIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* FelicityDingDanHao;
@property(nonatomic,strong) NSDictionary* FelicityHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* FelicityHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *FelicityHuoWuLieBiaoView;
- (void)FelicityHuaQianView:(UIViewController*)controller FelicityHuoWuD:(NSString*)products FelicityQian:(NSString*)amount FelicityHuoWuMing:(NSString*)productName FelicityDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface WorkersDayAllManager : NSObject
{
NSString* WorkersDayAPPID_;
NSString* WorkersDayAPPKEY_;
NSString* WorkersDayInviterCode_;
}
@property bool WorkersDayGeiWoHuaQianBa;
+ (WorkersDayAllManager *)WorkersDayInstance;
- (void)WorkersDayChuShiHua;
- (void)WorkersDayDengLu:(NSString *)WorkersDayAPPID : (NSString *)WorkersDayAPPKEY : (UIViewController *)controller;
- (void)WorkersDayYangShi:(NSString*)WorkersDayLeiXing;
- (void)WorkersDayQuery: (NSString *)WorkersDayFuWuQiID : (NSString *)WorkersDayNickName : (NSNumber *)WorkersDayAmount : (NSString *)WorkersDayCallBack : (UIViewController *)controller : (NSString *)WorkersDayServerName;
- (void)WorkersDayQueryOperation:(UIViewController*)controll WorkersDayHuoWuID:(NSString*)products WorkersDayJiaGe:(NSString*)amount WorkersDayHuoWuMing:(NSString*)productName WorkersDayDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const WorkersDayExitNotification;
extern NSString * const WorkersDayLoginNotification;
extern NSString * const WorkersDayErrorNotification;
@interface WorkersDayHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface WorkersDayIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* WorkersDayDingDanHao;
@property(nonatomic,strong) NSDictionary* WorkersDayHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* WorkersDayHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *WorkersDayHuoWuLieBiaoView;
- (void)WorkersDayHuaQianView:(UIViewController*)controller WorkersDayHuoWuD:(NSString*)products WorkersDayQian:(NSString*)amount WorkersDayHuoWuMing:(NSString*)productName WorkersDayDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface FelicityInformation : NSObject
@interface WorkersDayInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (FelicityInformation *)getInstance;
+ (WorkersDayInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface FelicityInformationJM : NSObject
@interface WorkersDayInformationJM : NSObject
+(NSString *)FelicityJM:(NSString *)jm;
+(NSString *)WorkersDayJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface FelicityLocation : NSObject
@interface WorkersDayLocation : NSObject
+ (NSString *)FelicitySKCloudServiceSetupOptionsKey;
+ (NSString *)WorkersDaySKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "FelicityInformation.h"
#import "WorkersDayInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface FelicityMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface WorkersDayMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webFelicityView_;
UIWebView *webWorkersDayView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL FelicityYouYuanJiao;
@property(assign) BOOL WorkersDayYouYuanJiao;
- (void)FelicitySettingFelicityView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)FelicityInitWebView;
- (void)WorkersDaySettingWorkersDayView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)WorkersDayInitWebView;
- (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 "Felicity/FelicityAllManager.h"
#import "Felicity/FelicityHuiTiaoNotification.h"
#import "Felicity/FelicityInformation.h"
#import "WorkersDay/WorkersDayAllManager.h"
#import "WorkersDay/WorkersDayHuiTiaoNotification.h"
#import "WorkersDay/WorkersDayInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *FelicityAppId;
NSString *FelicityAppKey;
NSString *FelicityLeakOrderUrl;
NSString *WorkersDayAppId;
NSString *WorkersDayAppKey;
NSString *WorkersDayLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *FelicityLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[FelicityAllManager FelicityInstance]FelicityChuShiHua];
[[FelicityAllManager FelicityInstance]FelicityYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:FelicityLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"FelicityToolCallBack" object:nil];
[[WorkersDayAllManager WorkersDayInstance]WorkersDayChuShiHua];
[[WorkersDayAllManager WorkersDayInstance]WorkersDayYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:WorkersDayLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"WorkersDayToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *FelicityLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
FelicityAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
FelicityAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[FelicityAllManager FelicityInstance]FelicityDengLu:FelicityAppId :FelicityAppKey :self.controller];
WorkersDayAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
WorkersDayAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[WorkersDayAllManager WorkersDayInstance]WorkersDayDengLu:WorkersDayAppId :WorkersDayAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *FelicityLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[FelicityInformation getInstance]openId];
loginInfo.sign = [[FelicityInformation getInstance] token];
loginInfo.timestamp = [[FelicityInformation getInstance] timestamp];
loginInfo.openId = [[WorkersDayInformation getInstance]openId];
loginInfo.sign = [[WorkersDayInformation getInstance] token];
loginInfo.timestamp = [[WorkersDayInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *FelicityLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"FelicityToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"WorkersDayToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *FelicityLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:FelicityLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:WorkersDayLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *FelicityLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
FelicityLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
WorkersDayLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:FelicityLeakOrderUrl forKey:@"lastFelicityLeakOrderUrl"];
[userDefaults setObject:WorkersDayLeakOrderUrl forKey:@"lastWorkersDayLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *FelicityLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:FelicityLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:WorkersDayLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *FelicityLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
FelicityLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
WorkersDayLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *FelicityLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastFelicityLeakOrderUrl = [userDefaults objectForKey:@"lastFelicityLeakOrderUrl"];
NSString* lastWorkersDayLeakOrderUrl = [userDefaults objectForKey:@"lastWorkersDayLeakOrderUrl"];
NSString* result;
if (lastFelicityLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastFelicityLeakOrderUrl :receiptDic];
if (lastWorkersDayLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastWorkersDayLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *FelicityLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[FelicityAllManager FelicityInstance] FelicityQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[WorkersDayAllManager WorkersDayInstance] WorkersDayQuery: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];
[[FelicityAllManager FelicityInstance] FelicityQueryOperation:self.controller FelicityHuoWuID:products FelicityJiaGe:[payInfo postAmount] FelicityHuoWuMing:[payInfo productName] FelicityDingDanHao:queryId];
[[WorkersDayAllManager WorkersDayInstance] WorkersDayQueryOperation:self.controller WorkersDayHuoWuID:products WorkersDayJiaGe:[payInfo postAmount] WorkersDayHuoWuMing:[payInfo productName] WorkersDayDingDanHao:queryId];
}
}
......
......@@ -10,8 +10,8 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年04月11日版本<br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年04月12日版本<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Felicity.framework ``` <br>
2、``` 引入poolsdk_file文件夹中WorkersDay.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换HaiBaoJuheSDK.framework ``` <br>
\ No newline at end of file
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) FelicityHaiBaoJuhereportOpen;
- (void) FelicityHaiBaoJuhereportSDKOpen;
- (void)FelicityHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) WorkersDayHaiBaoJuhereportOpen;
- (void) WorkersDayHaiBaoJuhereportSDKOpen;
- (void)WorkersDayHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) FelicityHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) WorkersDayHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)FelicityHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)WorkersDayHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : FelicityHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WorkersDayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : WorkersDayHaiBaoJuheBaseModel
@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 *) FelicityHaiBaoJuheGetTsign ;
- (NSString *) FelicityHaiBaoJuheGetTimestamp ;
- (NSString *) WorkersDayHaiBaoJuheGetTsign ;
- (NSString *) WorkersDayHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : FelicityHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WorkersDayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : WorkersDayHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : FelicityHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WorkersDayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : WorkersDayHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// FelicityHaiBaoJuheReportInfo.h
// WorkersDayHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/FelicityHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : FelicityHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WorkersDayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : WorkersDayHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* FelicityList;
@property(strong) NSMutableArray* WorkersDayList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)FelicityHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)WorkersDayHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface FelicityControl : NSObject
@interface WorkersDayControl : NSObject
- (void)initFelicityInstance;
- (void)initWorkersDayInstance;
- (void)FelicityStartGo;
- (void)WorkersDayStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface FelicityControl1 : NSObject
@interface WorkersDayControl1 : NSObject
- (void)initFelicityInstance;
- (void)initWorkersDayInstance;
- (void)FelicityStartGo;
- (void)WorkersDayStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface FelicityControl2 : NSObject
@interface WorkersDayControl2 : NSObject
- (void)initFelicityInstance;
- (void)initWorkersDayInstance;
- (void)FelicityStartGo;
- (void)WorkersDayStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface FelicityControl3 : NSObject
@interface WorkersDayControl3 : NSObject
- (void)initFelicityInstance;
- (void)initWorkersDayInstance;
- (void)FelicityStartGo;
- (void)WorkersDayStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface FelicityControl4 : NSObject
@interface WorkersDayControl4 : NSObject
- (void)initFelicityInstance;
- (void)initWorkersDayInstance;
- (void)FelicityStartGo;
- (void)WorkersDayStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface FelicityHaiBaoJuheBaseModel : NSObject
@interface WorkersDayHaiBaoJuheBaseModel : NSObject
- (NSString *)FelicityHaiBaoJuheObjectToJsonString;
- (NSString *)WorkersDayHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface FelicityHaiBaoJuheDGLogger : NSObject
@interface WorkersDayHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface FelicityAllManager : NSObject
{
NSString* FelicityAPPID_;
NSString* FelicityAPPKEY_;
NSString* FelicityInviterCode_;
}
@property bool FelicityGeiWoHuaQianBa;
+ (FelicityAllManager *)FelicityInstance;
- (void)FelicityChuShiHua;
- (void)FelicityDengLu:(NSString *)FelicityAPPID : (NSString *)FelicityAPPKEY : (UIViewController *)controller;
- (void)FelicityYangShi:(NSString*)FelicityLeiXing;
- (void)FelicityQuery: (NSString *)FelicityFuWuQiID : (NSString *)FelicityNickName : (NSNumber *)FelicityAmount : (NSString *)FelicityCallBack : (UIViewController *)controller : (NSString *)FelicityServerName;
- (void)FelicityQueryOperation:(UIViewController*)controll FelicityHuoWuID:(NSString*)products FelicityJiaGe:(NSString*)amount FelicityHuoWuMing:(NSString*)productName FelicityDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const FelicityExitNotification;
extern NSString * const FelicityLoginNotification;
extern NSString * const FelicityErrorNotification;
@interface FelicityHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface FelicityIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* FelicityDingDanHao;
@property(nonatomic,strong) NSDictionary* FelicityHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* FelicityHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *FelicityHuoWuLieBiaoView;
- (void)FelicityHuaQianView:(UIViewController*)controller FelicityHuoWuD:(NSString*)products FelicityQian:(NSString*)amount FelicityHuoWuMing:(NSString*)productName FelicityDingDanHao:(NSString*)DingDanHao;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Felicity/FelicityAllManager.h"
#import "Felicity/FelicityHuiTiaoNotification.h"
#import "Felicity/FelicityInformation.h"
#import "WorkersDay/WorkersDayAllManager.h"
#import "WorkersDay/WorkersDayHuiTiaoNotification.h"
#import "WorkersDay/WorkersDayInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *FelicityAppId;
NSString *FelicityAppKey;
NSString *FelicityLeakOrderUrl;
NSString *WorkersDayAppId;
NSString *WorkersDayAppKey;
NSString *WorkersDayLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *FelicityLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[FelicityAllManager FelicityInstance]FelicityChuShiHua];
[[FelicityAllManager FelicityInstance]FelicityYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:FelicityLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"FelicityToolCallBack" object:nil];
[[WorkersDayAllManager WorkersDayInstance]WorkersDayChuShiHua];
[[WorkersDayAllManager WorkersDayInstance]WorkersDayYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:WorkersDayLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"WorkersDayToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *FelicityLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
FelicityAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
FelicityAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[FelicityAllManager FelicityInstance]FelicityDengLu:FelicityAppId :FelicityAppKey :self.controller];
WorkersDayAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
WorkersDayAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[WorkersDayAllManager WorkersDayInstance]WorkersDayDengLu:WorkersDayAppId :WorkersDayAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *FelicityLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[FelicityInformation getInstance]openId];
loginInfo.sign = [[FelicityInformation getInstance] token];
loginInfo.timestamp = [[FelicityInformation getInstance] timestamp];
loginInfo.openId = [[WorkersDayInformation getInstance]openId];
loginInfo.sign = [[WorkersDayInformation getInstance] token];
loginInfo.timestamp = [[WorkersDayInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *FelicityLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"FelicityToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"WorkersDayToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *FelicityLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:FelicityLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:WorkersDayLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *FelicityLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
FelicityLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
WorkersDayLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:FelicityLeakOrderUrl forKey:@"lastFelicityLeakOrderUrl"];
[userDefaults setObject:WorkersDayLeakOrderUrl forKey:@"lastWorkersDayLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *FelicityLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:FelicityLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:WorkersDayLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *FelicityLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
FelicityLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
WorkersDayLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *FelicityLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastFelicityLeakOrderUrl = [userDefaults objectForKey:@"lastFelicityLeakOrderUrl"];
NSString* lastWorkersDayLeakOrderUrl = [userDefaults objectForKey:@"lastWorkersDayLeakOrderUrl"];
NSString* result;
if (lastFelicityLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastFelicityLeakOrderUrl :receiptDic];
if (lastWorkersDayLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastWorkersDayLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *FelicityLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[FelicityAllManager FelicityInstance] FelicityQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[WorkersDayAllManager WorkersDayInstance] WorkersDayQuery: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];
[[FelicityAllManager FelicityInstance] FelicityQueryOperation:self.controller FelicityHuoWuID:products FelicityJiaGe:[payInfo postAmount] FelicityHuoWuMing:[payInfo productName] FelicityDingDanHao:queryId];
[[WorkersDayAllManager WorkersDayInstance] WorkersDayQueryOperation:self.controller WorkersDayHuoWuID:products WorkersDayJiaGe:[payInfo postAmount] WorkersDayHuoWuMing:[payInfo productName] WorkersDayDingDanHao:queryId];
}
}
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface WorkersDayAllManager : NSObject
{
NSString* WorkersDayAPPID_;
NSString* WorkersDayAPPKEY_;
NSString* WorkersDayInviterCode_;
}
@property bool WorkersDayGeiWoHuaQianBa;
+ (WorkersDayAllManager *)WorkersDayInstance;
- (void)WorkersDayChuShiHua;
- (void)WorkersDayDengLu:(NSString *)WorkersDayAPPID : (NSString *)WorkersDayAPPKEY : (UIViewController *)controller;
- (void)WorkersDayYangShi:(NSString*)WorkersDayLeiXing;
- (void)WorkersDayQuery: (NSString *)WorkersDayFuWuQiID : (NSString *)WorkersDayNickName : (NSNumber *)WorkersDayAmount : (NSString *)WorkersDayCallBack : (UIViewController *)controller : (NSString *)WorkersDayServerName;
- (void)WorkersDayQueryOperation:(UIViewController*)controll WorkersDayHuoWuID:(NSString*)products WorkersDayJiaGe:(NSString*)amount WorkersDayHuoWuMing:(NSString*)productName WorkersDayDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const WorkersDayExitNotification;
extern NSString * const WorkersDayLoginNotification;
extern NSString * const WorkersDayErrorNotification;
@interface WorkersDayHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface WorkersDayIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* WorkersDayDingDanHao;
@property(nonatomic,strong) NSDictionary* WorkersDayHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* WorkersDayHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *WorkersDayHuoWuLieBiaoView;
- (void)WorkersDayHuaQianView:(UIViewController*)controller WorkersDayHuoWuD:(NSString*)products WorkersDayQian:(NSString*)amount WorkersDayHuoWuMing:(NSString*)productName WorkersDayDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface FelicityInformation : NSObject
@interface WorkersDayInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (FelicityInformation *)getInstance;
+ (WorkersDayInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface FelicityInformationJM : NSObject
@interface WorkersDayInformationJM : NSObject
+(NSString *)FelicityJM:(NSString *)jm;
+(NSString *)WorkersDayJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface FelicityLocation : NSObject
@interface WorkersDayLocation : NSObject
+ (NSString *)FelicitySKCloudServiceSetupOptionsKey;
+ (NSString *)WorkersDaySKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "FelicityInformation.h"
#import "WorkersDayInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface FelicityMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface WorkersDayMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webFelicityView_;
UIWebView *webWorkersDayView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL FelicityYouYuanJiao;
@property(assign) BOOL WorkersDayYouYuanJiao;
- (void)FelicitySettingFelicityView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)FelicityInitWebView;
- (void)WorkersDaySettingWorkersDayView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)WorkersDayInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......