Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

初始化信息后返回 NO,怎么试都不行 #2

Open
a875282902 opened this issue Nov 26, 2023 · 0 comments
Open

初始化信息后返回 NO,怎么试都不行 #2

a875282902 opened this issue Nov 26, 2023 · 0 comments

Comments

@a875282902
Copy link

What happened?

20231126211237

What did you expect to happen?

初始化成功

How can we reproduce it (as minimally and precisely as possible)?

NSMutableDictionary *param = [NSMutableDictionary new];

param[@"platform"] = @(1);
param[@"api_addr"] = @"https://api.lanhaiyouxuan.cn";
param[@"ws_addr"]  = @"";
param[@"data_dir"] = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES).firstObject stringByAppendingString:@"/"];
param[@"log_level"] = @(6);
param[@"object_storage"] = @"minio";
param[@"is_need_encryption"] = @(0);
param[@"is_compression"] = @(0);
param[@"is_external_extensions"] = @(0);

NSData *jsonData = [NSJSONSerialization dataWithJSONObject:param options:NSJSONWritingSortedKeys error:nil];
NSString *strJson = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];


BOOL success = Open_im_sdkInitSDK(nil, @"0", strJson);

Anything else we need to know?

No response

version

```console $ {name} version # paste output here ```

Cloud provider

OS version

xocde

Install tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant