摘要: #设置执行时间不限时 set_time_limit(0); #清除并关闭缓冲,输出到浏览器之前使用这个函数。ob_end_clean(); #控制隐式缓冲泻出,默认off,打开时,对每个 print/echo 或者输出命令的结果都发送到浏览器。ob_implicit_flush(1); header 阅读全文
posted @ 2023-04-04 10:15 Mr.木易 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 问题描述 我们在用 uni-app 开发前端项目时,会遇到需要在 onLaunch 中请求接口返回结果,并且此结果在项目各个页面的 onLoad 中都有可能使用到的需求,比如微信小程序在 onLaunch 中进行登录后取得 openid 并获得 token,项目各页面需要带上该 token 请求其他 阅读全文
posted @ 2022-11-24 15:41 Mr.木易 阅读(320) 评论(0) 推荐(1) 编辑
摘要: linux配置加入 location / { try_files $uri $uri/ /index.html; } 阅读全文
posted @ 2022-06-29 18:22 Mr.木易 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 第一步:vi /etc/supervisord.conf第二步:[program:parking]process_name=%(program_name)s_%(process_num)02dcommand=/usr/bin/php /home/wwwroot/t/parking/think que 阅读全文
posted @ 2022-06-13 10:41 Mr.木易 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 导出方法 $export = new Export(); $list = []; $expCellName = [ 'order_id' => 'Id', 'order_sn' => '母订单号', 'jd_order_id' => '子订单号', 'status_text' => '订单状态', 阅读全文
posted @ 2022-05-30 10:37 Mr.木易 阅读(664) 评论(0) 推荐(0) 编辑
摘要: sceneToObject:function(scene){ scene = decodeURIComponent(scene); let ret = {} let regParam = /([^&=]+)=([\w\W]*?)(&|$|#)/g let strParam = scene; let 阅读全文
posted @ 2021-12-09 17:11 Mr.木易 阅读(332) 评论(0) 推荐(0) 编辑
摘要: <?php namespace fast; /** * 校验身份证 */ class IdentityCard { /** * 校验身份证号是否合法 * @param string $num 待校验的身份证号 * @return bool */ public static function isVa 阅读全文
posted @ 2021-11-22 17:53 Mr.木易 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1磅==>4像素, PPI=288 2磅==>5像素, PPI=180 3磅==>7像素, PPI=168 4磅==>8像素, PPI=144 5磅==>9像素, PPI=129.6 6磅==>10像素, PPI=120 7磅==>11像素, PPI=113.14285714286 8磅==>12像 阅读全文
posted @ 2021-03-17 14:48 Mr.木易 阅读(607) 评论(0) 推荐(0) 编辑
摘要: $data=json_decode(file_get_contents('./wxapp.json'),true); $insert=[]; foreach ($data as $item){ $insert[]=[ 'name'=>$item['name'], 'page'=>$item['pat 阅读全文
posted @ 2021-02-03 20:54 Mr.木易 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 服务器配置 server { listen 443 ssl; server_name weixin.techeek.cn; index index.php index.html index.htm; root /usr/share/nginx/html; ssl_certificate /home/ 阅读全文
posted @ 2020-11-10 16:54 Mr.木易 阅读(366) 评论(1) 推荐(0) 编辑