提交 a7419435 编写于 作者: DCloud_JSON's avatar DCloud_JSON

uni-id-co增加clientInfo字段类型校验

上级 fbfc8066
......@@ -166,7 +166,7 @@ function checkClientInfo (clientInfo) {
}
const numberNotRequired = {
required: false,
type: 'string'
type: 'number'
}
const schema = {
uniPlatform: 'string',
......@@ -200,7 +200,7 @@ function checkClientInfo (clientInfo) {
console.warn('- 如果使用HBuilderX运行本地云函数/云对象功能时出现此提示,请改为使用客户端调用本地云函数方式调试,或更新HBuilderX到3.4.12及以上版本。\n- 如果是缺少clientInfo.appId,请检查项目manifest.json内是否配置了DCloud AppId')
throw new Error(`"clientInfo.${validateRes.schemaKey}" is required.`)
} else {
throw new Error('Invalid client info')
throw new Error(`Invalid client info: clienInfo.${validateRes.schemaKey}`)
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册