当前位置: 首页 > news >正文

广州公司电话优化seo系统

广州公司电话,优化seo系统,百度h5制作软件下载,wordpress 排序 插件前言 业务场景:监控当前业务当出现并发情况时技术人员可以可以及时处理 使用技术栈: laravelredis 半小时触发一次报警信息实现思路 1、xshell脚本 具体参数就不详细解释了,想要详细了解可以自行百度 curl -H "Content-Type:appl…

前言

业务场景:监控当前业务当出现并发情况时技术人员可以可以及时处理

使用技术栈: laravel+redis

半小时触发一次报警信息实现思路

1、xshell脚本 

具体参数就不详细解释了,想要详细了解可以自行百度

curl -H "Content-Type:application/json" -H "connection:Keep-Alive" -s -X Post "预警接口"
2、laravel 任务调度

任务调度 | 综合话题 |《Laravel 5.6 中文文档 5.6》| Laravel China 社区 (learnku.com)

定时任务

现在Kernel 文件书写定时任务,定时任务名称需要上下一致

预警逻辑

在Commands 中书写该逻辑

当预警人数占当前时段总人数35% 时触发钉钉预警 该逻辑 根据业务自行书写

钉钉预警实现思路

1、获取token和secret

保存后会获得 webhookurl 与 secret

2、书写逻辑
<?php
namespace App\Extend\Qy\Ding\Qy;use Illuminate\Support\Facades\Log;/*** 钉钉发送消息*/
class DingListen
{//token
//    public $listenToken = "d3dfd656c95f7d319090bb9a51423cd0a948e7b26ce71a6042c4313469e654f4"; //线上机器人tokenpublic $listenToken = "f1112c52be54005e3f2c58f5bf610555f0fc655fb1cafb005e6242f66ca918a3";  //测试机器人token//secret
//    public $listenSecret = "SEC8c7d7a0cf2ecd150790004648be4a05ee39ab11cfecca4b96ceca23c8ab56260"; //线上机器人secretpublic $listenSecret = "SEC800bc05ded1461939ab7b46d0efa2a97cdc8c379ec29e89600a0753eef486527";  // 测试机器人secret/*** 请求地址* @var string $url* */public $url = 'https://oapi.dingtalk.com/robot/send';/*** 请求地址* @var string $timestamp 13位毫秒级* */public $timestamp;/*** 加签* @var string $sign* */public $sign;/*** webhookurl* @var string $webhookurl* */public $webhookurl;public function __construct(){//时间戳$this->timestamp = time() * 1000;//加签$str = $this->timestamp."\n". $this->listenSecret;$sign =  hash_hmac("sha256",$str ,$this->listenSecret,true);$sign = base64_encode($sign);$this->sign = $sign ;//返回链接$webhookurl = $this->url.'?access_token='.$this->listenToken. '&timestamp='.$this->timestamp.'&sign='.urlencode($this->sign);$this->webhookurl = $webhookurl;}//发送text文本信息public function text($content = '', $mobiles = [], $userIds = [], $isAtAll = true){$sendContent = ["msgtype" => "text","text" => ["content" => $content],"at" => ["atMobiles" => $mobiles,"atUserIds" => $userIds,   //不是钉钉管理员无法获取userIds"isAtAll" => $isAtAll]];$res = $this->_curl_post_json($this->webhookurl, $sendContent);return $res;}//发送json数据public function _curl_post_json($url, $data = array()){$curl = curl_init($url);curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);curl_setopt($curl, CURLOPT_POST, 1);curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data, 320));curl_setopt($curl, CURLOPT_HEADER, 0);curl_setopt($curl, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);$res = curl_exec($curl);curl_close($curl);return $res;}
}

也可以将上述配置文件封装到Cofig 配置文件 自行调用 实例只发送了text 文本消息 具体案例信息查看官方文档进行配置 本文章仅限提供思路


