1 Star 0 Fork 1

qusong / bird

forked from web-bird / bird 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

bird web 开发脚手架

功能

  • 日志记录
  • 队列任务
  • 定时任务
  • 配置工具
  • 简易权限

签名中间件用法

header 请求参数

  • header['Sign'] = 签名
签名算法 Sign=key+token
组成部分 数据长度 说明
key 10~40 个字符 唯一值
token 64 个字符 sha256(key+secret)
  • 注 secret 由后端提供
let secret="adf78asdf5678adf456asdf3456adsf456asf";
let key=rand(10,20); //字符数可不固定
let token=sha256(key+secret) //64位字符
header['Sign']=key+token;
结果有可能为  3d970875ca2c25abbe2bfc3683db80bb170201ef5d8f4449fd06812f53dc3d970875ca2c25abbe2bfc3683db807a81

config 的 tag 说明

  • image 图片上传
  • image-qrcode 二维码图片上传

自动配置结构: mode类型 选择类型的: - none 不显示 - single 单选 - select-show-desc 多选,选中后将desc展示出来 该类型返回结构:[ { desc: "http://www.miaopay.nczhike.net" label: "秒支付测试" value: 5 } ]

MIT License Copyright (c) 2020 悟道人 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

bird脚手架 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/qusong550/bird.git
git@gitee.com:qusong550/bird.git
qusong550
bird
bird
master

搜索帮助