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、微信登录,绑定AVUser时crash #56

Open
ChenYilong opened this issue Jan 17, 2017 · 1 comment
Open

使用友盟授权QQ、微信登录,绑定AVUser时crash #56

ChenYilong opened this issue Jan 17, 2017 · 1 comment
Labels

Comments

@ChenYilong
Copy link
Contributor

ChenYilong commented Jan 17, 2017

crash日志如下:

问题出在resp.expiration的格式是字典格式:

          >  dataDict[@"expires_in"] = resp.expiration;

将resp.expiration改成字符串格式就好了

NSDateFormatter *dateFormatter=[[NSDateFormatter alloc]init];//创建一个日期格式化器
           dateFormatter.dateFormat=@"yyyy-MM-dd hh:mm:ss";//指定转date得日期格式化形式
           NSLog(@"%@",[dateFormatter stringFromDate:resp.expiration]);//2015-11-20 08:24:04
           dataDict[@"expires_in"] =[dateFormatter stringFromDate:resp.expiration] ;

参考:https://forum.leancloud.cn/t/leancloud/11261

https://leanticket.cn/t/leancloud/3608

@ChenYilong ChenYilong changed the title 微信登录crash 使用友盟授权微信登录,绑定AVUser时crash Jan 17, 2017
@ChenYilong ChenYilong changed the title 使用友盟授权微信登录,绑定AVUser时crash 使用友盟授权QQ、微信登录,绑定AVUser时crash Jan 17, 2017
@ChenYilong
Copy link
Contributor Author

这里也贴了一些代码:#57

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

No branches or pull requests

1 participant