Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
D
Dolphins
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmj
Dolphins
Commits
2ed73cf2
Commit
2ed73cf2
authored
Aug 01, 2020
by
zhangguangyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add cache list
parent
aaa5b56b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
0 deletions
+29
-0
.DS_Store
.DS_Store
+0
-0
UserInterfaceState.xcuserstate
...a/zhangguangyi.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
Breakpoints_v2.xcbkptlist
...gguangyi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
+11
-0
ZJGuardViewController.m
Dolphins/Classes/Guard/Controller/ZJGuardViewController.m
+18
-0
No files found.
.DS_Store
View file @
2ed73cf2
No preview for this file type
Dolphins.xcworkspace/xcuserdata/zhangguangyi.xcuserdatad/UserInterfaceState.xcuserstate
View file @
2ed73cf2
No preview for this file type
Dolphins.xcworkspace/xcuserdata/zhangguangyi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
View file @
2ed73cf2
...
@@ -15,5 +15,16 @@
...
@@ -15,5 +15,16 @@
stopOnStyle =
"0"
>
stopOnStyle =
"0"
>
</BreakpointContent>
</BreakpointContent>
</BreakpointProxy>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID =
"Xcode.Breakpoint.ExceptionBreakpoint"
>
<BreakpointContent
uuid =
"3D1E0B48-F25D-4803-B8BA-801A7D280BF8"
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
scope =
"1"
stopOnStyle =
"0"
>
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Breakpoints>
</Bucket>
</Bucket>
Dolphins/Classes/Guard/Controller/ZJGuardViewController.m
View file @
2ed73cf2
...
@@ -77,8 +77,26 @@
...
@@ -77,8 +77,26 @@
-
(
void
)
requestRemindList
-
(
void
)
requestRemindList
{
{
NSData
*
data
=
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
@"reminderTypeList"
];
id
response
=
[
NSKeyedUnarchiver
unarchiveObjectWithData
:
data
];
if
(
response
&&
[
response
isKindOfClass
:[
NSDictionary
class
]])
{
if
([
response
[
@"result"
][
@"data"
]
isKindOfClass
:[
NSArray
class
]])
{
[
self
.
dataSource
removeAllObjects
];
for
(
NSDictionary
*
dict
in
response
[
@"result"
][
@"data"
])
{
ZJChooseIcon
*
model
=
[
ZJChooseIcon
yy_modelWithJSON
:
dict
];
[
self
.
dataSource
addObject
:
model
];
}
ZJChooseIcon
*
model
=
[
ZJChooseIcon
yy_modelWithJSON
:@{
@"name"
:
@"添加提醒"
,
@"iconUrl"
:
@"remind_cell_Add"
}];
[
self
.
dataSource
addObject
:
model
];
}
}
[
self
.
collectView
reloadData
];
[[
TQNetworkTools
shared
]
getWithAction
:
reminderTypeList
parameters
:@{}
success
:^
(
id
_Nonnull
response
)
{
[[
TQNetworkTools
shared
]
getWithAction
:
reminderTypeList
parameters
:@{}
success
:^
(
id
_Nonnull
response
)
{
if
([
response
[
@"status"
]
intValue
]
==
200
)
{
if
([
response
[
@"status"
]
intValue
]
==
200
)
{
NSData
*
data
=
[
NSKeyedArchiver
archivedDataWithRootObject
:
response
];
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
data
forKey
:
@"reminderTypeList"
];
[[
NSUserDefaults
standardUserDefaults
]
synchronize
];
[
self
.
dataSource
removeAllObjects
];
[
self
.
dataSource
removeAllObjects
];
if
([
response
[
@"result"
][
@"data"
]
isKindOfClass
:[
NSArray
class
]])
{
if
([
response
[
@"result"
][
@"data"
]
isKindOfClass
:[
NSArray
class
]])
{
for
(
NSDictionary
*
dict
in
response
[
@"result"
][
@"data"
])
{
for
(
NSDictionary
*
dict
in
response
[
@"result"
][
@"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