Skip to content

Commit

Permalink
fix: 修改sessionid无值的问题,添加log
Browse files Browse the repository at this point in the history
  • Loading branch information
CaicaiNo authored and LitterSun committed Dec 22, 2020
1 parent 025edb6 commit c4d8126
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GrowingAutotrackerCore/WebCircle/GrowingWebCircle.m
Expand Up @@ -668,7 +668,7 @@ - (void)sendWebcircleWithType:(NSString *)eventType {
if ([eventType isEqualToString:GrowingEventTypeViewClick] || [eventType isEqualToString:GrowingEventTypePage]) {
[self.cachedEvents addObject:eventType];
if (self.onProcessing) {
GIOLogDebug(@"[GrowingWebCircle] onProcessing event to webcircle");
GIOLogDebug(@"[GrowingWebCircle] cached %lu event to webcircle",(unsigned long)self.cachedEvents.count);
return;
}
self.onProcessing = YES;
Expand Down
4 changes: 3 additions & 1 deletion GrowingTrackerCore/Manager/GrowingSession.m
Expand Up @@ -149,7 +149,9 @@ - (void)setLocation:(double)latitude longitude:(double)longitude {
if ((_latitude == 0 && (ABS(latitude) > 0)) || (_longitude == 0 && ABS(longitude) > 0)) {
_latitude = latitude;
_longitude = longitude;
[self resendVisitEvent];
if (self.alreadySendVisitEvent) {
[self resendVisitEvent];
}
return;
}
_latitude = latitude;
Expand Down

0 comments on commit c4d8126

Please sign in to comment.