上一页 1 2 3 4 5 6 ··· 49 下一页
摘要: 一、配置 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 阅读(161) 评论(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 阅读(30) 评论(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 阅读(33) 评论(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 阅读(683) 评论(0) 推荐(0) 编辑
摘要: 一、需求 没有登录时直接跳转到登录页,登录成功后,每次都跳转到首页。 二、实现 1、在manifest.json中关闭默认启动界面:splashscreen中属性都改为false 2、在App.vue中添onLaunch中加如下代码 阅读全文
posted @ 2024-01-15 10:09 样子2018 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 一、安装 composer require workerman/phpsocket.io 二、服务端和客户端连接 <?php require_once './vendor/autoload.php'; use Workerman\Worker; use PHPSocketIO\SocketIO; $ 阅读全文
posted @ 2023-12-30 13:47 样子2018 阅读(116) 评论(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 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 一、下载 /** 树形表格3.x Created by wangfan on 2020-05-12 https://gitee.com/whvse/treetable-lay */ layui.define(['laytpl', 'form', 'util'], function (exports) 阅读全文
posted @ 2023-12-22 15:02 样子2018 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 一、文档 https://learnku.com/docs/laravel/6.x/eloquent-relationships/5177#d9e83d 二、实例 1、表结构 admin表 role表 auth表 role_auth表 2、模型 admin.php <?php /** * Creat 阅读全文
posted @ 2023-11-11 10:49 样子2018 阅读(31) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 49 下一页