Commit 5f256125 authored by 王伟明's avatar 王伟明

Merge branch 'lwq/3.38.1' into 'master'

fix 添加判断

See merge request !78
parents cd4e6ff9 43c7e8b3
......@@ -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