前台行为异常检测说明
0.00
★21次@未来之窗
A:赛忞初雪
在未来之窗前台收银台场景中,为了实现对用户行为的监控,我们提供了两个函数 $cq.司天鉴_前台行为_日志服务 和 $cq.sjt_frontdesk_logserver,它们能够适配不同的参数情况来调用 FAMS_BehaviorMonitor 进行行为监控。同时,我们还提供了 $cq.司天鉴_前台行为_日志分析 函数用于查看行为记录。
$cq.司天鉴_前台行为_日志服务 和 $cq.sjt_frontdesk_logserver:这两个函数的作用相同,均用于适配 FAMS_BehaviorMonitor 的三种参数场景,并返回一个 FAMS_BehaviorMonitor 实例。
FAMS_BehaviorMonitor。storeId、appname 以及可能的扩展配置,函数会将该对象参数转发给 FAMS_BehaviorMonitor。storeId、appname、config,函数会按顺序将这些参数转发给 FAMS_BehaviorMonitor。
// 使用 $cq.司天鉴_前台行为_日志服务 无参调用
const monitor1 = $cq.司天鉴_前台行为_日志服务();
monitor1.start();
// 查看行为记录
const logs1 = $cq.司天鉴_前台行为_日志分析();
console.log(logs1);
const config = {
storeId: 'store123',
appname: 'cashier_app',
watchInput: true,
inputMaxLength: 15
};
// 使用 $cq.sjt_frontdesk_logserver 传对象参数调用
const monitor2 = $cq.sjt_frontdesk_logserver(config);
monitor2.start();
// 查看行为记录
const logs2 = $cq.司天鉴_前台行为_日志分析();
console.log(logs2);
// 使用 $cq.司天鉴_前台行为_日志服务 旧格式参数调用
const monitor3 = $cq.司天鉴_前台行为_日志服务('store456', 'checkout_app', { enableIframe: true });
monitor3.start();
// 查看行为记录
const logs3 = $cq.司天鉴_前台行为_日志分析();
console.log(logs3);
通过以上示例,你可以根据不同的需求调用相应的函数,并使用 $cq.司天鉴_前台行为_日志分析 函数查看行为记录。
硬件app