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

QQ分享无效或者闪退-iOS #161

Open
f2yu opened this issue Nov 12, 2018 · 1 comment
Open

QQ分享无效或者闪退-iOS #161

f2yu opened this issue Nov 12, 2018 · 1 comment

Comments

@f2yu
Copy link

f2yu commented Nov 12, 2018

当appid不足10位时,转化的16进制不足8位,如果16进制前面不补0,分享至QQ,QQ卡死一会之后就崩溃了,如果补0至8位,则分享至QQ无任何操作;将appid换成demo里面的就没问题,不知道是什么情况

@f2yu
Copy link
Author

f2yu commented Nov 12, 2018

原因是pod导入后的代码问题,16进制字符串的转换方式与下载下来的源码不一样
+(void)connectQQWithAppId:(NSString *)appId{
[self set:schema Keys:@{@"appid":appId,@"callback_name":[NSString stringWithFormat:@"QQ%02llx",[appId longLongValue]]}];
}
===>
[self set:schema Keys:@{@"appid":appId,@"callback_name":[NSString stringWithFormat:@"QQ%08llX",[appId longLongValue]]}];

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