提交 4e094a0f 编写于 作者: A Anne_LXM

更新uni-id-co

上级 060622ea
...@@ -22,8 +22,6 @@ async function sendSmsCode ({ ...@@ -22,8 +22,6 @@ async function sendSmsCode ({
} = {}) { } = {}) {
const requiredParams = [ const requiredParams = [
'name', 'name',
'smsKey',
'smsSecret',
'codeExpiresIn' 'codeExpiresIn'
] ]
const smsConfig = (this.config.service && this.config.service.sms) || {} const smsConfig = (this.config.service && this.config.service.sms) || {}
......
...@@ -3,7 +3,7 @@ async function getPhoneNumber ({ ...@@ -3,7 +3,7 @@ async function getPhoneNumber ({
access_token, access_token,
openid openid
} = {}) { } = {}) {
const requiredParams = ['apiKey', 'apiSecret'] const requiredParams = []
const univerifyConfig = (this.config.service && this.config.service.univerify) || {} const univerifyConfig = (this.config.service && this.config.service.univerify) || {}
for (let i = 0; i < requiredParams.length; i++) { for (let i = 0; i < requiredParams.length; i++) {
const key = requiredParams[i] const key = requiredParams[i]
......
...@@ -4,8 +4,7 @@ function isMobileCodeSupported () { ...@@ -4,8 +4,7 @@ function isMobileCodeSupported () {
} }
function isUniverifySupport () { function isUniverifySupport () {
const config = this.config return true
return !!(config.service && config.service.univerify && config.service.univerify.apiKey)
} }
function isWeixinSupported () { function isWeixinSupported () {
......
{ {
"name": "uni-id-co", "name": "uni-id-co",
"version": "1.1.15", "version": "1.1.17",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"keywords": [], "keywords": [],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册