xuguohong

goowei

Showing 133 changed files with 5229 additions and 0 deletions
No preview for this file type
1 +// !$*UTF8*$!
2 +{
3 + archiveVersion = 1;
4 + classes = {
5 + };
6 + objectVersion = 46;
7 + objects = {
8 +
9 +/* Begin PBXBuildFile section */
10 + 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
11 + 26B0AA0C22CB4AED00FBBC10 /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 26B0AA0B22CB4AEC00FBBC10 /* SDKInterface.m */; };
12 + 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
13 + 847EE5E21EE9007E003A4B7B /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 847EE5E11EE9007E003A4B7B /* MainViewController.m */; };
14 + 8484E4F51EE7E0DC00B402D1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */; };
15 + 8484E4F61EE7E0DC00B402D1 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8484E4F41EE7E0DC00B402D1 /* ViewController.m */; };
16 + 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 8484E4FB1EE7E1D800B402D1 /* libsqlite3.dylib */; };
17 + 8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8484E4FD1EE7E1F700B402D1 /* CoreTelephony.framework */; };
18 + 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8484E4FF1EE7E20C00B402D1 /* CFNetwork.framework */; };
19 + 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8484E5011EE7E21F00B402D1 /* UIKit.framework */; };
20 + 8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8484E5031EE7E24400B402D1 /* StoreKit.framework */; };
21 + 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8484E5051EE7E24A00B402D1 /* CoreMotion.framework */; };
22 + 8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8484E5071EE7E25600B402D1 /* CoreText.framework */; };
23 + 8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8484E5091EE7E26200B402D1 /* Security.framework */; };
24 + 8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8484E50B1EE7E27100B402D1 /* CoreGraphics.framework */; };
25 + 8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8484E50D1EE7E28000B402D1 /* QuartzCore.framework */; };
26 + 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 8484E50F1EE7E29A00B402D1 /* libc++.1.dylib */; };
27 + 8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 8484E5111EE7E2B800B402D1 /* libz.1.dylib */; };
28 + 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8484E5131EE7E2DE00B402D1 /* Foundation.framework */; };
29 + 8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8484E5151EE7E36800B402D1 /* SystemConfiguration.framework */; };
30 + 84F40F5523C87881006EE208 /* goowei_config in Resources */ = {isa = PBXBuildFile; fileRef = 84F40F5423C87881006EE208 /* goowei_config */; };
31 + BB5F3C8E1C1811BC00DA339D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = BB5F3C8D1C1811BC00DA339D /* main.m */; };
32 + BB5F3C971C1811BC00DA339D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BB5F3C951C1811BC00DA339D /* Main.storyboard */; };
33 + BB5F3CA81C1811BC00DA339D /* DemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BB5F3CA71C1811BC00DA339D /* DemoTests.m */; };
34 +/* End PBXBuildFile section */
35 +
36 +/* Begin PBXContainerItemProxy section */
37 + BB5F3CA21C1811BC00DA339D /* PBXContainerItemProxy */ = {
38 + isa = PBXContainerItemProxy;
39 + containerPortal = BB5F3C801C1811BC00DA339D /* Project object */;
40 + proxyType = 1;
41 + remoteGlobalIDString = BB5F3C871C1811BC00DA339D;
42 + remoteInfo = Demo;
43 + };
44 +/* End PBXContainerItemProxy section */
45 +
46 +/* Begin PBXCopyFilesBuildPhase section */
47 + 84398BFB1C4C83EC0082D774 /* Embed Frameworks */ = {
48 + isa = PBXCopyFilesBuildPhase;
49 + buildActionMask = 2147483647;
50 + dstPath = "";
51 + dstSubfolderSpec = 10;
52 + files = (
53 + );
54 + name = "Embed Frameworks";
55 + runOnlyForDeploymentPostprocessing = 0;
56 + };
57 +/* End PBXCopyFilesBuildPhase section */
58 +
59 +/* Begin PBXFileReference section */
60 + 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; };
61 + 26B0AA0A22CB4AEC00FBBC10 /* SDKInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDKInterface.h; path = poolsdk_file/poolsdk/SDKInterface.h; sourceTree = "<group>"; };
62 + 26B0AA0B22CB4AEC00FBBC10 /* SDKInterface.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDKInterface.m; path = poolsdk_file/poolsdk/SDKInterface.m; sourceTree = "<group>"; };
63 + 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; };
64 + 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; };
65 + 847EE5E01EE9007E003A4B7B /* MainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainViewController.h; sourceTree = "<group>"; };
66 + 847EE5E11EE9007E003A4B7B /* MainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MainViewController.m; sourceTree = "<group>"; };
67 + 8484E4F11EE7E0DC00B402D1 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
68 + 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
69 + 8484E4F31EE7E0DC00B402D1 /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
70 + 8484E4F41EE7E0DC00B402D1 /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
71 + 8484E4FB1EE7E1D800B402D1 /* libsqlite3.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libsqlite3.dylib; path = ../../../../../../../../usr/lib/libsqlite3.dylib; sourceTree = "<group>"; };
72 + 8484E4FD1EE7E1F700B402D1 /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; };
73 + 8484E4FF1EE7E20C00B402D1 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
74 + 8484E5011EE7E21F00B402D1 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
75 + 8484E5031EE7E24400B402D1 /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; };
76 + 8484E5051EE7E24A00B402D1 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; };
77 + 8484E5071EE7E25600B402D1 /* CoreText.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreText.framework; path = System/Library/Frameworks/CoreText.framework; sourceTree = SDKROOT; };
78 + 8484E5091EE7E26200B402D1 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
79 + 8484E50B1EE7E27100B402D1 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
80 + 8484E50D1EE7E28000B402D1 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
81 + 8484E50F1EE7E29A00B402D1 /* libc++.1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libc++.1.dylib"; path = "../../../../../../../../usr/lib/libc++.1.dylib"; sourceTree = "<group>"; };
82 + 8484E5111EE7E2B800B402D1 /* libz.1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.1.dylib; path = ../../../../../../../../usr/lib/libz.1.dylib; sourceTree = "<group>"; };
83 + 8484E5131EE7E2DE00B402D1 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
84 + 8484E5151EE7E36800B402D1 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
85 + 84F40F5423C87881006EE208 /* goowei_config */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = goowei_config; path = poolsdk_file/poolsdk/goowei_config; sourceTree = "<group>"; };
86 + BB5F3C881C1811BC00DA339D /* 接入DEMO.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "接入DEMO.app"; sourceTree = BUILT_PRODUCTS_DIR; };
87 + BB5F3C8D1C1811BC00DA339D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
88 + BB5F3C961C1811BC00DA339D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
89 + BB5F3C9B1C1811BC00DA339D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
90 + BB5F3CA11C1811BC00DA339D /* DemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
91 + BB5F3CA61C1811BC00DA339D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
92 + BB5F3CA71C1811BC00DA339D /* DemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DemoTests.m; sourceTree = "<group>"; };
93 +/* End PBXFileReference section */
94 +
95 +/* Begin PBXFrameworksBuildPhase section */
96 + BB5F3C851C1811BC00DA339D /* Frameworks */ = {
97 + isa = PBXFrameworksBuildPhase;
98 + buildActionMask = 2147483647;
99 + files = (
100 + 8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
101 + 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */,
102 + 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
103 + 8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
104 + 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
105 + 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
106 + 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
107 + 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
108 + 8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
109 + 8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
110 + 8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
111 + 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
112 + 8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
113 + 8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
114 + 8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
115 + );
116 + runOnlyForDeploymentPostprocessing = 0;
117 + };
118 + BB5F3C9E1C1811BC00DA339D /* Frameworks */ = {
119 + isa = PBXFrameworksBuildPhase;
120 + buildActionMask = 2147483647;
121 + files = (
122 + );
123 + runOnlyForDeploymentPostprocessing = 0;
124 + };
125 +/* End PBXFrameworksBuildPhase section */
126 +
127 +/* Begin PBXGroup section */
128 + 8476DF631C4DD70500EC42BA /* poolsdk_file */ = {
129 + isa = PBXGroup;
130 + children = (
131 + 8476DF641C4DD71D00EC42BA /* poolsdk */,
132 + );
133 + name = poolsdk_file;
134 + sourceTree = "<group>";
135 + };
136 + 8476DF641C4DD71D00EC42BA /* poolsdk */ = {
137 + isa = PBXGroup;
138 + children = (
139 + 26B0AA0A22CB4AEC00FBBC10 /* SDKInterface.h */,
140 + 26B0AA0B22CB4AEC00FBBC10 /* SDKInterface.m */,
141 + 84F40F5423C87881006EE208 /* goowei_config */,
142 + 845D181B1C8D778400F27EB9 /* Images.xcassets */,
143 + 845D181C1C8D778400F27EB9 /* Info.plist */,
144 + );
145 + name = poolsdk;
146 + sourceTree = "<group>";
147 + };
148 + BB5F3C7F1C1811BC00DA339D = {
149 + isa = PBXGroup;
150 + children = (
151 + 8484E5151EE7E36800B402D1 /* SystemConfiguration.framework */,
152 + 8484E5131EE7E2DE00B402D1 /* Foundation.framework */,
153 + 8484E5111EE7E2B800B402D1 /* libz.1.dylib */,
154 + 8484E50F1EE7E29A00B402D1 /* libc++.1.dylib */,
155 + 8484E50D1EE7E28000B402D1 /* QuartzCore.framework */,
156 + 8484E50B1EE7E27100B402D1 /* CoreGraphics.framework */,
157 + 8484E5091EE7E26200B402D1 /* Security.framework */,
158 + 8484E5071EE7E25600B402D1 /* CoreText.framework */,
159 + 8484E5051EE7E24A00B402D1 /* CoreMotion.framework */,
160 + 8484E5031EE7E24400B402D1 /* StoreKit.framework */,
161 + 8484E5011EE7E21F00B402D1 /* UIKit.framework */,
162 + 8484E4FF1EE7E20C00B402D1 /* CFNetwork.framework */,
163 + 8484E4FD1EE7E1F700B402D1 /* CoreTelephony.framework */,
164 + 8484E4FB1EE7E1D800B402D1 /* libsqlite3.dylib */,
165 + 8476DF631C4DD70500EC42BA /* poolsdk_file */,
166 + BB5F3C8A1C1811BC00DA339D /* Demo */,
167 + BB5F3CA41C1811BC00DA339D /* DemoTests */,
168 + BB5F3C891C1811BC00DA339D /* Products */,
169 + );
170 + sourceTree = "<group>";
171 + };
172 + BB5F3C891C1811BC00DA339D /* Products */ = {
173 + isa = PBXGroup;
174 + children = (
175 + BB5F3C881C1811BC00DA339D /* 接入DEMO.app */,
176 + BB5F3CA11C1811BC00DA339D /* DemoTests.xctest */,
177 + );
178 + name = Products;
179 + sourceTree = "<group>";
180 + };
181 + BB5F3C8A1C1811BC00DA339D /* Demo */ = {
182 + isa = PBXGroup;
183 + children = (
184 + 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */,
185 + 8484E4F11EE7E0DC00B402D1 /* AppDelegate.h */,
186 + 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */,
187 + 8484E4F31EE7E0DC00B402D1 /* ViewController.h */,
188 + 8484E4F41EE7E0DC00B402D1 /* ViewController.m */,
189 + 847EE5E01EE9007E003A4B7B /* MainViewController.h */,
190 + 847EE5E11EE9007E003A4B7B /* MainViewController.m */,
191 + BB5F3C951C1811BC00DA339D /* Main.storyboard */,
192 + BB5F3C9A1C1811BC00DA339D /* LaunchScreen.xib */,
193 + BB5F3C8B1C1811BC00DA339D /* Supporting Files */,
194 + );
195 + path = Demo;
196 + sourceTree = "<group>";
197 + };
198 + BB5F3C8B1C1811BC00DA339D /* Supporting Files */ = {
199 + isa = PBXGroup;
200 + children = (
201 + BB5F3C8D1C1811BC00DA339D /* main.m */,
202 + );
203 + name = "Supporting Files";
204 + sourceTree = "<group>";
205 + };
206 + BB5F3CA41C1811BC00DA339D /* DemoTests */ = {
207 + isa = PBXGroup;
208 + children = (
209 + BB5F3CA71C1811BC00DA339D /* DemoTests.m */,
210 + BB5F3CA51C1811BC00DA339D /* Supporting Files */,
211 + );
212 + path = DemoTests;
213 + sourceTree = "<group>";
214 + };
215 + BB5F3CA51C1811BC00DA339D /* Supporting Files */ = {
216 + isa = PBXGroup;
217 + children = (
218 + BB5F3CA61C1811BC00DA339D /* Info.plist */,
219 + );
220 + name = "Supporting Files";
221 + sourceTree = "<group>";
222 + };
223 +/* End PBXGroup section */
224 +
225 +/* Begin PBXNativeTarget section */
226 + BB5F3C871C1811BC00DA339D /* Demo */ = {
227 + isa = PBXNativeTarget;
228 + buildConfigurationList = BB5F3CAB1C1811BC00DA339D /* Build configuration list for PBXNativeTarget "Demo" */;
229 + buildPhases = (
230 + BB5F3C841C1811BC00DA339D /* Sources */,
231 + BB5F3C851C1811BC00DA339D /* Frameworks */,
232 + BB5F3C861C1811BC00DA339D /* Resources */,
233 + 84398BFB1C4C83EC0082D774 /* Embed Frameworks */,
234 + );
235 + buildRules = (
236 + );
237 + dependencies = (
238 + );
239 + name = Demo;
240 + productName = Demo;
241 + productReference = BB5F3C881C1811BC00DA339D /* 接入DEMO.app */;
242 + productType = "com.apple.product-type.application";
243 + };
244 + BB5F3CA01C1811BC00DA339D /* DemoTests */ = {
245 + isa = PBXNativeTarget;
246 + buildConfigurationList = BB5F3CAE1C1811BC00DA339D /* Build configuration list for PBXNativeTarget "DemoTests" */;
247 + buildPhases = (
248 + BB5F3C9D1C1811BC00DA339D /* Sources */,
249 + BB5F3C9E1C1811BC00DA339D /* Frameworks */,
250 + BB5F3C9F1C1811BC00DA339D /* Resources */,
251 + );
252 + buildRules = (
253 + );
254 + dependencies = (
255 + BB5F3CA31C1811BC00DA339D /* PBXTargetDependency */,
256 + );
257 + name = DemoTests;
258 + productName = DemoTests;
259 + productReference = BB5F3CA11C1811BC00DA339D /* DemoTests.xctest */;
260 + productType = "com.apple.product-type.bundle.unit-test";
261 + };
262 +/* End PBXNativeTarget section */
263 +
264 +/* Begin PBXProject section */
265 + BB5F3C801C1811BC00DA339D /* Project object */ = {
266 + isa = PBXProject;
267 + attributes = {
268 + LastUpgradeCheck = 0640;
269 + ORGANIZATIONNAME = winFan;
270 + TargetAttributes = {
271 + BB5F3C871C1811BC00DA339D = {
272 + CreatedOnToolsVersion = 6.4;
273 + DevelopmentTeam = PNDD7Y396D;
274 + ProvisioningStyle = Manual;
275 + };
276 + BB5F3CA01C1811BC00DA339D = {
277 + CreatedOnToolsVersion = 6.4;
278 + TestTargetID = BB5F3C871C1811BC00DA339D;
279 + };
280 + };
281 + };
282 + buildConfigurationList = BB5F3C831C1811BC00DA339D /* Build configuration list for PBXProject "Demo" */;
283 + compatibilityVersion = "Xcode 3.2";
284 + developmentRegion = English;
285 + hasScannedForEncodings = 0;
286 + knownRegions = (
287 + English,
288 + en,
289 + Base,
290 + );
291 + mainGroup = BB5F3C7F1C1811BC00DA339D;
292 + productRefGroup = BB5F3C891C1811BC00DA339D /* Products */;
293 + projectDirPath = "";
294 + projectRoot = "";
295 + targets = (
296 + BB5F3C871C1811BC00DA339D /* Demo */,
297 + BB5F3CA01C1811BC00DA339D /* DemoTests */,
298 + );
299 + };
300 +/* End PBXProject section */
301 +
302 +/* Begin PBXResourcesBuildPhase section */
303 + BB5F3C861C1811BC00DA339D /* Resources */ = {
304 + isa = PBXResourcesBuildPhase;
305 + buildActionMask = 2147483647;
306 + files = (
307 + 84F40F5523C87881006EE208 /* goowei_config in Resources */,
308 + 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */,
309 + BB5F3C971C1811BC00DA339D /* Main.storyboard in Resources */,
310 + );
311 + runOnlyForDeploymentPostprocessing = 0;
312 + };
313 + BB5F3C9F1C1811BC00DA339D /* Resources */ = {
314 + isa = PBXResourcesBuildPhase;
315 + buildActionMask = 2147483647;
316 + files = (
317 + );
318 + runOnlyForDeploymentPostprocessing = 0;
319 + };
320 +/* End PBXResourcesBuildPhase section */
321 +
322 +/* Begin PBXSourcesBuildPhase section */
323 + BB5F3C841C1811BC00DA339D /* Sources */ = {
324 + isa = PBXSourcesBuildPhase;
325 + buildActionMask = 2147483647;
326 + files = (
327 + 26B0AA0C22CB4AED00FBBC10 /* SDKInterface.m in Sources */,
328 + 8484E4F51EE7E0DC00B402D1 /* AppDelegate.m in Sources */,
329 + 847EE5E21EE9007E003A4B7B /* MainViewController.m in Sources */,
330 + BB5F3C8E1C1811BC00DA339D /* main.m in Sources */,
331 + 8484E4F61EE7E0DC00B402D1 /* ViewController.m in Sources */,
332 + );
333 + runOnlyForDeploymentPostprocessing = 0;
334 + };
335 + BB5F3C9D1C1811BC00DA339D /* Sources */ = {
336 + isa = PBXSourcesBuildPhase;
337 + buildActionMask = 2147483647;
338 + files = (
339 + BB5F3CA81C1811BC00DA339D /* DemoTests.m in Sources */,
340 + );
341 + runOnlyForDeploymentPostprocessing = 0;
342 + };
343 +/* End PBXSourcesBuildPhase section */
344 +
345 +/* Begin PBXTargetDependency section */
346 + BB5F3CA31C1811BC00DA339D /* PBXTargetDependency */ = {
347 + isa = PBXTargetDependency;
348 + target = BB5F3C871C1811BC00DA339D /* Demo */;
349 + targetProxy = BB5F3CA21C1811BC00DA339D /* PBXContainerItemProxy */;
350 + };
351 +/* End PBXTargetDependency section */
352 +
353 +/* Begin PBXVariantGroup section */
354 + BB5F3C951C1811BC00DA339D /* Main.storyboard */ = {
355 + isa = PBXVariantGroup;
356 + children = (
357 + BB5F3C961C1811BC00DA339D /* Base */,
358 + );
359 + name = Main.storyboard;
360 + sourceTree = "<group>";
361 + };
362 + BB5F3C9A1C1811BC00DA339D /* LaunchScreen.xib */ = {
363 + isa = PBXVariantGroup;
364 + children = (
365 + BB5F3C9B1C1811BC00DA339D /* Base */,
366 + );
367 + name = LaunchScreen.xib;
368 + sourceTree = "<group>";
369 + };
370 +/* End PBXVariantGroup section */
371 +
372 +/* Begin XCBuildConfiguration section */
373 + BB5F3CA91C1811BC00DA339D /* Debug */ = {
374 + isa = XCBuildConfiguration;
375 + buildSettings = {
376 + ALWAYS_SEARCH_USER_PATHS = NO;
377 + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "";
378 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
379 + CLANG_CXX_LIBRARY = "libc++";
380 + CLANG_ENABLE_MODULES = YES;
381 + CLANG_ENABLE_OBJC_ARC = YES;
382 + CLANG_WARN_BOOL_CONVERSION = YES;
383 + CLANG_WARN_CONSTANT_CONVERSION = YES;
384 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
385 + CLANG_WARN_EMPTY_BODY = YES;
386 + CLANG_WARN_ENUM_CONVERSION = YES;
387 + CLANG_WARN_INT_CONVERSION = YES;
388 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
389 + CLANG_WARN_UNREACHABLE_CODE = YES;
390 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
391 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
392 + COPY_PHASE_STRIP = NO;
393 + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
394 + ENABLE_BITCODE = NO;
395 + ENABLE_STRICT_OBJC_MSGSEND = YES;
396 + GCC_C_LANGUAGE_STANDARD = gnu99;
397 + GCC_DYNAMIC_NO_PIC = NO;
398 + GCC_NO_COMMON_BLOCKS = YES;
399 + GCC_OPTIMIZATION_LEVEL = 0;
400 + GCC_PREPROCESSOR_DEFINITIONS = (
401 + "DEBUG=1",
402 + "$(inherited)",
403 + );
404 + GCC_SYMBOLS_PRIVATE_EXTERN = NO;
405 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
406 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
407 + GCC_WARN_UNDECLARED_SELECTOR = YES;
408 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
409 + GCC_WARN_UNUSED_FUNCTION = YES;
410 + GCC_WARN_UNUSED_VARIABLE = YES;
411 + IPHONEOS_DEPLOYMENT_TARGET = 8.4;
412 + MTL_ENABLE_DEBUG_INFO = YES;
413 + ONLY_ACTIVE_ARCH = YES;
414 + SDKROOT = iphoneos;
415 + };
416 + name = Debug;
417 + };
418 + BB5F3CAA1C1811BC00DA339D /* Release */ = {
419 + isa = XCBuildConfiguration;
420 + buildSettings = {
421 + ALWAYS_SEARCH_USER_PATHS = NO;
422 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
423 + CLANG_CXX_LIBRARY = "libc++";
424 + CLANG_ENABLE_MODULES = YES;
425 + CLANG_ENABLE_OBJC_ARC = YES;
426 + CLANG_WARN_BOOL_CONVERSION = YES;
427 + CLANG_WARN_CONSTANT_CONVERSION = YES;
428 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
429 + CLANG_WARN_EMPTY_BODY = YES;
430 + CLANG_WARN_ENUM_CONVERSION = YES;
431 + CLANG_WARN_INT_CONVERSION = YES;
432 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
433 + CLANG_WARN_UNREACHABLE_CODE = YES;
434 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
435 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
436 + COPY_PHASE_STRIP = NO;
437 + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
438 + ENABLE_BITCODE = NO;
439 + ENABLE_NS_ASSERTIONS = NO;
440 + ENABLE_STRICT_OBJC_MSGSEND = YES;
441 + GCC_C_LANGUAGE_STANDARD = gnu99;
442 + GCC_NO_COMMON_BLOCKS = YES;
443 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
444 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
445 + GCC_WARN_UNDECLARED_SELECTOR = YES;
446 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
447 + GCC_WARN_UNUSED_FUNCTION = YES;
448 + GCC_WARN_UNUSED_VARIABLE = YES;
449 + IPHONEOS_DEPLOYMENT_TARGET = 8.4;
450 + MTL_ENABLE_DEBUG_INFO = NO;
451 + SDKROOT = iphoneos;
452 + VALIDATE_PRODUCT = YES;
453 + };
454 + name = Release;
455 + };
456 + BB5F3CAC1C1811BC00DA339D /* Debug */ = {
457 + isa = XCBuildConfiguration;
458 + buildSettings = {
459 + CODE_SIGN_IDENTITY = "iPhone Distribution";
460 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
461 + CODE_SIGN_STYLE = Manual;
462 + DEAD_CODE_STRIPPING = NO;
463 + DEVELOPMENT_TEAM = PNDD7Y396D;
464 + ENABLE_BITCODE = NO;
465 + FRAMEWORK_SEARCH_PATHS = (
466 + "$(inherited)",
467 + "$(PROJECT_DIR)/Demo",
468 + "$(PROJECT_DIR)/poolsdk_file/poolsdk",
469 + "$(PROJECT_DIR)",
470 + );
471 + INFOPLIST_FILE = poolsdk_file/poolsdk/Info.plist;
472 + IPHONEOS_DEPLOYMENT_TARGET = 9.0;
473 + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
474 + LIBRARY_SEARCH_PATHS = (
475 + "$(inherited)",
476 + "$(PROJECT_DIR)/Demo",
477 + "$(PROJECT_DIR)/poolsdk_file/poolsdk",
478 + );
479 + ONLY_ACTIVE_ARCH = NO;
480 + OTHER_LDFLAGS = "";
481 + PRODUCT_BUNDLE_IDENTIFIER = com.test.youai;
482 + PRODUCT_NAME = "接入DEMO";
483 + PROVISIONING_PROFILE = "9303482b-bf64-4d76-83c5-97cec24e2bd5";
484 + PROVISIONING_PROFILE_SPECIFIER = dev;
485 + TARGETED_DEVICE_FAMILY = "1,2";
486 + VALID_ARCHS = "arm64 armv7s";
487 + };
488 + name = Debug;
489 + };
490 + BB5F3CAD1C1811BC00DA339D /* Release */ = {
491 + isa = XCBuildConfiguration;
492 + buildSettings = {
493 + CODE_SIGN_IDENTITY = "iPhone Developer";
494 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
495 + CODE_SIGN_STYLE = Manual;
496 + DEAD_CODE_STRIPPING = NO;
497 + DEVELOPMENT_TEAM = PNDD7Y396D;
498 + ENABLE_BITCODE = NO;
499 + FRAMEWORK_SEARCH_PATHS = (
500 + "$(inherited)",
501 + "$(PROJECT_DIR)/Demo",
502 + "$(PROJECT_DIR)/poolsdk_file/poolsdk",
503 + "$(PROJECT_DIR)",
504 + );
505 + INFOPLIST_FILE = poolsdk_file/poolsdk/Info.plist;
506 + IPHONEOS_DEPLOYMENT_TARGET = 9.0;
507 + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
508 + LIBRARY_SEARCH_PATHS = (
509 + "$(inherited)",
510 + "$(PROJECT_DIR)/Demo",
511 + "$(PROJECT_DIR)/poolsdk_file/poolsdk",
512 + );
513 + ONLY_ACTIVE_ARCH = NO;
514 + OTHER_LDFLAGS = "";
515 + PRODUCT_BUNDLE_IDENTIFIER = com.test.youai;
516 + PRODUCT_NAME = "接入DEMO";
517 + PROVISIONING_PROFILE = "8e8ee19d-d19f-41ba-9a9d-108915ed5380";
518 + PROVISIONING_PROFILE_SPECIFIER = dis;
519 + TARGETED_DEVICE_FAMILY = "1,2";
520 + VALID_ARCHS = "arm64 armv7s";
521 + };
522 + name = Release;
523 + };
524 + BB5F3CAF1C1811BC00DA339D /* Debug */ = {
525 + isa = XCBuildConfiguration;
526 + buildSettings = {
527 + BUNDLE_LOADER = "$(TEST_HOST)";
528 + FRAMEWORK_SEARCH_PATHS = (
529 + "$(SDKROOT)/Developer/Library/Frameworks",
530 + "$(inherited)",
531 + "$(PROJECT_DIR)",
532 + );
533 + GCC_PREPROCESSOR_DEFINITIONS = (
534 + "DEBUG=1",
535 + "$(inherited)",
536 + );
537 + INFOPLIST_FILE = DemoTests/Info.plist;
538 + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
539 + PRODUCT_NAME = "$(TARGET_NAME)";
540 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Demo.app/Demo";
541 + };
542 + name = Debug;
543 + };
544 + BB5F3CB01C1811BC00DA339D /* Release */ = {
545 + isa = XCBuildConfiguration;
546 + buildSettings = {
547 + BUNDLE_LOADER = "$(TEST_HOST)";
548 + FRAMEWORK_SEARCH_PATHS = (
549 + "$(SDKROOT)/Developer/Library/Frameworks",
550 + "$(inherited)",
551 + "$(PROJECT_DIR)",
552 + );
553 + INFOPLIST_FILE = DemoTests/Info.plist;
554 + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
555 + PRODUCT_NAME = "$(TARGET_NAME)";
556 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Demo.app/Demo";
557 + };
558 + name = Release;
559 + };
560 +/* End XCBuildConfiguration section */
561 +
562 +/* Begin XCConfigurationList section */
563 + BB5F3C831C1811BC00DA339D /* Build configuration list for PBXProject "Demo" */ = {
564 + isa = XCConfigurationList;
565 + buildConfigurations = (
566 + BB5F3CA91C1811BC00DA339D /* Debug */,
567 + BB5F3CAA1C1811BC00DA339D /* Release */,
568 + );
569 + defaultConfigurationIsVisible = 0;
570 + defaultConfigurationName = Release;
571 + };
572 + BB5F3CAB1C1811BC00DA339D /* Build configuration list for PBXNativeTarget "Demo" */ = {
573 + isa = XCConfigurationList;
574 + buildConfigurations = (
575 + BB5F3CAC1C1811BC00DA339D /* Debug */,
576 + BB5F3CAD1C1811BC00DA339D /* Release */,
577 + );
578 + defaultConfigurationIsVisible = 0;
579 + defaultConfigurationName = Release;
580 + };
581 + BB5F3CAE1C1811BC00DA339D /* Build configuration list for PBXNativeTarget "DemoTests" */ = {
582 + isa = XCConfigurationList;
583 + buildConfigurations = (
584 + BB5F3CAF1C1811BC00DA339D /* Debug */,
585 + BB5F3CB01C1811BC00DA339D /* Release */,
586 + );
587 + defaultConfigurationIsVisible = 0;
588 + defaultConfigurationName = Release;
589 + };
590 +/* End XCConfigurationList section */
591 + };
592 + rootObject = BB5F3C801C1811BC00DA339D /* Project object */;
593 +}
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<Workspace
3 + version = "1.0">
4 + <FileRef
5 + location = "self:Demo.xcodeproj">
6 + </FileRef>
7 +</Workspace>
1 +{
2 + "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "D1584AEF25B5C21395F515B62C90B71E0ACB26B2",
3 + "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : {
4 + "5b13317c-0110-4367-8746-06bc6aadd3cd++2397" : {
5 +
6 + }
7 + },
8 + "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : {
9 + "D1584AEF25B5C21395F515B62C90B71E0ACB26B2" : 0,
10 + "5b13317c-0110-4367-8746-06bc6aadd3cd++2397" : 0
11 + },
12 + "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "8119CC7B-EDC1-4646-9378-8ECAC2EEB94B",
13 + "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : {
14 + "D1584AEF25B5C21395F515B62C90B71E0ACB26B2" : "public_sdk_ios\/",
15 + "5b13317c-0110-4367-8746-06bc6aadd3cd++2397" : "youai_foolsdk_ios\/"
16 + },
17 + "DVTSourceControlWorkspaceBlueprintNameKey" : "Demo",
18 + "DVTSourceControlWorkspaceBlueprintVersion" : 204,
19 + "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "PoolSdk_Demo\/Demo.xcodeproj",
20 + "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [
21 + {
22 + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "svn:\/\/10.21.210.99",
23 + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Subversion",
24 + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "5b13317c-0110-4367-8746-06bc6aadd3cd++2397"
25 + },
26 + {
27 + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "ssh:\/\/106.75.192.252:10022\/public_service\/public_sdk_ios.git",
28 + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
29 + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "D1584AEF25B5C21395F515B62C90B71E0ACB26B2"
30 + }
31 + ]
32 +}
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 +<plist version="1.0">
4 +<dict>
5 + <key>IDEDidComputeMac32BitWarning</key>
6 + <true/>
7 +</dict>
8 +</plist>
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 +<plist version="1.0">
4 +<array/>
5 +</plist>
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 +<plist version="1.0">
4 +<dict>
5 + <key>SchemeUserState</key>
6 + <dict>
7 + <key>Demo.xcscheme</key>
8 + <dict>
9 + <key>orderHint</key>
10 + <integer>0</integer>
11 + </dict>
12 + <key>Demo.xcscheme_^#shared#^_</key>
13 + <dict>
14 + <key>orderHint</key>
15 + <integer>0</integer>
16 + </dict>
17 + </dict>
18 +</dict>
19 +</plist>
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<Bucket
3 + type = "1"
4 + version = "2.0">
5 +</Bucket>
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 +<plist version="1.0">
4 +<dict>
5 + <key>SchemeUserState</key>
6 + <dict>
7 + <key>Demo.xcscheme</key>
8 + <dict>
9 + <key>orderHint</key>
10 + <integer>0</integer>
11 + </dict>
12 + </dict>
13 +</dict>
14 +</plist>
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<Bucket
3 + type = "1"
4 + version = "2.0">
5 + <Breakpoints>
6 + <BreakpointProxy
7 + BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
8 + <BreakpointContent
9 + shouldBeEnabled = "Yes"
10 + ignoreCount = "0"
11 + continueAfterRunningActions = "No"
12 + filePath = "../PoolSdk/PoolSdk/SDKInterface.m"
13 + timestampString = "471440051.171901"
14 + startingColumnNumber = "9223372036854775807"
15 + endingColumnNumber = "9223372036854775807"
16 + startingLineNumber = "77"
17 + endingLineNumber = "77"
18 + landmarkName = "-receiveLoginMessage:"
19 + landmarkType = "5">
20 + </BreakpointContent>
21 + </BreakpointProxy>
22 + <BreakpointProxy
23 + BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
24 + <BreakpointContent
25 + shouldBeEnabled = "Yes"
26 + ignoreCount = "0"
27 + continueAfterRunningActions = "No"
28 + filePath = "../PoolSdk/PoolSdk/SDKInterface.m"
29 + timestampString = "471440051.171901"
30 + startingColumnNumber = "9223372036854775807"
31 + endingColumnNumber = "9223372036854775807"
32 + startingLineNumber = "43"
33 + endingLineNumber = "43"
34 + landmarkName = "-SDKloginSDK"
35 + landmarkType = "5">
36 + </BreakpointContent>
37 + </BreakpointProxy>
38 + </Breakpoints>
39 +</Bucket>
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<Scheme
3 + LastUpgradeVersion = "0640"
4 + version = "1.3">
5 + <BuildAction
6 + parallelizeBuildables = "YES"
7 + buildImplicitDependencies = "YES">
8 + <BuildActionEntries>
9 + <BuildActionEntry
10 + buildForTesting = "YES"
11 + buildForRunning = "YES"
12 + buildForProfiling = "YES"
13 + buildForArchiving = "YES"
14 + buildForAnalyzing = "YES">
15 + <BuildableReference
16 + BuildableIdentifier = "primary"
17 + BlueprintIdentifier = "BB5F3C871C1811BC00DA339D"
18 + BuildableName = "Demo.app"
19 + BlueprintName = "Demo"
20 + ReferencedContainer = "container:Demo.xcodeproj">
21 + </BuildableReference>
22 + </BuildActionEntry>
23 + <BuildActionEntry
24 + buildForTesting = "YES"
25 + buildForRunning = "YES"
26 + buildForProfiling = "NO"
27 + buildForArchiving = "NO"
28 + buildForAnalyzing = "YES">
29 + <BuildableReference
30 + BuildableIdentifier = "primary"
31 + BlueprintIdentifier = "BB5F3CA01C1811BC00DA339D"
32 + BuildableName = "DemoTests.xctest"
33 + BlueprintName = "DemoTests"
34 + ReferencedContainer = "container:Demo.xcodeproj">
35 + </BuildableReference>
36 + </BuildActionEntry>
37 + </BuildActionEntries>
38 + </BuildAction>
39 + <TestAction
40 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
41 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
42 + shouldUseLaunchSchemeArgsEnv = "YES"
43 + buildConfiguration = "Debug">
44 + <Testables>
45 + <TestableReference
46 + skipped = "NO">
47 + <BuildableReference
48 + BuildableIdentifier = "primary"
49 + BlueprintIdentifier = "BB5F3CA01C1811BC00DA339D"
50 + BuildableName = "DemoTests.xctest"
51 + BlueprintName = "DemoTests"
52 + ReferencedContainer = "container:Demo.xcodeproj">
53 + </BuildableReference>
54 + </TestableReference>
55 + </Testables>
56 + <MacroExpansion>
57 + <BuildableReference
58 + BuildableIdentifier = "primary"
59 + BlueprintIdentifier = "BB5F3C871C1811BC00DA339D"
60 + BuildableName = "Demo.app"
61 + BlueprintName = "Demo"
62 + ReferencedContainer = "container:Demo.xcodeproj">
63 + </BuildableReference>
64 + </MacroExpansion>
65 + </TestAction>
66 + <LaunchAction
67 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
68 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
69 + launchStyle = "0"
70 + useCustomWorkingDirectory = "NO"
71 + buildConfiguration = "Debug"
72 + ignoresPersistentStateOnLaunch = "NO"
73 + debugDocumentVersioning = "YES"
74 + allowLocationSimulation = "YES">
75 + <BuildableProductRunnable
76 + runnableDebuggingMode = "0">
77 + <BuildableReference
78 + BuildableIdentifier = "primary"
79 + BlueprintIdentifier = "BB5F3C871C1811BC00DA339D"
80 + BuildableName = "Demo.app"
81 + BlueprintName = "Demo"
82 + ReferencedContainer = "container:Demo.xcodeproj">
83 + </BuildableReference>
84 + </BuildableProductRunnable>
85 + <AdditionalOptions>
86 + </AdditionalOptions>
87 + </LaunchAction>
88 + <ProfileAction
89 + shouldUseLaunchSchemeArgsEnv = "YES"
90 + savedToolIdentifier = ""
91 + useCustomWorkingDirectory = "NO"
92 + buildConfiguration = "Release"
93 + debugDocumentVersioning = "YES">
94 + <BuildableProductRunnable
95 + runnableDebuggingMode = "0">
96 + <BuildableReference
97 + BuildableIdentifier = "primary"
98 + BlueprintIdentifier = "BB5F3C871C1811BC00DA339D"
99 + BuildableName = "Demo.app"
100 + BlueprintName = "Demo"
101 + ReferencedContainer = "container:Demo.xcodeproj">
102 + </BuildableReference>
103 + </BuildableProductRunnable>
104 + </ProfileAction>
105 + <AnalyzeAction
106 + buildConfiguration = "Debug">
107 + </AnalyzeAction>
108 + <ArchiveAction
109 + buildConfiguration = "Release"
110 + revealArchiveInOrganizer = "YES">
111 + </ArchiveAction>
112 +</Scheme>
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 +<plist version="1.0">
4 +<dict>
5 + <key>SchemeUserState</key>
6 + <dict>
7 + <key>Demo.xcscheme</key>
8 + <dict>
9 + <key>orderHint</key>
10 + <integer>0</integer>
11 + </dict>
12 + </dict>
13 + <key>SuppressBuildableAutocreation</key>
14 + <dict>
15 + <key>BB5F3C871C1811BC00DA339D</key>
16 + <dict>
17 + <key>primary</key>
18 + <true/>
19 + </dict>
20 + <key>BB5F3CA01C1811BC00DA339D</key>
21 + <dict>
22 + <key>primary</key>
23 + <true/>
24 + </dict>
25 + </dict>
26 +</dict>
27 +</plist>
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<Bucket
3 + type = "1"
4 + version = "2.0">
5 + <Breakpoints>
6 + <BreakpointProxy
7 + BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
8 + <BreakpointContent
9 + shouldBeEnabled = "No"
10 + ignoreCount = "0"
11 + continueAfterRunningActions = "No"
12 + filePath = "Demo/SDKInterface.h"
13 + timestampString = "474775745.083759"
14 + startingColumnNumber = "9223372036854775807"
15 + endingColumnNumber = "9223372036854775807"
16 + startingLineNumber = "9"
17 + endingLineNumber = "9"
18 + landmarkName = "@interface SDKInterface"
19 + landmarkType = "2">
20 + </BreakpointContent>
21 + </BreakpointProxy>
22 + </Breakpoints>
23 +</Bucket>
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<Scheme
3 + LastUpgradeVersion = "0700"
4 + version = "1.3">
5 + <BuildAction
6 + parallelizeBuildables = "YES"
7 + buildImplicitDependencies = "YES">
8 + <BuildActionEntries>
9 + <BuildActionEntry
10 + buildForTesting = "YES"
11 + buildForRunning = "YES"
12 + buildForProfiling = "YES"
13 + buildForArchiving = "YES"
14 + buildForAnalyzing = "YES">
15 + <BuildableReference
16 + BuildableIdentifier = "primary"
17 + BlueprintIdentifier = "BB5F3C871C1811BC00DA339D"
18 + BuildableName = "&#x63a5;&#x5165;DEMO.app"
19 + BlueprintName = "Demo"
20 + ReferencedContainer = "container:Demo.xcodeproj">
21 + </BuildableReference>
22 + </BuildActionEntry>
23 + </BuildActionEntries>
24 + </BuildAction>
25 + <TestAction
26 + buildConfiguration = "Debug"
27 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29 + shouldUseLaunchSchemeArgsEnv = "YES">
30 + <MacroExpansion>
31 + <BuildableReference
32 + BuildableIdentifier = "primary"
33 + BlueprintIdentifier = "BB5F3C871C1811BC00DA339D"
34 + BuildableName = "&#x63a5;&#x5165;DEMO.app"
35 + BlueprintName = "Demo"
36 + ReferencedContainer = "container:Demo.xcodeproj">
37 + </BuildableReference>
38 + </MacroExpansion>
39 + <Testables>
40 + <TestableReference
41 + skipped = "NO">
42 + <BuildableReference
43 + BuildableIdentifier = "primary"
44 + BlueprintIdentifier = "BB5F3CA01C1811BC00DA339D"
45 + BuildableName = "DemoTests.xctest"
46 + BlueprintName = "DemoTests"
47 + ReferencedContainer = "container:Demo.xcodeproj">
48 + </BuildableReference>
49 + </TestableReference>
50 + </Testables>
51 + </TestAction>
52 + <LaunchAction
53 + buildConfiguration = "Debug"
54 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
55 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
56 + launchStyle = "0"
57 + useCustomWorkingDirectory = "NO"
58 + ignoresPersistentStateOnLaunch = "NO"
59 + debugDocumentVersioning = "YES"
60 + debugServiceExtension = "internal"
61 + allowLocationSimulation = "YES">
62 + <BuildableProductRunnable
63 + runnableDebuggingMode = "0">
64 + <BuildableReference
65 + BuildableIdentifier = "primary"
66 + BlueprintIdentifier = "BB5F3C871C1811BC00DA339D"
67 + BuildableName = "&#x63a5;&#x5165;DEMO.app"
68 + BlueprintName = "Demo"
69 + ReferencedContainer = "container:Demo.xcodeproj">
70 + </BuildableReference>
71 + </BuildableProductRunnable>
72 + <EnvironmentVariables>
73 + <EnvironmentVariable
74 + key = "OS_ACTIVITY_MODE"
75 + value = "disable"
76 + isEnabled = "NO">
77 + </EnvironmentVariable>
78 + </EnvironmentVariables>
79 + </LaunchAction>
80 + <ProfileAction
81 + buildConfiguration = "Release"
82 + shouldUseLaunchSchemeArgsEnv = "YES"
83 + savedToolIdentifier = ""
84 + useCustomWorkingDirectory = "NO"
85 + debugDocumentVersioning = "YES">
86 + <BuildableProductRunnable
87 + runnableDebuggingMode = "0">
88 + <BuildableReference
89 + BuildableIdentifier = "primary"
90 + BlueprintIdentifier = "BB5F3C871C1811BC00DA339D"
91 + BuildableName = "&#x63a5;&#x5165;DEMO.app"
92 + BlueprintName = "Demo"
93 + ReferencedContainer = "container:Demo.xcodeproj">
94 + </BuildableReference>
95 + </BuildableProductRunnable>
96 + </ProfileAction>
97 + <AnalyzeAction
98 + buildConfiguration = "Debug">
99 + </AnalyzeAction>
100 + <ArchiveAction
101 + buildConfiguration = "Release"
102 + revealArchiveInOrganizer = "YES">
103 + </ArchiveAction>
104 +</Scheme>
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 +<plist version="1.0">
4 +<dict>
5 + <key>SchemeUserState</key>
6 + <dict>
7 + <key>Demo.xcscheme</key>
8 + <dict>
9 + <key>orderHint</key>
10 + <integer>0</integer>
11 + </dict>
12 + </dict>
13 + <key>SuppressBuildableAutocreation</key>
14 + <dict>
15 + <key>BB5F3C871C1811BC00DA339D</key>
16 + <dict>
17 + <key>primary</key>
18 + <true/>
19 + </dict>
20 + <key>BB5F3CA01C1811BC00DA339D</key>
21 + <dict>
22 + <key>primary</key>
23 + <true/>
24 + </dict>
25 + </dict>
26 +</dict>
27 +</plist>
No preview for this file type
1 +//
2 +// AppDelegate.h
3 +// publiDemo
4 +//
5 +// Created by winFan on 11/30/15.
6 +// Copyright (c) 2015 winFan. All rights reserved.
7 +//
8 +
9 +#import <UIKit/UIKit.h>
10 +
11 +@interface AppDelegate : UIResponder <UIApplicationDelegate>
12 +
13 +@property (strong, nonatomic) UIWindow *window;
14 +
15 +
16 +@end
17 +
1 +//
2 +// AppDelegate.m
3 +// publiDemo
4 +//
5 +// Created by winFan on 11/30/15.
6 +// Copyright (c) 2015 winFan. All rights reserved.
7 +//
8 +
9 +#import "AppDelegate.h"
10 +#import "ViewController.h"
11 +#import <HaiBaoJuheSDK/HaiBaoJuheSDK2.h>
12 +@interface AppDelegate ()
13 +
14 +@end
15 +
16 +@implementation AppDelegate
17 +
18 +
19 +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
20 + // Override point for customization after application launch.
21 + NSLog(@"didFinishLaunchingWithOptions");
22 +
23 +
24 + [[HaiBaoJuheSDK shareSDK]application:application didFinishLaunchingWithOptions:launchOptions];
25 + return YES;
26 +}
27 +
28 +- (void)applicationWillResignActive:(UIApplication *)application {
29 + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
30 + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
31 + [[HaiBaoJuheSDK shareSDK]applicationWillResignActive:application];
32 +}
33 +
34 +- (void)applicationDidEnterBackground:(UIApplication *)application {
35 + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
36 + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
37 + [[HaiBaoJuheSDK shareSDK]applicationDidEnterBackground:application];
38 +}
39 +
40 +
41 +
42 +- (void)applicationDidBecomeActive:(UIApplication *)application {
43 + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
44 + [[HaiBaoJuheSDK shareSDK]applicationDidBecomeActive:application];
45 +}
46 +
47 +- (void)applicationWillTerminate:(UIApplication *)application {
48 + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
49 +}
50 +
51 +- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url{
52 + NSLog(@"hanldeOpenURL%@",url.path );
53 + [[HaiBaoJuheSDK shareSDK] handleOpenurl:url];
54 + return true;
55 +}
56 +
57 +-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options
58 +{
59 + [[HaiBaoJuheSDK shareSDK]application:app openURL:url options:options];
60 + return YES;
61 +}
62 +
63 +-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
64 +{
65 + [[HaiBaoJuheSDK shareSDK] application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
66 + return YES;
67 +}
68 +
69 +- (void)applicationWillEnterForeground:(UIApplication *)application {
70 + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
71 + [[HaiBaoJuheSDK shareSDK] applicationWillEnterForeground:application];
72 +}
73 +
74 +
75 +@end
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
3 + <device id="retina4_7" orientation="portrait">
4 + <adaptation id="fullscreen"/>
5 + </device>
6 + <dependencies>
7 + <deployment identifier="iOS"/>
8 + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
9 + <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
10 + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
11 + </dependencies>
12 + <objects>
13 + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
14 + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
15 + <view contentMode="scaleToFill" id="iN0-l3-epB">
16 + <rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
17 + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18 + <subviews>
19 + <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015 winFan. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
20 + <rect key="frame" x="20" y="439" width="441" height="21"/>
21 + <fontDescription key="fontDescription" type="system" pointSize="17"/>
22 + <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
23 + <nil key="highlightedColor"/>
24 + </label>
25 + <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Demo" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
26 + <rect key="frame" x="20" y="140" width="441" height="43"/>
27 + <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
28 + <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
29 + <nil key="highlightedColor"/>
30 + </label>
31 + </subviews>
32 + <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
33 + <constraints>
34 + <constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
35 + <constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
36 + <constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
37 + <constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
38 + <constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
39 + <constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
40 + </constraints>
41 + <nil key="simulatedStatusBarMetrics"/>
42 + <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
43 + <point key="canvasLocation" x="548" y="455"/>
44 + </view>
45 + </objects>
46 +</document>
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="vXZ-lx-hvc">
3 + <device id="retina4_7" orientation="portrait">
4 + <adaptation id="fullscreen"/>
5 + </device>
6 + <dependencies>
7 + <deployment identifier="iOS"/>
8 + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
9 + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10 + </dependencies>
11 + <scenes>
12 + <!--Main View Controller-->
13 + <scene sceneID="ufC-wZ-h7g">
14 + <objects>
15 + <viewController id="vXZ-lx-hvc" customClass="MainViewController" sceneMemberID="viewController">
16 + <layoutGuides>
17 + <viewControllerLayoutGuide type="top" id="jyV-Pf-zRb"/>
18 + <viewControllerLayoutGuide type="bottom" id="2fi-mo-0CV"/>
19 + </layoutGuides>
20 + <view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
21 + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
22 + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
23 + <subviews>
24 + <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="GQW-et-jRb">
25 + <rect key="frame" x="44" y="85" width="208" height="30"/>
26 + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
27 + <state key="normal" title="初始化"/>
28 + <connections>
29 + <action selector="actionInit:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="Srh-bu-gYD"/>
30 + </connections>
31 + </button>
32 + <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="s0O-FE-ge8">
33 + <rect key="frame" x="61" y="123" width="175" height="30"/>
34 + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
35 + <state key="normal" title="登录"/>
36 + <connections>
37 + <action selector="actionLogin:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="381-gB-ImA"/>
38 + </connections>
39 + </button>
40 + <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="JQY-uO-q36">
41 + <rect key="frame" x="53" y="166" width="191" height="30"/>
42 + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
43 + <state key="normal" title="充值"/>
44 + <connections>
45 + <action selector="actionPay:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="bvf-M4-rqy"/>
46 + </connections>
47 + </button>
48 + <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5na-1c-IlO">
49 + <rect key="frame" x="357" y="85" width="100" height="30"/>
50 + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
51 + <state key="normal" title="数据"/>
52 + <connections>
53 + <action selector="actionSubmitRoleData:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="aNf-Iw-unv"/>
54 + </connections>
55 + </button>
56 + <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="jcX-L1-JB6">
57 + <rect key="frame" x="377" y="166" width="60" height="30"/>
58 + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
59 + <state key="normal" title="切换账号"/>
60 + <connections>
61 + <action selector="actionSwitchAccount:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="miU-Hm-8cm"/>
62 + </connections>
63 + </button>
64 + <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Q9b-py-Nk0">
65 + <rect key="frame" x="340" y="123" width="134" height="30"/>
66 + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
67 + <state key="normal" title="注销"/>
68 + <connections>
69 + <action selector="actionLogout:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="t6e-7P-tJU"/>
70 + </connections>
71 + </button>
72 + </subviews>
73 + <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
74 + </view>
75 + </viewController>
76 + <placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
77 + </objects>
78 + <point key="canvasLocation" x="445" y="282"/>
79 + </scene>
80 + </scenes>
81 +</document>
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface BluffHatredControlHerbal : NSObject
5 +
6 +
7 +- (void)initHatredInstance;
8 +
9 +- (void) HatredStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +extern NSString * const CasperHatredExitNotificationPanties;
4 +extern NSString * const YieldHatredLoginNotificationClouds;
5 +extern NSString * const TenantHatredErrorNotificationPivot;
6 +
7 +
8 +@interface BluffHatredHuiTiaoNotificationHerbal : NSObject
9 +
10 +@end
1 +#import <UIKit/UIKit.h>
2 +#import "StoreKit/StoreKit.h"
3 +
4 +@interface CasperHatredAllManagerPanties : NSObject
5 +{
6 + NSString* HatredAPPID_;
7 + NSString* HatredAPPKEY_;
8 +
9 + NSString* HatredInviterCode_;
10 +}
11 +
12 +@property(strong) NSMutableArray* HatredList;
13 +@property bool HatredGeiWoHuaQianBa;
14 +
15 ++ (CasperHatredAllManagerPanties *)WebcastHatredInstanceCollars;
16 +
17 +- (void)LocusHatredChuShiHuaPhotos;
18 +
19 +- (void)CoolpixHatredDengLuCharged:(NSString *)HatredAPPID : (NSString *)HatredAPPKEY : (UIViewController *)controller;
20 +
21 +- (void)MakingHatredYangShiJukebox:(NSString*)HatredLeiXing;
22 +
23 +- (void)MakingHatredUrlJukebox:(NSString*)HatredUrl;
24 +
25 +- (void)HatredQuery: (NSString *)HatredFuWuQiID : (NSString *)HatredNickName : (NSNumber *)HatredAmount : (NSString *)HatredCallBack : (UIViewController *)controller : (NSString *)HatredServerName;
26 +
27 +- (void)HatredQueryOperation:(UIViewController*)controll HatredHuoWuID:(NSString*)products HatredJiaGe:(NSString*)amount HatredHuoWuMing:(NSString*)productName HatredDingDanHao:(NSString*) DingDanHao;
28 +
29 +
30 +
31 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +void DGLog(NSString *fmt, ...);
4 +
5 +typedef NS_ENUM(NSInteger, DGLoggerLevel)
6 +{
7 + ELogVerbose = 1,
8 + ELogDebug,
9 + ELogInfo,
10 + ELogWarn,
11 + ELogError
12 +};
13 +
14 +@interface CasperHatredHaiBaoJuheDGLoggerPanties : NSObject
15 +
16 ++ (void)showLog:(NSString *)fmt,...;
17 +
18 ++ (void)showLog:(DGLoggerLevel)level log:(NSString *)fmt,...;
19 +
20 ++ (void)isShowLog:(BOOL)flag;
21 +
22 +@end
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface CoolpixHatredControlCharged : NSObject
5 +
6 +
7 +- (void)initHatredInstance;
8 +
9 +- (void) HatredStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface CroydonHatredControlKnock : NSObject
5 +
6 +
7 +- (void)initHatredInstance;
8 +
9 +- (void) HatredStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +#import <Foundation/Foundation.h>
2 +#import <UIKit/UIKit.h>
3 +
4 +@interface FalconHaiBaoJuheUtilsTelstra : NSObject
5 +
6 ++(NSString *)md5:(NSString *)str;
7 ++ (NSDictionary *) HatredHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
8 ++(NSString *)createGzyazfOrderUrl;
9 +//*充值回调地址
10 ++(NSString *)YieldcreateGzyazfUrlClouds;
11 +
12 ++(UIActivityIndicatorView *)showLoadingDialog:(UIView*)parentView;
13 ++(void)dismissLoadingDialog:(UIActivityIndicatorView*)indicatorView;
14 +
15 +@end
1 +#import <UIKit/UIKit.h>
2 +#import "LocusHatredInformationPhotos.h"
3 +#import <JavaScriptCore/JavaScriptCore.h>
4 +#import <WebKit/WebKit.h>
5 +
6 +@interface FalconHatredMainTelstra : UIViewController<WKNavigationDelegate,WKScriptMessageHandler>
7 +{
8 + WKWebView *webHatredView_;
9 + UIActivityIndicatorView *activityIndicator;
10 +}
11 +
12 +@property(assign) BOOL HatredYouYuanJiao;
13 +
14 +- (void)HatredSettingHatredView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
15 +- (void)HatredInitWebView;
16 +- (void)loadWebPageWithString:(NSString *)url;
17 +- (void)loadWebPageWithJs:(NSString *)content;
18 +- (void)postNotification:(NSString *)name : (NSString *)code;
19 +- (void)receiveIap:(NSNotification *)notification;
20 +
21 +@end
1 +#import <Foundation/Foundation.h>
2 +#import "GTMDefines.h"
3 +@interface GTMBase64 : NSObject
4 +
5 ++(NSData *)encodeData:(NSData *)data;
6 +
7 ++(NSData *)decodeData:(NSData *)data;
8 +
9 ++(NSData *)encodeBytes:(const void *)bytes length:(NSUInteger)length;
10 +
11 ++(NSData *)decodeBytes:(const void *)bytes length:(NSUInteger)length;
12 +
13 ++(NSString *)stringByEncodingData:(NSData *)data;
14 +
15 ++(NSString *)stringByEncodingBytes:(const void *)bytes length:(NSUInteger)length;
16 +
17 ++(NSData *)decodeString:(NSString *)string;
18 +
19 ++(NSData *)webSafeEncodeData:(NSData *)data
20 + padded:(BOOL)padded;
21 +
22 +
23 ++(NSData *)webSafeDecodeData:(NSData *)data;
24 +
25 +
26 ++(NSData *)webSafeEncodeBytes:(const void *)bytes
27 + length:(NSUInteger)length
28 + padded:(BOOL)padded;
29 +
30 +
31 ++(NSData *)webSafeDecodeBytes:(const void *)bytes length:(NSUInteger)length;
32 +
33 ++(NSString *)stringByWebSafeEncodingData:(NSData *)data
34 + padded:(BOOL)padded;
35 +
36 +
37 ++(NSString *)stringByWebSafeEncodingBytes:(const void *)bytes
38 + length:(NSUInteger)length
39 + padded:(BOOL)padded;
40 +
41 +
42 ++(NSData *)webSafeDecodeString:(NSString *)string;
43 +
44 +@end
1 +#include <AvailabilityMacros.h>
2 +#include <TargetConditionals.h>
3 +
4 +#if TARGET_OS_IPHONE
5 +#include <Availability.h>
6 +#endif // TARGET_OS_IPHONE
7 +
8 +// Not all MAC_OS_X_VERSION_10_X macros defined in past SDKs
9 +#ifndef MAC_OS_X_VERSION_10_5
10 +#define MAC_OS_X_VERSION_10_5 1050
11 +#endif
12 +#ifndef MAC_OS_X_VERSION_10_6
13 +#define MAC_OS_X_VERSION_10_6 1060
14 +#endif
15 +
16 +// Not all __IPHONE_X macros defined in past SDKs
17 +#ifndef __IPHONE_2_1
18 +#define __IPHONE_2_1 20100
19 +#endif
20 +#ifndef __IPHONE_2_2
21 +#define __IPHONE_2_2 20200
22 +#endif
23 +#ifndef __IPHONE_3_0
24 +#define __IPHONE_3_0 30000
25 +#endif
26 +#ifndef __IPHONE_3_1
27 +#define __IPHONE_3_1 30100
28 +#endif
29 +#ifndef __IPHONE_3_2
30 +#define __IPHONE_3_2 30200
31 +#endif
32 +#ifndef __IPHONE_4_0
33 +#define __IPHONE_4_0 40000
34 +#endif
35 +
36 +// ----------------------------------------------------------------------------
37 +// CPP symbols that can be overridden in a prefix to control how the toolbox
38 +// is compiled.
39 +// ----------------------------------------------------------------------------
40 +
41 +
42 +// By setting the GTM_CONTAINERS_VALIDATION_FAILED_LOG and
43 +// GTM_CONTAINERS_VALIDATION_FAILED_ASSERT macros you can control what happens
44 +// when a validation fails. If you implement your own validators, you may want
45 +// to control their internals using the same macros for consistency.
46 +#ifndef GTM_CONTAINERS_VALIDATION_FAILED_ASSERT
47 +#define GTM_CONTAINERS_VALIDATION_FAILED_ASSERT 0
48 +#endif
49 +
50 +// Give ourselves a consistent way to do inlines. Apple's macros even use
51 +// a few different actual definitions, so we're based off of the foundation
52 +// one.
53 +#if !defined(GTM_INLINE)
54 +#if defined (__GNUC__) && (__GNUC__ == 4)
55 +#define GTM_INLINE static __inline__ __attribute__((always_inline))
56 +#else
57 +#define GTM_INLINE static __inline__
58 +#endif
59 +#endif
60 +
61 +// Give ourselves a consistent way of doing externs that links up nicely
62 +// when mixing objc and objc++
63 +#if !defined (GTM_EXTERN)
64 +#if defined __cplusplus
65 +#define GTM_EXTERN extern "C"
66 +#define GTM_EXTERN_C_BEGIN extern "C" {
67 +#define GTM_EXTERN_C_END }
68 +#else
69 +#define GTM_EXTERN extern
70 +#define GTM_EXTERN_C_BEGIN
71 +#define GTM_EXTERN_C_END
72 +#endif
73 +#endif
74 +
75 +// Give ourselves a consistent way of exporting things if we have visibility
76 +// set to hidden.
77 +#if !defined (GTM_EXPORT)
78 +#define GTM_EXPORT __attribute__((visibility("default")))
79 +#endif
80 +
81 +// Give ourselves a consistent way of declaring something as unused. This
82 +// doesn't use __unused because that is only supported in gcc 4.2 and greater.
83 +#if !defined (GTM_UNUSED)
84 +#define GTM_UNUSED(x) ((void)(x))
85 +#endif
86 +
87 +// _GTMDevLog & _GTMDevAssert
88 +//
89 +// _GTMDevLog & _GTMDevAssert are meant to be a very lightweight shell for
90 +// developer level errors. This implementation simply macros to NSLog/NSAssert.
91 +// It is not intended to be a general logging/reporting system.
92 +//
93 +// Please see http://code.google.com/p/google-toolbox-for-mac/wiki/DevLogNAssert
94 +// for a little more background on the usage of these macros.
95 +//
96 +// _GTMDevLog log some error/problem in debug builds
97 +// _GTMDevAssert assert if conditon isn't met w/in a method/function
98 +// in all builds.
99 +//
100 +// To replace this system, just provide different macro definitions in your
101 +// prefix header. Remember, any implementation you provide *must* be thread
102 +// safe since this could be called by anything in what ever situtation it has
103 +// been placed in.
104 +//
105 +
106 +// We only define the simple macros if nothing else has defined this.
107 +#ifndef _GTMDevLog
108 +
109 +#ifdef DEBUG
110 +#define _GTMDevLog(...) NSLog(__VA_ARGS__)
111 +#else
112 +#define _GTMDevLog(...) do { } while (0)
113 +#endif
114 +
115 +#endif // _GTMDevLog
116 +
117 +#ifndef _GTMDevAssert
118 +// we directly invoke the NSAssert handler so we can pass on the varargs
119 +// (NSAssert doesn't have a macro we can use that takes varargs)
120 +#if !defined(NS_BLOCK_ASSERTIONS)
121 +#define _GTMDevAssert(condition, ...) \
122 +do { \
123 +if (!(condition)) { \
124 +[[NSAssertionHandler currentHandler] \
125 +handleFailureInFunction:[NSString stringWithUTF8String:__PRETTY_FUNCTION__] \
126 +file:[NSString stringWithUTF8String:__FILE__] \
127 +lineNumber:__LINE__ \
128 +description:__VA_ARGS__]; \
129 +} \
130 +} while(0)
131 +#else // !defined(NS_BLOCK_ASSERTIONS)
132 +#define _GTMDevAssert(condition, ...) do { } while (0)
133 +#endif // !defined(NS_BLOCK_ASSERTIONS)
134 +
135 +#endif // _GTMDevAssert
136 +
137 +// _GTMCompileAssert
138 +// _GTMCompileAssert is an assert that is meant to fire at compile time if you
139 +// want to check things at compile instead of runtime. For example if you
140 +// want to check that a wchar is 4 bytes instead of 2 you would use
141 +// _GTMCompileAssert(sizeof(wchar_t) == 4, wchar_t_is_4_bytes_on_OS_X)
142 +// Note that the second "arg" is not in quotes, and must be a valid processor
143 +// symbol in it's own right (no spaces, punctuation etc).
144 +
145 +// Wrapping this in an #ifndef allows external groups to define their own
146 +// compile time assert scheme.
147 +#ifndef _GTMCompileAssert
148 +// We got this technique from here:
149 +// http://unixjunkie.blogspot.com/2007/10/better-compile-time-asserts_29.html
150 +
151 +#define _GTMCompileAssertSymbolInner(line, msg) _GTMCOMPILEASSERT ## line ## __ ## msg
152 +#define _GTMCompileAssertSymbol(line, msg) _GTMCompileAssertSymbolInner(line, msg)
153 +#define _GTMCompileAssert(test, msg) \
154 +typedef char _GTMCompileAssertSymbol(__LINE__, msg) [ ((test) ? 1 : -1) ]
155 +#endif // _GTMCompileAssert
156 +
157 +// ----------------------------------------------------------------------------
158 +// CPP symbols defined based on the project settings so the GTM code has
159 +// simple things to test against w/o scattering the knowledge of project
160 +// setting through all the code.
161 +// ----------------------------------------------------------------------------
162 +
163 +// Provide a single constant CPP symbol that all of GTM uses for ifdefing
164 +// iPhone code.
165 +#if TARGET_OS_IPHONE // iPhone SDK
166 +// For iPhone specific stuff
167 +#define GTM_IPHONE_SDK 1
168 +#if TARGET_IPHONE_SIMULATOR
169 +#define GTM_IPHONE_SIMULATOR 1
170 +#else
171 +#define GTM_IPHONE_DEVICE 1
172 +#endif // TARGET_IPHONE_SIMULATOR
173 +#else
174 +// For MacOS specific stuff
175 +#define GTM_MACOS_SDK 1
176 +#endif
177 +
178 +// Some of our own availability macros
179 +#if GTM_MACOS_SDK
180 +#define GTM_AVAILABLE_ONLY_ON_IPHONE UNAVAILABLE_ATTRIBUTE
181 +#define GTM_AVAILABLE_ONLY_ON_MACOS
182 +#else
183 +#define GTM_AVAILABLE_ONLY_ON_IPHONE
184 +#define GTM_AVAILABLE_ONLY_ON_MACOS UNAVAILABLE_ATTRIBUTE
185 +#endif
186 +
187 +// Provide a symbol to include/exclude extra code for GC support. (This mainly
188 +// just controls the inclusion of finalize methods).
189 +#ifndef GTM_SUPPORT_GC
190 +#if GTM_IPHONE_SDK
191 +// iPhone never needs GC
192 +#define GTM_SUPPORT_GC 0
193 +#else
194 +// We can't find a symbol to tell if GC is supported/required, so best we
195 +// do on Mac targets is include it if we're on 10.5 or later.
196 +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
197 +#define GTM_SUPPORT_GC 0
198 +#else
199 +#define GTM_SUPPORT_GC 1
200 +#endif
201 +#endif
202 +#endif
203 +
204 +// To simplify support for 64bit (and Leopard in general), we provide the type
205 +// defines for non Leopard SDKs
206 +#if !(MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
207 +// NSInteger/NSUInteger and Max/Mins
208 +#ifndef NSINTEGER_DEFINED
209 +#if __LP64__ || NS_BUILD_32_LIKE_64
210 +typedef long NSInteger;
211 +typedef unsigned long NSUInteger;
212 +#else
213 +typedef int NSInteger;
214 +typedef unsigned int NSUInteger;
215 +#endif
216 +#define NSIntegerMax LONG_MAX
217 +#define NSIntegerMin LONG_MIN
218 +#define NSUIntegerMax ULONG_MAX
219 +#define NSINTEGER_DEFINED 1
220 +#endif // NSINTEGER_DEFINED
221 +// CGFloat
222 +#ifndef CGFLOAT_DEFINED
223 +#if defined(__LP64__) && __LP64__
224 +// This really is an untested path (64bit on Tiger?)
225 +typedef double CGFloat;
226 +#define CGFLOAT_MIN DBL_MIN
227 +#define CGFLOAT_MAX DBL_MAX
228 +#define CGFLOAT_IS_DOUBLE 1
229 +#else /* !defined(__LP64__) || !__LP64__ */
230 +typedef float CGFloat;
231 +#define CGFLOAT_MIN FLT_MIN
232 +#define CGFLOAT_MAX FLT_MAX
233 +#define CGFLOAT_IS_DOUBLE 0
234 +#endif /* !defined(__LP64__) || !__LP64__ */
235 +#define CGFLOAT_DEFINED 1
236 +#endif // CGFLOAT_DEFINED
237 +#endif // MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
238 +
239 +// Some support for advanced clang static analysis functionality
240 +// See http://clang-analyzer.llvm.org/annotations.html
241 +#ifndef __has_feature // Optional.
242 +#define __has_feature(x) 0 // Compatibility with non-clang compilers.
243 +#endif
244 +
245 +#ifndef NS_RETURNS_RETAINED
246 +#if __has_feature(attribute_ns_returns_retained)
247 +#define NS_RETURNS_RETAINED __attribute__((ns_returns_retained))
248 +#else
249 +#define NS_RETURNS_RETAINED
250 +#endif
251 +#endif
252 +
253 +#ifndef NS_RETURNS_NOT_RETAINED
254 +#if __has_feature(attribute_ns_returns_not_retained)
255 +#define NS_RETURNS_NOT_RETAINED __attribute__((ns_returns_not_retained))
256 +#else
257 +#define NS_RETURNS_NOT_RETAINED
258 +#endif
259 +#endif
260 +
261 +#ifndef CF_RETURNS_RETAINED
262 +#if __has_feature(attribute_cf_returns_retained)
263 +#define CF_RETURNS_RETAINED __attribute__((cf_returns_retained))
264 +#else
265 +#define CF_RETURNS_RETAINED
266 +#endif
267 +#endif
268 +
269 +#ifndef CF_RETURNS_NOT_RETAINED
270 +#if __has_feature(attribute_cf_returns_not_retained)
271 +#define CF_RETURNS_NOT_RETAINED __attribute__((cf_returns_not_retained))
272 +#else
273 +#define CF_RETURNS_NOT_RETAINED
274 +#endif
275 +#endif
276 +
277 +// Defined on 10.6 and above.
278 +#ifndef NS_FORMAT_ARGUMENT
279 +#define NS_FORMAT_ARGUMENT(A)
280 +#endif
281 +
282 +// Defined on 10.6 and above.
283 +#ifndef NS_FORMAT_FUNCTION
284 +#define NS_FORMAT_FUNCTION(F,A)
285 +#endif
286 +
287 +// Defined on 10.6 and above.
288 +#ifndef CF_FORMAT_ARGUMENT
289 +#define CF_FORMAT_ARGUMENT(A)
290 +#endif
291 +
292 +// Defined on 10.6 and above.
293 +#ifndef CF_FORMAT_FUNCTION
294 +#define CF_FORMAT_FUNCTION(F,A)
295 +#endif
296 +
297 +#ifndef GTM_NONNULL
298 +#define GTM_NONNULL(x) __attribute__((nonnull(x)))
299 +#endif
300 +
301 +#ifdef __OBJC__
302 +
303 +// Declared here so that it can easily be used for logging tracking if
304 +// necessary. See GTMUnitTestDevLog.h for details.
305 +@class NSString;
306 +GTM_EXTERN void _GTMUnitTestDevLog(NSString *format, ...);
307 +
308 +// Macro to allow you to create NSStrings out of other macros.
309 +// #define FOO foo
310 +// NSString *fooString = GTM_NSSTRINGIFY(FOO);
311 +#if !defined (GTM_NSSTRINGIFY)
312 +#define GTM_NSSTRINGIFY_INNER(x) @#x
313 +#define GTM_NSSTRINGIFY(x) GTM_NSSTRINGIFY_INNER(x)
314 +#endif
315 +
316 +// Macro to allow fast enumeration when building for 10.5 or later, and
317 +// reliance on NSEnumerator for 10.4. Remember, NSDictionary w/ FastEnumeration
318 +// does keys, so pick the right thing, nothing is done on the FastEnumeration
319 +// side to be sure you're getting what you wanted.
320 +#ifndef GTM_FOREACH_OBJECT
321 +#if TARGET_OS_IPHONE || !(MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5)
322 +#define GTM_FOREACH_ENUMEREE(element, enumeration) \
323 +for (element in enumeration)
324 +#define GTM_FOREACH_OBJECT(element, collection) \
325 +for (element in collection)
326 +#define GTM_FOREACH_KEY(element, collection) \
327 +for (element in collection)
328 +#else
329 +#define GTM_FOREACH_ENUMEREE(element, enumeration) \
330 +for (NSEnumerator *_ ## element ## _enum = enumeration; \
331 +(element = [_ ## element ## _enum nextObject]) != nil; )
332 +#define GTM_FOREACH_OBJECT(element, collection) \
333 +GTM_FOREACH_ENUMEREE(element, [collection objectEnumerator])
334 +#define GTM_FOREACH_KEY(element, collection) \
335 +GTM_FOREACH_ENUMEREE(element, [collection keyEnumerator])
336 +#endif
337 +#endif
338 +
339 +// ============================================================================
340 +
341 +// To simplify support for both Leopard and Snow Leopard we declare
342 +// the Snow Leopard protocols that we need here.
343 +#if !defined(GTM_10_6_PROTOCOLS_DEFINED) && !(MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)
344 +#define GTM_10_6_PROTOCOLS_DEFINED 1
345 +@protocol NSConnectionDelegate
346 +@end
347 +@protocol NSAnimationDelegate
348 +@end
349 +@protocol NSImageDelegate
350 +@end
351 +@protocol NSTabViewDelegate
352 +@end
353 +#endif // !defined(GTM_10_6_PROTOCOLS_DEFINED) && !(MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)
354 +
355 +// GTM_SEL_STRING is for specifying selector (usually property) names to KVC
356 +// or KVO methods.
357 +// In debug it will generate warnings for undeclared selectors if
358 +// -Wunknown-selector is turned on.
359 +// In release it will have no runtime overhead.
360 +#ifndef GTM_SEL_STRING
361 +#ifdef DEBUG
362 +#define GTM_SEL_STRING(selName) NSStringFromSelector(@selector(selName))
363 +#else
364 +#define GTM_SEL_STRING(selName) @#selName
365 +#endif // DEBUG
366 +#endif // GTM_SEL_STRING
367 +
368 +#endif // __OBJC__
1 +#import "TenantHatredHaiBaoJuheBaseModelPivot.h"
2 +@interface HaiBaoJuheCreateOrderInfo : TenantHatredHaiBaoJuheBaseModelPivot
3 +
4 +@property(nonatomic,strong)NSString *serverId;//服务器ID
5 +@property(nonatomic, strong)NSString *serverName;//服务器名称
6 +@property(nonatomic, strong)NSString *playerId;//玩家ID
7 +@property(nonatomic, strong)NSString *playerName;//玩家名称
8 +@property(nonatomic, strong)NSString *playerLevel;//玩家等级
9 +@property(nonatomic, strong)NSString *postAmount;//金额
10 +@property(nonatomic, strong)NSString *productId;//产品ID
11 +@property(nonatomic, strong)NSString *productName;//产品名称
12 +@property(nonatomic, strong)NSString *productDesc;//产品描述
13 +@property(nonatomic, strong)NSString *custom;//透传参数
14 +@property(nonatomic, strong)NSString *exchange;//兑换比例
15 +@property(nonatomic, strong)NSString *otherInfo;//扩展参数
16 +@property(nonatomic, strong)NSString *userId;//用户ID
17 +@property(nonatomic, strong)NSString *timestamp;//时间戳
18 +
19 +- (NSString *) HatredHaiBaoJuheGetTsign ;
20 +- (NSString *) HatredHaiBaoJuheGetTimestamp ;
21 +
22 +@end
1 +#import "TenantHatredHaiBaoJuheBaseModelPivot.h"
2 +@interface HaiBaoJuheLoginInfo : TenantHatredHaiBaoJuheBaseModelPivot
3 +
4 +@property(nonatomic,strong)NSString *timestamp;
5 +@property(nonatomic, strong)NSString *sign;
6 +@property(nonatomic, strong)NSString *other;
7 +@property(nonatomic, strong)NSString *openId;
8 +@property(nonatomic, strong)NSString *userType;
9 +
10 +
11 +@end
1 +//
2 +// HatredHaiBaoJuheReportInfo.h
3 +// HaiBaoJuheSDK
4 +//
5 +// Created by winFan on 12/21/15.
6 +// Copyright (c) 2015 winFan. All rights reserved.
7 +//
8 +
9 +#import "TenantHatredHaiBaoJuheBaseModelPivot.h"
10 +@interface HaiBaoJuheReportInfo : TenantHatredHaiBaoJuheBaseModelPivot
11 +
12 +@property(nonatomic, strong)NSString *reportType;//类型
13 +@property(nonatomic, strong)NSString *playerId;//玩家ID
14 +@property(nonatomic, strong)NSString *playerName;//玩家名称
15 +@property(nonatomic, strong)NSString *playerLevel;//玩家等级
16 +@property(nonatomic, strong)NSString *roleSex;//角色性别(1男0女)
17 +
18 +@property(nonatomic, strong)NSString *serverId;//服务器ID
19 +@property(nonatomic, strong)NSString *serverName;//服务器名称
20 +@property(nonatomic, strong)NSNumber *roleCTime;//创建角色时间(秒)
21 +@property(nonatomic, strong)NSString *partyName;//工会名称
22 +@property(nonatomic, strong)NSString *roleType;//角色类型
23 +@property(nonatomic, strong)NSNumber *roleChangeTime;//角色等级更新时间(秒)
24 +@property(nonatomic, strong)NSString *vipLevel;//vip等级
25 +@property(nonatomic, strong)NSNumber *diamond;//余额
26 +@property(nonatomic, strong)NSString *moneyType;//商品单位(元宝,金币)
27 +
28 +@property(nonatomic, strong)NSString *custom;//透传参数
29 +
30 +
31 +@property(nonatomic, strong)NSString *openId;
32 +
33 +//#define REPORT_URL @"https://statistic.public.sdk.haibaoyouxi.com/sdk/statistic"
34 +
35 +//#define REPORT_IDFA_URL @"https://statistic.public.sdk.haibaoyouxi.com/sdk/last_channel?idfa=%@&sdkSimpleName=%@&gameSimpleName=%@"
36 +
37 +#define REPORT_OPEN @"open"
38 +#define REPORT_ENTER @"enter"
39 +#define REPORT_CREATEROLE @"createrole"
40 +#define REPORT_ROLEUPGRADE @"roleupgrade"
41 +#define REPORT_SDK_OPEN @"opensdk"
42 +#define REPORT_EXIT @"exit"
43 +#define REPORT_SELECT_SERVER @"selectserver"
44 +
45 +@end
1 +#import <Foundation/Foundation.h>
2 +#import "HaiBaoJuheSDK2.h"
3 +
4 +#import <UIKit/UIKit.h>
5 +
6 +@interface HaiBaoJuheSDK : NSObject
7 +
8 +@property(nonatomic, strong, readonly)NSString *sdkVersion;
9 +
10 +
11 +@property(nonatomic, strong)NSString *urlSchemes;
12 +
13 +@property(strong) NSMutableArray* HatredList;
14 +
15 +@property BOOL isAppleGzyazfing;
16 +
17 ++ (HaiBaoJuheSDK *)shareSDK;
18 +
19 +
20 +- (void)initSDK:(UIViewController *) control;
21 +
22 +
23 +-(void)viewDidAppear;
24 +
25 +- (void)setViewController:(UIViewController *)viewController;
26 +
27 +
28 +- (void)loginSDK;
29 +
30 +- (void)loginSDK:(UIViewController *)viewController;
31 +
32 +
33 +- (void)gzyazfWithGzyazfmentInfo:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
34 +
35 +
36 +- (BOOL)hasUserCenter;
37 +
38 +
39 +- (void)gotoUserCenter;
40 +
41 +
42 +- (void)reportSDK:(HaiBaoJuheReportInfo *)reportInfo;
43 +
44 +
45 +- (BOOL)hasLogout;
46 +
47 +
48 +- (void)logoutSDK;
49 +
50 +
51 +- (BOOL)hasSwitchAccount;
52 +
53 +
54 +- (void)switchAccount;
55 +
56 +
57 +- (BOOL)hasExit;
58 +
59 +
60 +- (void)exitSDK;
61 +
62 +- (void)destroySDK;
63 +
64 +@property(nonatomic, assign)ESDKOrientation sdkOrientation;
65 +
66 +@property(nonatomic, assign)BOOL bShowedFloat;
67 +
68 +
69 +@property(nonatomic, assign)int serverId;
70 +
71 +
72 +-(NSString *) getGameChannelId;
73 +
74 +- (NSString *) getCustomValue;
75 +
76 +- (NSString *) getChannelParameter1;
77 +
78 +- (NSString *) getChannelParameter2;
79 +
80 +-(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray*)customArray;
81 +
82 +
83 +- (void)handleOpenurl:(NSURL *)url;
84 +
85 +- (NSUInteger) application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window;
86 +
87 +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
88 +
89 +- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
90 +
91 +
92 +- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ;
93 +
94 +- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
95 +
96 +
97 +- (void)applicationDidEnterBackground:(UIApplication *)application;
98 +
99 +- (void)applicationDidBecomeActive:(UIApplication *)application;
100 +
101 +- (void)applicationWillEnterForeground:(UIApplication *)application;
102 +
103 +- (void)applicationWillResignActive:(UIApplication *)application;
104 +
105 +-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options;
106 +
107 +- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;
108 +
109 +@end
1 +#import <UIKit/UIKit.h>
2 +#import "WestinHaiBaoJuheCheckerDietary.h"
3 +#import "HaiBaoJuheReportInfo.h"
4 +#import "HaiBaoJuheLoginInfo.h"
5 +#import "Interface.h"
6 +#import "YieldHaiBaoJuheNotificationClouds.h"
7 +#import "YieldHaiBaoJuheGzyazfInfoClouds.h"
8 +#import "UnionInterface.h"
9 +#import "HaiBaoJuheCreateOrderInfo.h"
10 +#import "YieldHaiBaoJuheConfigClouds.h"
11 +#import "FalconHaiBaoJuheUtilsTelstra.h"
12 +#import "NetCenter.h"
13 +#import "HaiBaoJuheSDK.h"
14 +#import "HaiBaoJuheSDKDelegate.h"
1 +#import <Foundation/Foundation.h>
2 +
3 +@protocol HaiBaoJuheSDKDelegate <NSObject>
4 +@optional
5 +-(void)HaiBaoJuheSDKLoginSuccess:(HaiBaoJuheLoginInfo*)loginInfo;
6 +-(void)HaiBaoJuheSDKLoginFail:(NSString*)msg;
7 +
8 +-(void)HaiBaoJuheSDKSwitchAccountSuccess:(HaiBaoJuheLoginInfo*)loginInfo;
9 +-(void)HaiBaoJuheSDKSwitchAccountFail:(NSString*)msg;
10 +@end
1 +//
2 +// IAPHelper.h
3 +//
4 +// Original Created by Ray Wenderlich on 2/28/11.
5 +// Created by saturngod on 7/9/12.
6 +// Copyright 2011 Ray Wenderlich. All rights reserved.
7 +//
8 +
9 +#import <Foundation/Foundation.h>
10 +#import "StoreKit/StoreKit.h"
11 +
12 +
13 +typedef void (^IAPProductsResponseBlock)(SKProductsRequest* request , SKProductsResponse* response);
14 +
15 +typedef void (^IAPbuyProductCompleteResponseBlock)(SKPaymentTransaction* transcation);
16 +
17 +typedef void (^checkReceiptCompleteResponseBlock)(NSString* response,NSError* error);
18 +
19 +typedef void (^resoreProductsCompleteResponseBlock) (SKPaymentQueue* payment,NSError* error);
20 +
21 +@interface IAPHelper : NSObject <SKProductsRequestDelegate, SKPaymentTransactionObserver>
22 +
23 +@property (nonatomic,strong) NSSet *productIdentifiers;
24 +@property (nonatomic,strong) NSArray * products;
25 +@property (nonatomic,strong) NSMutableSet *purchasedProducts;
26 +@property (nonatomic,strong) SKProductsRequest *request;
27 +@property (nonatomic) BOOL production;
28 +
29 +//init With Product Identifiers
30 +- (id)initWithProductIdentifiers:(NSSet *)productIdentifiers;
31 +
32 +//get Products List
33 +- (void)requestProductsWithCompletion:(IAPProductsResponseBlock)completion;
34 +
35 +
36 +//Buy Product
37 +- (void)buyProduct:(SKProduct *)productIdentifier onCompletion:(IAPbuyProductCompleteResponseBlock)completion;
38 +
39 +//restore Products
40 +- (void)restoreProductsWithCompletion:(resoreProductsCompleteResponseBlock)completion;
41 +
42 +//check isPurchased or not
43 +- (BOOL)isPurchasedProductsIdentifier:(NSString*)productID;
44 +
45 +//check receipt but recommend to use in server side instead of using this function
46 +- (void)checkReceipt:(NSData*)receiptData onCompletion:(checkReceiptCompleteResponseBlock)completion;
47 +
48 +- (void)checkReceipt:(NSData*)receiptData AndSharedSecret:(NSString*)secretKey onCompletion:(checkReceiptCompleteResponseBlock)completion;
49 +
50 +
51 +//saved purchased product
52 +- (void)provideContentWithTransaction:(SKPaymentTransaction *)transaction;
53 +
54 +- (void)provideContent:(NSString *)productIdentifier __deprecated_msg("use provideContentWithTransaction: instead.");
55 +
56 +//clear the saved products
57 +- (void)clearSavedPurchasedProducts;
58 +- (void)clearSavedPurchasedProductByID:(NSString*)productIdentifier;
59 +
60 +
61 +//Get The Price with local currency
62 +- (NSString *)getLocalePrice:(SKProduct *)product;
63 +
64 +@end
1 +//
2 +// IAPShare.h
3 +// ;
4 +//
5 +// Created by Htain Lin Shwe on 10/7/12.
6 +// Copyright (c) 2012 Edenpod. All rights reserved.
7 +//
8 +
9 +#import <Foundation/Foundation.h>
10 +#import "IAPHelper.h"
11 +@interface IAPShare : NSObject
12 +@property (nonatomic,strong) IAPHelper *iap;
13 +
14 ++ (IAPShare *) sharedHelper;
15 +
16 ++(id)toJSON:(NSString*)json;
17 +@end
1 +//
2 +// Interface.h
3 +// HaiBaoJuheSDK
4 +//
5 +// Created by winFan on 12/10/15.
6 +// Copyright (c) 2015 winFan. All rights reserved.
7 +//
8 +
9 +
10 +#include "UnionInterface.h"
11 +@interface Interface : NSObject <UnionInterface>
12 +@property(nonatomic, strong)UIViewController *controller;
13 +
14 +
15 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +@interface LocusHatredInformationPhotos : NSObject
4 +{
5 +//
6 +NSString *openId;
7 +NSString *token;
8 +NSString *timestamp;
9 +
10 +}
11 +
12 +@property(retain,nonatomic) NSString *openId;
13 +@property(retain,nonatomic) NSString *token;
14 +@property(retain,nonatomic) NSString *timestamp;
15 ++ (LocusHatredInformationPhotos *)getInstance;
16 +@end
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface MakingHatredControlJukebox : NSObject
5 +
6 +
7 +- (void)initHatredInstance;
8 +
9 +- (void) HatredStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +@interface MakingHatredInformationJMJukebox : NSObject
4 +
5 ++(NSString *)HatredJM:(NSString *)jm;
6 +
7 +@end
1 +//
2 +// NSString+Base64.h
3 +// Newsstand
4 +//
5 +// Created by Carlo Vigiani on 29/Oct/11.
6 +// Copyright (c) 2011 viggiosoft. All rights reserved.
7 +//
8 +
9 +#import <Foundation/Foundation.h>
10 +
11 +@interface NSString (Base64)
12 +
13 ++ (NSString *) base64StringFromData:(NSData *)data length:(long)length;
14 +
15 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +@interface NSURLRequest (SSL)
4 ++(BOOL)allowsAnyHTTPSCertificateForHost:(NSString*)host;
5 +
6 ++(void)setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString*)host;
7 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +@interface NetCenter : NSObject
4 +
5 +@property(nonatomic,retain) NSMutableData *receiveData;
6 +
7 +@property(nonatomic,assign)int dataPackSerialNo;
8 +
9 +
10 ++ (NetCenter *)getInstance;
11 +
12 +- (NSString *)httpGetSyn:(NSString *) getUrl;
13 +
14 +- (NSString *)httpPostSyn:(NSString *) postUrl : (NSDictionary *) postData;
15 +
16 +- (NSString *)httpPostSynFillOD:(NSString *) postUrl : (NSDictionary *) postData;
17 +
18 +
19 +
20 +- (void)httpPostNoSyn:(NSString *) postUrl :(NSDictionary *)postDict;
21 +
22 +- (void)httpPostAsync:(NSString*)postUrl :(NSDictionary*)postDict;
23 +
24 +- (void)httpPostAsyncOpen:(NSString*)postUrl :(NSDictionary*)postDict;
25 +
26 +-(void)httpGetAsync:(NSString *)url completionHandler:(void (^ __nullable)(NSURLResponse* __nullable response, NSData* __nullable data, NSError* __nullable connectionError)) handler;
27 +
28 +-(void)httpPostAsyncChannel:(NSString *)postUrl postString:(NSString *)postString completionHandler:(void (^)(NSURLResponse * _Nullable, NSData * _Nullable, NSError * _Nullable))handler;
29 +
30 +- (NSString * __nullable)dicToString:(NSDictionary * __nullable) dict;
31 +@end
1 +#ifndef __HaiBaoJuheSDK__OtherSetting__
2 +#define __HaiBaoJuheSDK__OtherSetting__
3 +
4 +
5 +/**
6 + 应用支持的方向
7 + */
8 +typedef NS_ENUM(NSUInteger, ESDKOrientation) {
9 + ESDKOrientationPortrait = 1,//竖
10 + ESDKOrientationLandscape,//横
11 + ESDKOrientationNone//自动旋转
12 +};
13 +
14 +/**
15 + 应用支持的方向
16 + */
17 +typedef NS_ENUM(NSUInteger, REPORT_TYPE) {
18 + REPORT_TYPE_OPEN = 1,//竖
19 + REPORT_TYPE_ENTER,//横
20 + REPORT_TYPE_DEFINE//自动旋转
21 +};
22 +
23 +#endif /* defined(__HaiBaoJuheSDK__OtherSetting__) */
1 +#import "HaiBaoJuheSDK2.h"
2 +@interface SDKInterface : Interface
3 +
4 +@end
1 +//
2 +// SFHFKeychainUtils.h
3 +//
4 +// Created by Buzz Andersen on 10/20/08.
5 +// Based partly on code by Jonathan Wight, Jon Crosby, and Mike Malone.
6 +// Copyright 2008 Sci-Fi Hi-Fi. All rights reserved.
7 +//
8 +// Permission is hereby granted, free of charge, to any person
9 +// obtaining a copy of this software and associated documentation
10 +// files (the "Software"), to deal in the Software without
11 +// restriction, including without limitation the rights to use,
12 +// copy, modify, merge, publish, distribute, sublicense, and/or sell
13 +// copies of the Software, and to permit persons to whom the
14 +// Software is furnished to do so, subject to the following
15 +// conditions:
16 +//
17 +// The above copyright notice and this permission notice shall be
18 +// included in all copies or substantial portions of the Software.
19 +//
20 +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
22 +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
25 +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27 +// OTHER DEALINGS IN THE SOFTWARE.
28 +//
29 +
30 +#import <UIKit/UIKit.h>
31 +
32 +
33 +@interface SFHFKeychainUtils : NSObject {
34 +
35 +}
36 +
37 ++ (NSString *) getPasswordForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error;
38 ++ (BOOL) storeUsername: (NSString *) username andPassword: (NSString *) password forServiceName: (NSString *) serviceName updateExisting: (BOOL) updateExisting error: (NSError **) error;
39 ++ (BOOL) deleteItemForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error;
40 +
41 +@end
...\ No newline at end of file ...\ No newline at end of file
1 +#import <Foundation/Foundation.h>
2 +
3 +NS_ASSUME_NONNULL_BEGIN
4 +
5 +@interface TenantHatredEncryptToolPivot : NSObject
6 +
7 ++ (NSString *)base64EncodedStringWithWrapWidth:(NSUInteger)wrapWidth withData:(NSData *)argData;
8 +
9 ++ (NSString *)doCipher:(NSString*)encryptValue andPassword:(NSString *)password;
10 +
11 ++ (NSString *)decryptUseDES:(NSString *)cipherText andPassword:(NSString *)password;
12 +
13 +@end
14 +
15 +NS_ASSUME_NONNULL_END
1 +#import <Foundation/Foundation.h>
2 +#import "OtherSetting.h"
3 +
4 +@interface TenantHatredHaiBaoJuheBaseModelPivot : NSObject
5 +
6 +- (NSString *) HatredHaiBaoJuheObjectToJsonString;
7 +- (NSMutableString *)paramAddToString;
8 +- (id)initWithDiction:(NSDictionary *)diction;
9 +
10 +@end
1 +#import <Foundation/Foundation.h>
2 +#import <UIKit/UIKit.h>
3 +#import "HaiBaoJuheSDK2.h"
4 +
5 +@protocol UnionInterface
6 +/**
7 + 初始化SDK
8 + */
9 +
10 +//[[PoolChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationGzyazf notiName:@"" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"" extendData:order_id];
11 +
12 +- (void)SDKinit:(UIViewController *) control;
13 +
14 +
15 +- (void)setViewController:(UIViewController *) viewController;
16 +
17 +/**
18 + 登录SDK
19 + */
20 +- (void)SDKloginSDK;
21 +
22 +
23 +- (void)SDKloginSDK:(UIViewController *) control;
24 +
25 +/**
26 + *是否含有注销接口
27 + */
28 +- (BOOL)hasLogout;
29 +
30 +/**
31 + 注销
32 + */
33 +- (void)SDKlogoutSDK;
34 +
35 +
36 +/**
37 + *是否含有退出接口
38 + **/
39 +- (BOOL)hasExit;
40 +
41 +/**
42 + 退出接口
43 + */
44 +- (void)SDKexitSDK;
45 +
46 +
47 +/**
48 + *SDK销毁操作(游戏退出时调用)
49 + */
50 +
51 +- (void)destroySDK;
52 +
53 +
54 +/**
55 + *是否含有用户中心接口
56 + **/
57 +- (BOOL)hasUserCenter;
58 +
59 +/**
60 + 用户中心
61 + */
62 +- (void)SDKgotoUserCenter;
63 +
64 +/**
65 + *是否含有切换账号接口
66 + **/
67 +- (BOOL)hasSwitchAccount;
68 +
69 +/**
70 + *切换账号
71 + **/
72 +- (void)switchAccount;
73 +
74 +
75 +- (void)viewDidAppear;
76 +
77 +/**
78 + 提交数据
79 + */
80 +- (void)SDKreport:(HaiBaoJuheReportInfo *) reportInfo;
81 +
82 +/**
83 + 进行支付
84 + */
85 +
86 +- (void)SDKgzyazfWithGzyazfmentInfo:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
87 +- (void)receiveCreateOrder: (NSNotification *)notification;
88 +
89 +/**
90 + *充值统计参数
91 + *accountId 账号ID,必填项, 和登陆、注册使用的accountId保持一致即可。
92 + *orderId 订单Id,必填项,请保证该值的全局唯一,系统会使用订单Id进行付费订单排重。
93 + *currencyAmount 货币金额,单位为元,支持小数
94 + *currencyType 货币类型
95 + *gzyazfType 支付类型(渠道)
96 + */
97 +-(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray *)customArray;
98 +
99 +- (void)handleOpenurl:(NSURL *)url;
100 +- (NSUInteger) application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window;
101 +
102 +
103 +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
104 +
105 +- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
106 +
107 +//推送
108 +- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ;
109 +//推送
110 +- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
111 +
112 +
113 +- (void)applicationDidEnterBackground:(UIApplication *)application;
114 +
115 +- (void)applicationDidBecomeActive:(UIApplication *)application;
116 +
117 +- (void)applicationWillEnterForeground:(UIApplication *)application;
118 +
119 +- (void)applicationWillResignActive:(UIApplication *)application;
120 +
121 +-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options;
122 +
123 +- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;
124 +@end
1 +#import <UIKit/UIKit.h>
2 +
3 +@interface WebcastHatredIAPHelperControlCollars : NSObject<UITableViewDelegate, UITableViewDataSource>
4 +
5 +@property(nonatomic,strong) NSString* HatredDingDanHao;
6 +@property(nonatomic,strong) NSDictionary* HatredHuoWuLieBiao;
7 +@property(nonatomic,strong) NSMutableArray* HatredHuoWuIDLieBiao;
8 +@property(nonatomic, strong) UITableView *HatredHuoWuLieBiaoView;
9 +
10 +- (void)HatredHuaQianView:(UIViewController*)controller HatredHuoWuD:(NSString*)products HatredQian:(NSString*)amount HatredHuoWuMing:(NSString*)productName HatredDingDanHao:(NSString*)DingDanHao;
11 +
12 +@end
1 +#import <Foundation/Foundation.h>
2 +#import "HaiBaoJuheLoginInfo.h"
3 +#import "YieldHaiBaoJuheNotificationClouds.h"
4 +#import "HaiBaoJuheCreateOrderInfo.h"
5 +#import "YieldHaiBaoJuheGzyazfInfoClouds.h"
6 +#import "HaiBaoJuheReportInfo.h"
7 +#import "HaiBaoJuheSDKDelegate.h"
8 +
9 +@interface WestinHaiBaoJuheCheckerDietary : NSObject<HaiBaoJuheSDKDelegate>
10 +@property(nonatomic, strong)NSString *userId;
11 +@property(nonatomic, strong)id<HaiBaoJuheSDKDelegate> mHaiBaoJuheSDKDelegate;
12 +
13 +@property bool onlyOneTimeGzyazf;
14 ++ (WestinHaiBaoJuheCheckerDietary *)CroydongetInstanceKnock;
15 +- (void)initChecker;
16 +- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
17 +- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
18 +- (void) HatredHaiBaoJuhereportOpen;
19 +- (void) HatredHaiBaoJuhereportSDKOpen;
20 +- (void) HatredHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
21 +- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
22 +- (void) HatredHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
23 +- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
24 + notiName:(NSString *)notiName
25 + statusCode:(int)nCode
26 + description:(NSString *)szDescripton
27 + extendData:(NSObject *)extendData;
28 +
29 +- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
30 +
31 +- (void) HatredHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
32 +
33 +/*
34 + *初始化时调用
35 + */
36 +- (void)setHaiBaoJuheSDKDelegate:(nullable id<HaiBaoJuheSDKDelegate>)HaiBaoJuheSDKDeletate;
37 +@end
38 +
39 +
40 +
41 +
1 +#import <UIKit/UIKit.h>
2 +
3 +@interface WestinHatredLocationDietary : NSObject
4 +
5 ++ (NSString *)HatredSKCloudServiceSetupOptionsKey;
6 +@end
7 +
1 +#import <Foundation/Foundation.h>
2 +
3 +@interface YieldHaiBaoJuheConfigClouds : NSObject
4 +
5 +@property(nonatomic, strong)NSString *gameSimpleName;
6 +@property(nonatomic, strong)NSString *sdkSimpleName;
7 +@property(nonatomic, strong)NSString *sdkVersionCode;
8 +@property(nonatomic, strong)NSString *loginCheckUrl;
9 +@property(nonatomic, strong)NSString *gzyazfOrderUrl;
10 +@property(nonatomic, strong)NSString *gzyazfCheckUrl;
11 +@property(nonatomic, strong)NSString *c1;
12 +@property(nonatomic, strong)NSString *c2;
13 +@property(nonatomic, strong)NSString *custom;
14 +
15 ++ (YieldHaiBaoJuheConfigClouds *)TenantgetInstancePivot;
16 +
17 +- (void) loadFile:(NSString *) fileName;
18 +
19 +- (NSString *)CaspergetValueByKeyPanties:(NSString *) key;
20 +
21 +- (void) updateC1C2Value:(NSString *)c1 c2:(NSString *)c2;
22 +
23 +@end
1 +#import "TenantHatredHaiBaoJuheBaseModelPivot.h"
2 +@interface YieldHaiBaoJuheGzyazfInfoClouds : TenantHatredHaiBaoJuheBaseModelPivot
3 +
4 +@property(nonatomic, strong)NSString *serverId;
5 +@property(nonatomic, strong)NSString *queryId;
6 +@property(nonatomic, strong)NSString *playerId;
7 +@property(nonatomic, strong)NSString *playerName;
8 +@property(nonatomic, strong)NSString *postAmount;
9 +@property(nonatomic, strong)NSString *productId;
10 +@property(nonatomic, strong)NSString *products;
11 +@property(nonatomic, strong)NSString *custom;
12 +@property(nonatomic, strong)NSString *postTime;
13 +@property(nonatomic, strong)NSString *other;
14 +
15 +//游戏传递过来的原值
16 +@property(nonatomic, strong)NSString *serverName;//服务器名称
17 +@property(nonatomic, strong)NSString *playerLevel;//玩家等级
18 +@property(nonatomic, strong)NSString *productName;//产品名称
19 +@property(nonatomic, strong)NSString *productDesc;//产品描述
20 +@property(nonatomic, strong)NSString *exchange;//兑换比例
21 +
22 +@end
1 +//
2 +// YieldHaiBaoJuheNotificationClouds.h
3 +// public_i9133
4 +//
5 +// Created by winFan on 12/1/15.
6 +// Copyright (c) 2015 winFan. All rights reserved.
7 +//
8 +
9 +#import <Foundation/Foundation.h>
10 +
11 +extern NSString * const HaiBaoJuheSDK_Notification; /**< */
12 +extern NSString * const _create_order_notification; /**< */
13 +
14 +
15 +/**
16 + 应用支持的方向
17 + */
18 +typedef NS_ENUM(int, HaiBaoJuheSDKNotificationType) {
19 + HaiBaoJuheSDKNotificationLogin = 1,//登录
20 + HaiBaoJuheSDKNotificationLogout,//注销
21 + HaiBaoJuheSDKNotificationGzyazf,//支付完成
22 + HaiBaoJuheSDKNotificationPause,//暂停退出
23 + HaiBaoJuheSDKNotificationRole,//创建角色
24 + HaiBaoJuheSDKNotificationInitSDK,//初始化SDK
25 + HaiBaoJuheSDKNotificationSwitchAccount,//切换账号
26 + HaiBaoJuheSDKNotificationExit//退出游戏
27 +};
28 +
29 +
30 +
31 +@interface YieldHaiBaoJuheNotificationClouds : NSObject
32 +
33 +@end
34 +
35 +
36 +//////////////////////////////////////////////////////////////////////
37 +@interface HaiBaoJuheSDKResult : NSObject
38 +@property(nonatomic, assign)int statusCode;//请参照此文件下面状态标识
39 +@property(nonatomic, strong)NSString *resultDescription;
40 +@property(nonatomic, strong)NSObject *extendData;
41 +//V1.2.0新增
42 +@property(nonatomic, assign)HaiBaoJuheSDKNotificationType notiType;//消息类型
43 +@property(nonatomic, strong)NSString *notiName;//消息名称
44 +@end
45 +//////////////////////////////////////////////////////////////////////
46 +
47 +//////////////////////////////////////////////////////////////////////
48 +/* 状态标识 */
49 +#define HaiBaoJuheSDK_NO_ERROR 0 /*操作成功*/
50 +
51 +#define HaiBaoJuheSDK_ERROR_LOGIN_FAILED -100 /*登录失败*/
52 +#define HaiBaoJuheSDK_ERROR_LOGIN_CANCEL -101 /*登录取消*/
53 +#define HaiBaoJuheSDK_ERROR_LOGIN_GAMGEACCOUNT -102 /*游戏帐号登录,非平台账号*/
54 +
55 +#define HaiBaoJuheSDK_ERROR_PAY_FAILED -200 /*支付失败*/
56 +#define HaiBaoJuheSDK_ERROR_PAY_CANCEL -201 /*支付取消*/
57 +#define HaiBaoJuheSDK_ERROR_PAY_VERSIGN -202 /*支付验签失败*/
58 +#define HaiBaoJuheSDK_ERROR_CREATE_ORDER_FAILED -203 /*支付验签失败*/
59 +
60 +#define HaiBaoJuheSDK_ERROR_ROLE_CREATE_FAILED -300 /*角色创建失败*/
61 +
62 +#define HaiBaoJuheSDK_ERROR_INIT_FAILED -400 /*初始化失败*/
63 +
64 +#define HaiBaoJuheSDK_ERROR_SWICHT_ACCOUNT_FAILED -500 /*切换账号失败*/
65 +
66 +#define HaiBaoJuheSDK_ERROR_EXIT_CANCEL -600 /*退出取消*/
67 +
68 +//////////////////////////////////////////////////////////////////////
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface YieldHatredControlClouds : NSObject
5 +
6 +
7 +- (void)initHatredInstance;
8 +
9 +- (void) HatredStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +framework module HaiBaoJuheSDK {
2 + umbrella header "HaiBaoJuheSDK.h"
3 +
4 + export *
5 + module * { export * }
6 +}
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 +<plist version="1.0">
4 +<dict>
5 + <key>CFBundleDevelopmentRegion</key>
6 + <string>en</string>
7 + <key>CFBundleExecutable</key>
8 + <string>$(EXECUTABLE_NAME)</string>
9 + <key>CFBundleIdentifier</key>
10 + <string>com.mango.ios.fytx</string>
11 + <key>CFBundleInfoDictionaryVersion</key>
12 + <string>6.0</string>
13 + <key>CFBundleName</key>
14 + <string>$(PRODUCT_NAME)</string>
15 + <key>CFBundlePackageType</key>
16 + <string>APPL</string>
17 + <key>CFBundleShortVersionString</key>
18 + <string>1.0</string>
19 + <key>CFBundleSignature</key>
20 + <string>????</string>
21 + <key>CFBundleVersion</key>
22 + <string>1</string>
23 + <key>LSRequiresIPhoneOS</key>
24 + <true/>
25 + <key>UILaunchStoryboardName</key>
26 + <string>LaunchScreen</string>
27 + <key>UIMainStoryboardFile</key>
28 + <string>Main</string>
29 + <key>UIRequiredDeviceCapabilities</key>
30 + <array>
31 + <string>armv7</string>
32 + </array>
33 + <key>UISupportedInterfaceOrientations</key>
34 + <array>
35 + <string>UIInterfaceOrientationPortrait</string>
36 + <string>UIInterfaceOrientationLandscapeLeft</string>
37 + <string>UIInterfaceOrientationLandscapeRight</string>
38 + </array>
39 +</dict>
40 +</plist>
1 +//
2 +// MainViewController.h
3 +// Demo_qiyu
4 +//
5 +// Created by 许 on 17/6/7.
6 +// Copyright © 2017年 winFan. All rights reserved.
7 +//
8 +
9 +#import <UIKit/UIKit.h>
10 +#import <HaiBaoJuheSDK/HaiBaoJuheSDK2.h>
11 +
12 +@interface MainViewController : UIViewController
13 +
14 +@end
1 +//
2 +// MainViewController.m
3 +// Demo_qiyu
4 +//
5 +// Created by 许 on 17/6/7.
6 +// Copyright © 2017年 winFan. All rights reserved.
7 +//
8 +
9 +#import "MainViewController.h"
10 +#import <HaiBaoJuheSDK/HaiBaoJuheSDK2.h>
11 +
12 +@interface MainViewController ()
13 +
14 +@end
15 +
16 +NSString* sdkUserId = @"";
17 +
18 +@implementation MainViewController
19 +
20 +
21 +- (void)viewDidLoad {
22 + [super viewDidLoad];
23 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:HaiBaoJuheSDK_Notification object:nil];
24 + // Do any additional setup after loading the view.
25 + NSLog(@"viewDidLoad");
26 +}
27 +
28 +- (void)didReceiveMemoryWarning {
29 + [super didReceiveMemoryWarning];
30 + // Dispose of any resources that can be recreated.
31 +}
32 +
33 +/*
34 +#pragma mark - Navigation
35 +
36 +// In a storyboard-based application, you will often want to do a little preparation before navigation
37 +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
38 + // Get the new view controller using [segue destinationViewController].
39 + // Pass the selected object to the new view controller.
40 +}
41 +*/
42 +
43 +- (void)receiveSDKMessage:(NSNotification *)notification
44 +{
45 + HaiBaoJuheSDKResult *result = [notification object];
46 + if (result) {
47 + NSLog(@"notiType:%d",result.notiType);
48 + switch (result.notiType) {
49 +
50 + case HaiBaoJuheSDKNotificationInitSDK:
51 + {
52 + NSLog(@"sdk初始化成功");
53 + }
54 +
55 + break;
56 + case HaiBaoJuheSDKNotificationLogin:
57 + {
58 + NSLog(@"result state:%d",result.statusCode);
59 + if (result.statusCode == HaiBaoJuheSDK_NO_ERROR) {
60 + HaiBaoJuheLoginInfo *loginInfo = (HaiBaoJuheLoginInfo*)result.extendData;
61 + sdkUserId = [loginInfo openId];
62 + NSLog(@"收到登陆信息public openid:%@", [loginInfo openId]);
63 + NSLog(@"收到登陆信息public token:%@", [loginInfo sign]);
64 + NSLog(@"收到登陆信息public timestamp:%@", [loginInfo timestamp]);
65 + NSLog(@"userType:%@",[loginInfo userType]);
66 + }else{
67 + NSLog(@"登录失败:%@",[result description]);
68 + }
69 + }
70 + break;
71 + case HaiBaoJuheSDKNotificationLogout:
72 + {
73 + NSLog(@"sdk注销成功,游戏处理");
74 + }
75 + break;
76 + case HaiBaoJuheSDKNotificationSwitchAccount:
77 + NSLog(@"切换账号通知");
78 + if (result.statusCode == HaiBaoJuheSDK_NO_ERROR) {
79 + HaiBaoJuheLoginInfo *loginInfo = (HaiBaoJuheLoginInfo*)result.extendData;
80 + NSLog(@"收到登陆信息public openid:%@", [loginInfo openId]);
81 + NSLog(@"收到登陆信息public token:%@", [loginInfo sign]);
82 + NSLog(@"收到登陆信息public timestamp:%@", [loginInfo timestamp]);
83 + NSLog(@"userType:%@",[loginInfo userType]);
84 + }else{
85 + NSLog(@"%@",[result description]);
86 + }
87 + break;
88 + default:
89 + break;
90 + }
91 + }
92 +}
93 +
94 +- (IBAction)actionInit:(id)sender {
95 + [[HaiBaoJuheSDK shareSDK]initSDK:self];
96 +}
97 +- (IBAction)actionLogin:(id)sender {
98 + [[HaiBaoJuheSDK shareSDK] loginSDK];
99 +}
100 +
101 +- (IBAction)actionPay:(id)sender {
102 + HaiBaoJuheCreateOrderInfo *payInfo = [[HaiBaoJuheCreateOrderInfo alloc]init];
103 + [payInfo setServerId:@"99887766"];
104 + [payInfo setPlayerName:@"iamrolename"];
105 + [payInfo setPlayerLevel:@"10"];
106 + [payInfo setUserId:sdkUserId];
107 + [payInfo setPostAmount:@"6"];
108 + [payInfo setProductId:@"com.gzss.rsrzrcj.6"];
109 + [payInfo setPlayerId:@"1231241234"];
110 + [payInfo setProductName:@"60金币"];
111 + [payInfo setProductDesc:@"productDes"];
112 + [payInfo setTimestamp:@"1232134"];
113 + [payInfo setExchange:@"10"];
114 + [payInfo setServerName:@"servername"];
115 + [payInfo setCustom:@"custom"];
116 + [[HaiBaoJuheSDK shareSDK] gzyazfWithGzyazfmentInfo:payInfo];
117 +}
118 +
119 +-(NSString*)getCurrentTimestamp{
120 + // 时间戳转时间
121 + NSTimeInterval interval = [[NSDate date] timeIntervalSince1970] * 1000;
122 + NSString* timeStr = [[NSString alloc]initWithFormat:@"%.f",interval];
123 + return timeStr;
124 +}
125 +
126 +/**
127 + serverid
128 + servername
129 + roleid
130 + rolename
131 + rolelevel
132 +*/
133 +- (IBAction)actionSubmitRoleData:(id)sender {
134 + NSLog(@"数据接口");
135 + HaiBaoJuheReportInfo *reportInfo = [[HaiBaoJuheReportInfo alloc]init];
136 + [reportInfo setReportType:REPORT_ENTER];
137 + //[reportInfo setReportType:REPORT_CREATEROLE];
138 + //[reportInfo setReportType:REPORT_ROLEUPGRADE]
139 + [reportInfo setServerId:@"28"];
140 + [reportInfo setServerName:@"serverName"];
141 + [reportInfo setPlayerId:@"1231241234"];
142 + [reportInfo setPlayerName:@"playName"];
143 + [reportInfo setPlayerLevel:@"10"];
144 + [reportInfo setPartyName:@"1345"];
145 + [reportInfo setRoleCTime:[[NSNumber alloc]initWithLong:[self getCurrentTimestamp].longLongValue]];
146 + [reportInfo setRoleChangeTime:[[NSNumber alloc]initWithLong:[self getCurrentTimestamp].longLongValue]];
147 + [[HaiBaoJuheSDK shareSDK] reportSDK:reportInfo];
148 +}
149 +
150 +- (IBAction)actionLogout:(id)sender {
151 + NSLog(@"注销");
152 + if ([[HaiBaoJuheSDK shareSDK] hasLogout]) {
153 + [[HaiBaoJuheSDK shareSDK] logoutSDK];
154 + }
155 +}
156 +
157 +- (IBAction)actionSwitchAccount:(id)sender {
158 + if([[HaiBaoJuheSDK shareSDK] hasSwitchAccount]){
159 + [[HaiBaoJuheSDK shareSDK] switchAccount];
160 + }
161 +}
162 +
163 +
164 +
165 +#pragma mark - 截屏
166 +- (void)screenShot:(UIView *)view{
167 + UIImage* image = nil;
168 + UIGraphicsBeginImageContext(view.bounds.size);
169 + [view.layer renderInContext:UIGraphicsGetCurrentContext()];
170 + image = UIGraphicsGetImageFromCurrentImageContext();
171 + UIGraphicsEndImageContext();
172 + UIGraphicsEndImageContext();
173 + if (image != nil) {
174 + NSLog(@"截图成功!");
175 + UIImageWriteToSavedPhotosAlbum(image,self,@selector(image:didFinishSavingWithError:contextInfo:),NULL);
176 + }
177 +}
178 +
179 +
180 +#pragma mark - 保存到相册
181 +-(void)image:(UIImage *)image didFinishSavingWithError:(NSError*)error contextInfo:(void*)contextInfo
182 +{
183 + if(!error){
184 + NSLog(@"存到相册");
185 + }else{
186 + NSLog(@"存储失败");
187 +
188 + }
189 +}
190 +
191 +//获取渠道参数
192 +-(void)getChannel{
193 + //获取channelId值
194 + [[HaiBaoJuheSDK shareSDK]getGameChannelId];
195 + //获取渠道参数1
196 + [[HaiBaoJuheSDK shareSDK]getChannelParameter1];
197 + //获取渠道参数2
198 + [[HaiBaoJuheSDK shareSDK]getChannelParameter2];
199 + //获取自定义参数
200 + [[HaiBaoJuheSDK shareSDK]getCustomValue];
201 +}
202 +
203 +
204 +@end
1 +//
2 +// ViewController.h
3 +// publiDemo
4 +//
5 +// Created by winFan on 11/30/15.
6 +// Copyright (c) 2015 winFan. All rights reserved.
7 +//
8 +
9 +#import <UIKit/UIKit.h>
10 +#import <HaiBaoJuheSDK/HaiBaoJuheSDK2.h>
11 +@interface ViewController : UIViewController
12 +
13 +- (void)receiveSDKMessage : (NSNotification *)notification;
14 +
15 +@end
16 +
1 +
2 +#import "ViewController.h"
3 +
4 +@interface ViewController ()
5 +
6 +@end
7 +
8 +@implementation ViewController
9 +
10 +
11 +- (void)viewDidLoad {
12 + [super viewDidLoad];
13 + // Do any additional setup after loading the view, typically from a nib.
14 + UIButton *button1 = [UIButton buttonWithType:UIButtonTypeCustom];
15 + [button1 setTitle:@"登陆" forState:UIControlStateNormal];
16 + button1.frame = CGRectMake(50.0f, 100.0f, 50.0f, 40.0f);
17 + button1.tag = 1;
18 + [button1 addTarget:self action:@selector(toggleButton:) forControlEvents: UIControlEventTouchUpInside];
19 + [self.view addSubview:button1];
20 +
21 + UIButton *button2 = [UIButton buttonWithType:UIButtonTypeCustom];
22 + [button2 setTitle:@"数据" forState:UIControlStateNormal];
23 + button2.frame = CGRectMake(150.0f, 100.0f, 50.0f, 40.0f);
24 + button2.tag = 2;
25 + [button2 addTarget:self action:@selector(toggleButton:) forControlEvents: UIControlEventTouchUpInside];
26 + [self.view addSubview:button2];
27 +
28 + UIButton *button4 = [UIButton buttonWithType:UIButtonTypeCustom];
29 + [button4 setTitle:@"充值" forState:UIControlStateNormal];
30 + button4.frame = CGRectMake(150.0f, 50.0f, 50.0f, 40.0f);
31 + button4.tag = 4;
32 + [button4 addTarget:self action:@selector(toggleButton:) forControlEvents: UIControlEventTouchUpInside];
33 + [self.view addSubview:button4];
34 +
35 +
36 + UIButton *button6 = [UIButton buttonWithType:UIButtonTypeCustom];
37 + [button6 setTitle:@"获取配置参数" forState:UIControlStateNormal];
38 + button6.frame = CGRectMake(10.0f, 50.0f, 150.0f, 40.0f);
39 + button6.tag = 6;
40 + [button6 addTarget:self action:@selector(toggleButton:) forControlEvents: UIControlEventTouchUpInside];
41 + [self.view addSubview:button6];
42 +
43 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:HaiBaoJuheSDK_Notification object:nil];
44 +
45 + [[HaiBaoJuheSDK shareSDK]initSDK:self];
46 +}
47 +
48 +-(void)viewDidAppear:(BOOL)animated{
49 + [super viewDidAppear:animated];
50 + //[[HaiBaoJuheSDK shareSDK] viewDidAppear];
51 +}
52 +
53 +
54 +- (void) toggleButton: (UIButton *) button
55 +{
56 + int tag = (int)button.tag;
57 + if (tag == 1) {
58 + [[HaiBaoJuheSDK shareSDK] loginSDK];
59 + }
60 + else if (tag == 2)
61 + {
62 + NSLog(@"数据接口");
63 + HaiBaoJuheReportInfo *reportInfo = [[HaiBaoJuheReportInfo alloc]init];
64 + [reportInfo setReportType:REPORT_ENTER];
65 + //[reportInfo setReportType:REPORT_CREATEROLE];
66 + //[reportInfo setReportType:REPORT_ROLEUPGRADE]
67 + [reportInfo setServerId:@"9133"];
68 + [reportInfo setPlayerName:@"roleName"];
69 + [reportInfo setPlayerId:@"pserverName"];
70 + [[HaiBaoJuheSDK shareSDK] reportSDK:reportInfo];
71 + }
72 + else if (tag == 4)
73 + {
74 + HaiBaoJuheCreateOrderInfo *payInfo = [[HaiBaoJuheCreateOrderInfo alloc]init];
75 + [payInfo setServerId:@"111"];
76 + [payInfo setPostAmount:@"6"];
77 + [payInfo setPlayerId:@"1231241234"];
78 + [payInfo setTimestamp:@"1232134"];
79 + [payInfo setExchange:@"10"];
80 + [payInfo setCustom:@"custom"];
81 + NSLog(@"start pay");
82 + [[HaiBaoJuheSDK shareSDK] gzyazfWithGzyazfmentInfo:payInfo];
83 + }
84 + else if(tag == 6){
85 + HaiBaoJuheSDK *haiBaoJuheSDK = [HaiBaoJuheSDK shareSDK];
86 + NSLog(@"channelId:%@parame1:%@parame2:%@custom:%@",[haiBaoJuheSDK getGameChannelId],[haiBaoJuheSDK getChannelParameter1],[haiBaoJuheSDK getChannelParameter2],[haiBaoJuheSDK getCustomValue]);
87 + }
88 +}
89 +
90 +
91 +- (void)didReceiveMemoryWarning {
92 + [super didReceiveMemoryWarning];
93 +}
94 +
95 +- (void)receiveSDKMessage:(NSNotification *)notification
96 +{
97 + NSLog(@"receiveSDKMessage");
98 + //[[HaiBaoJuheConfig getInstance] getValueByKey:@"gamechannelid"];
99 + HaiBaoJuheSDKResult *result = [notification object];
100 + if (result == nil ) {
101 + return;
102 + }
103 + switch (result.notiType) {
104 +
105 + case HaiBaoJuheSDKNotificationInitSDK:
106 + {
107 + NSLog(@"收到HaiBaoJuheSDKNotificationInitSDK");
108 + }
109 +
110 + break;
111 + case HaiBaoJuheSDKNotificationLogin:
112 + {
113 + NSLog(@"result state:%d",result.statusCode);
114 + if (result.statusCode == HaiBaoJuheSDK_NO_ERROR) {
115 + HaiBaoJuheLoginInfo *loginInfo = (HaiBaoJuheLoginInfo*)result.extendData;
116 + NSLog(@"收到登陆信息public openid:%@", [loginInfo openId]);
117 + NSLog(@"收到登陆信息public token:%@", [loginInfo sign]);
118 + NSLog(@"收到登陆信息public timestamp:%@", [loginInfo timestamp]);
119 + NSLog(@"userType:%@",[loginInfo userType]);
120 + }else{
121 + NSLog(@"%@",[result description]);
122 + }
123 + }
124 + break;
125 + case HaiBaoJuheSDKNotificationGzyazf:
126 + {
127 + NSLog(@"收到登陆信息HaiBaoJuheSDKNotificationPay");
128 + }
129 + break;
130 + default:
131 + break;
132 + }
133 +}
134 +
135 +@end
1 +//
2 +// main.m
3 +// Demo
4 +//
5 +// Created by winFan on 12/9/15.
6 +// Copyright (c) 2015 winFan. All rights reserved.
7 +//
8 +
9 +#import <UIKit/UIKit.h>
10 +#import "AppDelegate.h"
11 +
12 +int main(int argc, char * argv[]) {
13 + @autoreleasepool {
14 + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 + }
16 +}
1 +//
2 +// DemoTests.m
3 +// DemoTests
4 +//
5 +// Created by winFan on 12/9/15.
6 +// Copyright (c) 2015 winFan. All rights reserved.
7 +//
8 +
9 +#import <UIKit/UIKit.h>
10 +#import <XCTest/XCTest.h>
11 +
12 +@interface DemoTests : XCTestCase
13 +
14 +@end
15 +
16 +@implementation DemoTests
17 +
18 +- (void)setUp {
19 + [super setUp];
20 + // Put setup code here. This method is called before the invocation of each test method in the class.
21 +}
22 +
23 +- (void)tearDown {
24 + // Put teardown code here. This method is called after the invocation of each test method in the class.
25 + [super tearDown];
26 +}
27 +
28 +- (void)testExample {
29 + // This is an example of a functional test case.
30 + XCTAssert(YES, @"Pass");
31 +}
32 +
33 +- (void)testPerformanceExample {
34 + // This is an example of a performance test case.
35 + [self measureBlock:^{
36 + // Put the code you want to measure the time of here.
37 + }];
38 +}
39 +
40 +@end
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 +<plist version="1.0">
4 +<dict>
5 + <key>CFBundleDevelopmentRegion</key>
6 + <string>en</string>
7 + <key>CFBundleExecutable</key>
8 + <string>$(EXECUTABLE_NAME)</string>
9 + <key>CFBundleIdentifier</key>
10 + <string>com.mango.ios.fytx.$(PRODUCT_NAME:rfc1034identifier)</string>
11 + <key>CFBundleInfoDictionaryVersion</key>
12 + <string>6.0</string>
13 + <key>CFBundleName</key>
14 + <string>$(PRODUCT_NAME)</string>
15 + <key>CFBundlePackageType</key>
16 + <string>BNDL</string>
17 + <key>CFBundleShortVersionString</key>
18 + <string>1.0</string>
19 + <key>CFBundleSignature</key>
20 + <string>????</string>
21 + <key>CFBundleVersion</key>
22 + <string>1</string>
23 +</dict>
24 +</plist>
No preview for this file type
1 +{
2 + "images" : [
3 + {
4 + "idiom" : "iphone",
5 + "size" : "20x20",
6 + "scale" : "2x"
7 + },
8 + {
9 + "idiom" : "iphone",
10 + "size" : "20x20",
11 + "scale" : "3x"
12 + },
13 + {
14 + "idiom" : "iphone",
15 + "size" : "29x29",
16 + "scale" : "2x"
17 + },
18 + {
19 + "idiom" : "iphone",
20 + "size" : "29x29",
21 + "scale" : "3x"
22 + },
23 + {
24 + "idiom" : "iphone",
25 + "size" : "40x40",
26 + "scale" : "2x"
27 + },
28 + {
29 + "idiom" : "iphone",
30 + "size" : "40x40",
31 + "scale" : "3x"
32 + },
33 + {
34 + "idiom" : "iphone",
35 + "size" : "60x60",
36 + "scale" : "2x"
37 + },
38 + {
39 + "idiom" : "iphone",
40 + "size" : "60x60",
41 + "scale" : "3x"
42 + },
43 + {
44 + "idiom" : "ios-marketing",
45 + "size" : "1024x1024",
46 + "scale" : "1x"
47 + }
48 + ],
49 + "info" : {
50 + "version" : 1,
51 + "author" : "xcode"
52 + }
53 +}
...\ No newline at end of file ...\ No newline at end of file
1 +{
2 + "images" : [
3 + {
4 + "orientation" : "portrait",
5 + "idiom" : "iphone",
6 + "minimum-system-version" : "7.0",
7 + "scale" : "2x"
8 + },
9 + {
10 + "orientation" : "portrait",
11 + "idiom" : "iphone",
12 + "minimum-system-version" : "7.0",
13 + "subtype" : "retina4",
14 + "scale" : "2x"
15 + }
16 + ],
17 + "info" : {
18 + "version" : 1,
19 + "author" : "xcode"
20 + }
21 +}
...\ No newline at end of file ...\ No newline at end of file
1 +{
2 + "info" : {
3 + "version" : 1,
4 + "author" : "xcode"
5 + }
6 +}
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 +<plist version="1.0">
4 +<dict>
5 + <key>CFBundleDevelopmentRegion</key>
6 + <string>en</string>
7 + <key>CFBundleDisplayName</key>
8 + <string>$(PRODUCT_NAME)</string>
9 + <key>CFBundleExecutable</key>
10 + <string>$(EXECUTABLE_NAME)</string>
11 + <key>CFBundleIdentifier</key>
12 + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13 + <key>CFBundleInfoDictionaryVersion</key>
14 + <string>6.0</string>
15 + <key>CFBundleName</key>
16 + <string>$(PRODUCT_NAME)</string>
17 + <key>CFBundlePackageType</key>
18 + <string>APPL</string>
19 + <key>CFBundleShortVersionString</key>
20 + <string>1.0.1</string>
21 + <key>CFBundleSignature</key>
22 + <string>????</string>
23 + <key>CFBundleURLTypes</key>
24 + <array>
25 + <dict>
26 + <key>CFBundleTypeRole</key>
27 + <string>Editor</string>
28 + <key>CFBundleURLSchemes</key>
29 + <array>
30 + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
31 + </array>
32 + </dict>
33 + <dict>
34 + <key>CFBundleTypeRole</key>
35 + <string>Editor</string>
36 + <key>CFBundleURLSchemes</key>
37 + <array>
38 + <string>sdk.uuufish.com</string>
39 + </array>
40 + </dict>
41 + </array>
42 + <key>CFBundleVersion</key>
43 + <string>1</string>
44 + <key>LSRequiresIPhoneOS</key>
45 + <true/>
46 + <key>NSAppTransportSecurity</key>
47 + <dict>
48 + <key>NSAllowsArbitraryLoads</key>
49 + <true/>
50 + </dict>
51 + <key>UIMainStoryboardFile</key>
52 + <string>Main</string>
53 + <key>UIRequiredDeviceCapabilities</key>
54 + <array>
55 + <string>armv7</string>
56 + </array>
57 + <key>UISupportedInterfaceOrientations</key>
58 + <array>
59 + <string>UIInterfaceOrientationPortrait</string>
60 + <string>UIInterfaceOrientationPortraitUpsideDown</string>
61 + </array>
62 +</dict>
63 +</plist>
1 +#import "HaiBaoJuheSDK/HaiBaoJuheSDK2.h"
2 +@interface SDKInterface : Interface
3 +
4 +@end
...\ No newline at end of file ...\ No newline at end of file
1 +#include "SDKInterface.h"
2 +#import <UIKit/UIKit.h>
3 +
4 +#import "HaiBaoJuheSDK/CasperHatredAllManagerPanties.h"
5 +#import "HaiBaoJuheSDK/BluffHatredHuiTiaoNotificationHerbal.h"
6 +#import "HaiBaoJuheSDK/LocusHatredInformationPhotos.h"
7 +
8 +@implementation SDKInterface : Interface
9 +
10 +int mExchange;
11 +NSString *HatredAppId;
12 +NSString *HatredAppKey;
13 +NSString *HatredLeakOrderUrl;
14 +
15 +- (void)SDKinit:(UIViewController *) control
16 +{
17 +
18 + [super SDKinit:control];
19 +
20 + [YieldHaiBaoJuheConfigClouds TenantgetInstancePivot];
21 + [[CasperHatredAllManagerPanties WebcastHatredInstanceCollars]LocusHatredChuShiHuaPhotos];
22 + [[CasperHatredAllManagerPanties WebcastHatredInstanceCollars]MakingHatredYangShiJukebox:@"sdk"];
23 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:YieldHatredLoginNotificationClouds object:nil];
24 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HatredToolCallBack" object:nil];
25 +
26 + [[WestinHaiBaoJuheCheckerDietary CroydongetInstanceKnock] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
27 +
28 + NSString* channelId = [[YieldHaiBaoJuheConfigClouds TenantgetInstancePivot] CaspergetValueByKeyPanties:@"gamechannelid"];
29 + if(channelId == nil || [channelId length] <= 0){
30 + channelId = @"unknown";
31 + }
32 +}
33 +
34 +/**
35 + 登录SDK
36 + */
37 +- (void)SDKloginSDK
38 +{
39 + //APPID APPKEY
40 + HatredAppId = [[YieldHaiBaoJuheConfigClouds TenantgetInstancePivot] CaspergetValueByKeyPanties:@"APP_ID"];
41 + HatredAppKey =[[YieldHaiBaoJuheConfigClouds TenantgetInstancePivot] CaspergetValueByKeyPanties:@"APP_KEY"];
42 + [[CasperHatredAllManagerPanties WebcastHatredInstanceCollars]CoolpixHatredDengLuCharged:HatredAppId :HatredAppKey :self.controller];
43 +
44 +}
45 +
46 +/**
47 + loginCheck
48 + */
49 +- (void)receiveLoginMessage:(NSNotification *)notification
50 +{
51 + NSLog(@"loginchek");
52 + HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
53 + loginInfo.openId = [[LocusHatredInformationPhotos getInstance]openId];
54 + loginInfo.sign = [[LocusHatredInformationPhotos getInstance] token];
55 + loginInfo.timestamp = [[LocusHatredInformationPhotos getInstance] timestamp];
56 +
57 + dispatch_async(dispatch_get_global_queue(0, 0), ^{
58 + [[WestinHaiBaoJuheCheckerDietary CroydongetInstanceKnock] startCheck:loginInfo];
59 + });
60 +
61 +}
62 +
63 +
64 +-(NSString*)DataTojsonString:(id)object
65 +{
66 + NSString *jsonString = nil;
67 + NSError *error;
68 + NSData *jsonData = [NSJSONSerialization dataWithJSONObject:object
69 + options:NSJSONWritingPrettyPrinted // Pass 0 if you don't care about the readability of the generated string
70 + error:&error];
71 + jsonString = [jsonData base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];
72 + return jsonString;
73 +}
74 +
75 +/**
76 + 苹果支付结果回调
77 + */
78 +
79 +- (void)HCKAssetsToolCallBack:(NSNotification *)notification
80 +{
81 + NSDictionary* payResultDic = notification.object;
82 + NSString* receiptStr = [payResultDic objectForKey:@"HatredToolResult"];
83 + NSString* queryId = [payResultDic objectForKey:@"query_id"];
84 +
85 + //收到回调,保存queryid和data
86 + NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
87 + NSMutableArray* queryIdArray = [userDefaults objectForKey:@"queryIds"];
88 + NSMutableArray* tempQueryIdArray = [[NSMutableArray alloc] initWithCapacity:10];
89 + if (queryIdArray) {
90 + }else{
91 + queryIdArray = [[NSMutableArray alloc]initWithCapacity:10];
92 + }
93 + for (NSString* arrayQueryId in queryIdArray) {
94 + [tempQueryIdArray addObject:arrayQueryId];
95 + }
96 + [tempQueryIdArray addObject:queryId];
97 + [userDefaults setObject:tempQueryIdArray forKey:@"queryIds"];
98 + [userDefaults setObject:receiptStr forKey:queryId];
99 +
100 + NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
101 + NSString* result = [[NetCenter getInstance] httpPostSynFillOD:HatredLeakOrderUrl :receiptDic];
102 +
103 + if([@"success" isEqualToString:result]){//确认订单成功
104 + [[WestinHaiBaoJuheCheckerDietary CroydongetInstanceKnock] sendNotice:HaiBaoJuheSDKNotificationGzyazf notiName:@"success" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"success" extendData:nil];
105 + //删除已保存的
106 + [userDefaults removeObjectForKey:queryId];
107 + [tempQueryIdArray removeObject:queryId];
108 + [userDefaults setObject:tempQueryIdArray forKey:@"queryIds"];
109 + [userDefaults removeObjectForKey:@"lastqueryid"];
110 + }
111 + [userDefaults synchronize];
112 +}
113 +
114 +/**
115 + 支付 创建订单
116 + */
117 +- (void)SDKgzyazfWithGzyazfmentInfo:(HaiBaoJuheCreateOrderInfo *)payInfo
118 +{
119 + NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
120 + NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
121 +
122 + HatredLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
123 + [FalconHaiBaoJuheUtilsTelstra YieldcreateGzyazfUrlClouds],
124 + [payInfo userId],
125 + [payInfo playerId]];
126 + [userDefaults setObject:HatredLeakOrderUrl forKey:@"lastHatredLeakOrderUrl"];
127 +
128 + if (lastqueryid!=nil) {
129 + //创建订单前进行补单
130 + NSData* receiptData = [NSData dataWithContentsOfURL:[[NSBundle mainBundle] appStoreReceiptURL]];
131 + NSString* receiptStr = [receiptData base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];
132 + if (receiptStr!=nil) {
133 + receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
134 + //如果不为空,进行最后一次补单
135 + NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
136 + NSString* result = [[NetCenter getInstance] httpPostSynFillOD:HatredLeakOrderUrl :receiptDic];
137 + if([@"success" isEqualToString:result]){//确认订单成功
138 + //删除已保存的
139 + [userDefaults removeObjectForKey:@"lastqueryid"];
140 + }
141 + }
142 + }
143 +
144 + mExchange = [payInfo exchange].intValue;
145 + [super SDKgzyazfWithGzyazfmentInfo:payInfo];
146 + HatredLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
147 + [FalconHaiBaoJuheUtilsTelstra YieldcreateGzyazfUrlClouds],
148 + [payInfo userId],
149 + [payInfo playerId]];
150 + [userDefaults synchronize];
151 +}
152 +
153 +/**
154 + SDK
155 + */
156 +- (void)SDKgotoUserCenter
157 +{
158 +}
159 +
160 +- (void)SDKreport:(HaiBaoJuheReportInfo *)reportInfo
161 +{
162 + NSLog(@"reportInfo");
163 + NSString* reportType = [reportInfo reportType];
164 + if (reportInfo) {
165 + if ([reportType isEqualToString:REPORT_ENTER]) {
166 +
167 + dispatch_async(dispatch_get_global_queue(0, 0), ^{
168 + [self handlerLeakOrder];
169 + });
170 + }else if ([reportType isEqualToString:REPORT_CREATEROLE]){
171 +
172 + }
173 + }
174 +}
175 +
176 +/**
177 + SDK
178 + */
179 +- (void)SDKexitSDK
180 +{
181 +
182 +}
183 +
184 +- (void)SDKlogoutSDK
185 +{
186 + NSLog(@"切换账号");
187 +}
188 +
189 +- (void)handleOpenurl:(NSURL *)url
190 +{
191 +}
192 +
193 +- (void)receivePayMessage : (NSNotification *)notification;
194 +{
195 + NSString *order_id = [notification object];
196 + NSLog(@"订单ID:%@", order_id);
197 +}
198 +
199 +//补单处理
200 +- (void) handlerLeakOrder{
201 + NSUserDefaults* userDefaults2 = [NSUserDefaults standardUserDefaults];
202 + NSMutableArray* queryIdArray = [userDefaults2 objectForKey:@"queryIds"];
203 +
204 + NSLog(@"orderDic%@",queryIdArray);
205 + NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
206 + NSMutableArray* failQueryIdArray = [[NSMutableArray alloc]initWithCapacity:10];
207 +
208 + if(queryIdArray){
209 + for (NSString* queryId in queryIdArray) {
210 + NSString* receiptStr = [userDefaults valueForKey:queryId];
211 + NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
212 + NSString* lastHatredLeakOrderUrl = [userDefaults objectForKey:@"lastHatredLeakOrderUrl"];
213 + NSString* result;
214 + if (lastHatredLeakOrderUrl!=nil) {
215 + result = [[NetCenter getInstance] httpPostSynFillOD:lastHatredLeakOrderUrl :receiptDic];
216 + }else{
217 + result = [[NetCenter getInstance] httpPostSynFillOD:[FalconHaiBaoJuheUtilsTelstra YieldcreateGzyazfUrlClouds] :receiptDic];
218 + }
219 + if([@"success" isEqualToString:result]){//成功
220 + [userDefaults removeObjectForKey:queryId];
221 + }else{//补单失败
222 + [failQueryIdArray addObject:queryId];
223 + }
224 + }
225 +
226 + if([failQueryIdArray count] > 0){//含有补单失败项
227 + [userDefaults setObject:failQueryIdArray forKey:@"queryIds"];
228 + }else{//全部补单成功
229 + [userDefaults removeObjectForKey:@"queryIds"];
230 + }
231 + [userDefaults synchronize];
232 + }
233 +}
234 +
235 +
236 +- (void)receiveCreateOrder:(NSNotification *)notification
237 +{
238 + NSLog(@"创建订单成功");
239 + YieldHaiBaoJuheGzyazfInfoClouds *payInfo = [notification object];
240 +
241 + NSNumber *amount = @([[payInfo postAmount] integerValue] * mExchange);
242 + NSString *serverId = [payInfo serverId];
243 + NSString *roleName = [payInfo playerName];
244 + NSString *queryId = [payInfo queryId];
245 +
246 + dispatch_async(dispatch_get_global_queue(0, 0), ^{
247 + [self handlerLeakOrder];
248 + });
249 +
250 + NSString* products = [payInfo products];
251 + //保存订单号到本地
252 + NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
253 + [userDefaults setObject:queryId forKey:@"lastqueryid"];
254 + [userDefaults synchronize];
255 + [[CasperHatredAllManagerPanties WebcastHatredInstanceCollars] HatredQueryOperation:self.controller HatredHuoWuID:products HatredJiaGe:[payInfo postAmount] HatredHuoWuMing:[payInfo productName] HatredDingDanHao:queryId];
256 +
257 +}
258 +
259 +@end
260 +
1 +{"renyunAppKey": "false", "payorderurl": "https://public.sdk.guangkatf.com/paycheck/create", "usertype": 526, "sdkSimpleName": "goowei_ios",
2 +"APP_ID": "5e53987fa0fab74b58c7b16d", "gamechannelid": "",
3 +"APP_KEY": "ea65244f0d8853fc6e1047abe365066c",
4 +"logReportUrl": "https://public.sdk.shenshouwl.com/sdk/statistic",
5 +"encode": "1",
6 +"sdkVersionCode": "V1_2",
7 +"loginCheckUrl": "https://public.sdk.guangkatf.com/logincheck/check",
8 +"appScheme": "com.hnyafn.blcxaa", "descode": "", "c2": "", "c1": "", "custom": "{}",
9 +"paycheckurl": "https://public.sdk.guangkatf.com/paycheck/confirm",
10 +"gameSimpleName": "ces"}
1 +新接入请参考对接文档和demo<br>
2 +
3 +## 20190916版本后已删除热云相关内容,原来接入过的请删除 TrackingIO.h 和 TrackingIO.a 文件
4 +
5 +## 曾接入公共SDK的快速更新 聚合SDK <br>
6 +1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
7 +3、``` 替换SDKInterface.m文件 ``` <br>
8 +4、``` 删除 PoolSdk.framework ``` <br>
9 +5、``` 引入HaiBaoJuheSDK.framework ``` <br>
10 +6、``` 原pool_setting文件 替换成新 shenshou_config 文件 ``` <br>
11 +7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
12 +
13 +
14 +## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新<br>
15 +1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
16 +3、``` 替换SDKInterface文件 ``` <br>
17 +4、``` 替换HaiBaoJuheSDK.framework ``` <br>
18 +5、``` 原配置文件 替换成新 shenshou_config 文件(可参考demo) ``` <br>
...\ No newline at end of file ...\ No newline at end of file
No preview for this file type
No preview for this file type
1 +# 公共SDK服务端接入文档
2 +
3 +### 1.登录验证
4 + 客户端发送请求参数给服务端,服务端对参数进行 MD5 加密,如果加密结果和serverSign 一致,则验证通过,否则不通过
5 +参数 | 类型 | 描述
6 +------------ | ------------- | ------------
7 +userType | int | 用户类型 ID(渠道类型,兼容以 前帐号体系)
8 +openId | string | 平台渠道方返回用户ID
9 +timestamp | string | 时间戳,公共SDK发送到客户端的参数timestamp, 服务端可以判断 timestamp 是否 在有效的登录时间内
10 +serverSign | string | 验证密钥,公共 SDK 发送到 客户端的参数 serverSign,加密串:gameAppkey=%s&userType=% s&openId=%s&timestamp=%s注意:(改为游戏本身的gameAppkey值)
11 +
12 +验证方式:
13 +serverSign=MD5(gameAppkey=%s&userType=%s&openId=%s&timestamp=%s) 如:
14 +md5("gameAppkey=xxxx&userType=1&openId=123&timestamp=111111111111")
15 +gameAppkey : 在公共SDK后台的 Md5加密的KEY
16 +
17 +`注意!CP必须要以userType+openId保证帐号唯一性`
18 +
19 +### 2. 充值验证(通知游戏方发货)
20 + 公共SDK服务器接收到渠道服务器充值回调,对回调进行 MD5 验证,如果验证通过, 则采用Post方式马上回调给游戏充值服务器,否则不会回调充值服务器,然后再返回 信息给渠道服务器。回调参数如下:
21 +参数 | 类型 | 描述
22 +------------ | -------------| ------------
23 +serverId | int | 服务器 ID
24 +playerId | int | 角色 ID
25 +orderId | string | 渠道方订单 ID
26 +payAmount | double | 充值金额(如有商品 ID,此值为商 品的金额)
27 +currency | string | 充值货币(CNY:人民币)
28 +goodsId | string | 商品ID,参数对一些有商品列表 的充值有效
29 +goodsName | string | 商品名称
30 +remoteIp | string | 客户端充值 IP
31 +custom | string | 透传参数 ,长度 512
32 +serverSign | string | 发给充值服务器验证的注意:(改为游戏本身的 gameAppkey 值)
33 +uId | string | 平台渠道帐号 ID
34 +gameSimpleName | string | 平台SDK后台游戏代号名
35 +sdkSimpleName | string | 平台SDK代号
36 +queryId | string | 平台SDK订单号
37 +postTime | string | 订单创建时间戳
38 +
39 +验证方式:
40 +旧:serverSign=MD5(serverId=%s&playerId=%s&orderId=%s&gameAppKey=%s)
41 +升级:sign=Md5('serverId=%s&playerId=%s&orderId=%s&payAmount=%s&goodsId=%s&sdkSimpleName=%s&gameAppKey=%s')
42 +%s:为相应的值
43 +gameAppkey : 在公共SDK后台的Md5加密的KEY
44 +验证通过后,返回公共 SDK 服务器数据,数据格式:{"code":0,"message":"无订 单"}。code:0 表示失败,1 表示成功,message:描述原因。
45 +
46 +`注意!CP必须要以orderId+sdkSimpleName保证订单唯一性,建议使用sign验证`
...\ No newline at end of file ...\ No newline at end of file
No preview for this file type
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface BluffHatredControlHerbal : NSObject
5 +
6 +
7 +- (void)initHatredInstance;
8 +
9 +- (void) HatredStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +extern NSString * const CasperHatredExitNotificationPanties;
4 +extern NSString * const YieldHatredLoginNotificationClouds;
5 +extern NSString * const TenantHatredErrorNotificationPivot;
6 +
7 +
8 +@interface BluffHatredHuiTiaoNotificationHerbal : NSObject
9 +
10 +@end
1 +#import <UIKit/UIKit.h>
2 +#import "StoreKit/StoreKit.h"
3 +
4 +@interface CasperHatredAllManagerPanties : NSObject
5 +{
6 + NSString* HatredAPPID_;
7 + NSString* HatredAPPKEY_;
8 +
9 + NSString* HatredInviterCode_;
10 +}
11 +
12 +@property(strong) NSMutableArray* HatredList;
13 +@property bool HatredGeiWoHuaQianBa;
14 +
15 ++ (CasperHatredAllManagerPanties *)WebcastHatredInstanceCollars;
16 +
17 +- (void)LocusHatredChuShiHuaPhotos;
18 +
19 +- (void)CoolpixHatredDengLuCharged:(NSString *)HatredAPPID : (NSString *)HatredAPPKEY : (UIViewController *)controller;
20 +
21 +- (void)MakingHatredYangShiJukebox:(NSString*)HatredLeiXing;
22 +
23 +- (void)MakingHatredUrlJukebox:(NSString*)HatredUrl;
24 +
25 +- (void)HatredQuery: (NSString *)HatredFuWuQiID : (NSString *)HatredNickName : (NSNumber *)HatredAmount : (NSString *)HatredCallBack : (UIViewController *)controller : (NSString *)HatredServerName;
26 +
27 +- (void)HatredQueryOperation:(UIViewController*)controll HatredHuoWuID:(NSString*)products HatredJiaGe:(NSString*)amount HatredHuoWuMing:(NSString*)productName HatredDingDanHao:(NSString*) DingDanHao;
28 +
29 +
30 +
31 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +void DGLog(NSString *fmt, ...);
4 +
5 +typedef NS_ENUM(NSInteger, DGLoggerLevel)
6 +{
7 + ELogVerbose = 1,
8 + ELogDebug,
9 + ELogInfo,
10 + ELogWarn,
11 + ELogError
12 +};
13 +
14 +@interface CasperHatredHaiBaoJuheDGLoggerPanties : NSObject
15 +
16 ++ (void)showLog:(NSString *)fmt,...;
17 +
18 ++ (void)showLog:(DGLoggerLevel)level log:(NSString *)fmt,...;
19 +
20 ++ (void)isShowLog:(BOOL)flag;
21 +
22 +@end
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface CoolpixHatredControlCharged : NSObject
5 +
6 +
7 +- (void)initHatredInstance;
8 +
9 +- (void) HatredStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface CroydonHatredControlKnock : NSObject
5 +
6 +
7 +- (void)initHatredInstance;
8 +
9 +- (void) HatredStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +#import <Foundation/Foundation.h>
2 +#import <UIKit/UIKit.h>
3 +
4 +@interface FalconHaiBaoJuheUtilsTelstra : NSObject
5 +
6 ++(NSString *)md5:(NSString *)str;
7 ++ (NSDictionary *) HatredHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
8 ++(NSString *)createGzyazfOrderUrl;
9 +//*充值回调地址
10 ++(NSString *)YieldcreateGzyazfUrlClouds;
11 +
12 ++(UIActivityIndicatorView *)showLoadingDialog:(UIView*)parentView;
13 ++(void)dismissLoadingDialog:(UIActivityIndicatorView*)indicatorView;
14 +
15 +@end
1 +#import <UIKit/UIKit.h>
2 +#import "LocusHatredInformationPhotos.h"
3 +#import <JavaScriptCore/JavaScriptCore.h>
4 +#import <WebKit/WebKit.h>
5 +
6 +@interface FalconHatredMainTelstra : UIViewController<WKNavigationDelegate,WKScriptMessageHandler>
7 +{
8 + WKWebView *webHatredView_;
9 + UIActivityIndicatorView *activityIndicator;
10 +}
11 +
12 +@property(assign) BOOL HatredYouYuanJiao;
13 +
14 +- (void)HatredSettingHatredView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
15 +- (void)HatredInitWebView;
16 +- (void)loadWebPageWithString:(NSString *)url;
17 +- (void)loadWebPageWithJs:(NSString *)content;
18 +- (void)postNotification:(NSString *)name : (NSString *)code;
19 +- (void)receiveIap:(NSNotification *)notification;
20 +
21 +@end
1 +#import <Foundation/Foundation.h>
2 +#import "GTMDefines.h"
3 +@interface GTMBase64 : NSObject
4 +
5 ++(NSData *)encodeData:(NSData *)data;
6 +
7 ++(NSData *)decodeData:(NSData *)data;
8 +
9 ++(NSData *)encodeBytes:(const void *)bytes length:(NSUInteger)length;
10 +
11 ++(NSData *)decodeBytes:(const void *)bytes length:(NSUInteger)length;
12 +
13 ++(NSString *)stringByEncodingData:(NSData *)data;
14 +
15 ++(NSString *)stringByEncodingBytes:(const void *)bytes length:(NSUInteger)length;
16 +
17 ++(NSData *)decodeString:(NSString *)string;
18 +
19 ++(NSData *)webSafeEncodeData:(NSData *)data
20 + padded:(BOOL)padded;
21 +
22 +
23 ++(NSData *)webSafeDecodeData:(NSData *)data;
24 +
25 +
26 ++(NSData *)webSafeEncodeBytes:(const void *)bytes
27 + length:(NSUInteger)length
28 + padded:(BOOL)padded;
29 +
30 +
31 ++(NSData *)webSafeDecodeBytes:(const void *)bytes length:(NSUInteger)length;
32 +
33 ++(NSString *)stringByWebSafeEncodingData:(NSData *)data
34 + padded:(BOOL)padded;
35 +
36 +
37 ++(NSString *)stringByWebSafeEncodingBytes:(const void *)bytes
38 + length:(NSUInteger)length
39 + padded:(BOOL)padded;
40 +
41 +
42 ++(NSData *)webSafeDecodeString:(NSString *)string;
43 +
44 +@end
1 +#include <AvailabilityMacros.h>
2 +#include <TargetConditionals.h>
3 +
4 +#if TARGET_OS_IPHONE
5 +#include <Availability.h>
6 +#endif // TARGET_OS_IPHONE
7 +
8 +// Not all MAC_OS_X_VERSION_10_X macros defined in past SDKs
9 +#ifndef MAC_OS_X_VERSION_10_5
10 +#define MAC_OS_X_VERSION_10_5 1050
11 +#endif
12 +#ifndef MAC_OS_X_VERSION_10_6
13 +#define MAC_OS_X_VERSION_10_6 1060
14 +#endif
15 +
16 +// Not all __IPHONE_X macros defined in past SDKs
17 +#ifndef __IPHONE_2_1
18 +#define __IPHONE_2_1 20100
19 +#endif
20 +#ifndef __IPHONE_2_2
21 +#define __IPHONE_2_2 20200
22 +#endif
23 +#ifndef __IPHONE_3_0
24 +#define __IPHONE_3_0 30000
25 +#endif
26 +#ifndef __IPHONE_3_1
27 +#define __IPHONE_3_1 30100
28 +#endif
29 +#ifndef __IPHONE_3_2
30 +#define __IPHONE_3_2 30200
31 +#endif
32 +#ifndef __IPHONE_4_0
33 +#define __IPHONE_4_0 40000
34 +#endif
35 +
36 +// ----------------------------------------------------------------------------
37 +// CPP symbols that can be overridden in a prefix to control how the toolbox
38 +// is compiled.
39 +// ----------------------------------------------------------------------------
40 +
41 +
42 +// By setting the GTM_CONTAINERS_VALIDATION_FAILED_LOG and
43 +// GTM_CONTAINERS_VALIDATION_FAILED_ASSERT macros you can control what happens
44 +// when a validation fails. If you implement your own validators, you may want
45 +// to control their internals using the same macros for consistency.
46 +#ifndef GTM_CONTAINERS_VALIDATION_FAILED_ASSERT
47 +#define GTM_CONTAINERS_VALIDATION_FAILED_ASSERT 0
48 +#endif
49 +
50 +// Give ourselves a consistent way to do inlines. Apple's macros even use
51 +// a few different actual definitions, so we're based off of the foundation
52 +// one.
53 +#if !defined(GTM_INLINE)
54 +#if defined (__GNUC__) && (__GNUC__ == 4)
55 +#define GTM_INLINE static __inline__ __attribute__((always_inline))
56 +#else
57 +#define GTM_INLINE static __inline__
58 +#endif
59 +#endif
60 +
61 +// Give ourselves a consistent way of doing externs that links up nicely
62 +// when mixing objc and objc++
63 +#if !defined (GTM_EXTERN)
64 +#if defined __cplusplus
65 +#define GTM_EXTERN extern "C"
66 +#define GTM_EXTERN_C_BEGIN extern "C" {
67 +#define GTM_EXTERN_C_END }
68 +#else
69 +#define GTM_EXTERN extern
70 +#define GTM_EXTERN_C_BEGIN
71 +#define GTM_EXTERN_C_END
72 +#endif
73 +#endif
74 +
75 +// Give ourselves a consistent way of exporting things if we have visibility
76 +// set to hidden.
77 +#if !defined (GTM_EXPORT)
78 +#define GTM_EXPORT __attribute__((visibility("default")))
79 +#endif
80 +
81 +// Give ourselves a consistent way of declaring something as unused. This
82 +// doesn't use __unused because that is only supported in gcc 4.2 and greater.
83 +#if !defined (GTM_UNUSED)
84 +#define GTM_UNUSED(x) ((void)(x))
85 +#endif
86 +
87 +// _GTMDevLog & _GTMDevAssert
88 +//
89 +// _GTMDevLog & _GTMDevAssert are meant to be a very lightweight shell for
90 +// developer level errors. This implementation simply macros to NSLog/NSAssert.
91 +// It is not intended to be a general logging/reporting system.
92 +//
93 +// Please see http://code.google.com/p/google-toolbox-for-mac/wiki/DevLogNAssert
94 +// for a little more background on the usage of these macros.
95 +//
96 +// _GTMDevLog log some error/problem in debug builds
97 +// _GTMDevAssert assert if conditon isn't met w/in a method/function
98 +// in all builds.
99 +//
100 +// To replace this system, just provide different macro definitions in your
101 +// prefix header. Remember, any implementation you provide *must* be thread
102 +// safe since this could be called by anything in what ever situtation it has
103 +// been placed in.
104 +//
105 +
106 +// We only define the simple macros if nothing else has defined this.
107 +#ifndef _GTMDevLog
108 +
109 +#ifdef DEBUG
110 +#define _GTMDevLog(...) NSLog(__VA_ARGS__)
111 +#else
112 +#define _GTMDevLog(...) do { } while (0)
113 +#endif
114 +
115 +#endif // _GTMDevLog
116 +
117 +#ifndef _GTMDevAssert
118 +// we directly invoke the NSAssert handler so we can pass on the varargs
119 +// (NSAssert doesn't have a macro we can use that takes varargs)
120 +#if !defined(NS_BLOCK_ASSERTIONS)
121 +#define _GTMDevAssert(condition, ...) \
122 +do { \
123 +if (!(condition)) { \
124 +[[NSAssertionHandler currentHandler] \
125 +handleFailureInFunction:[NSString stringWithUTF8String:__PRETTY_FUNCTION__] \
126 +file:[NSString stringWithUTF8String:__FILE__] \
127 +lineNumber:__LINE__ \
128 +description:__VA_ARGS__]; \
129 +} \
130 +} while(0)
131 +#else // !defined(NS_BLOCK_ASSERTIONS)
132 +#define _GTMDevAssert(condition, ...) do { } while (0)
133 +#endif // !defined(NS_BLOCK_ASSERTIONS)
134 +
135 +#endif // _GTMDevAssert
136 +
137 +// _GTMCompileAssert
138 +// _GTMCompileAssert is an assert that is meant to fire at compile time if you
139 +// want to check things at compile instead of runtime. For example if you
140 +// want to check that a wchar is 4 bytes instead of 2 you would use
141 +// _GTMCompileAssert(sizeof(wchar_t) == 4, wchar_t_is_4_bytes_on_OS_X)
142 +// Note that the second "arg" is not in quotes, and must be a valid processor
143 +// symbol in it's own right (no spaces, punctuation etc).
144 +
145 +// Wrapping this in an #ifndef allows external groups to define their own
146 +// compile time assert scheme.
147 +#ifndef _GTMCompileAssert
148 +// We got this technique from here:
149 +// http://unixjunkie.blogspot.com/2007/10/better-compile-time-asserts_29.html
150 +
151 +#define _GTMCompileAssertSymbolInner(line, msg) _GTMCOMPILEASSERT ## line ## __ ## msg
152 +#define _GTMCompileAssertSymbol(line, msg) _GTMCompileAssertSymbolInner(line, msg)
153 +#define _GTMCompileAssert(test, msg) \
154 +typedef char _GTMCompileAssertSymbol(__LINE__, msg) [ ((test) ? 1 : -1) ]
155 +#endif // _GTMCompileAssert
156 +
157 +// ----------------------------------------------------------------------------
158 +// CPP symbols defined based on the project settings so the GTM code has
159 +// simple things to test against w/o scattering the knowledge of project
160 +// setting through all the code.
161 +// ----------------------------------------------------------------------------
162 +
163 +// Provide a single constant CPP symbol that all of GTM uses for ifdefing
164 +// iPhone code.
165 +#if TARGET_OS_IPHONE // iPhone SDK
166 +// For iPhone specific stuff
167 +#define GTM_IPHONE_SDK 1
168 +#if TARGET_IPHONE_SIMULATOR
169 +#define GTM_IPHONE_SIMULATOR 1
170 +#else
171 +#define GTM_IPHONE_DEVICE 1
172 +#endif // TARGET_IPHONE_SIMULATOR
173 +#else
174 +// For MacOS specific stuff
175 +#define GTM_MACOS_SDK 1
176 +#endif
177 +
178 +// Some of our own availability macros
179 +#if GTM_MACOS_SDK
180 +#define GTM_AVAILABLE_ONLY_ON_IPHONE UNAVAILABLE_ATTRIBUTE
181 +#define GTM_AVAILABLE_ONLY_ON_MACOS
182 +#else
183 +#define GTM_AVAILABLE_ONLY_ON_IPHONE
184 +#define GTM_AVAILABLE_ONLY_ON_MACOS UNAVAILABLE_ATTRIBUTE
185 +#endif
186 +
187 +// Provide a symbol to include/exclude extra code for GC support. (This mainly
188 +// just controls the inclusion of finalize methods).
189 +#ifndef GTM_SUPPORT_GC
190 +#if GTM_IPHONE_SDK
191 +// iPhone never needs GC
192 +#define GTM_SUPPORT_GC 0
193 +#else
194 +// We can't find a symbol to tell if GC is supported/required, so best we
195 +// do on Mac targets is include it if we're on 10.5 or later.
196 +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
197 +#define GTM_SUPPORT_GC 0
198 +#else
199 +#define GTM_SUPPORT_GC 1
200 +#endif
201 +#endif
202 +#endif
203 +
204 +// To simplify support for 64bit (and Leopard in general), we provide the type
205 +// defines for non Leopard SDKs
206 +#if !(MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
207 +// NSInteger/NSUInteger and Max/Mins
208 +#ifndef NSINTEGER_DEFINED
209 +#if __LP64__ || NS_BUILD_32_LIKE_64
210 +typedef long NSInteger;
211 +typedef unsigned long NSUInteger;
212 +#else
213 +typedef int NSInteger;
214 +typedef unsigned int NSUInteger;
215 +#endif
216 +#define NSIntegerMax LONG_MAX
217 +#define NSIntegerMin LONG_MIN
218 +#define NSUIntegerMax ULONG_MAX
219 +#define NSINTEGER_DEFINED 1
220 +#endif // NSINTEGER_DEFINED
221 +// CGFloat
222 +#ifndef CGFLOAT_DEFINED
223 +#if defined(__LP64__) && __LP64__
224 +// This really is an untested path (64bit on Tiger?)
225 +typedef double CGFloat;
226 +#define CGFLOAT_MIN DBL_MIN
227 +#define CGFLOAT_MAX DBL_MAX
228 +#define CGFLOAT_IS_DOUBLE 1
229 +#else /* !defined(__LP64__) || !__LP64__ */
230 +typedef float CGFloat;
231 +#define CGFLOAT_MIN FLT_MIN
232 +#define CGFLOAT_MAX FLT_MAX
233 +#define CGFLOAT_IS_DOUBLE 0
234 +#endif /* !defined(__LP64__) || !__LP64__ */
235 +#define CGFLOAT_DEFINED 1
236 +#endif // CGFLOAT_DEFINED
237 +#endif // MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
238 +
239 +// Some support for advanced clang static analysis functionality
240 +// See http://clang-analyzer.llvm.org/annotations.html
241 +#ifndef __has_feature // Optional.
242 +#define __has_feature(x) 0 // Compatibility with non-clang compilers.
243 +#endif
244 +
245 +#ifndef NS_RETURNS_RETAINED
246 +#if __has_feature(attribute_ns_returns_retained)
247 +#define NS_RETURNS_RETAINED __attribute__((ns_returns_retained))
248 +#else
249 +#define NS_RETURNS_RETAINED
250 +#endif
251 +#endif
252 +
253 +#ifndef NS_RETURNS_NOT_RETAINED
254 +#if __has_feature(attribute_ns_returns_not_retained)
255 +#define NS_RETURNS_NOT_RETAINED __attribute__((ns_returns_not_retained))
256 +#else
257 +#define NS_RETURNS_NOT_RETAINED
258 +#endif
259 +#endif
260 +
261 +#ifndef CF_RETURNS_RETAINED
262 +#if __has_feature(attribute_cf_returns_retained)
263 +#define CF_RETURNS_RETAINED __attribute__((cf_returns_retained))
264 +#else
265 +#define CF_RETURNS_RETAINED
266 +#endif
267 +#endif
268 +
269 +#ifndef CF_RETURNS_NOT_RETAINED
270 +#if __has_feature(attribute_cf_returns_not_retained)
271 +#define CF_RETURNS_NOT_RETAINED __attribute__((cf_returns_not_retained))
272 +#else
273 +#define CF_RETURNS_NOT_RETAINED
274 +#endif
275 +#endif
276 +
277 +// Defined on 10.6 and above.
278 +#ifndef NS_FORMAT_ARGUMENT
279 +#define NS_FORMAT_ARGUMENT(A)
280 +#endif
281 +
282 +// Defined on 10.6 and above.
283 +#ifndef NS_FORMAT_FUNCTION
284 +#define NS_FORMAT_FUNCTION(F,A)
285 +#endif
286 +
287 +// Defined on 10.6 and above.
288 +#ifndef CF_FORMAT_ARGUMENT
289 +#define CF_FORMAT_ARGUMENT(A)
290 +#endif
291 +
292 +// Defined on 10.6 and above.
293 +#ifndef CF_FORMAT_FUNCTION
294 +#define CF_FORMAT_FUNCTION(F,A)
295 +#endif
296 +
297 +#ifndef GTM_NONNULL
298 +#define GTM_NONNULL(x) __attribute__((nonnull(x)))
299 +#endif
300 +
301 +#ifdef __OBJC__
302 +
303 +// Declared here so that it can easily be used for logging tracking if
304 +// necessary. See GTMUnitTestDevLog.h for details.
305 +@class NSString;
306 +GTM_EXTERN void _GTMUnitTestDevLog(NSString *format, ...);
307 +
308 +// Macro to allow you to create NSStrings out of other macros.
309 +// #define FOO foo
310 +// NSString *fooString = GTM_NSSTRINGIFY(FOO);
311 +#if !defined (GTM_NSSTRINGIFY)
312 +#define GTM_NSSTRINGIFY_INNER(x) @#x
313 +#define GTM_NSSTRINGIFY(x) GTM_NSSTRINGIFY_INNER(x)
314 +#endif
315 +
316 +// Macro to allow fast enumeration when building for 10.5 or later, and
317 +// reliance on NSEnumerator for 10.4. Remember, NSDictionary w/ FastEnumeration
318 +// does keys, so pick the right thing, nothing is done on the FastEnumeration
319 +// side to be sure you're getting what you wanted.
320 +#ifndef GTM_FOREACH_OBJECT
321 +#if TARGET_OS_IPHONE || !(MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5)
322 +#define GTM_FOREACH_ENUMEREE(element, enumeration) \
323 +for (element in enumeration)
324 +#define GTM_FOREACH_OBJECT(element, collection) \
325 +for (element in collection)
326 +#define GTM_FOREACH_KEY(element, collection) \
327 +for (element in collection)
328 +#else
329 +#define GTM_FOREACH_ENUMEREE(element, enumeration) \
330 +for (NSEnumerator *_ ## element ## _enum = enumeration; \
331 +(element = [_ ## element ## _enum nextObject]) != nil; )
332 +#define GTM_FOREACH_OBJECT(element, collection) \
333 +GTM_FOREACH_ENUMEREE(element, [collection objectEnumerator])
334 +#define GTM_FOREACH_KEY(element, collection) \
335 +GTM_FOREACH_ENUMEREE(element, [collection keyEnumerator])
336 +#endif
337 +#endif
338 +
339 +// ============================================================================
340 +
341 +// To simplify support for both Leopard and Snow Leopard we declare
342 +// the Snow Leopard protocols that we need here.
343 +#if !defined(GTM_10_6_PROTOCOLS_DEFINED) && !(MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)
344 +#define GTM_10_6_PROTOCOLS_DEFINED 1
345 +@protocol NSConnectionDelegate
346 +@end
347 +@protocol NSAnimationDelegate
348 +@end
349 +@protocol NSImageDelegate
350 +@end
351 +@protocol NSTabViewDelegate
352 +@end
353 +#endif // !defined(GTM_10_6_PROTOCOLS_DEFINED) && !(MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)
354 +
355 +// GTM_SEL_STRING is for specifying selector (usually property) names to KVC
356 +// or KVO methods.
357 +// In debug it will generate warnings for undeclared selectors if
358 +// -Wunknown-selector is turned on.
359 +// In release it will have no runtime overhead.
360 +#ifndef GTM_SEL_STRING
361 +#ifdef DEBUG
362 +#define GTM_SEL_STRING(selName) NSStringFromSelector(@selector(selName))
363 +#else
364 +#define GTM_SEL_STRING(selName) @#selName
365 +#endif // DEBUG
366 +#endif // GTM_SEL_STRING
367 +
368 +#endif // __OBJC__
1 +#import "TenantHatredHaiBaoJuheBaseModelPivot.h"
2 +@interface HaiBaoJuheCreateOrderInfo : TenantHatredHaiBaoJuheBaseModelPivot
3 +
4 +@property(nonatomic,strong)NSString *serverId;//服务器ID
5 +@property(nonatomic, strong)NSString *serverName;//服务器名称
6 +@property(nonatomic, strong)NSString *playerId;//玩家ID
7 +@property(nonatomic, strong)NSString *playerName;//玩家名称
8 +@property(nonatomic, strong)NSString *playerLevel;//玩家等级
9 +@property(nonatomic, strong)NSString *postAmount;//金额
10 +@property(nonatomic, strong)NSString *productId;//产品ID
11 +@property(nonatomic, strong)NSString *productName;//产品名称
12 +@property(nonatomic, strong)NSString *productDesc;//产品描述
13 +@property(nonatomic, strong)NSString *custom;//透传参数
14 +@property(nonatomic, strong)NSString *exchange;//兑换比例
15 +@property(nonatomic, strong)NSString *otherInfo;//扩展参数
16 +@property(nonatomic, strong)NSString *userId;//用户ID
17 +@property(nonatomic, strong)NSString *timestamp;//时间戳
18 +
19 +- (NSString *) HatredHaiBaoJuheGetTsign ;
20 +- (NSString *) HatredHaiBaoJuheGetTimestamp ;
21 +
22 +@end
1 +#import "TenantHatredHaiBaoJuheBaseModelPivot.h"
2 +@interface HaiBaoJuheLoginInfo : TenantHatredHaiBaoJuheBaseModelPivot
3 +
4 +@property(nonatomic,strong)NSString *timestamp;
5 +@property(nonatomic, strong)NSString *sign;
6 +@property(nonatomic, strong)NSString *other;
7 +@property(nonatomic, strong)NSString *openId;
8 +@property(nonatomic, strong)NSString *userType;
9 +
10 +
11 +@end
1 +//
2 +// HatredHaiBaoJuheReportInfo.h
3 +// HaiBaoJuheSDK
4 +//
5 +// Created by winFan on 12/21/15.
6 +// Copyright (c) 2015 winFan. All rights reserved.
7 +//
8 +
9 +#import "TenantHatredHaiBaoJuheBaseModelPivot.h"
10 +@interface HaiBaoJuheReportInfo : TenantHatredHaiBaoJuheBaseModelPivot
11 +
12 +@property(nonatomic, strong)NSString *reportType;//类型
13 +@property(nonatomic, strong)NSString *playerId;//玩家ID
14 +@property(nonatomic, strong)NSString *playerName;//玩家名称
15 +@property(nonatomic, strong)NSString *playerLevel;//玩家等级
16 +@property(nonatomic, strong)NSString *roleSex;//角色性别(1男0女)
17 +
18 +@property(nonatomic, strong)NSString *serverId;//服务器ID
19 +@property(nonatomic, strong)NSString *serverName;//服务器名称
20 +@property(nonatomic, strong)NSNumber *roleCTime;//创建角色时间(秒)
21 +@property(nonatomic, strong)NSString *partyName;//工会名称
22 +@property(nonatomic, strong)NSString *roleType;//角色类型
23 +@property(nonatomic, strong)NSNumber *roleChangeTime;//角色等级更新时间(秒)
24 +@property(nonatomic, strong)NSString *vipLevel;//vip等级
25 +@property(nonatomic, strong)NSNumber *diamond;//余额
26 +@property(nonatomic, strong)NSString *moneyType;//商品单位(元宝,金币)
27 +
28 +@property(nonatomic, strong)NSString *custom;//透传参数
29 +
30 +
31 +@property(nonatomic, strong)NSString *openId;
32 +
33 +//#define REPORT_URL @"https://statistic.public.sdk.haibaoyouxi.com/sdk/statistic"
34 +
35 +//#define REPORT_IDFA_URL @"https://statistic.public.sdk.haibaoyouxi.com/sdk/last_channel?idfa=%@&sdkSimpleName=%@&gameSimpleName=%@"
36 +
37 +#define REPORT_OPEN @"open"
38 +#define REPORT_ENTER @"enter"
39 +#define REPORT_CREATEROLE @"createrole"
40 +#define REPORT_ROLEUPGRADE @"roleupgrade"
41 +#define REPORT_SDK_OPEN @"opensdk"
42 +#define REPORT_EXIT @"exit"
43 +#define REPORT_SELECT_SERVER @"selectserver"
44 +
45 +@end
1 +#import <Foundation/Foundation.h>
2 +#import "HaiBaoJuheSDK2.h"
3 +
4 +#import <UIKit/UIKit.h>
5 +
6 +@interface HaiBaoJuheSDK : NSObject
7 +
8 +@property(nonatomic, strong, readonly)NSString *sdkVersion;
9 +
10 +
11 +@property(nonatomic, strong)NSString *urlSchemes;
12 +
13 +@property(strong) NSMutableArray* HatredList;
14 +
15 +@property BOOL isAppleGzyazfing;
16 +
17 ++ (HaiBaoJuheSDK *)shareSDK;
18 +
19 +
20 +- (void)initSDK:(UIViewController *) control;
21 +
22 +
23 +-(void)viewDidAppear;
24 +
25 +- (void)setViewController:(UIViewController *)viewController;
26 +
27 +
28 +- (void)loginSDK;
29 +
30 +- (void)loginSDK:(UIViewController *)viewController;
31 +
32 +
33 +- (void)gzyazfWithGzyazfmentInfo:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
34 +
35 +
36 +- (BOOL)hasUserCenter;
37 +
38 +
39 +- (void)gotoUserCenter;
40 +
41 +
42 +- (void)reportSDK:(HaiBaoJuheReportInfo *)reportInfo;
43 +
44 +
45 +- (BOOL)hasLogout;
46 +
47 +
48 +- (void)logoutSDK;
49 +
50 +
51 +- (BOOL)hasSwitchAccount;
52 +
53 +
54 +- (void)switchAccount;
55 +
56 +
57 +- (BOOL)hasExit;
58 +
59 +
60 +- (void)exitSDK;
61 +
62 +- (void)destroySDK;
63 +
64 +@property(nonatomic, assign)ESDKOrientation sdkOrientation;
65 +
66 +@property(nonatomic, assign)BOOL bShowedFloat;
67 +
68 +
69 +@property(nonatomic, assign)int serverId;
70 +
71 +
72 +-(NSString *) getGameChannelId;
73 +
74 +- (NSString *) getCustomValue;
75 +
76 +- (NSString *) getChannelParameter1;
77 +
78 +- (NSString *) getChannelParameter2;
79 +
80 +-(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray*)customArray;
81 +
82 +
83 +- (void)handleOpenurl:(NSURL *)url;
84 +
85 +- (NSUInteger) application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window;
86 +
87 +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
88 +
89 +- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
90 +
91 +
92 +- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ;
93 +
94 +- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
95 +
96 +
97 +- (void)applicationDidEnterBackground:(UIApplication *)application;
98 +
99 +- (void)applicationDidBecomeActive:(UIApplication *)application;
100 +
101 +- (void)applicationWillEnterForeground:(UIApplication *)application;
102 +
103 +- (void)applicationWillResignActive:(UIApplication *)application;
104 +
105 +-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options;
106 +
107 +- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;
108 +
109 +@end
1 +#import <UIKit/UIKit.h>
2 +#import "WestinHaiBaoJuheCheckerDietary.h"
3 +#import "HaiBaoJuheReportInfo.h"
4 +#import "HaiBaoJuheLoginInfo.h"
5 +#import "Interface.h"
6 +#import "YieldHaiBaoJuheNotificationClouds.h"
7 +#import "YieldHaiBaoJuheGzyazfInfoClouds.h"
8 +#import "UnionInterface.h"
9 +#import "HaiBaoJuheCreateOrderInfo.h"
10 +#import "YieldHaiBaoJuheConfigClouds.h"
11 +#import "FalconHaiBaoJuheUtilsTelstra.h"
12 +#import "NetCenter.h"
13 +#import "HaiBaoJuheSDK.h"
14 +#import "HaiBaoJuheSDKDelegate.h"
1 +#import <Foundation/Foundation.h>
2 +
3 +@protocol HaiBaoJuheSDKDelegate <NSObject>
4 +@optional
5 +-(void)HaiBaoJuheSDKLoginSuccess:(HaiBaoJuheLoginInfo*)loginInfo;
6 +-(void)HaiBaoJuheSDKLoginFail:(NSString*)msg;
7 +
8 +-(void)HaiBaoJuheSDKSwitchAccountSuccess:(HaiBaoJuheLoginInfo*)loginInfo;
9 +-(void)HaiBaoJuheSDKSwitchAccountFail:(NSString*)msg;
10 +@end
1 +//
2 +// IAPHelper.h
3 +//
4 +// Original Created by Ray Wenderlich on 2/28/11.
5 +// Created by saturngod on 7/9/12.
6 +// Copyright 2011 Ray Wenderlich. All rights reserved.
7 +//
8 +
9 +#import <Foundation/Foundation.h>
10 +#import "StoreKit/StoreKit.h"
11 +
12 +
13 +typedef void (^IAPProductsResponseBlock)(SKProductsRequest* request , SKProductsResponse* response);
14 +
15 +typedef void (^IAPbuyProductCompleteResponseBlock)(SKPaymentTransaction* transcation);
16 +
17 +typedef void (^checkReceiptCompleteResponseBlock)(NSString* response,NSError* error);
18 +
19 +typedef void (^resoreProductsCompleteResponseBlock) (SKPaymentQueue* payment,NSError* error);
20 +
21 +@interface IAPHelper : NSObject <SKProductsRequestDelegate, SKPaymentTransactionObserver>
22 +
23 +@property (nonatomic,strong) NSSet *productIdentifiers;
24 +@property (nonatomic,strong) NSArray * products;
25 +@property (nonatomic,strong) NSMutableSet *purchasedProducts;
26 +@property (nonatomic,strong) SKProductsRequest *request;
27 +@property (nonatomic) BOOL production;
28 +
29 +//init With Product Identifiers
30 +- (id)initWithProductIdentifiers:(NSSet *)productIdentifiers;
31 +
32 +//get Products List
33 +- (void)requestProductsWithCompletion:(IAPProductsResponseBlock)completion;
34 +
35 +
36 +//Buy Product
37 +- (void)buyProduct:(SKProduct *)productIdentifier onCompletion:(IAPbuyProductCompleteResponseBlock)completion;
38 +
39 +//restore Products
40 +- (void)restoreProductsWithCompletion:(resoreProductsCompleteResponseBlock)completion;
41 +
42 +//check isPurchased or not
43 +- (BOOL)isPurchasedProductsIdentifier:(NSString*)productID;
44 +
45 +//check receipt but recommend to use in server side instead of using this function
46 +- (void)checkReceipt:(NSData*)receiptData onCompletion:(checkReceiptCompleteResponseBlock)completion;
47 +
48 +- (void)checkReceipt:(NSData*)receiptData AndSharedSecret:(NSString*)secretKey onCompletion:(checkReceiptCompleteResponseBlock)completion;
49 +
50 +
51 +//saved purchased product
52 +- (void)provideContentWithTransaction:(SKPaymentTransaction *)transaction;
53 +
54 +- (void)provideContent:(NSString *)productIdentifier __deprecated_msg("use provideContentWithTransaction: instead.");
55 +
56 +//clear the saved products
57 +- (void)clearSavedPurchasedProducts;
58 +- (void)clearSavedPurchasedProductByID:(NSString*)productIdentifier;
59 +
60 +
61 +//Get The Price with local currency
62 +- (NSString *)getLocalePrice:(SKProduct *)product;
63 +
64 +@end
1 +//
2 +// IAPShare.h
3 +// ;
4 +//
5 +// Created by Htain Lin Shwe on 10/7/12.
6 +// Copyright (c) 2012 Edenpod. All rights reserved.
7 +//
8 +
9 +#import <Foundation/Foundation.h>
10 +#import "IAPHelper.h"
11 +@interface IAPShare : NSObject
12 +@property (nonatomic,strong) IAPHelper *iap;
13 +
14 ++ (IAPShare *) sharedHelper;
15 +
16 ++(id)toJSON:(NSString*)json;
17 +@end
1 +//
2 +// Interface.h
3 +// HaiBaoJuheSDK
4 +//
5 +// Created by winFan on 12/10/15.
6 +// Copyright (c) 2015 winFan. All rights reserved.
7 +//
8 +
9 +
10 +#include "UnionInterface.h"
11 +@interface Interface : NSObject <UnionInterface>
12 +@property(nonatomic, strong)UIViewController *controller;
13 +
14 +
15 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +@interface LocusHatredInformationPhotos : NSObject
4 +{
5 +//
6 +NSString *openId;
7 +NSString *token;
8 +NSString *timestamp;
9 +
10 +}
11 +
12 +@property(retain,nonatomic) NSString *openId;
13 +@property(retain,nonatomic) NSString *token;
14 +@property(retain,nonatomic) NSString *timestamp;
15 ++ (LocusHatredInformationPhotos *)getInstance;
16 +@end
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface MakingHatredControlJukebox : NSObject
5 +
6 +
7 +- (void)initHatredInstance;
8 +
9 +- (void) HatredStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +@interface MakingHatredInformationJMJukebox : NSObject
4 +
5 ++(NSString *)HatredJM:(NSString *)jm;
6 +
7 +@end
1 +//
2 +// NSString+Base64.h
3 +// Newsstand
4 +//
5 +// Created by Carlo Vigiani on 29/Oct/11.
6 +// Copyright (c) 2011 viggiosoft. All rights reserved.
7 +//
8 +
9 +#import <Foundation/Foundation.h>
10 +
11 +@interface NSString (Base64)
12 +
13 ++ (NSString *) base64StringFromData:(NSData *)data length:(long)length;
14 +
15 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +@interface NSURLRequest (SSL)
4 ++(BOOL)allowsAnyHTTPSCertificateForHost:(NSString*)host;
5 +
6 ++(void)setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString*)host;
7 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +@interface NetCenter : NSObject
4 +
5 +@property(nonatomic,retain) NSMutableData *receiveData;
6 +
7 +@property(nonatomic,assign)int dataPackSerialNo;
8 +
9 +
10 ++ (NetCenter *)getInstance;
11 +
12 +- (NSString *)httpGetSyn:(NSString *) getUrl;
13 +
14 +- (NSString *)httpPostSyn:(NSString *) postUrl : (NSDictionary *) postData;
15 +
16 +- (NSString *)httpPostSynFillOD:(NSString *) postUrl : (NSDictionary *) postData;
17 +
18 +
19 +
20 +- (void)httpPostNoSyn:(NSString *) postUrl :(NSDictionary *)postDict;
21 +
22 +- (void)httpPostAsync:(NSString*)postUrl :(NSDictionary*)postDict;
23 +
24 +- (void)httpPostAsyncOpen:(NSString*)postUrl :(NSDictionary*)postDict;
25 +
26 +-(void)httpGetAsync:(NSString *)url completionHandler:(void (^ __nullable)(NSURLResponse* __nullable response, NSData* __nullable data, NSError* __nullable connectionError)) handler;
27 +
28 +-(void)httpPostAsyncChannel:(NSString *)postUrl postString:(NSString *)postString completionHandler:(void (^)(NSURLResponse * _Nullable, NSData * _Nullable, NSError * _Nullable))handler;
29 +
30 +- (NSString * __nullable)dicToString:(NSDictionary * __nullable) dict;
31 +@end
1 +#ifndef __HaiBaoJuheSDK__OtherSetting__
2 +#define __HaiBaoJuheSDK__OtherSetting__
3 +
4 +
5 +/**
6 + 应用支持的方向
7 + */
8 +typedef NS_ENUM(NSUInteger, ESDKOrientation) {
9 + ESDKOrientationPortrait = 1,//竖
10 + ESDKOrientationLandscape,//横
11 + ESDKOrientationNone//自动旋转
12 +};
13 +
14 +/**
15 + 应用支持的方向
16 + */
17 +typedef NS_ENUM(NSUInteger, REPORT_TYPE) {
18 + REPORT_TYPE_OPEN = 1,//竖
19 + REPORT_TYPE_ENTER,//横
20 + REPORT_TYPE_DEFINE//自动旋转
21 +};
22 +
23 +#endif /* defined(__HaiBaoJuheSDK__OtherSetting__) */
1 +#import "HaiBaoJuheSDK2.h"
2 +@interface SDKInterface : Interface
3 +
4 +@end
1 +//
2 +// SFHFKeychainUtils.h
3 +//
4 +// Created by Buzz Andersen on 10/20/08.
5 +// Based partly on code by Jonathan Wight, Jon Crosby, and Mike Malone.
6 +// Copyright 2008 Sci-Fi Hi-Fi. All rights reserved.
7 +//
8 +// Permission is hereby granted, free of charge, to any person
9 +// obtaining a copy of this software and associated documentation
10 +// files (the "Software"), to deal in the Software without
11 +// restriction, including without limitation the rights to use,
12 +// copy, modify, merge, publish, distribute, sublicense, and/or sell
13 +// copies of the Software, and to permit persons to whom the
14 +// Software is furnished to do so, subject to the following
15 +// conditions:
16 +//
17 +// The above copyright notice and this permission notice shall be
18 +// included in all copies or substantial portions of the Software.
19 +//
20 +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
22 +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
25 +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27 +// OTHER DEALINGS IN THE SOFTWARE.
28 +//
29 +
30 +#import <UIKit/UIKit.h>
31 +
32 +
33 +@interface SFHFKeychainUtils : NSObject {
34 +
35 +}
36 +
37 ++ (NSString *) getPasswordForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error;
38 ++ (BOOL) storeUsername: (NSString *) username andPassword: (NSString *) password forServiceName: (NSString *) serviceName updateExisting: (BOOL) updateExisting error: (NSError **) error;
39 ++ (BOOL) deleteItemForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error;
40 +
41 +@end
...\ No newline at end of file ...\ No newline at end of file
1 +#import <Foundation/Foundation.h>
2 +
3 +NS_ASSUME_NONNULL_BEGIN
4 +
5 +@interface TenantHatredEncryptToolPivot : NSObject
6 +
7 ++ (NSString *)base64EncodedStringWithWrapWidth:(NSUInteger)wrapWidth withData:(NSData *)argData;
8 +
9 ++ (NSString *)doCipher:(NSString*)encryptValue andPassword:(NSString *)password;
10 +
11 ++ (NSString *)decryptUseDES:(NSString *)cipherText andPassword:(NSString *)password;
12 +
13 +@end
14 +
15 +NS_ASSUME_NONNULL_END
1 +#import <Foundation/Foundation.h>
2 +#import "OtherSetting.h"
3 +
4 +@interface TenantHatredHaiBaoJuheBaseModelPivot : NSObject
5 +
6 +- (NSString *) HatredHaiBaoJuheObjectToJsonString;
7 +- (NSMutableString *)paramAddToString;
8 +- (id)initWithDiction:(NSDictionary *)diction;
9 +
10 +@end
1 +#import <Foundation/Foundation.h>
2 +#import <UIKit/UIKit.h>
3 +#import "HaiBaoJuheSDK2.h"
4 +
5 +@protocol UnionInterface
6 +/**
7 + 初始化SDK
8 + */
9 +
10 +//[[PoolChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationGzyazf notiName:@"" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"" extendData:order_id];
11 +
12 +- (void)SDKinit:(UIViewController *) control;
13 +
14 +
15 +- (void)setViewController:(UIViewController *) viewController;
16 +
17 +/**
18 + 登录SDK
19 + */
20 +- (void)SDKloginSDK;
21 +
22 +
23 +- (void)SDKloginSDK:(UIViewController *) control;
24 +
25 +/**
26 + *是否含有注销接口
27 + */
28 +- (BOOL)hasLogout;
29 +
30 +/**
31 + 注销
32 + */
33 +- (void)SDKlogoutSDK;
34 +
35 +
36 +/**
37 + *是否含有退出接口
38 + **/
39 +- (BOOL)hasExit;
40 +
41 +/**
42 + 退出接口
43 + */
44 +- (void)SDKexitSDK;
45 +
46 +
47 +/**
48 + *SDK销毁操作(游戏退出时调用)
49 + */
50 +
51 +- (void)destroySDK;
52 +
53 +
54 +/**
55 + *是否含有用户中心接口
56 + **/
57 +- (BOOL)hasUserCenter;
58 +
59 +/**
60 + 用户中心
61 + */
62 +- (void)SDKgotoUserCenter;
63 +
64 +/**
65 + *是否含有切换账号接口
66 + **/
67 +- (BOOL)hasSwitchAccount;
68 +
69 +/**
70 + *切换账号
71 + **/
72 +- (void)switchAccount;
73 +
74 +
75 +- (void)viewDidAppear;
76 +
77 +/**
78 + 提交数据
79 + */
80 +- (void)SDKreport:(HaiBaoJuheReportInfo *) reportInfo;
81 +
82 +/**
83 + 进行支付
84 + */
85 +
86 +- (void)SDKgzyazfWithGzyazfmentInfo:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
87 +- (void)receiveCreateOrder: (NSNotification *)notification;
88 +
89 +/**
90 + *充值统计参数
91 + *accountId 账号ID,必填项, 和登陆、注册使用的accountId保持一致即可。
92 + *orderId 订单Id,必填项,请保证该值的全局唯一,系统会使用订单Id进行付费订单排重。
93 + *currencyAmount 货币金额,单位为元,支持小数
94 + *currencyType 货币类型
95 + *gzyazfType 支付类型(渠道)
96 + */
97 +-(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray *)customArray;
98 +
99 +- (void)handleOpenurl:(NSURL *)url;
100 +- (NSUInteger) application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window;
101 +
102 +
103 +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
104 +
105 +- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
106 +
107 +//推送
108 +- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ;
109 +//推送
110 +- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
111 +
112 +
113 +- (void)applicationDidEnterBackground:(UIApplication *)application;
114 +
115 +- (void)applicationDidBecomeActive:(UIApplication *)application;
116 +
117 +- (void)applicationWillEnterForeground:(UIApplication *)application;
118 +
119 +- (void)applicationWillResignActive:(UIApplication *)application;
120 +
121 +-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options;
122 +
123 +- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;
124 +@end
1 +#import <UIKit/UIKit.h>
2 +
3 +@interface WebcastHatredIAPHelperControlCollars : NSObject<UITableViewDelegate, UITableViewDataSource>
4 +
5 +@property(nonatomic,strong) NSString* HatredDingDanHao;
6 +@property(nonatomic,strong) NSDictionary* HatredHuoWuLieBiao;
7 +@property(nonatomic,strong) NSMutableArray* HatredHuoWuIDLieBiao;
8 +@property(nonatomic, strong) UITableView *HatredHuoWuLieBiaoView;
9 +
10 +- (void)HatredHuaQianView:(UIViewController*)controller HatredHuoWuD:(NSString*)products HatredQian:(NSString*)amount HatredHuoWuMing:(NSString*)productName HatredDingDanHao:(NSString*)DingDanHao;
11 +
12 +@end
1 +#import <Foundation/Foundation.h>
2 +#import "HaiBaoJuheLoginInfo.h"
3 +#import "YieldHaiBaoJuheNotificationClouds.h"
4 +#import "HaiBaoJuheCreateOrderInfo.h"
5 +#import "YieldHaiBaoJuheGzyazfInfoClouds.h"
6 +#import "HaiBaoJuheReportInfo.h"
7 +#import "HaiBaoJuheSDKDelegate.h"
8 +
9 +@interface WestinHaiBaoJuheCheckerDietary : NSObject<HaiBaoJuheSDKDelegate>
10 +@property(nonatomic, strong)NSString *userId;
11 +@property(nonatomic, strong)id<HaiBaoJuheSDKDelegate> mHaiBaoJuheSDKDelegate;
12 +
13 +@property bool onlyOneTimeGzyazf;
14 ++ (WestinHaiBaoJuheCheckerDietary *)CroydongetInstanceKnock;
15 +- (void)initChecker;
16 +- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
17 +- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
18 +- (void) HatredHaiBaoJuhereportOpen;
19 +- (void) HatredHaiBaoJuhereportSDKOpen;
20 +- (void) HatredHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
21 +- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
22 +- (void) HatredHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
23 +- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
24 + notiName:(NSString *)notiName
25 + statusCode:(int)nCode
26 + description:(NSString *)szDescripton
27 + extendData:(NSObject *)extendData;
28 +
29 +- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
30 +
31 +- (void) HatredHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
32 +
33 +/*
34 + *初始化时调用
35 + */
36 +- (void)setHaiBaoJuheSDKDelegate:(nullable id<HaiBaoJuheSDKDelegate>)HaiBaoJuheSDKDeletate;
37 +@end
38 +
39 +
40 +
41 +
1 +#import <UIKit/UIKit.h>
2 +
3 +@interface WestinHatredLocationDietary : NSObject
4 +
5 ++ (NSString *)HatredSKCloudServiceSetupOptionsKey;
6 +@end
7 +
1 +#import <Foundation/Foundation.h>
2 +
3 +@interface YieldHaiBaoJuheConfigClouds : NSObject
4 +
5 +@property(nonatomic, strong)NSString *gameSimpleName;
6 +@property(nonatomic, strong)NSString *sdkSimpleName;
7 +@property(nonatomic, strong)NSString *sdkVersionCode;
8 +@property(nonatomic, strong)NSString *loginCheckUrl;
9 +@property(nonatomic, strong)NSString *gzyazfOrderUrl;
10 +@property(nonatomic, strong)NSString *gzyazfCheckUrl;
11 +@property(nonatomic, strong)NSString *c1;
12 +@property(nonatomic, strong)NSString *c2;
13 +@property(nonatomic, strong)NSString *custom;
14 +
15 ++ (YieldHaiBaoJuheConfigClouds *)TenantgetInstancePivot;
16 +
17 +- (void) loadFile:(NSString *) fileName;
18 +
19 +- (NSString *)CaspergetValueByKeyPanties:(NSString *) key;
20 +
21 +- (void) updateC1C2Value:(NSString *)c1 c2:(NSString *)c2;
22 +
23 +@end
1 +#import "TenantHatredHaiBaoJuheBaseModelPivot.h"
2 +@interface YieldHaiBaoJuheGzyazfInfoClouds : TenantHatredHaiBaoJuheBaseModelPivot
3 +
4 +@property(nonatomic, strong)NSString *serverId;
5 +@property(nonatomic, strong)NSString *queryId;
6 +@property(nonatomic, strong)NSString *playerId;
7 +@property(nonatomic, strong)NSString *playerName;
8 +@property(nonatomic, strong)NSString *postAmount;
9 +@property(nonatomic, strong)NSString *productId;
10 +@property(nonatomic, strong)NSString *products;
11 +@property(nonatomic, strong)NSString *custom;
12 +@property(nonatomic, strong)NSString *postTime;
13 +@property(nonatomic, strong)NSString *other;
14 +
15 +//游戏传递过来的原值
16 +@property(nonatomic, strong)NSString *serverName;//服务器名称
17 +@property(nonatomic, strong)NSString *playerLevel;//玩家等级
18 +@property(nonatomic, strong)NSString *productName;//产品名称
19 +@property(nonatomic, strong)NSString *productDesc;//产品描述
20 +@property(nonatomic, strong)NSString *exchange;//兑换比例
21 +
22 +@end
1 +//
2 +// YieldHaiBaoJuheNotificationClouds.h
3 +// public_i9133
4 +//
5 +// Created by winFan on 12/1/15.
6 +// Copyright (c) 2015 winFan. All rights reserved.
7 +//
8 +
9 +#import <Foundation/Foundation.h>
10 +
11 +extern NSString * const HaiBaoJuheSDK_Notification; /**< */
12 +extern NSString * const _create_order_notification; /**< */
13 +
14 +
15 +/**
16 + 应用支持的方向
17 + */
18 +typedef NS_ENUM(int, HaiBaoJuheSDKNotificationType) {
19 + HaiBaoJuheSDKNotificationLogin = 1,//登录
20 + HaiBaoJuheSDKNotificationLogout,//注销
21 + HaiBaoJuheSDKNotificationGzyazf,//支付完成
22 + HaiBaoJuheSDKNotificationPause,//暂停退出
23 + HaiBaoJuheSDKNotificationRole,//创建角色
24 + HaiBaoJuheSDKNotificationInitSDK,//初始化SDK
25 + HaiBaoJuheSDKNotificationSwitchAccount,//切换账号
26 + HaiBaoJuheSDKNotificationExit//退出游戏
27 +};
28 +
29 +
30 +
31 +@interface YieldHaiBaoJuheNotificationClouds : NSObject
32 +
33 +@end
34 +
35 +
36 +//////////////////////////////////////////////////////////////////////
37 +@interface HaiBaoJuheSDKResult : NSObject
38 +@property(nonatomic, assign)int statusCode;//请参照此文件下面状态标识
39 +@property(nonatomic, strong)NSString *resultDescription;
40 +@property(nonatomic, strong)NSObject *extendData;
41 +//V1.2.0新增
42 +@property(nonatomic, assign)HaiBaoJuheSDKNotificationType notiType;//消息类型
43 +@property(nonatomic, strong)NSString *notiName;//消息名称
44 +@end
45 +//////////////////////////////////////////////////////////////////////
46 +
47 +//////////////////////////////////////////////////////////////////////
48 +/* 状态标识 */
49 +#define HaiBaoJuheSDK_NO_ERROR 0 /*操作成功*/
50 +
51 +#define HaiBaoJuheSDK_ERROR_LOGIN_FAILED -100 /*登录失败*/
52 +#define HaiBaoJuheSDK_ERROR_LOGIN_CANCEL -101 /*登录取消*/
53 +#define HaiBaoJuheSDK_ERROR_LOGIN_GAMGEACCOUNT -102 /*游戏帐号登录,非平台账号*/
54 +
55 +#define HaiBaoJuheSDK_ERROR_PAY_FAILED -200 /*支付失败*/
56 +#define HaiBaoJuheSDK_ERROR_PAY_CANCEL -201 /*支付取消*/
57 +#define HaiBaoJuheSDK_ERROR_PAY_VERSIGN -202 /*支付验签失败*/
58 +#define HaiBaoJuheSDK_ERROR_CREATE_ORDER_FAILED -203 /*支付验签失败*/
59 +
60 +#define HaiBaoJuheSDK_ERROR_ROLE_CREATE_FAILED -300 /*角色创建失败*/
61 +
62 +#define HaiBaoJuheSDK_ERROR_INIT_FAILED -400 /*初始化失败*/
63 +
64 +#define HaiBaoJuheSDK_ERROR_SWICHT_ACCOUNT_FAILED -500 /*切换账号失败*/
65 +
66 +#define HaiBaoJuheSDK_ERROR_EXIT_CANCEL -600 /*退出取消*/
67 +
68 +//////////////////////////////////////////////////////////////////////
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface YieldHatredControlClouds : NSObject
5 +
6 +
7 +- (void)initHatredInstance;
8 +
9 +- (void) HatredStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
No preview for this file type
1 +framework module HaiBaoJuheSDK {
2 + umbrella header "HaiBaoJuheSDK.h"
3 +
4 + export *
5 + module * { export * }
6 +}
No preview for this file type
No preview for this file type
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 +<plist version="1.0">
4 +<dict>
5 + <key>CFBundleDevelopmentRegion</key>
6 + <string>en</string>
7 + <key>CFBundleExecutable</key>
8 + <string>$(EXECUTABLE_NAME)</string>
9 + <key>CFBundleIdentifier</key>
10 + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11 + <key>CFBundleInfoDictionaryVersion</key>
12 + <string>6.0</string>
13 + <key>CFBundleName</key>
14 + <string>$(PRODUCT_NAME)</string>
15 + <key>CFBundlePackageType</key>
16 + <string>APPL</string>
17 + <key>CFBundleShortVersionString</key>
18 + <string>1.0</string>
19 + <key>CFBundleSignature</key>
20 + <string>????</string>
21 + <key>CFBundleURLTypes</key>
22 + <array>
23 + <dict>
24 + <key>CFBundleTypeRole</key>
25 + <string>Editor</string>
26 + <key>CFBundleURLSchemes</key>
27 + <array>
28 + <string>com.youai.sdk</string>
29 + </array>
30 + </dict>
31 + </array>
32 + <key>CFBundleVersion</key>
33 + <string>1</string>
34 + <key>LSRequiresIPhoneOS</key>
35 + <true/>
36 + <key>UILaunchStoryboardName</key>
37 + <string>LaunchScreen</string>
38 + <key>UIMainStoryboardFile</key>
39 + <string>Main</string>
40 + <key>UIRequiredDeviceCapabilities</key>
41 + <array>
42 + <string>armv7</string>
43 + </array>
44 + <key>UISupportedInterfaceOrientations</key>
45 + <array>
46 + <string>UIInterfaceOrientationLandscapeLeft</string>
47 + <string>UIInterfaceOrientationLandscapeRight</string>
48 + </array>
49 +</dict>
50 +</plist>
1 +#import "HaiBaoJuheSDK/HaiBaoJuheSDK2.h"
2 +@interface SDKInterface : Interface
3 +
4 +@end
...\ No newline at end of file ...\ No newline at end of file
1 +#include "SDKInterface.h"
2 +#import <UIKit/UIKit.h>
3 +
4 +#import "HaiBaoJuheSDK/CasperHatredAllManagerPanties.h"
5 +#import "HaiBaoJuheSDK/BluffHatredHuiTiaoNotificationHerbal.h"
6 +#import "HaiBaoJuheSDK/LocusHatredInformationPhotos.h"
7 +
8 +@implementation SDKInterface : Interface
9 +
10 +int mExchange;
11 +NSString *HatredAppId;
12 +NSString *HatredAppKey;
13 +NSString *HatredLeakOrderUrl;
14 +
15 +- (void)SDKinit:(UIViewController *) control
16 +{
17 +
18 + [super SDKinit:control];
19 +
20 + [YieldHaiBaoJuheConfigClouds TenantgetInstancePivot];
21 + [[CasperHatredAllManagerPanties WebcastHatredInstanceCollars]LocusHatredChuShiHuaPhotos];
22 + [[CasperHatredAllManagerPanties WebcastHatredInstanceCollars]MakingHatredYangShiJukebox:@"sdk"];
23 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:YieldHatredLoginNotificationClouds object:nil];
24 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HatredToolCallBack" object:nil];
25 +
26 + [[WestinHaiBaoJuheCheckerDietary CroydongetInstanceKnock] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
27 +
28 + NSString* channelId = [[YieldHaiBaoJuheConfigClouds TenantgetInstancePivot] CaspergetValueByKeyPanties:@"gamechannelid"];
29 + if(channelId == nil || [channelId length] <= 0){
30 + channelId = @"unknown";
31 + }
32 +}
33 +
34 +/**
35 + 登录SDK
36 + */
37 +- (void)SDKloginSDK
38 +{
39 + //APPID APPKEY
40 + HatredAppId = [[YieldHaiBaoJuheConfigClouds TenantgetInstancePivot] CaspergetValueByKeyPanties:@"APP_ID"];
41 + HatredAppKey =[[YieldHaiBaoJuheConfigClouds TenantgetInstancePivot] CaspergetValueByKeyPanties:@"APP_KEY"];
42 + [[CasperHatredAllManagerPanties WebcastHatredInstanceCollars]CoolpixHatredDengLuCharged:HatredAppId :HatredAppKey :self.controller];
43 +
44 +}
45 +
46 +/**
47 + loginCheck
48 + */
49 +- (void)receiveLoginMessage:(NSNotification *)notification
50 +{
51 + NSLog(@"loginchek");
52 + HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
53 + loginInfo.openId = [[LocusHatredInformationPhotos getInstance]openId];
54 + loginInfo.sign = [[LocusHatredInformationPhotos getInstance] token];
55 + loginInfo.timestamp = [[LocusHatredInformationPhotos getInstance] timestamp];
56 +
57 + dispatch_async(dispatch_get_global_queue(0, 0), ^{
58 + [[WestinHaiBaoJuheCheckerDietary CroydongetInstanceKnock] startCheck:loginInfo];
59 + });
60 +
61 +}
62 +
63 +
64 +-(NSString*)DataTojsonString:(id)object
65 +{
66 + NSString *jsonString = nil;
67 + NSError *error;
68 + NSData *jsonData = [NSJSONSerialization dataWithJSONObject:object
69 + options:NSJSONWritingPrettyPrinted // Pass 0 if you don't care about the readability of the generated string
70 + error:&error];
71 + jsonString = [jsonData base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];
72 + return jsonString;
73 +}
74 +
75 +/**
76 + 苹果支付结果回调
77 + */
78 +
79 +- (void)HCKAssetsToolCallBack:(NSNotification *)notification
80 +{
81 + NSDictionary* payResultDic = notification.object;
82 + NSString* receiptStr = [payResultDic objectForKey:@"HatredToolResult"];
83 + NSString* queryId = [payResultDic objectForKey:@"query_id"];
84 +
85 + //收到回调,保存queryid和data
86 + NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
87 + NSMutableArray* queryIdArray = [userDefaults objectForKey:@"queryIds"];
88 + NSMutableArray* tempQueryIdArray = [[NSMutableArray alloc] initWithCapacity:10];
89 + if (queryIdArray) {
90 + }else{
91 + queryIdArray = [[NSMutableArray alloc]initWithCapacity:10];
92 + }
93 + for (NSString* arrayQueryId in queryIdArray) {
94 + [tempQueryIdArray addObject:arrayQueryId];
95 + }
96 + [tempQueryIdArray addObject:queryId];
97 + [userDefaults setObject:tempQueryIdArray forKey:@"queryIds"];
98 + [userDefaults setObject:receiptStr forKey:queryId];
99 +
100 + NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
101 + NSString* result = [[NetCenter getInstance] httpPostSynFillOD:HatredLeakOrderUrl :receiptDic];
102 +
103 + if([@"success" isEqualToString:result]){//确认订单成功
104 + [[WestinHaiBaoJuheCheckerDietary CroydongetInstanceKnock] sendNotice:HaiBaoJuheSDKNotificationGzyazf notiName:@"success" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"success" extendData:nil];
105 + //删除已保存的
106 + [userDefaults removeObjectForKey:queryId];
107 + [tempQueryIdArray removeObject:queryId];
108 + [userDefaults setObject:tempQueryIdArray forKey:@"queryIds"];
109 + [userDefaults removeObjectForKey:@"lastqueryid"];
110 + }
111 + [userDefaults synchronize];
112 +}
113 +
114 +/**
115 + 支付 创建订单
116 + */
117 +- (void)SDKgzyazfWithGzyazfmentInfo:(HaiBaoJuheCreateOrderInfo *)payInfo
118 +{
119 + NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
120 + NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
121 +
122 + HatredLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
123 + [FalconHaiBaoJuheUtilsTelstra YieldcreateGzyazfUrlClouds],
124 + [payInfo userId],
125 + [payInfo playerId]];
126 + [userDefaults setObject:HatredLeakOrderUrl forKey:@"lastHatredLeakOrderUrl"];
127 +
128 + if (lastqueryid!=nil) {
129 + //创建订单前进行补单
130 + NSData* receiptData = [NSData dataWithContentsOfURL:[[NSBundle mainBundle] appStoreReceiptURL]];
131 + NSString* receiptStr = [receiptData base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];
132 + if (receiptStr!=nil) {
133 + receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
134 + //如果不为空,进行最后一次补单
135 + NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
136 + NSString* result = [[NetCenter getInstance] httpPostSynFillOD:HatredLeakOrderUrl :receiptDic];
137 + if([@"success" isEqualToString:result]){//确认订单成功
138 + //删除已保存的
139 + [userDefaults removeObjectForKey:@"lastqueryid"];
140 + }
141 + }
142 + }
143 +
144 + mExchange = [payInfo exchange].intValue;
145 + [super SDKgzyazfWithGzyazfmentInfo:payInfo];
146 + HatredLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
147 + [FalconHaiBaoJuheUtilsTelstra YieldcreateGzyazfUrlClouds],
148 + [payInfo userId],
149 + [payInfo playerId]];
150 + [userDefaults synchronize];
151 +}
152 +
153 +/**
154 + SDK
155 + */
156 +- (void)SDKgotoUserCenter
157 +{
158 +}
159 +
160 +- (void)SDKreport:(HaiBaoJuheReportInfo *)reportInfo
161 +{
162 + NSLog(@"reportInfo");
163 + NSString* reportType = [reportInfo reportType];
164 + if (reportInfo) {
165 + if ([reportType isEqualToString:REPORT_ENTER]) {
166 +
167 + dispatch_async(dispatch_get_global_queue(0, 0), ^{
168 + [self handlerLeakOrder];
169 + });
170 + }else if ([reportType isEqualToString:REPORT_CREATEROLE]){
171 +
172 + }
173 + }
174 +}
175 +
176 +/**
177 + SDK
178 + */
179 +- (void)SDKexitSDK
180 +{
181 +
182 +}
183 +
184 +- (void)SDKlogoutSDK
185 +{
186 + NSLog(@"切换账号");
187 +}
188 +
189 +- (void)handleOpenurl:(NSURL *)url
190 +{
191 +}
192 +
193 +- (void)receivePayMessage : (NSNotification *)notification;
194 +{
195 + NSString *order_id = [notification object];
196 + NSLog(@"订单ID:%@", order_id);
197 +}
198 +
199 +//补单处理
200 +- (void) handlerLeakOrder{
201 + NSUserDefaults* userDefaults2 = [NSUserDefaults standardUserDefaults];
202 + NSMutableArray* queryIdArray = [userDefaults2 objectForKey:@"queryIds"];
203 +
204 + NSLog(@"orderDic%@",queryIdArray);
205 + NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
206 + NSMutableArray* failQueryIdArray = [[NSMutableArray alloc]initWithCapacity:10];
207 +
208 + if(queryIdArray){
209 + for (NSString* queryId in queryIdArray) {
210 + NSString* receiptStr = [userDefaults valueForKey:queryId];
211 + NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
212 + NSString* lastHatredLeakOrderUrl = [userDefaults objectForKey:@"lastHatredLeakOrderUrl"];
213 + NSString* result;
214 + if (lastHatredLeakOrderUrl!=nil) {
215 + result = [[NetCenter getInstance] httpPostSynFillOD:lastHatredLeakOrderUrl :receiptDic];
216 + }else{
217 + result = [[NetCenter getInstance] httpPostSynFillOD:[FalconHaiBaoJuheUtilsTelstra YieldcreateGzyazfUrlClouds] :receiptDic];
218 + }
219 + if([@"success" isEqualToString:result]){//成功
220 + [userDefaults removeObjectForKey:queryId];
221 + }else{//补单失败
222 + [failQueryIdArray addObject:queryId];
223 + }
224 + }
225 +
226 + if([failQueryIdArray count] > 0){//含有补单失败项
227 + [userDefaults setObject:failQueryIdArray forKey:@"queryIds"];
228 + }else{//全部补单成功
229 + [userDefaults removeObjectForKey:@"queryIds"];
230 + }
231 + [userDefaults synchronize];
232 + }
233 +}
234 +
235 +
236 +- (void)receiveCreateOrder:(NSNotification *)notification
237 +{
238 + NSLog(@"创建订单成功");
239 + YieldHaiBaoJuheGzyazfInfoClouds *payInfo = [notification object];
240 +
241 + NSNumber *amount = @([[payInfo postAmount] integerValue] * mExchange);
242 + NSString *serverId = [payInfo serverId];
243 + NSString *roleName = [payInfo playerName];
244 + NSString *queryId = [payInfo queryId];
245 +
246 + dispatch_async(dispatch_get_global_queue(0, 0), ^{
247 + [self handlerLeakOrder];
248 + });
249 +
250 + NSString* products = [payInfo products];
251 + //保存订单号到本地
252 + NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
253 + [userDefaults setObject:queryId forKey:@"lastqueryid"];
254 + [userDefaults synchronize];
255 + [[CasperHatredAllManagerPanties WebcastHatredInstanceCollars] HatredQueryOperation:self.controller HatredHuoWuID:products HatredJiaGe:[payInfo postAmount] HatredHuoWuMing:[payInfo productName] HatredDingDanHao:queryId];
256 +
257 +}
258 +
259 +@end
260 +
1 +{"renyunAppKey": "", "payorderurl": "https://api.qgwanjunchuan.com/paycheck/create", "usertype": 526, "sdkSimpleName": "apple_shenshou", "APP_ID": "5d63e36f79a1084b4e418ab5", "gamechannelid": "", "APP_KEY": "bb97e092c7c464627b1d607057e865c1", "logReportUrl": "https://api.qgwanjunchuan.com/sdk/statistic", "encode": "1", "sdkVersionCode": "V1_2", "loginCheckUrl": "https://api.qgwanjunchuan.com/logincheck/check", "appScheme": "com.hngz.ouxiang", "descode": "ouxiang1", "c2": "", "c1": "", "custom": "{}", "paycheckurl": "https://api.qgwanjunchuan.com/paycheck/confirm", "gameSimpleName": "1061"}