Browse Source

修改IPUCountLogPlugin插件

liufl5 5 years ago
parent
commit
177249ff36
1 changed files with 14 additions and 2 deletions
  1. 14 2
      SuperMenu/SuperMenu/multiple/IPUCountLogPlugin.m

+ 14 - 2
SuperMenu/SuperMenu/multiple/IPUCountLogPlugin.m

46
        content = [NSString stringWithFormat:@"%@",params[0]];
46
        content = [NSString stringWithFormat:@"%@",params[0]];
47
    }
47
    }
48
    if (content) {
48
    if (content) {
49
        NSLog(@"开始发送自定义日志=====%@",content);
50
        [[IpuCountUDPHelper sharedInstance] sendReport:content];
49
        NSString *logType = @"6";
50
        
51
        UIDevice *dev = [UIDevice currentDevice];
52
        NSString *uuid = dev.identifierForVendor.UUIDString;
53
        NSString *appName = [IpuCommonUtil getAppName];
54
        NSString *appIdentifier = [IpuCommonUtil getAppIdentifier];
55
        NSString *logkey = [NSString stringWithFormat:@"%@%@%@%@%@",uuid,LOG_ITEM_SEPERATOR,appName,LOG_ITEM_SEPERATOR,appIdentifier];
56
        
57
        NSString *logSendTime = [IpuCommonUtil getCurrentDefaultFormatTime];
58
        
59
        NSString *logStr = [NSString stringWithFormat:@"%@%@%@%@%@%@%@",logType,LOG_SEPERATOR,logkey,LOG_SEPERATOR,logSendTime,LOG_SEPERATOR,content];
60
        
61
        NSLog(@"开始发送自定义日志=====%@",logStr);
62
        [[IpuCountUDPHelper sharedInstance] sendReport:logStr];
51
    }
63
    }
52
}
64
}
53
65