- 博客(17)
- 收藏
- 关注

原创 解决MUI 下拉刷新页面,拉动不了的问题 ,主要看这里 mui-scroll-wrapper
<!doctype html><html><head> <meta charset="UTF-8"> <title>个人中心</title> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-sc...
2019-05-11 15:09:24
3873
原创 PHP RabbitMQ 结合 WorkerMan 消息过期、消息队列长度、消费超次数、死信队列
PHP RabbitMQ 结合 WorkerMan 消息过期、消息队列长度、消费超次数、死信队列
2023-04-27 14:37:38
622
原创 PHP 支付宝SDK加密与解密、签名与验签(含php原生写法)
1.使用支付宝sdk支付宝文档:https://opendocs.alipay.com/open/54/103419
2021-06-18 17:46:37
3588
1
原创 同一阶段所有课程处理
/** * 阶段课程处理 * $array 订单原数组,一个用户有多少订单,一个订单有多个相同阶段,同一个阶段有不能同的课程,这里处理区分同一个阶段的所有课程并返回一个数组 * $type 类型 */public function stageArray($array, $type){ //所有阶段 $cs = CourseStageModel::select()-&g...
2019-07-24 12:03:07
215
原创 计算过去多少时间
/** * 计算过去多少时间 $time 传入的时间戳 * @route('UserExercises/to_time') */public function to_time($time){ $t = time() - $time == 0 ? 1 : time() - $time; $f = array( '31536000' => '年', ...
2019-07-24 11:55:10
600
原创 学习时长,学了多少时间
/** * 学习时长 * @param $second 时间秒 * @return string */public function countdown($second){ $day = floor($second / 3600 / 24); //多少天 $hr = floor($second / 3600 % 24); //多少小时(%取余数) ...
2019-07-24 11:47:57
746
原创 php 处理二维数组相同user_id,数量相加,合并用户id,返回一个数组
/** * 收益排行 * 1每日,2每周排行 */public function profitRank(){ $user_id = $this->_user['id']; $params = $this->_params; $validate = $this->validate($params, 'Distributor.profitRank')...
2019-07-24 11:44:20
738
原创 thinkphp5 微信小程序推送模板消息
/** * 示例 */ public function confirm_distributor() { $d = input('post.'); $wx = WxUser::where('id','eq',$d['uid'])->find(); $data = ['id'=>$d['id'],'ap...
2019-05-11 15:12:30
2305
原创 thinkphp5 数组层级缩进转换(可用于分销等级处理)
<!--前端--> {volist name='list' id='vo'} <td>&nbsp;{$vo.level-1|str_repeat='&nbsp;丨---',###}{$vo.type_name}</td>{/volist}<!--后台-->//商品分类 public function...
2019-02-01 11:03:54
783
原创 thinkphp5 后台前端使用腾讯地图获取位置信息
<div class="layui-form-item"> <label class="layui-form-label"> 地址 </label> <div class="layui-input-block">
2019-02-01 10:55:24
3083
原创 thinkphp5 后台前端使用高德地图获取位置信息
<div class="layui-form-item"> <label class="layui-form-label"> 地址 </label> <div class="layui-input-block"> <input id="search&
2019-02-01 10:48:33
1607
转载 创蓝短信
<?php$response = $this->ChuanglanSms('手机号','【创蓝短信上申请的名称】您好,您的验证码123');/** * 创蓝短信 */function ChuanglanSms($mobile,$value){ //'【创蓝短信上申请的名称】您好,您的验证码'.$code require_once EXTEND_PATH ...
2019-02-01 10:34:37
2906
原创 thinkphp5 使用百度ECharts 柱形图
/*** 后端查询*/ public function get_order() { $types = input('param.types'); if($types == 1 || $types == 2){ //订单统计 if($types == 1){ ...
2019-02-01 10:18:52
1825
3
转载 wampserver apache 500 Internal Server Error(常见问题的解决办法)
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, admin@localhost and inform them o
2017-07-21 16:51:36
4163
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人