Skip to content

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

@a875282902

Description

@a875282902

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions