callBefore static method
通话前置检测
Implementation
static Future<DataResult> callBefore(
String? anchorId, String? callId, int? type) async {
Map other = {'userId': anchorId, 'callId': callId, 'callType': type};
var res = await BaseDao.fromBaseEncrypt(other, Address.callBefore());
if (res.result) {
var entity = TokenEntity.fromJson(res.data);
return DataResult(entity, true);
}
return res;
}