lizhihui

更新190218版本1

Showing 42 changed files with 189 additions and 189 deletions
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
7 objects = { 7 objects = {
8 8
9 /* Begin PBXBuildFile section */ 9 /* Begin PBXBuildFile section */
10 - 265E0B312213FAA9008A6CB2 /* Valentine.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 265E0B302213FAA9008A6CB2 /* Valentine.framework */; };
11 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; }; 10 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
11 + 26ADA935221A9D310026400E /* LanternFestival.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26ADA934221A9D300026400E /* LanternFestival.framework */; };
12 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; }; 12 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
13 - 846BD2241EE9342700E89A1D /* haibao_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibao_setting */; }; 13 + 846BD2241EE9342700E89A1D /* haibaoyouxi_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibaoyouxi_config */; };
14 846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; }; 14 846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; };
15 847EE5E21EE9007E003A4B7B /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 847EE5E11EE9007E003A4B7B /* MainViewController.m */; }; 15 847EE5E21EE9007E003A4B7B /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 847EE5E11EE9007E003A4B7B /* MainViewController.m */; };
16 8484E4F51EE7E0DC00B402D1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */; }; 16 8484E4F51EE7E0DC00B402D1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */; };
...@@ -59,11 +59,11 @@ ...@@ -59,11 +59,11 @@
59 /* End PBXCopyFilesBuildPhase section */ 59 /* End PBXCopyFilesBuildPhase section */
60 60
61 /* Begin PBXFileReference section */ 61 /* Begin PBXFileReference section */
62 - 265E0B302213FAA9008A6CB2 /* Valentine.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Valentine.framework; sourceTree = "<group>"; };
63 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; }; 62 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; };
63 + 26ADA934221A9D300026400E /* LanternFestival.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = LanternFestival.framework; sourceTree = "<group>"; };
64 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; }; 64 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; };
65 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; }; 65 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; };
66 - 846BD21F1EE9342700E89A1D /* haibao_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = haibao_setting; path = poolsdk_file/poolsdk/haibao_setting; sourceTree = "<group>"; }; 66 + 846BD21F1EE9342700E89A1D /* haibaoyouxi_config */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = haibaoyouxi_config; path = poolsdk_file/poolsdk/haibaoyouxi_config; sourceTree = "<group>"; };
67 846BD2221EE9342700E89A1D /* SDKInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDKInterface.h; path = poolsdk_file/poolsdk/SDKInterface.h; sourceTree = "<group>"; }; 67 846BD2221EE9342700E89A1D /* SDKInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDKInterface.h; path = poolsdk_file/poolsdk/SDKInterface.h; sourceTree = "<group>"; };
68 846BD2231EE9342700E89A1D /* SDKInterface.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDKInterface.m; path = poolsdk_file/poolsdk/SDKInterface.m; sourceTree = "<group>"; }; 68 846BD2231EE9342700E89A1D /* SDKInterface.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDKInterface.m; path = poolsdk_file/poolsdk/SDKInterface.m; sourceTree = "<group>"; };
69 847EE5E01EE9007E003A4B7B /* MainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainViewController.h; sourceTree = "<group>"; }; 69 847EE5E01EE9007E003A4B7B /* MainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainViewController.h; sourceTree = "<group>"; };
...@@ -111,12 +111,12 @@ ...@@ -111,12 +111,12 @@
111 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */, 111 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
112 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */, 112 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
113 8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */, 113 8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
114 - 265E0B312213FAA9008A6CB2 /* Valentine.framework in Frameworks */,
115 8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */, 114 8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
116 8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */, 115 8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
117 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */, 116 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
118 8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */, 117 8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
119 8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */, 118 8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
119 + 26ADA935221A9D310026400E /* LanternFestival.framework in Frameworks */,
120 8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */, 120 8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
121 84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */, 121 84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
122 ); 122 );
...@@ -143,10 +143,10 @@ ...@@ -143,10 +143,10 @@
143 8476DF641C4DD71D00EC42BA /* poolsdk */ = { 143 8476DF641C4DD71D00EC42BA /* poolsdk */ = {
144 isa = PBXGroup; 144 isa = PBXGroup;
145 children = ( 145 children = (
146 - 265E0B302213FAA9008A6CB2 /* Valentine.framework */, 146 + 26ADA934221A9D300026400E /* LanternFestival.framework */,
147 84A090AC1F174E21003D23FB /* TrackingIO.h */, 147 84A090AC1F174E21003D23FB /* TrackingIO.h */,
148 84A090AA1F160A69003D23FB /* TrackingIO.a */, 148 84A090AA1F160A69003D23FB /* TrackingIO.a */,
149 - 846BD21F1EE9342700E89A1D /* haibao_setting */, 149 + 846BD21F1EE9342700E89A1D /* haibaoyouxi_config */,
150 846BD2221EE9342700E89A1D /* SDKInterface.h */, 150 846BD2221EE9342700E89A1D /* SDKInterface.h */,
151 846BD2231EE9342700E89A1D /* SDKInterface.m */, 151 846BD2231EE9342700E89A1D /* SDKInterface.m */,
152 845D181B1C8D778400F27EB9 /* Images.xcassets */, 152 845D181B1C8D778400F27EB9 /* Images.xcassets */,
...@@ -315,7 +315,7 @@ ...@@ -315,7 +315,7 @@
315 files = ( 315 files = (
316 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */, 316 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */,
317 BB5F3C971C1811BC00DA339D /* Main.storyboard in Resources */, 317 BB5F3C971C1811BC00DA339D /* Main.storyboard in Resources */,
318 - 846BD2241EE9342700E89A1D /* haibao_setting in Resources */, 318 + 846BD2241EE9342700E89A1D /* haibaoyouxi_config in Resources */,
319 ); 319 );
320 runOnlyForDeploymentPostprocessing = 0; 320 runOnlyForDeploymentPostprocessing = 0;
321 }; 321 };
......
1 +#import <UIKit/UIKit.h>
2 +#import "StoreKit/StoreKit.h"
3 +
4 +@interface LanternFestivalAllManager : NSObject
5 +{
6 + NSString* LanternFestivalAPPID_;
7 + NSString* LanternFestivalAPPKEY_;
8 +
9 + NSString* LanternFestivalInviterCode_;
10 +}
11 +
12 +@property bool LanternFestivalGeiWoHuaQianBa;
13 +
14 ++ (LanternFestivalAllManager *)LanternFestivalInstance;
15 +
16 +- (void)LanternFestivalChuShiHua;
17 +
18 +- (void)LanternFestivalDengLu:(NSString *)LanternFestivalAPPID : (NSString *)LanternFestivalAPPKEY : (UIViewController *)controller;
19 +
20 +- (void)LanternFestivalYangShi:(NSString*)LanternFestivalLeiXing;
21 +
22 +- (void)LanternFestivalQuery: (NSString *)LanternFestivalFuWuQiID : (NSString *)LanternFestivalNickName : (NSNumber *)LanternFestivalAmount : (NSString *)LanternFestivalCallBack : (UIViewController *)controller : (NSString *)LanternFestivalServerName;
23 +
24 +- (void)LanternFestivalQueryOperation:(UIViewController*)controll LanternFestivalHuoWuID:(NSString*)products LanternFestivalJiaGe:(NSString*)amount LanternFestivalHuoWuMing:(NSString*)productName LanternFestivalDingDanHao:(NSString*) DingDanHao;
25 +
26 +
27 +
28 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +extern NSString * const LanternFestivalExitNotification;
4 +extern NSString * const LanternFestivalLoginNotification;
5 +extern NSString * const LanternFestivalErrorNotification;
6 +
7 +
8 +@interface LanternFestivalHuiTiaoNotification : NSObject
9 +
10 +@end
1 +#import <UIKit/UIKit.h>
2 +
3 +@interface LanternFestivalIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 +
5 +@property(nonatomic,strong) NSString* LanternFestivalDingDanHao;
6 +@property(nonatomic,strong) NSDictionary* LanternFestivalHuoWuLieBiao;
7 +@property(nonatomic,strong) NSMutableArray* LanternFestivalHuoWuIDLieBiao;
8 +@property(nonatomic, strong) UITableView *LanternFestivalHuoWuLieBiaoView;
9 +
10 +- (void)LanternFestivalHuaQianView:(UIViewController*)controller LanternFestivalHuoWuD:(NSString*)products LanternFestivalQian:(NSString*)amount LanternFestivalHuoWuMing:(NSString*)productName LanternFestivalDingDanHao:(NSString*)DingDanHao;
11 +
12 +@end
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface ValentineInformation : NSObject 3 +@interface LanternFestivalInformation : NSObject
4 { 4 {
5 // 5 //
6 NSString *openId; 6 NSString *openId;
...@@ -12,5 +12,5 @@ NSString *timestamp; ...@@ -12,5 +12,5 @@ NSString *timestamp;
12 @property(retain,nonatomic) NSString *openId; 12 @property(retain,nonatomic) NSString *openId;
13 @property(retain,nonatomic) NSString *token; 13 @property(retain,nonatomic) NSString *token;
14 @property(retain,nonatomic) NSString *timestamp; 14 @property(retain,nonatomic) NSString *timestamp;
15 -+ (ValentineInformation *)getInstance; 15 ++ (LanternFestivalInformation *)getInstance;
16 @end 16 @end
......
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface ValentineInformationJM : NSObject 3 +@interface LanternFestivalInformationJM : NSObject
4 4
5 -+(NSString *)ValentineJM:(NSString *)jm; 5 ++(NSString *)LanternFestivalJM:(NSString *)jm;
6 6
7 @end 7 @end
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 2
3 -@interface ValentineLocation : NSObject 3 +@interface LanternFestivalLocation : NSObject
4 4
5 -+ (NSString *)ValentineSKCloudServiceSetupOptionsKey; 5 ++ (NSString *)LanternFestivalSKCloudServiceSetupOptionsKey;
6 @end 6 @end
7 7
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 -#import "ValentineInformation.h" 2 +#import "LanternFestivalInformation.h"
3 #import <JavaScriptCore/JavaScriptCore.h> 3 #import <JavaScriptCore/JavaScriptCore.h>
4 4
5 -@interface ValentineMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> 5 +@interface LanternFestivalMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
6 { 6 {
7 - UIWebView *webView_; 7 + UIWebView *webLanternFestivalView_;
8 UIActivityIndicatorView *activityIndicator; 8 UIActivityIndicatorView *activityIndicator;
9 } 9 }
10 10
11 -@property(assign) BOOL ValentineYouYuanJiao; 11 +@property(assign) BOOL LanternFestivalYouYuanJiao;
12 12
13 -- (void)ValentineSettingValentineView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; 13 +- (void)LanternFestivalSettingLanternFestivalView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
14 -- (void)ValentineChuShiHuaWebView; 14 +- (void)LanternFestivalInitWebView;
15 - (void)loadWebPageWithString:(NSString *)url; 15 - (void)loadWebPageWithString:(NSString *)url;
16 - (void)loadWebPageWithJs:(NSString *)content; 16 - (void)loadWebPageWithJs:(NSString *)content;
17 - (void)postNotification:(NSString *)name : (NSString *)code; 17 - (void)postNotification:(NSString *)name : (NSString *)code;
......
1 -#import <UIKit/UIKit.h>
2 -#import "StoreKit/StoreKit.h"
3 -
4 -@interface ValentineAllManager : NSObject
5 -{
6 - NSString* ValentineAPPID_;
7 - NSString* ValentineAPPKEY_;
8 -
9 - NSString* ValentineInviterCode_;
10 -}
11 -
12 -@property bool ValentineGeiWoHuaQianBa;
13 -
14 -+ (ValentineAllManager *)ValentineInstance;
15 -
16 -- (void)ValentineChuShiHua;
17 -
18 -- (void)ValentineDengLu:(NSString *)ValentineAPPID : (NSString *)ValentineAPPKEY : (UIViewController *)controller;
19 -
20 -- (void)ValentineYangShi:(NSString*)ValentineLeiXing;
21 -
22 -- (void)ValentineQuery: (NSString *)ValentineFuWuQiID : (NSString *)ValentineNickName : (NSNumber *)ValentineAmount : (NSString *)ValentineCallBack : (UIViewController *)controller : (NSString *)ValentineServerName;
23 -
24 -- (void)ValentineQueryOperation:(UIViewController*)controll ValentineHuoWuID:(NSString*)products ValentineJiaGe:(NSString*)amount ValentineHuoWuMing:(NSString*)productName ValentineDingDanHao:(NSString*) DingDanHao;
25 -
26 -
27 -
28 -@end
1 -#import <Foundation/Foundation.h>
2 -
3 -extern NSString * const ValentineExitNotification;
4 -extern NSString * const ValentineLoginNotification;
5 -extern NSString * const ValentineErrorNotification;
6 -
7 -
8 -@interface ValentineHuiTiaoNotification : NSObject
9 -
10 -@end
1 -#import <UIKit/UIKit.h>
2 -
3 -@interface ValentineIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 -
5 -@property(nonatomic,strong) NSString* ValentineDingDanHao;
6 -@property(nonatomic,strong) NSDictionary* ValentineHuoWuLieBiao;
7 -@property(nonatomic,strong) NSMutableArray* ValentineHuoWuIDLieBiao;
8 -@property(nonatomic, strong) UITableView *ValentineHuoWuLieBiaoView;
9 -
10 -- (void)ValentineHuaQianView:(UIViewController*)controller ValentineHuoWuD:(NSString*)products ValentineQian:(NSString*)amount ValentineHuoWuMing:(NSString*)productName ValentineDingDanHao:(NSString*)DingDanHao;
11 -
12 -@end
1 #include "SDKInterface.h" 1 #include "SDKInterface.h"
2 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
3 3
4 -#import "Valentine/ValentineAllManager.h" 4 +#import "LanternFestival/LanternFestivalAllManager.h"
5 -#import "Valentine/ValentineHuiTiaoNotification.h" 5 +#import "LanternFestival/LanternFestivalHuiTiaoNotification.h"
6 -#import "Valentine/ValentineInformation.h" 6 +#import "LanternFestival/LanternFestivalInformation.h"
7 7
8 #import "TrackingIO.h" 8 #import "TrackingIO.h"
9 9
10 @implementation SDKInterface : Interface 10 @implementation SDKInterface : Interface
11 11
12 int mExchange; 12 int mExchange;
13 -NSString *ValentineAppId; 13 +NSString *LanternFestivalAppId;
14 -NSString *ValentineAppKey; 14 +NSString *LanternFestivalAppKey;
15 -NSString *ValentineLeakOrderUrl; 15 +NSString *LanternFestivalLeakOrderUrl;
16 16
17 - (void)SDKinit:(UIViewController *) control 17 - (void)SDKinit:(UIViewController *) control
18 { 18 {
...@@ -20,10 +20,10 @@ NSString *ValentineLeakOrderUrl; ...@@ -20,10 +20,10 @@ NSString *ValentineLeakOrderUrl;
20 [super SDKinit:control]; 20 [super SDKinit:control];
21 21
22 [HaiBaoJuheConfig getInstance]; 22 [HaiBaoJuheConfig getInstance];
23 - [[ValentineAllManager ValentineInstance]ValentineChuShiHua]; 23 + [[LanternFestivalAllManager LanternFestivalInstance]LanternFestivalChuShiHua];
24 - [[ValentineAllManager ValentineInstance]ValentineYangShi:@"sdk"]; 24 + [[LanternFestivalAllManager LanternFestivalInstance]LanternFestivalYangShi:@"sdk"];
25 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ValentineLoginNotification object:nil]; 25 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:LanternFestivalLoginNotification object:nil];
26 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ValentineToolCallBack" object:nil]; 26 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"LanternFestivalToolCallBack" object:nil];
27 27
28 [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; 28 [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
29 29
...@@ -40,9 +40,9 @@ NSString *ValentineLeakOrderUrl; ...@@ -40,9 +40,9 @@ NSString *ValentineLeakOrderUrl;
40 - (void)SDKloginSDK 40 - (void)SDKloginSDK
41 { 41 {
42 //APPID APPKEY 42 //APPID APPKEY
43 - ValentineAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; 43 + LanternFestivalAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
44 - ValentineAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; 44 + LanternFestivalAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
45 - [[ValentineAllManager ValentineInstance]ValentineDengLu:ValentineAppId :ValentineAppKey :self.controller]; 45 + [[LanternFestivalAllManager LanternFestivalInstance]LanternFestivalDengLu:LanternFestivalAppId :LanternFestivalAppKey :self.controller];
46 46
47 } 47 }
48 48
...@@ -53,9 +53,9 @@ NSString *ValentineLeakOrderUrl; ...@@ -53,9 +53,9 @@ NSString *ValentineLeakOrderUrl;
53 { 53 {
54 NSLog(@"loginchek"); 54 NSLog(@"loginchek");
55 HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; 55 HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
56 - loginInfo.openId = [[ValentineInformation getInstance]openId]; 56 + loginInfo.openId = [[LanternFestivalInformation getInstance]openId];
57 - loginInfo.sign = [[ValentineInformation getInstance] token]; 57 + loginInfo.sign = [[LanternFestivalInformation getInstance] token];
58 - loginInfo.timestamp = [[ValentineInformation getInstance] timestamp]; 58 + loginInfo.timestamp = [[LanternFestivalInformation getInstance] timestamp];
59 59
60 dispatch_async(dispatch_get_global_queue(0, 0), ^{ 60 dispatch_async(dispatch_get_global_queue(0, 0), ^{
61 [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; 61 [[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
...@@ -82,7 +82,7 @@ NSString *ValentineLeakOrderUrl; ...@@ -82,7 +82,7 @@ NSString *ValentineLeakOrderUrl;
82 - (void)HCKAssetsToolCallBack:(NSNotification *)notification 82 - (void)HCKAssetsToolCallBack:(NSNotification *)notification
83 { 83 {
84 NSDictionary* payResultDic = notification.object; 84 NSDictionary* payResultDic = notification.object;
85 - NSString* receiptStr = [payResultDic objectForKey:@"ValentineToolResult"]; 85 + NSString* receiptStr = [payResultDic objectForKey:@"LanternFestivalToolResult"];
86 NSString* queryId = [payResultDic objectForKey:@"query_id"]; 86 NSString* queryId = [payResultDic objectForKey:@"query_id"];
87 87
88 //收到回调,保存queryid和data 88 //收到回调,保存queryid和data
...@@ -101,7 +101,7 @@ NSString *ValentineLeakOrderUrl; ...@@ -101,7 +101,7 @@ NSString *ValentineLeakOrderUrl;
101 [userDefaults setObject:receiptStr forKey:queryId]; 101 [userDefaults setObject:receiptStr forKey:queryId];
102 102
103 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; 103 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
104 - NSString* result = [[NetCenter getInstance] httpPostSyn:ValentineLeakOrderUrl :receiptDic]; 104 + NSString* result = [[NetCenter getInstance] httpPostSyn:LanternFestivalLeakOrderUrl :receiptDic];
105 105
106 if([@"success" isEqualToString:result]){//确认订单成功 106 if([@"success" isEqualToString:result]){//确认订单成功
107 //删除已保存的 107 //删除已保存的
...@@ -121,11 +121,11 @@ NSString *ValentineLeakOrderUrl; ...@@ -121,11 +121,11 @@ NSString *ValentineLeakOrderUrl;
121 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; 121 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
122 NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"]; 122 NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
123 123
124 - ValentineLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", 124 + LanternFestivalLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
125 [HaiBaoJuheUtils createGzyazfUrl], 125 [HaiBaoJuheUtils createGzyazfUrl],
126 [payInfo userId], 126 [payInfo userId],
127 [payInfo playerId]]; 127 [payInfo playerId]];
128 - [userDefaults setObject:ValentineLeakOrderUrl forKey:@"lastValentineLeakOrderUrl"]; 128 + [userDefaults setObject:LanternFestivalLeakOrderUrl forKey:@"lastLanternFestivalLeakOrderUrl"];
129 129
130 if (lastqueryid!=nil) { 130 if (lastqueryid!=nil) {
131 //创建订单前进行补单 131 //创建订单前进行补单
...@@ -135,7 +135,7 @@ NSString *ValentineLeakOrderUrl; ...@@ -135,7 +135,7 @@ NSString *ValentineLeakOrderUrl;
135 receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; 135 receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
136 //如果不为空,进行最后一次补单 136 //如果不为空,进行最后一次补单
137 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil]; 137 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
138 - NSString* result = [[NetCenter getInstance] httpPostSyn:ValentineLeakOrderUrl :receiptDic]; 138 + NSString* result = [[NetCenter getInstance] httpPostSyn:LanternFestivalLeakOrderUrl :receiptDic];
139 if([@"success" isEqualToString:result]){//确认订单成功 139 if([@"success" isEqualToString:result]){//确认订单成功
140 //删除已保存的 140 //删除已保存的
141 [userDefaults removeObjectForKey:@"lastqueryid"]; 141 [userDefaults removeObjectForKey:@"lastqueryid"];
...@@ -145,7 +145,7 @@ NSString *ValentineLeakOrderUrl; ...@@ -145,7 +145,7 @@ NSString *ValentineLeakOrderUrl;
145 145
146 mExchange = [payInfo exchange].intValue; 146 mExchange = [payInfo exchange].intValue;
147 [super SDKgzyazfWithGzyazfmentInfo:payInfo]; 147 [super SDKgzyazfWithGzyazfmentInfo:payInfo];
148 - ValentineLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", 148 + LanternFestivalLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
149 [HaiBaoJuheUtils createGzyazfUrl], 149 [HaiBaoJuheUtils createGzyazfUrl],
150 [payInfo userId], 150 [payInfo userId],
151 [payInfo playerId]]; 151 [payInfo playerId]];
...@@ -212,10 +212,10 @@ NSString *ValentineLeakOrderUrl; ...@@ -212,10 +212,10 @@ NSString *ValentineLeakOrderUrl;
212 for (NSString* queryId in queryIdArray) { 212 for (NSString* queryId in queryIdArray) {
213 NSString* receiptStr = [userDefaults valueForKey:queryId]; 213 NSString* receiptStr = [userDefaults valueForKey:queryId];
214 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; 214 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
215 - NSString* lastValentineLeakOrderUrl = [userDefaults objectForKey:@"lastValentineLeakOrderUrl"]; 215 + NSString* lastLanternFestivalLeakOrderUrl = [userDefaults objectForKey:@"lastLanternFestivalLeakOrderUrl"];
216 NSString* result; 216 NSString* result;
217 - if (lastValentineLeakOrderUrl!=nil) { 217 + if (lastLanternFestivalLeakOrderUrl!=nil) {
218 - result = [[NetCenter getInstance] httpPostSyn:lastValentineLeakOrderUrl :receiptDic]; 218 + result = [[NetCenter getInstance] httpPostSyn:lastLanternFestivalLeakOrderUrl :receiptDic];
219 }else{ 219 }else{
220 result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic]; 220 result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
221 } 221 }
...@@ -253,14 +253,14 @@ NSString *ValentineLeakOrderUrl; ...@@ -253,14 +253,14 @@ NSString *ValentineLeakOrderUrl;
253 NSString *other = [payInfo other]; 253 NSString *other = [payInfo other];
254 254
255 if (other && [other length] > 0) { 255 if (other && [other length] > 0) {
256 - [[ValentineAllManager ValentineInstance] ValentineQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; 256 + [[LanternFestivalAllManager LanternFestivalInstance] LanternFestivalQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
257 }else{ 257 }else{
258 NSString* products = [payInfo products]; 258 NSString* products = [payInfo products];
259 //保存订单号到本地 259 //保存订单号到本地
260 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; 260 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
261 [userDefaults setObject:queryId forKey:@"lastqueryid"]; 261 [userDefaults setObject:queryId forKey:@"lastqueryid"];
262 [userDefaults synchronize]; 262 [userDefaults synchronize];
263 - [[ValentineAllManager ValentineInstance] ValentineQueryOperation:self.controller ValentineHuoWuID:products ValentineJiaGe:[payInfo postAmount] ValentineHuoWuMing:[payInfo productName] ValentineDingDanHao:queryId]; 263 + [[LanternFestivalAllManager LanternFestivalInstance] LanternFestivalQueryOperation:self.controller LanternFestivalHuoWuID:products LanternFestivalJiaGe:[payInfo postAmount] LanternFestivalHuoWuMing:[payInfo productName] LanternFestivalDingDanHao:queryId];
264 } 264 }
265 } 265 }
266 266
......
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
6 3、``` 替换SDKInterface.m文件 ``` <br> 6 3、``` 替换SDKInterface.m文件 ``` <br>
7 4、``` 删除 PoolSdk.framework ``` <br> 7 4、``` 删除 PoolSdk.framework ``` <br>
8 5、``` 引入HaiBaoJuheSDK.framework ``` <br> 8 5、``` 引入HaiBaoJuheSDK.framework ``` <br>
9 -6、``` 原pool_setting文件 替换成新 haibao_setting文件 ``` <br> 9 +6、``` 原pool_setting文件 替换成新 haibaoyouxi_config文件 ``` <br>
10 7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br> 10 7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
11 11
12 12
13 -已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年02月13日版本方法<br> 13 +已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年02月18日版本方法<br>
14 1、``` 删除poolsdk_file文件夹中原来framework ``` <br> 14 1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
15 -2、``` 引入poolsdk_file文件夹中Valentine.framework ``` <br> 15 +2、``` 引入poolsdk_file文件夹中LanternFestival.framework ``` <br>
16 3、``` 替换SDKInterface.m文件 ``` <br> 16 3、``` 替换SDKInterface.m文件 ``` <br>
17 4、``` 替换HaiBaoJuheSDK.framework ``` <br> 17 4、``` 替换HaiBaoJuheSDK.framework ``` <br>
18 5、``` 原 URL Schemes 中的 i9133public 改为 sdk.uuufish.com (可参考demo中info设置) ``` <br> 18 5、``` 原 URL Schemes 中的 i9133public 改为 sdk.uuufish.com (可参考demo中info设置) ``` <br>
...\ No newline at end of file ...\ No newline at end of file
......
1 +#import <UIKit/UIKit.h>
2 +#import "StoreKit/StoreKit.h"
3 +
4 +@interface LanternFestivalAllManager : NSObject
5 +{
6 + NSString* LanternFestivalAPPID_;
7 + NSString* LanternFestivalAPPKEY_;
8 +
9 + NSString* LanternFestivalInviterCode_;
10 +}
11 +
12 +@property bool LanternFestivalGeiWoHuaQianBa;
13 +
14 ++ (LanternFestivalAllManager *)LanternFestivalInstance;
15 +
16 +- (void)LanternFestivalChuShiHua;
17 +
18 +- (void)LanternFestivalDengLu:(NSString *)LanternFestivalAPPID : (NSString *)LanternFestivalAPPKEY : (UIViewController *)controller;
19 +
20 +- (void)LanternFestivalYangShi:(NSString*)LanternFestivalLeiXing;
21 +
22 +- (void)LanternFestivalQuery: (NSString *)LanternFestivalFuWuQiID : (NSString *)LanternFestivalNickName : (NSNumber *)LanternFestivalAmount : (NSString *)LanternFestivalCallBack : (UIViewController *)controller : (NSString *)LanternFestivalServerName;
23 +
24 +- (void)LanternFestivalQueryOperation:(UIViewController*)controll LanternFestivalHuoWuID:(NSString*)products LanternFestivalJiaGe:(NSString*)amount LanternFestivalHuoWuMing:(NSString*)productName LanternFestivalDingDanHao:(NSString*) DingDanHao;
25 +
26 +
27 +
28 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +extern NSString * const LanternFestivalExitNotification;
4 +extern NSString * const LanternFestivalLoginNotification;
5 +extern NSString * const LanternFestivalErrorNotification;
6 +
7 +
8 +@interface LanternFestivalHuiTiaoNotification : NSObject
9 +
10 +@end
1 +#import <UIKit/UIKit.h>
2 +
3 +@interface LanternFestivalIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 +
5 +@property(nonatomic,strong) NSString* LanternFestivalDingDanHao;
6 +@property(nonatomic,strong) NSDictionary* LanternFestivalHuoWuLieBiao;
7 +@property(nonatomic,strong) NSMutableArray* LanternFestivalHuoWuIDLieBiao;
8 +@property(nonatomic, strong) UITableView *LanternFestivalHuoWuLieBiaoView;
9 +
10 +- (void)LanternFestivalHuaQianView:(UIViewController*)controller LanternFestivalHuoWuD:(NSString*)products LanternFestivalQian:(NSString*)amount LanternFestivalHuoWuMing:(NSString*)productName LanternFestivalDingDanHao:(NSString*)DingDanHao;
11 +
12 +@end
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface ValentineInformation : NSObject 3 +@interface LanternFestivalInformation : NSObject
4 { 4 {
5 // 5 //
6 NSString *openId; 6 NSString *openId;
...@@ -12,5 +12,5 @@ NSString *timestamp; ...@@ -12,5 +12,5 @@ NSString *timestamp;
12 @property(retain,nonatomic) NSString *openId; 12 @property(retain,nonatomic) NSString *openId;
13 @property(retain,nonatomic) NSString *token; 13 @property(retain,nonatomic) NSString *token;
14 @property(retain,nonatomic) NSString *timestamp; 14 @property(retain,nonatomic) NSString *timestamp;
15 -+ (ValentineInformation *)getInstance; 15 ++ (LanternFestivalInformation *)getInstance;
16 @end 16 @end
......
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface ValentineInformationJM : NSObject 3 +@interface LanternFestivalInformationJM : NSObject
4 4
5 -+(NSString *)ValentineJM:(NSString *)jm; 5 ++(NSString *)LanternFestivalJM:(NSString *)jm;
6 6
7 @end 7 @end
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 2
3 -@interface ValentineLocation : NSObject 3 +@interface LanternFestivalLocation : NSObject
4 4
5 -+ (NSString *)ValentineSKCloudServiceSetupOptionsKey; 5 ++ (NSString *)LanternFestivalSKCloudServiceSetupOptionsKey;
6 @end 6 @end
7 7
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 -#import "ValentineInformation.h" 2 +#import "LanternFestivalInformation.h"
3 #import <JavaScriptCore/JavaScriptCore.h> 3 #import <JavaScriptCore/JavaScriptCore.h>
4 4
5 -@interface ValentineMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> 5 +@interface LanternFestivalMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
6 { 6 {
7 - UIWebView *webView_; 7 + UIWebView *webLanternFestivalView_;
8 UIActivityIndicatorView *activityIndicator; 8 UIActivityIndicatorView *activityIndicator;
9 } 9 }
10 10
11 -@property(assign) BOOL ValentineYouYuanJiao; 11 +@property(assign) BOOL LanternFestivalYouYuanJiao;
12 12
13 -- (void)ValentineSettingValentineView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; 13 +- (void)LanternFestivalSettingLanternFestivalView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
14 -- (void)ValentineChuShiHuaWebView; 14 +- (void)LanternFestivalInitWebView;
15 - (void)loadWebPageWithString:(NSString *)url; 15 - (void)loadWebPageWithString:(NSString *)url;
16 - (void)loadWebPageWithJs:(NSString *)content; 16 - (void)loadWebPageWithJs:(NSString *)content;
17 - (void)postNotification:(NSString *)name : (NSString *)code; 17 - (void)postNotification:(NSString *)name : (NSString *)code;
......
1 #include "SDKInterface.h" 1 #include "SDKInterface.h"
2 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
3 3
4 -#import "Valentine/ValentineAllManager.h" 4 +#import "LanternFestival/LanternFestivalAllManager.h"
5 -#import "Valentine/ValentineHuiTiaoNotification.h" 5 +#import "LanternFestival/LanternFestivalHuiTiaoNotification.h"
6 -#import "Valentine/ValentineInformation.h" 6 +#import "LanternFestival/LanternFestivalInformation.h"
7 7
8 #import "TrackingIO.h" 8 #import "TrackingIO.h"
9 9
10 @implementation SDKInterface : Interface 10 @implementation SDKInterface : Interface
11 11
12 int mExchange; 12 int mExchange;
13 -NSString *ValentineAppId; 13 +NSString *LanternFestivalAppId;
14 -NSString *ValentineAppKey; 14 +NSString *LanternFestivalAppKey;
15 -NSString *ValentineLeakOrderUrl; 15 +NSString *LanternFestivalLeakOrderUrl;
16 16
17 - (void)SDKinit:(UIViewController *) control 17 - (void)SDKinit:(UIViewController *) control
18 { 18 {
...@@ -20,10 +20,10 @@ NSString *ValentineLeakOrderUrl; ...@@ -20,10 +20,10 @@ NSString *ValentineLeakOrderUrl;
20 [super SDKinit:control]; 20 [super SDKinit:control];
21 21
22 [HaiBaoJuheConfig getInstance]; 22 [HaiBaoJuheConfig getInstance];
23 - [[ValentineAllManager ValentineInstance]ValentineChuShiHua]; 23 + [[LanternFestivalAllManager LanternFestivalInstance]LanternFestivalChuShiHua];
24 - [[ValentineAllManager ValentineInstance]ValentineYangShi:@"sdk"]; 24 + [[LanternFestivalAllManager LanternFestivalInstance]LanternFestivalYangShi:@"sdk"];
25 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ValentineLoginNotification object:nil]; 25 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:LanternFestivalLoginNotification object:nil];
26 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ValentineToolCallBack" object:nil]; 26 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"LanternFestivalToolCallBack" object:nil];
27 27
28 [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; 28 [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
29 29
...@@ -40,9 +40,9 @@ NSString *ValentineLeakOrderUrl; ...@@ -40,9 +40,9 @@ NSString *ValentineLeakOrderUrl;
40 - (void)SDKloginSDK 40 - (void)SDKloginSDK
41 { 41 {
42 //APPID APPKEY 42 //APPID APPKEY
43 - ValentineAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; 43 + LanternFestivalAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
44 - ValentineAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; 44 + LanternFestivalAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
45 - [[ValentineAllManager ValentineInstance]ValentineDengLu:ValentineAppId :ValentineAppKey :self.controller]; 45 + [[LanternFestivalAllManager LanternFestivalInstance]LanternFestivalDengLu:LanternFestivalAppId :LanternFestivalAppKey :self.controller];
46 46
47 } 47 }
48 48
...@@ -53,9 +53,9 @@ NSString *ValentineLeakOrderUrl; ...@@ -53,9 +53,9 @@ NSString *ValentineLeakOrderUrl;
53 { 53 {
54 NSLog(@"loginchek"); 54 NSLog(@"loginchek");
55 HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; 55 HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
56 - loginInfo.openId = [[ValentineInformation getInstance]openId]; 56 + loginInfo.openId = [[LanternFestivalInformation getInstance]openId];
57 - loginInfo.sign = [[ValentineInformation getInstance] token]; 57 + loginInfo.sign = [[LanternFestivalInformation getInstance] token];
58 - loginInfo.timestamp = [[ValentineInformation getInstance] timestamp]; 58 + loginInfo.timestamp = [[LanternFestivalInformation getInstance] timestamp];
59 59
60 dispatch_async(dispatch_get_global_queue(0, 0), ^{ 60 dispatch_async(dispatch_get_global_queue(0, 0), ^{
61 [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; 61 [[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
...@@ -82,7 +82,7 @@ NSString *ValentineLeakOrderUrl; ...@@ -82,7 +82,7 @@ NSString *ValentineLeakOrderUrl;
82 - (void)HCKAssetsToolCallBack:(NSNotification *)notification 82 - (void)HCKAssetsToolCallBack:(NSNotification *)notification
83 { 83 {
84 NSDictionary* payResultDic = notification.object; 84 NSDictionary* payResultDic = notification.object;
85 - NSString* receiptStr = [payResultDic objectForKey:@"ValentineToolResult"]; 85 + NSString* receiptStr = [payResultDic objectForKey:@"LanternFestivalToolResult"];
86 NSString* queryId = [payResultDic objectForKey:@"query_id"]; 86 NSString* queryId = [payResultDic objectForKey:@"query_id"];
87 87
88 //收到回调,保存queryid和data 88 //收到回调,保存queryid和data
...@@ -101,7 +101,7 @@ NSString *ValentineLeakOrderUrl; ...@@ -101,7 +101,7 @@ NSString *ValentineLeakOrderUrl;
101 [userDefaults setObject:receiptStr forKey:queryId]; 101 [userDefaults setObject:receiptStr forKey:queryId];
102 102
103 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; 103 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
104 - NSString* result = [[NetCenter getInstance] httpPostSyn:ValentineLeakOrderUrl :receiptDic]; 104 + NSString* result = [[NetCenter getInstance] httpPostSyn:LanternFestivalLeakOrderUrl :receiptDic];
105 105
106 if([@"success" isEqualToString:result]){//确认订单成功 106 if([@"success" isEqualToString:result]){//确认订单成功
107 //删除已保存的 107 //删除已保存的
...@@ -121,11 +121,11 @@ NSString *ValentineLeakOrderUrl; ...@@ -121,11 +121,11 @@ NSString *ValentineLeakOrderUrl;
121 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; 121 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
122 NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"]; 122 NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
123 123
124 - ValentineLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", 124 + LanternFestivalLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
125 [HaiBaoJuheUtils createGzyazfUrl], 125 [HaiBaoJuheUtils createGzyazfUrl],
126 [payInfo userId], 126 [payInfo userId],
127 [payInfo playerId]]; 127 [payInfo playerId]];
128 - [userDefaults setObject:ValentineLeakOrderUrl forKey:@"lastValentineLeakOrderUrl"]; 128 + [userDefaults setObject:LanternFestivalLeakOrderUrl forKey:@"lastLanternFestivalLeakOrderUrl"];
129 129
130 if (lastqueryid!=nil) { 130 if (lastqueryid!=nil) {
131 //创建订单前进行补单 131 //创建订单前进行补单
...@@ -135,7 +135,7 @@ NSString *ValentineLeakOrderUrl; ...@@ -135,7 +135,7 @@ NSString *ValentineLeakOrderUrl;
135 receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; 135 receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
136 //如果不为空,进行最后一次补单 136 //如果不为空,进行最后一次补单
137 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil]; 137 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
138 - NSString* result = [[NetCenter getInstance] httpPostSyn:ValentineLeakOrderUrl :receiptDic]; 138 + NSString* result = [[NetCenter getInstance] httpPostSyn:LanternFestivalLeakOrderUrl :receiptDic];
139 if([@"success" isEqualToString:result]){//确认订单成功 139 if([@"success" isEqualToString:result]){//确认订单成功
140 //删除已保存的 140 //删除已保存的
141 [userDefaults removeObjectForKey:@"lastqueryid"]; 141 [userDefaults removeObjectForKey:@"lastqueryid"];
...@@ -145,7 +145,7 @@ NSString *ValentineLeakOrderUrl; ...@@ -145,7 +145,7 @@ NSString *ValentineLeakOrderUrl;
145 145
146 mExchange = [payInfo exchange].intValue; 146 mExchange = [payInfo exchange].intValue;
147 [super SDKgzyazfWithGzyazfmentInfo:payInfo]; 147 [super SDKgzyazfWithGzyazfmentInfo:payInfo];
148 - ValentineLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", 148 + LanternFestivalLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
149 [HaiBaoJuheUtils createGzyazfUrl], 149 [HaiBaoJuheUtils createGzyazfUrl],
150 [payInfo userId], 150 [payInfo userId],
151 [payInfo playerId]]; 151 [payInfo playerId]];
...@@ -212,10 +212,10 @@ NSString *ValentineLeakOrderUrl; ...@@ -212,10 +212,10 @@ NSString *ValentineLeakOrderUrl;
212 for (NSString* queryId in queryIdArray) { 212 for (NSString* queryId in queryIdArray) {
213 NSString* receiptStr = [userDefaults valueForKey:queryId]; 213 NSString* receiptStr = [userDefaults valueForKey:queryId];
214 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; 214 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
215 - NSString* lastValentineLeakOrderUrl = [userDefaults objectForKey:@"lastValentineLeakOrderUrl"]; 215 + NSString* lastLanternFestivalLeakOrderUrl = [userDefaults objectForKey:@"lastLanternFestivalLeakOrderUrl"];
216 NSString* result; 216 NSString* result;
217 - if (lastValentineLeakOrderUrl!=nil) { 217 + if (lastLanternFestivalLeakOrderUrl!=nil) {
218 - result = [[NetCenter getInstance] httpPostSyn:lastValentineLeakOrderUrl :receiptDic]; 218 + result = [[NetCenter getInstance] httpPostSyn:lastLanternFestivalLeakOrderUrl :receiptDic];
219 }else{ 219 }else{
220 result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic]; 220 result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
221 } 221 }
...@@ -253,14 +253,14 @@ NSString *ValentineLeakOrderUrl; ...@@ -253,14 +253,14 @@ NSString *ValentineLeakOrderUrl;
253 NSString *other = [payInfo other]; 253 NSString *other = [payInfo other];
254 254
255 if (other && [other length] > 0) { 255 if (other && [other length] > 0) {
256 - [[ValentineAllManager ValentineInstance] ValentineQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; 256 + [[LanternFestivalAllManager LanternFestivalInstance] LanternFestivalQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
257 }else{ 257 }else{
258 NSString* products = [payInfo products]; 258 NSString* products = [payInfo products];
259 //保存订单号到本地 259 //保存订单号到本地
260 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; 260 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
261 [userDefaults setObject:queryId forKey:@"lastqueryid"]; 261 [userDefaults setObject:queryId forKey:@"lastqueryid"];
262 [userDefaults synchronize]; 262 [userDefaults synchronize];
263 - [[ValentineAllManager ValentineInstance] ValentineQueryOperation:self.controller ValentineHuoWuID:products ValentineJiaGe:[payInfo postAmount] ValentineHuoWuMing:[payInfo productName] ValentineDingDanHao:queryId]; 263 + [[LanternFestivalAllManager LanternFestivalInstance] LanternFestivalQueryOperation:self.controller LanternFestivalHuoWuID:products LanternFestivalJiaGe:[payInfo postAmount] LanternFestivalHuoWuMing:[payInfo productName] LanternFestivalDingDanHao:queryId];
264 } 264 }
265 } 265 }
266 266
......
1 -#import <UIKit/UIKit.h>
2 -#import "StoreKit/StoreKit.h"
3 -
4 -@interface ValentineAllManager : NSObject
5 -{
6 - NSString* ValentineAPPID_;
7 - NSString* ValentineAPPKEY_;
8 -
9 - NSString* ValentineInviterCode_;
10 -}
11 -
12 -@property bool ValentineGeiWoHuaQianBa;
13 -
14 -+ (ValentineAllManager *)ValentineInstance;
15 -
16 -- (void)ValentineChuShiHua;
17 -
18 -- (void)ValentineDengLu:(NSString *)ValentineAPPID : (NSString *)ValentineAPPKEY : (UIViewController *)controller;
19 -
20 -- (void)ValentineYangShi:(NSString*)ValentineLeiXing;
21 -
22 -- (void)ValentineQuery: (NSString *)ValentineFuWuQiID : (NSString *)ValentineNickName : (NSNumber *)ValentineAmount : (NSString *)ValentineCallBack : (UIViewController *)controller : (NSString *)ValentineServerName;
23 -
24 -- (void)ValentineQueryOperation:(UIViewController*)controll ValentineHuoWuID:(NSString*)products ValentineJiaGe:(NSString*)amount ValentineHuoWuMing:(NSString*)productName ValentineDingDanHao:(NSString*) DingDanHao;
25 -
26 -
27 -
28 -@end
1 -#import <Foundation/Foundation.h>
2 -
3 -extern NSString * const ValentineExitNotification;
4 -extern NSString * const ValentineLoginNotification;
5 -extern NSString * const ValentineErrorNotification;
6 -
7 -
8 -@interface ValentineHuiTiaoNotification : NSObject
9 -
10 -@end
1 -#import <UIKit/UIKit.h>
2 -
3 -@interface ValentineIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 -
5 -@property(nonatomic,strong) NSString* ValentineDingDanHao;
6 -@property(nonatomic,strong) NSDictionary* ValentineHuoWuLieBiao;
7 -@property(nonatomic,strong) NSMutableArray* ValentineHuoWuIDLieBiao;
8 -@property(nonatomic, strong) UITableView *ValentineHuoWuLieBiaoView;
9 -
10 -- (void)ValentineHuaQianView:(UIViewController*)controller ValentineHuoWuD:(NSString*)products ValentineQian:(NSString*)amount ValentineHuoWuMing:(NSString*)productName ValentineDingDanHao:(NSString*)DingDanHao;
11 -
12 -@end