钉钉群机器人群发[ PHP ]

摘要: // secret 机器人设置 - 加签秘钥 // access_token 机器人设置 - Webhook带此参数 // message 机器人设置- 关键词设置的内容需要和message一致 public function usercheck(){ list($s1, $s2) = explod 阅读全文
posted @ 2022-08-24 17:29 逝年- 阅读(57) 评论(0) 推荐(0) 编辑

WinForm嵌入Web网站

摘要: 1.安装CefSharp 2.GetMac()获取用户mac地址方法 3.根据错误提示新建CEFKeyBoardHander.cs form1.cs using CefSharp; using CefSharp.WinForms; using System; using System.Collect 阅读全文
posted @ 2022-06-20 16:19 逝年- 阅读(297) 评论(0) 推荐(0) 编辑

wpf

摘要: ■ 布局 <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winf 阅读全文
posted @ 2022-03-26 16:29 逝年- 阅读(80) 评论(0) 推荐(0) 编辑

判断日期是否是法定节假日或者休息日

摘要: 检查一个日期是否是节假日、休息日、工作日 http://tool.bitefu.net/jiari/?d=20190913 状态码:工作日对应结果为 0, 休息日对应结果为 1, 节假日对应的结果为 2 阅读全文
posted @ 2021-07-01 08:44 逝年- 阅读(1007) 评论(0) 推荐(0) 编辑

百度地图地图标注经纬度

摘要: index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <title>地图标注经纬度</titl 阅读全文
posted @ 2021-05-21 09:49 逝年- 阅读(212) 评论(0) 推荐(0) 编辑

TP5 事务处理加锁

摘要: 首先,数据库类型要是InnoDB,其次,加锁必须跟事务同时使用,还有,查询的时候都必须带锁,比如: db('sms')->lock(true)->where(['id'=>1])->select();这个地方用锁查询,其它地方如果查询这个db('sms')对象需要防止同时操作的话也要进行加锁,就是也 阅读全文
posted @ 2021-04-17 09:09 逝年- 阅读(736) 评论(2) 推荐(0) 编辑

阿里云部署OSS对接TP项目

摘要: 1.配置文件写入参数 domain为阿里云oss存储实例要绑定的域名 2.获取accesskeyId和secret 注册用户 出现下图,选择“开始使用子用户Access Key” 填写用户名,并点击确定 这时会给你的手机发送验证码确定是本人操作,填写验证码后,用户创建完毕 创建完毕后,会出现下面的页 阅读全文
posted @ 2021-04-09 14:00 逝年- 阅读(216) 评论(0) 推荐(0) 编辑

tp项目部署到宝塔,运行nginx时无法访问首页之外的页面

摘要: http://www.upwqy.com/details/254.html tp项目 部署到宝塔里面 运行环境nginx 直接访问首页是可以访问的。但是请求其他的接口的时候 报404 . 需要把下面这段代码加到里面 location / { index index.php index.html in 阅读全文
posted @ 2021-04-01 10:01 逝年- 阅读(401) 评论(0) 推荐(0) 编辑

php 图片加水印插件

摘要: 问题:背景透明的水印图片,在加到原图上后不显示,待解决 <?php /** * 图片加水印(适用于png/jpg/gif格式) * * @author flynetcn * * @param $srcImg 原图片 * @param $waterImg 水印图片 * @param $savepath 阅读全文
posted @ 2020-09-07 16:00 逝年- 阅读(162) 评论(0) 推荐(0) 编辑

php redis使用 常用方法 | Windows环境下安装Redis | Windows下php安装redis扩展(详解版)

摘要: redis可视化工具:http://www.treesoft.cn/dms.html #php redis使用 常用方法 https://www.cnblogs.com/mg007/p/10431079.html 基本: $redis = new Redis();//创建对象 $redis->con 阅读全文
posted @ 2020-05-28 15:17 逝年- 阅读(227) 评论(0) 推荐(0) 编辑