使用友盟授权QQ、微信登录,绑定AVUser时crash
Opened this issue · 1 comments
ChenYilong commented
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] ;
ChenYilong commented
这里也贴了一些代码:#57