公告板
版本库
filestore
活动
搜索
登录
main
/
chatgpt-AI
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
add qrcodejs
cshenfu
2023-05-25
b86a6e42f663b2fc39c7a0c21ddeaeea93b253e4
[chatgpt-AI.git]
/
uni_modules
/
uni-id-pages
/
uniCloud
/
cloudfunctions
/
uni-id-co
/
middleware
/
validate.js
1
2
3
4
5
6
7
module.exports = function (value = {}, schema = {}) {
const validateRes = this.validator.validate(value, schema)
if (validateRes) {
delete validateRes.schemaKey
throw validateRes
}
}