Skip to content

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

Description

@ChenYilong

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions