上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页
  2023年2月24日
摘要: 使用Go语言编写的邮件接收服务器,并把收到的邮件存入mysql 保存文件名smtpserver.go package main import ( "database/sql" "errors" "io" "io/ioutil" "log" "strings" "time" "github.com/e 阅读全文
posted @ 2023-02-24 21:43 项希盛 阅读(590) 评论(0) 推荐(0)
  2023年1月13日
摘要: 复制原有的登录功能,如此一来,注册后就能够自动登录系统。 第一步:修改 /src/api/sys/user.ts 添加接口提交代码 /** * @description: user register api */ export function registerApi(params: LoginPa 阅读全文
posted @ 2023-01-13 16:21 项希盛 阅读(1299) 评论(1) 推荐(0)
  2023年1月11日
摘要: 登录页面有很多内容需要调整,不同网站需要重新编译前端就非常麻烦。 下面改成通过后端代码来控制登录页面的效果。 第一步:首先添加API接口 将下面的代码保存到 /src/api/sys/page.ts (创建新文件) import { defHttp } from '/@/utils/http/axi 阅读全文
posted @ 2023-01-11 23:08 项希盛 阅读(3374) 评论(0) 推荐(0)
摘要: Vben设计了2种权限模式,分别是【前端角色权限(ROLE)】和【后端动态获取(BACK)】 详细说明请参考https://doc.vvbin.cn/guide/auth.html 为了打造【轻前端重后端】我们希望后端可以操纵这个权限模式,而无需通过重新编译【前端代码】的方式实现模式切换 第一步:打 阅读全文
posted @ 2023-01-11 20:18 项希盛 阅读(2014) 评论(1) 推荐(0)
摘要: 1:首先下载代码并安装配置 git clone https://github.com/vbenjs/vue-vben-admin.gitcd vue-vben-admin npm i -g pnpm pnpm i 2:编辑 /vite.config.ts 的第56行,找到https改成false(为 阅读全文
posted @ 2023-01-11 19:50 项希盛 阅读(3808) 评论(1) 推荐(2)
  2022年12月30日
摘要: node.js编写反向代理转发https const crypto = require("crypto"); const md5 = function (str) { const md5 = crypto.createHash('md5'); md5.update(str); return md5. 阅读全文
posted @ 2022-12-30 22:23 项希盛 阅读(464) 评论(0) 推荐(0)
  2022年12月19日
摘要: 复制下面代码保存成bat然后运行即可 @echo off reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" /f "*.bak" /k>profile-bak.txt for /f "skip=1 de 阅读全文
posted @ 2022-12-19 20:27 项希盛 阅读(46) 评论(0) 推荐(0)
  2022年12月4日
摘要: Node.JS编写的DNS分发器 const dgram = require('dgram'); //获取本地时间字符串 function getDateStr() { return (new Date()).toLocaleString(); } function checkDomainOne(s 阅读全文
posted @ 2022-12-04 20:38 项希盛 阅读(73) 评论(0) 推荐(0)
  2022年11月19日
摘要: Node.js通过密钥计算验证码,无需存数据库 const CRC32 = require('crc-32'); function XixiOtp(sKey, iKeeptime = 600) { const oPri = {}; oPri.sKey = sKey; oPri.iKeeptime = 阅读全文
posted @ 2022-11-19 20:03 项希盛 阅读(123) 评论(0) 推荐(0)
摘要: 通过加密计算出短信验证码,无需缓存验证码 <?php class XixiOtp { private $iKeeptime; // 验证码有效期 private $sKey; // 加密用的密钥 private $p1Len = 1; // 验证码前缀长度(建议1~2) private $p2Len 阅读全文
posted @ 2022-11-19 18:26 项希盛 阅读(144) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页