摘要: 一、效果图 二、代码示例 <!doctype html> <html lang="zh"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Comp 阅读全文
posted @ 2024-04-09 16:07 样子2018 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 一、配置 1、uni-push1.0文档 https://uniapp.dcloud.net.cn/unipush-v1.html 2、服务端推送文档 https://docs.getui.com/getui/server/rest_v2/push/ 二、客户端 1、App.vue import p 阅读全文
posted @ 2024-03-23 10:06 样子2018 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 一、配置 1、微信开放平台,创建移动应用与绑定小程序 2、manifest.json,填写移动应用的appid 二、打开小程序 plus.share.getServices(res => { var is_weixin = res.find(i => i.id 'weixin'); if (is_w 阅读全文
posted @ 2024-03-23 09:44 样子2018 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 一、安装think-auth composer require 5ini99/think-auth 二、数据表 -- -- think_auth_rule,规则表, -- id:主键,name:规则唯一标识, title:规则中文名称 status 状态:为1正常,为0禁用,condition:规则 阅读全文
posted @ 2024-02-02 15:38 样子2018 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 一、创建控制器 <?php namespace app\common\taglib; use think\auth\Auth; use think\template\TagLib; class MyTag extends TagLib { protected $tags = [ 'auth' => 阅读全文
posted @ 2024-02-02 15:17 样子2018 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 一、安装环境 可从Oracle官方下载jre安装包:https://www.oracle.com/java/technologies/downloads/#java8 将jre命令添加到临时环境变量中 二、生成证书 keytool -genkey -alias testalias -keyalg R 阅读全文
posted @ 2024-01-18 10:03 样子2018 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 一、需求 没有登录时直接跳转到登录页,登录成功后,每次都跳转到首页。 二、实现 1、在manifest.json中关闭默认启动界面:splashscreen中属性都改为false 2、在App.vue中添onLaunch中加如下代码 阅读全文
posted @ 2024-01-15 10:09 样子2018 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 一、安装 composer require workerman/phpsocket.io 二、服务端和客户端连接 <?php require_once './vendor/autoload.php'; use Workerman\Worker; use PHPSocketIO\SocketIO; $ 阅读全文
posted @ 2023-12-30 13:48 样子2018 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 一、基本命令 1、ping心跳命令 2、get/set(读写键值命令) 3、select(切换数据库) 4、dbsize(查看key数量) 5、flushdb(删除当前库中所有数据) 6、flushall(删除所有DB中的数据) 阅读全文
posted @ 2023-12-29 09:14 样子2018 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 一、效果图 二、地址 https://gitee.com/yang1015/lumen-rbac 阅读全文
posted @ 2023-12-25 09:45 样子2018 阅读(20) 评论(0) 推荐(0) 编辑