- 新版同步逻辑基本OK

This commit is contained in:
gazebo
2019-07-17 17:02:31 +08:00
parent 6bb543f544
commit f6cf334567
7 changed files with 398 additions and 22 deletions

View File

@@ -95,6 +95,14 @@ func IsSyncStatusUpdate(syncStatus int8) bool {
return (syncStatus & SyncFlagModifiedMask) != 0
}
func IsSyncStatusSale(syncStatus int8) bool {
return (syncStatus & SyncFlagSaleMask) != 0
}
func IsSyncStatusPrice(syncStatus int8) bool {
return (syncStatus & SyncFlagPriceMask) != 0
}
func IsSyncStatusNeedCreate(syncStatus int8) bool {
return IsSyncStatusNew(syncStatus) && !IsSyncStatusDelete(syncStatus)
}