From 125cc85926c0735cbb94e49ea0f8b2f40ed170d6 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Fri, 15 Dec 2023 20:31:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=80=E9=94=AE=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=8E=B7=E5=8F=96=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?appId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uniCloud-aliyun/cloudfunctions/univerify/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uniCloud-aliyun/cloudfunctions/univerify/index.js b/uniCloud-aliyun/cloudfunctions/univerify/index.js index 39488964..98116923 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 } } -- GitLab