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

编译源码发现libqimcommon的QIMFileManager中找不到依赖QIMImageManager #49

Open
wittech opened this issue Mar 4, 2020 · 0 comments

Comments

@wittech
Copy link

wittech commented Mar 4, 2020

编译源码发现libqimcommon的QIMFileManager中找不到依赖QIMImageManager:

/**
上传图片成功之后会,发送图片消息
@param localImageKey 图片key
@param message 要发送的消息Model
*/

  • (void)qim_uploadImageWithImageKey:(NSString *)localImageKey forMessage:(QIMMessageModel *)message {

    if (localImageKey.length > 0 && [[NSFileManager defaultManager] fileExistsAtPath:localImageKey]) {
    //兼容以前传进来全路径的问题
    [self qim_uploadImageWithImagePath:localImageKey forMessage:message];
    } else {
    //新版本使用半路径
    NSString *localImagePath = [[QIMImageManager sharedInstance] defaultCachePathForKey:localImageKey];
    [self qim_uploadImageWithImagePath:localImagePath forMessage:message];
    }
    }

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