From 9d8caf47046eada56ed1260ebfed9bc20c4a19cc Mon Sep 17 00:00:00 2001 From: qiang Date: Wed, 6 Jan 2021 14:32:20 +0800 Subject: [PATCH] build v3 --- packages/uni-app-plus/dist/index.v3.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/uni-app-plus/dist/index.v3.js b/packages/uni-app-plus/dist/index.v3.js index aaa3bbfd3..2c2e95cef 100644 --- a/packages/uni-app-plus/dist/index.v3.js +++ b/packages/uni-app-plus/dist/index.v3.js @@ -3423,11 +3423,13 @@ var serviceContext = (function () { function warpPlusErrorCallback (callbackId, name, errMsg) { return function errorCallback (error) { error = error || {}; - const code = error.code || 0; + // 一键登录errorCallback新增 appid、metadata、uid 参数返回 + const { code = 0, message: errorMessage, ...extraData } = error; invoke$1(callbackId, { - errMsg: `${name}:fail ${error.message || errMsg || ''}`, + errMsg: `${name}:fail ${errorMessage || errMsg || ''}`, errCode: code, - code + code, + ...extraData }); } } -- GitLab