mirror of https://github.com/axmolengine/axmol.git
[plugin-x][Umeng] fix not sending Event when paramMap is nil
This commit is contained in:
parent
9697c5af9a
commit
cedfd6bbdc
|
@ -74,7 +74,11 @@ THE SOFTWARE.
|
||||||
- (void) logEvent: (NSString*) eventId withParam:(NSMutableDictionary*) paramMap
|
- (void) logEvent: (NSString*) eventId withParam:(NSMutableDictionary*) paramMap
|
||||||
{
|
{
|
||||||
OUTPUT_LOG(@"Umeng logEventWithParam invoked");
|
OUTPUT_LOG(@"Umeng logEventWithParam invoked");
|
||||||
[MobClick event:eventId attributes:paramMap];
|
if (paramMap != nil) {
|
||||||
|
[MobClick event:eventId attributes:paramMap];
|
||||||
|
} else {
|
||||||
|
[MobClick event:eventId];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) logTimedEventBegin: (NSString*) eventId
|
- (void) logTimedEventBegin: (NSString*) eventId
|
||||||
|
|
Loading…
Reference in New Issue