layui设置提醒 弹框或声音的方法

设置信息
Db::name("config_content")->where("id",10)->update([
'content'=>"提醒信息:你的订单已发货",
]);
回调信息$content=Db::name("config_content")->where("id",10)->value("content");if($content){
return returnmsg(199,"无需新操作");
}else{
Db::name("config_content")->where("id",10)->update([
'content'=>""
]);
}
return returnmsg(200,"操作成功");
前端 定时回调或 WebSocket
postData("{:url('index/ordertx')}").then(function(res){
if(res.code==200){
Notify('你有新订单待处理!', 'top-right', '5000', 'danger', 'fa-bolt', true)  
         return;
            }
        });
                return;
            }
        });