一键登录云函数构建,手机号一键登录调试

This commit is contained in:
唐明明
2021-07-23 17:22:47 +08:00
parent 1ac15128db
commit a6b92679c2
23 changed files with 3226 additions and 194 deletions

View File

@@ -0,0 +1,11 @@
'use strict';
exports.main = async (event, context) => {
return await uniCloud.getPhoneNumber({
appid: '__UNI__CD19AAD',
provider: 'univerify',
apiKey : '16fa20236696596869759d3a81541901', // 在开发者中心开通服务并获取apiKey
apiSecret: 'fca97287360c2e8f8259d8877a601887', // 在开发者中心开通服务并获取apiSecret
access_token: event.access_token,
openid: event.openid
})
};