- 博客(63)
- 资源 (11)
- 收藏
- 关注
原创 tp5 微信支付开发流程
tp5 微信支付开发流程1.用户在选择商品后,向APi提交包含它所选择商品的相关信息。2.APi在接收到信息后,需要检查订单相关商品的库存量。3.有库存,把订单数据存入数据库中= 下单成功了,返回客户端消息,告诉客户端可以支付了4.调用自己的支付接口,进行支付。5.还需要再次进行库存量检测6.服务器这边就可以调用微信的支付接口进行支付7.微信会返回给我们一个支付结果(异步)8.成...
2019-04-09 23:36:41 809
原创 WeChat-小程序-总结
1.引入其他模型文件时,import 后需要加{ }import {Base} from '../../utils/base.js';var base = new Base();
2019-04-03 14:14:21 485
原创 php 正则表达式
<?php/** * Created by PhpStorm. * User: 12155 * Date: 2019/2/25 * Time: 14:51 */namespace app\common\service;use app\exceptions\ParameterException;/** * deng * @property bool isMatch...
2019-03-23 15:48:01 99
原创 已解决:【腾讯云服务器linux yum update报错】Problem 1: package perl-TermReadKey-2.37-7.oc8.x86_64 requires
yum update package perl-TermReadKey-2.37-7.oc8.x86_64 requires libperl.so.5.26()(64bit), but none of the providers can be installedpackage perl-TermReadKey-2.37-7.oc8.x86_64 requires perl(:MODULE_COMPAT_5.26.3), but none of the providers can be inst
2023-12-05 20:32:53 684
原创 layui点击编辑后不需要刷新
1.覆盖调方法2.直接改之前的方法form.on("submit(sub)", function (data) { var url_path = '/' + $(this).data('module') + '/' + $(this).data('controller') + '/save' console.log('=======================================') console.log('===
2021-08-26 11:33:14 401
原创 thinkphp5子查询
【tp5______子查询】一对多where//子查询(用group 把用户分组,统计签到表中每个用户签到的次数)$activitySign = Db::name('activity_sign') ->field('member_id,count(member_id) sign_count') ->group('member_id') ->buildSql();//子查询(用group 把用户分组,统计签到表中每个用户报名的次数)$activityPar
2021-08-24 12:01:43 1518
原创 php解决 cURL error 60: SSL certificate problem: unable to get local issuer certificate
解决 cURL error 60: SSL certificate problem: unable to get local issuer certificate这是由于在本地调试时用ssl进行远程请求,但是本地没有秘钥稳健所导致、。解决办法有两种第一种:在使用curl_exec()之前跳过ssl检查项curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);第二种:访问https://curl.haxx.se/docs/caextrac.
2021-07-15 15:57:14 644 2
原创 uniapp 吸顶容器
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Mar
2020-09-19 10:44:28 500
原创 vue 中奖纪录滚动
<template> <div id="box"> <div style="width: 200px;height: 300px;background: #fff"> <div id="coxxxn1" ref="refRoll" :class="{anim:animate==true}" @mouseenter="mEnter" @mouseleave="mLeave"> <p v-for="item in it
2020-09-18 10:48:46 1037
原创 uniapp 使用webview
<template> <view> <web-view title="hehe" :webview-styles="webviewStyles" :src="url" @message="message" @onPostMessage = "onPostMessage"> </web-view> </view></template><script> va
2020-06-29 14:44:47 13175
原创 uniapp swiper公告横向+纵向滚动
vertical:false=横向滚动true=横向滚动<view class="notice" v-if="noticeList.length" style="background-color: #9bf;"> <swiper class="swiper-nav" :circular="true" :vertical="false" :autoplay="true" :interval="1000" :duration="1000"
2020-06-27 11:48:06 6810 3
原创 登陆
····public function demo(){ $app_id => 'wxxxxxxxxxxxxxxx77e', $secret=> '242eaxxxxxxxxxxxxxxxxxxxxxx5e1bed55', $login_url => "https://api.weixin.qq.com/sns/jscode2session?". "appid=%s&secret=%s&js_code=%s&grant_type=au
2020-05-31 14:27:39 1364
原创 phpstrom 更换主题颜色
phpstrom 更换主题颜色http://www.phpstorm-themes.com/themes-list?title=&field_tags_tid=All&page=2在 C:\Users\Administrator\.PhpStorm2017.2\config 目录下新建 colors 文件夹,把刚刚下载好的.icls文件存入里面。 重新打开 PhpS...
2020-04-09 12:00:29 409
原创 【docker】在php容器安装redis
https://www.cnblogs.com/wyaokai/p/11904701.html【docker】为docker下的php容器安装php-redis扩展【编译安装】php7:为小编容器名称----------------------------(使用docker安装的PHPFPM容器没有Redis扩展,需要安装一下扩展。)进入docker的【php7】容器$ docker...
2020-04-08 10:48:30 232
原创 Laravel 定时任务
1.创建文件php artisan make:console DemoCommand2.写业务处理代码 public function handle() { // 逻辑 echo 'success'; } 3.调用protected function schedule(Schedule $schedule) ...
2019-12-04 16:25:36 136
原创 php curl: (60) SSL certificate problem: unable to get local issuer certificate
1.打印phpinfo();2.下载证书地址: https://curl.haxx.se/ca/cacert.pem在 php.ini 中配置 curl.cainfo ,绝对路径「只要是绝对路径就可以,ca 文件随便放在哪里都可以」eg:D:\phpstudy_pro\Extensions\php\cacert.pem3.重启nginx服务保险起见,可以使用 ini_get()...
2019-12-03 17:05:24 341
原创 showdoc接口文档-php
1.http://myphp.vip:4999/web/#/2.https://www.showdoc.cc/help?page_id=65610····原版官方镜像安装命令(中国大陆用户不建议直接使用原版镜像,可以用后面的加速镜像)docker pull star7th/showdoc中国大陆镜像安装命令(安装后记得执行docker tag命令以进行重命名)docker pull x...
2019-11-30 22:04:58 822
原创 阿里云-sms
地址:https://help.aliyun.com/document_detail/112186.html?spm=a2c4g.11186623.2.16.80a050a4aLlFuycomposer require alibabacloud/client
2019-11-24 22:34:21 96
原创 MySQL实现按天分组统计,提供完整日期列表,无数据自动补0日历
业务需求最近要在系统中加个统计功能,要求是按指定日期范围里按天分组统计数据量,并且要能够查看该时间段内每天的数据量。解决思路直接按数据表日期字段group by统计,发现如果某天没数据,该日期是不出现的,这不太符合业务需求。百度一番发现方案大致有两种:一是新建日期列表,把未来10年的日期放进去,然后再跟统计表作连接查询;二是用程序代码在SQL逻辑中union多个连续日期查询。都比较繁琐。参...
2019-11-23 16:45:27 1736
原创 vue引入公告模板
<NeedModel>引入模板</NeedModel><script> import NeedModel from '../tpl/NeedModel' export default { components: { NeedModel }, data() { return { TabCur: 0, ...
2019-11-18 22:25:19 1662
原创 微信公众号-网页授权登陆
无废话讲解:1.网页授权登陆地址:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html$appid = 'wxcxxxxxxxxx1'; $redirect_uri = urlencode('https://gxxxxxxxoge.com/...
2019-11-14 12:48:05 419
原创 PHPStrom-快捷键总结
phpstorm使用积累1、默认情况单行注释会从顶格开始,很不利于代码收缩,设置为非顶格。File->Settings->Editor->Code Style->PHP->other->Line comment at first column 去掉勾选2、设置代码自动对齐赋值语句按等号对齐:File->Settings->Editor->...
2019-11-14 09:16:28 243
原创 SOAR小米开源Sql检查工具
https://hub.docker.com/r/becivells/soar-web/-- 拉去soar镜像docker pull becivells/soar-web-- 启动容器 域名:5077docker run -d --name soar-web -p 5077:5077 becivells/soar-web
2019-11-04 14:15:38 2048
原创 PC端微信扫码登陆
无需废话,开始讲解1.登陆微信开放平台(需要300RMB 开发者认证)填写回调地址https://open.weixin.qq.com/cgi-bin/appcreate?t=manage/createWeb&type=app&lang=zh_CN&token=9c040b93af87cbef7ef41596793566f725dec98c2.自定义方法:发送...
2019-11-02 11:32:18 636 1
原创 Vue入门开发
Vue入门开发npm install -g cnpm --registry=https://registry.npm.taobao.org【淘宝镜像】cnpm install -g @vue/cli [安装脚手架]vue init mpvue/mpvue-quickstart my-projectcd my-project 进入目录npm install ...
2019-10-09 09:59:43 58
原创 xiaomi_soar
https://github.com/XiaoMi/soarecho 'select * from film' | ./soar
2019-08-30 18:59:42 260
原创 php下载远程文件
/** * 下载远程文件 * @param string $url * @return array * @author deng (2019/8/17 15:40) */function downFileImg($url){ $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_...
2019-08-22 10:39:36 501
原创 MySql redis 悲观锁
/** * 测试使用- * @param Request $request * @throws DataNotFoundException * @throws DbException * @throws ModelNotFoundException * @throws ParamException * @author deng...
2019-08-21 09:17:26 145
原创 ab 测试web
转载自:https://blog.csdn.net/whq19890827/article/details/52767261ab -n 500 -c 100 http://signtp.com/index.php/redis
2019-08-20 16:47:52 308
原创 微信小程序内容安全校验----PHP代码
微信小程序内容安全(已测试)public function index() { $content = '特3456书yuuo莞6543李zxcz蒜7782法fgnv级完2347全dfji试3726测asad感3847知qwez到'; $result = $this->curlText($content); print_r($res...
2019-08-06 17:52:08 1444
原创 php 砸金蛋
上述代码是一段经典的概率算法,$proArr是一个预先设置的数组,假设数组为:array(100,200,300,400),开始是从1,1000这个概率范围内筛选第一个数是否在他的出现概率范围之内, 如果不在,则将概率空间,也就是k的值减去刚刚的那个数字的概率空间,在本例当中就是减去100,也就是说第二个数是在1,900这个范围内筛选的。这样筛选到最终,总会有一个数满足要求。就相当于去一个箱子里...
2019-06-25 14:35:22 249
原创 自制composer安装库
自制Composer安装库1,注册github账号,并登录,然后创建一个仓库2,创建仓库3,增加公钥4,拉去代码到本地,我用的phpstorm5,实例化composer.json6,代码结构7,追加命名空间根目录配置8,提交到github库上面,git commit –m ‘初始化代码’ | git push9,登录packagist10,将github代码关联packa...
2019-06-19 22:07:28 150
原创 github use dom【自制Composer安装库】
…or create a new repository on the command lineecho "# test" >> README.mdgit initgit add README.mdgit commit -m "first commit"git remote add origin https://github.com/qq1415551519/test.git...
2019-06-12 22:06:09 123
原创 dompdf 中文乱码问题github
Dompdf可以把HTML内容生成PDF文件,但默认不支持中文显示。在解决Dompdf的中文乱码问题之前,请确认已通过Composer在项目中安装好Dompdf库。下载Dompdf的工具包该工具包的Git地址为:https://github.com/dompdf/utils。下载完成后,解压,复制其中的load_font.php文件到项目下的verdor/dompdf/dompdf目录下,...
2019-05-19 19:58:25 840
原创 HTML+CSS·经常使用的设计方法
网页搭建——设计思路:*{margin 0;padding 0}#wrapper{width:1440px; margin: 0 auto;}#main{width:1130px; margin:0 auto;}
2019-05-19 15:29:25 121
cacert证书php-2020.zip
2020-09-01
2020地图echarts-amap.min.zip
2020-01-19
ThinkPHP5.1【官方下载】
2019-05-28
仿站小工具web +V9.0【官方下载】
2019-04-19
PS安装包adobe_photoshop_cs4【官方下载】-【旧版】
2019-04-17
TortoiseSVN-1.11.1.28492-x64-svn-1.11.1【官方下载】【软件包+中文包】
2019-03-27
Sublime Text 3 【官方下载】
2019-03-22
SourceTreeSetup-3.0.17【官方下载】
2019-03-22
Postman-win64-7.0.6-Setup
2019-03-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人