Skip to content

Commit d6f5fd1

Browse files
author
ljh
committed
条件判断写错
1 parent e4748c3 commit d6f5fd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LKDBHelper/Helper/NSObject+LKModel.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ - (id)db_jsonObjectFromModel:(NSObject*)model
425425
jsonObject = [self db_readInfoWithModel:model class:clazz];
426426
}
427427
else {
428-
if (model.db_inserting == NO && [clazz getModelInfos] > 0) {
428+
if (model.db_inserting == NO && [clazz getModelInfos].count > 0) {
429429
BOOL success = [model saveToDB];
430430
if (success) {
431431
jsonObject = [self db_readInfoWithModel:model class:clazz];

0 commit comments

Comments
 (0)