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
da4cf1ac
Commit
da4cf1ac
authored
Aug 26, 2020
by
乔金柱
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lym/phobos' into 'master'
删除调试的log See merge request
!68
parents
9172ebcf
5968b67b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
PhobosDataManager.m
GMPhobos/Classes/PhobosDataStorage/PhobosDataManager.m
+6
-6
No files found.
GMPhobos/Classes/PhobosDataStorage/PhobosDataManager.m
View file @
da4cf1ac
...
...
@@ -68,13 +68,13 @@ static PhobosDataManager *dataManager;
-
(
void
)
remove
{
bool
status
=
[
_squlitManager
gm_deleteAllDataFromTable
:
KtableName
];
bool
status1
=
[
_squlitManager
gm_deleteAllDataFromTable
:
KPageViewTableName
];
NSLog
(
@"清空表格数状态-KtableName:%d KPageViewTableName:%d"
,
status
,
status1
);
//
NSLog(@"清空表格数状态-KtableName:%d KPageViewTableName:%d",status,status1);
}
-
(
int
)
messageCount
{
int
count
=
[
_squlitManager
gm_tableItemCount
:
KtableName
whereFormat
:
nil
];
int
count1
=
[
_squlitManager
gm_tableItemCount
:
KPageViewTableName
whereFormat
:
nil
];
NSLog
(
@"数据总数:%d - KtableName:%d KPageViewTableName:%d"
,
count
+
count1
,
count
,
count1
);
//
NSLog(@"数据总数:%d - KtableName:%d KPageViewTableName:%d", count + count1, count, count1);
return
count
;
}
...
...
@@ -138,7 +138,7 @@ static PhobosDataManager *dataManager;
self
.
messageCont
++
;
[
self
disposeSendDataWithImmediately
:
NO
];
}
NSLog
(
@"插入%@状态%d count:%d"
,
squlitModel
.
phobos_type
,
insertType
,
_messageCont
);
//
NSLog(@"插入%@状态%d count:%d",squlitModel.phobos_type, insertType,_messageCont);
}
#pragma mark - 获取待发送数据并修改状态为“发送”
...
...
@@ -188,7 +188,7 @@ static PhobosDataManager *dataManager;
}
-
(
void
)
sendModelArray
:
(
NSArray
<
GMPhobosSqulitModel
*>
*
)
entities
{
NSLog
(
@"发送*******%lld"
,
entities
.
count
);
//
NSLog(@"发送*******%lld", entities.count);
[
PhobosSendManager
sendDataWithEntities
:
entities
completion
:
^
(
NSArray
<
GMPhobosSqulitModel
*>
*
finishEntities
,
NSInteger
code
)
{
SEL
selelct
=
code
==
200
?
@selector
(
sendSuccess
:)
:
@selector
(
sendError
:
);
[
self
performSelector
:
selelct
onThread
:
_phobosThread
withObject
:
finishEntities
waitUntilDone
:
NO
];
...
...
@@ -200,7 +200,7 @@ static PhobosDataManager *dataManager;
for
(
GMPhobosSqulitModel
*
model
in
entities
)
{
NSString
*
whereStr
=
[
NSString
stringWithFormat
:
@"where message_item_id = '%@'"
,
model
.
message_item_id
];
bool
status
=
[
_squlitManager
gm_deleteTable
:
model
.
table_name
whereFormat
:
whereStr
];
NSLog
(
@"发送数据成功-删除状态:%d"
,
status
);
//
NSLog(@"发送数据成功-删除状态:%d", status);
}
}
...
...
@@ -211,7 +211,7 @@ static PhobosDataManager *dataManager;
bool
status
=
[
_squlitManager
gm_updateTable
:
model
.
table_name
dicOrModel
:
@{
@"status"
:
@
(
PhobosDataSendStatus_error
)}
whereFormat
:
whereStr
];
NSLog
(
@"发送失败后-修改状态:%d"
,
status
);
//
NSLog(@"发送失败后-修改状态:%d",status);
}
}
...
...
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