Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMPhobos
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMPhobos
Commits
5f256125
Commit
5f256125
authored
Jan 19, 2021
by
王伟明
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lwq/3.38.1' into 'master'
fix 添加判断 See merge request
!78
parents
cd4e6ff9
43c7e8b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
PhobosUtil.m
GMPhobos/Classes/PhobosUtil.m
+2
-0
No files found.
GMPhobos/Classes/PhobosUtil.m
View file @
5f256125
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment