|
@@ -11,7 +11,7 @@
|
|
|
|
|
|
#define BUGLY_APPID @"5abbbc0f08"
|
|
|
|
|
|
-#ifdef FUNCTION_PAY
|
|
|
+#ifdef DEBUG_PAY_SDK
|
|
|
@interface ChineseMedicineManager()<WXApiDelegate>
|
|
|
#else
|
|
|
@interface ChineseMedicineManager()
|
|
@@ -354,7 +354,7 @@
|
|
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
|
|
[Bugly startWithAppId:BUGLY_APPID];
|
|
|
|
|
|
-#ifdef FUNCTION_PAY
|
|
|
+#ifdef DEBUG_PAY_SDK
|
|
|
//向微信注册
|
|
|
[WXApi registerApp:PAY_WX_APPID universalLink:PAY_WX_UNIVERSALLINK];
|
|
|
#endif
|
|
@@ -362,14 +362,14 @@
|
|
|
}
|
|
|
|
|
|
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArray<id<UIUserActivityRestoring>> * __nullable restorableObjects))restorationHandler {
|
|
|
-#ifdef FUNCTION_PAY
|
|
|
+#ifdef DEBUG_PAY_SDK
|
|
|
[WXApi handleOpenUniversalLink:userActivity delegate:self];
|
|
|
#endif
|
|
|
return YES;
|
|
|
}
|
|
|
|
|
|
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options {
|
|
|
-#ifdef FUNCTION_PAY
|
|
|
+#ifdef DEBUG_PAY_SDK
|
|
|
//alipay
|
|
|
if ([url.host isEqualToString:@"safepay"]) {
|
|
|
//跳转支付宝客户端进行支付,处理支付结果
|
|
@@ -383,7 +383,7 @@
|
|
|
}
|
|
|
|
|
|
- (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts API_AVAILABLE(ios(13.0)){
|
|
|
-#ifdef FUNCTION_PAY
|
|
|
+#ifdef DEBUG_PAY_SDK
|
|
|
if (URLContexts.count > 0) {
|
|
|
NSEnumerator *enumerator = [URLContexts objectEnumerator];
|
|
|
UIOpenURLContext *urlContext = [enumerator nextObject];
|
|
@@ -397,7 +397,7 @@
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
-#ifdef FUNCTION_PAY
|
|
|
+#ifdef DEBUG_PAY_SDK
|
|
|
- (void)onReq:(BaseReq*)req {
|
|
|
}
|
|
|
|