Commit 43c7e8b3 authored by 1365102044's avatar 1365102044

fix

parent cd4e6ff9
......@@ -168,6 +168,8 @@
* @since 0.0.1
*/
+ (NSData *)encodeJSON:(id)obj {
//有时第一次安装时因为obj=nil carsh
if (obj == nil) return nil;
NSData *data = [NSJSONSerialization dataWithJSONObject:obj options:0 error:nil];
return data;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment