parent
67ccec51e4
commit
280592e888
|
@ -9,7 +9,7 @@
|
|||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface MOB_addWebExtentionApi : MOPBaseApi
|
||||
@interface MOP_addWebExtentionApi : MOPBaseApi
|
||||
@property(nonatomic, copy) NSString* name;
|
||||
@end
|
||||
|
|
@ -5,11 +5,11 @@
|
|||
// Created by 王滔 on 2021/12/21.
|
||||
//
|
||||
|
||||
#import "MOB_addWebExtentionApi.h"
|
||||
#import "MOP_addWebExtentionApi.h"
|
||||
#import "MopPlugin.h"
|
||||
#import <FinApplet/FinApplet.h>
|
||||
|
||||
@implementation MOB_addWebExtentionApi
|
||||
@implementation MOP_addWebExtentionApi
|
||||
|
||||
- (void)setupApiWithSuccess:(void (^)(NSDictionary<NSString *,id> * _Nonnull))success failure:(void (^)(id _Nullable))failure cancel:(void (^)(void))cancel
|
||||
{
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// MOP_changeUserId.h
|
||||
// mop
|
||||
//
|
||||
// Created by 滔 on 2023/3/23.
|
||||
//
|
||||
|
||||
#import "MOPBaseApi.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface MOP_changeUserId : MOPBaseApi
|
||||
@property (nonatomic, copy) NSString *userId;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,17 @@
|
|||
//
|
||||
// MOP_changeUserId.m
|
||||
// mop
|
||||
//
|
||||
// Created by 滔 on 2023/3/23.
|
||||
//
|
||||
|
||||
#import "MOP_changeUserId.h"
|
||||
#import <FinApplet/FinApplet.h>
|
||||
|
||||
@implementation MOP_changeUserId
|
||||
- (void)setupApiWithSuccess:(void (^)(NSDictionary<NSString *,id> * _Nonnull))success failure:(void (^)(id _Nullable))failure cancel:(void (^)(void))cancel
|
||||
{
|
||||
[FATClient sharedClient].config.currentUserId = self.userId;
|
||||
success(@{});
|
||||
}
|
||||
@end
|
|
@ -250,10 +250,16 @@
|
|||
failure(@"初始化失败");
|
||||
return;
|
||||
}
|
||||
FATLogLevel logLevel = [self.config[@"logLevel"] integerValue];
|
||||
|
||||
NSInteger logLevelIntValue = [self.config[@"logLevel"] integerValue];
|
||||
if (logLevelIntValue >= 5) {
|
||||
[[FATClient sharedClient].logManager closeLog];
|
||||
} else {
|
||||
FATLogLevel logLevel = logLevelIntValue;
|
||||
NSString *logDir = self.config[@"logDir"];
|
||||
// [[FATExtClient sharedClient] fat_prepareExtensionApis];
|
||||
[[FATClient sharedClient].logManager initLogWithLogDir:logDir logLevel:logLevel consoleLog:YES];
|
||||
}
|
||||
|
||||
|
||||
|
||||
[[FATClient sharedClient] setEnableLog:YES];
|
||||
|
|
Loading…
Reference in New Issue