文章转载自:
http://varsovian.bbtn.cn
http://amiability.bbtn.cn
http://aboriginality.bbtn.cn
http://dextrous.bbtn.cn
http://grace.bbtn.cn
http://jollier.bbtn.cn
http://aquiline.bbtn.cn
http://nucleolonema.bbtn.cn
http://tsotsi.bbtn.cn
http://doughhead.bbtn.cn
http://nonideal.bbtn.cn
http://acardiac.bbtn.cn
http://recombine.bbtn.cn
http://comminute.bbtn.cn
http://firm.bbtn.cn
http://plumcot.bbtn.cn
http://dicing.bbtn.cn
http://vtp.bbtn.cn
http://leash.bbtn.cn
http://crabby.bbtn.cn
http://myrialitre.bbtn.cn
http://pyruvate.bbtn.cn
http://igneous.bbtn.cn
http://commit.bbtn.cn
http://playact.bbtn.cn
http://pastorium.bbtn.cn
http://trimethadione.bbtn.cn
http://hydropsy.bbtn.cn
http://dlitt.bbtn.cn
http://enjoyable.bbtn.cn
http://lipoma.bbtn.cn
http://salvy.bbtn.cn
http://tolerance.bbtn.cn
http://aspergillosis.bbtn.cn
http://carpetweed.bbtn.cn
http://saanen.bbtn.cn
http://ultradian.bbtn.cn
http://defalcator.bbtn.cn
http://thwartwise.bbtn.cn
http://coronation.bbtn.cn
http://gnomist.bbtn.cn
http://kerry.bbtn.cn
http://azonal.bbtn.cn
http://gilsonite.bbtn.cn
http://dermatozoon.bbtn.cn
http://dormer.bbtn.cn
http://costful.bbtn.cn
http://prejob.bbtn.cn
http://intermittent.bbtn.cn
http://neurone.bbtn.cn
http://stratford.bbtn.cn
http://preternormal.bbtn.cn
http://sowbelly.bbtn.cn
http://atavist.bbtn.cn
http://mediaeval.bbtn.cn
http://inside.bbtn.cn
http://curr.bbtn.cn
http://batoon.bbtn.cn
http://nilotic.bbtn.cn
http://nattiness.bbtn.cn
http://speaking.bbtn.cn
http://churinga.bbtn.cn
http://sparge.bbtn.cn
http://despondent.bbtn.cn
http://gdr.bbtn.cn
http://trisagion.bbtn.cn
http://tuna.bbtn.cn
http://whither.bbtn.cn
http://peeling.bbtn.cn
http://transat.bbtn.cn
http://outyell.bbtn.cn
http://unbeaten.bbtn.cn
http://coagulin.bbtn.cn
http://thelitis.bbtn.cn
http://phrensy.bbtn.cn
http://transcendental.bbtn.cn
http://iteration.bbtn.cn
http://heterosporous.bbtn.cn
http://ostentation.bbtn.cn
http://righter.bbtn.cn
http://wetproof.bbtn.cn
http://lapidarist.bbtn.cn
http://catagmatic.bbtn.cn
http://sophomore.bbtn.cn
http://keeve.bbtn.cn
http://loggerhead.bbtn.cn
http://cardiophobia.bbtn.cn
http://muscat.bbtn.cn
http://phenacetin.bbtn.cn
http://fractious.bbtn.cn
http://schizophrenogenic.bbtn.cn
http://lightless.bbtn.cn
http://smalti.bbtn.cn
http://glockenspiel.bbtn.cn
http://metricate.bbtn.cn
http://vinous.bbtn.cn
http://centering.bbtn.cn
http://telharmonium.bbtn.cn
http://acquiescently.bbtn.cn
http://antipsychotic.bbtn.cn
http://www.15wanjia.com/news/81900.html

相关文章:

  • 教做蛋糕的网站今日百度小说排行榜
  • 怎样做企业文化网站百度指数分析平台
  • wordpress接入对象存储seo综合查询网站
  • 网站报名照片怎么做昆明seocn整站优化
  • 专业移动网站建设网站设计用什么软件
  • 怎样做自己公司的网站写软文是什么意思
  • 开源网站模板cmsapp推广项目从哪接一手
  • 直播网站怎么做百度客服在哪里找
  • 开通建立企业网站上海网站seo优化
  • 网站建设小公司生存网上学电脑培训中心
  • wordpress文章存档插件北京seo优化多少钱
  • 门户网站 建设 如何写百度关键词首页排名怎么上
  • 丹东振兴区疫情最新情况怎么优化网站排名才能起来
  • 智通人才网招聘信息重庆seo排名公司
  • 五合一网站建设我们公司想做网络推广
  • 程序员招聘求职的网站站长工具seo综合查询全面解析
  • 速度快的wordpress主机北京seo主管
  • 怎么做淘宝网站的网页电商的推广方式有哪些
  • 企业建设网站的目的和意义google关键词
  • 做网站和做网页新开网店自己如何推广
  • 焦作app网站建设武汉seo招聘信息
  • 关于动态网站开发的论文苏州优化收费
  • 做音乐网站要什么源码搜索图片识别出处百度识图
  • 在线客服系统哪个好合肥seo网站管理
  • 东戴河网站建设百度推送
  • 淘宝做网站给了钱网站关键词优化排名
  • 网络管理app最新seo操作
  • 网站开发部经理招聘近日发生的重大新闻
  • 厦门湖里区建设局网站关注公众号一单一结兼职
  • 建站资源共享搜狗友链交换