diff --git a/uniCloud-aliyun/cloudfunctions/univerify/index.js b/uniCloud-aliyun/cloudfunctions/univerify/index.js index 39488964da3d6ec4b61168e200c558bcccb62c48..98116923e3e43fe0a7802b6ca23b61156c877a39 100644 --- a/uniCloud-aliyun/cloudfunctions/univerify/index.js +++ b/uniCloud-aliyun/cloudfunctions/univerify/index.js @@ -1,15 +1,15 @@ 'use strict'; -exports.main = async function(event) { +exports.main = async function(event, context) { const res = await uniCloud.getPhoneNumber({ - appid: '__UNI__3584C99', // 替换成自己开通一键登录的应用的DCloud appid + appid: context.appId, // 替换成自己开通一键登录的应用的DCloud appid provider: 'univerify', access_token: event.access_token, openid: event.openid }) // 执行入库等操作,正常情况下不要把完整手机号返回给前端 return { - code: 0, - message: '获取手机号成功', + errCode: 0, + errMsg: '获取手机号成功', res: res } }