trackSiteCustomEventCheck static method
Future<bool>
trackSiteCustomEventCheck(
- dynamic p
)
Implementation
static Future<bool> trackSiteCustomEventCheck(var p) async {
try {
if ((p is Map) == false) {
MzanalyticsLog.p('传入参数必须为Map类型');
return false;
}
if ((p['CustomEvent'] is Map) == false) {
MzanalyticsLog.p('CustomEvent 必须为Map类型');
return false;
}
bool caRet = await caCheck(p['CustomEvent']);
if (caRet == false) {
return false;
}
if (p['CustomDimMetrics'] is Map) {
bool ret = await cdmCheck(p['CustomDimMetrics']);
return ret;
}
return true;
} catch (e) {
return false;
}
}