1
This commit is contained in:
@@ -36,9 +36,9 @@
|
||||
#else
|
||||
type = 1;
|
||||
#endif
|
||||
|
||||
NSDictionary *params = @{ @"payment": @{ @"receipt": receipt ?: @"", @"type": @(type) } };
|
||||
|
||||
|
||||
// , @"type": @(type)
|
||||
NSDictionary *params = @{ @"receipt": receipt ?: @""};
|
||||
__weak typeof(self) weakSelf = self;
|
||||
[self.payVM applePayReqWithParams:params needShow:NO completion:^(NSInteger sta, NSString * _Nullable msg) {
|
||||
[KBHUD dismiss];
|
||||
@@ -56,13 +56,9 @@
|
||||
#pragma mark - Helpers
|
||||
|
||||
- (BOOL)checkLogin {
|
||||
BOOL loggedIn = [[KBAuthManager shared] isLoggedIn];
|
||||
BOOL loggedIn = [[KBUserSessionManager shared] isLoggedIn];
|
||||
if (!loggedIn) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
UIViewController *top = [UIViewController kb_topMostViewController];
|
||||
if (top) { [KBLoginSheetViewController presentIfNeededFrom:top]; }
|
||||
});
|
||||
return NO;
|
||||
[[KBUserSessionManager shared] goLoginVC];
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user