Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
b36870f2
U
uni-app
项目概览
DCloud
/
uni-app
14 天 前同步成功
通知
751
Star
38709
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
8
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
8
Issue
8
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b36870f2
编写于
7月 18, 2022
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: build
上级
8d410008
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
42 addition
and
6 deletion
+42
-6
packages/uni-app-plus/dist/uni.runtime.esm.js
packages/uni-app-plus/dist/uni.runtime.esm.js
+8
-0
packages/uni-cloud/lib/uni.plugin.js
packages/uni-cloud/lib/uni.plugin.js
+11
-1
packages/uni-mp-baidu/dist/uni.api.esm.js
packages/uni-mp-baidu/dist/uni.api.esm.js
+4
-0
packages/uni-mp-weixin/dist/uni.api.esm.js
packages/uni-mp-weixin/dist/uni.api.esm.js
+15
-1
packages/uni-stat/dist/uni-cloud-stat.cjs.js
packages/uni-stat/dist/uni-cloud-stat.cjs.js
+2
-2
packages/uni-stat/dist/uni-cloud-stat.es.js
packages/uni-stat/dist/uni-cloud-stat.es.js
+2
-2
未找到文件。
packages/uni-app-plus/dist/uni.runtime.esm.js
浏览文件 @
b36870f2
...
...
@@ -14108,6 +14108,14 @@ const getAppAuthorizeSetting = defineSyncApi(API_GET_APP_AUTHORIZE_SETTING, () =
appAuthorizeSetting = JSON.parse(appAuthorizeSetting);
}
catch (error) { }
for (const key in appAuthorizeSetting) {
if (Object.hasOwnProperty.call(appAuthorizeSetting, key)) {
const value = appAuthorizeSetting[key];
// @ts-ignore
if (value === 'undefined')
appAuthorizeSetting[key] = undefined;
}
}
return appAuthorizeSetting;
});
...
...
packages/uni-cloud/lib/uni.plugin.js
浏览文件 @
b36870f2
...
...
@@ -9,7 +9,6 @@ const shared_1 = require("@vue/shared");
const
uni_shared_1
=
require
(
"
@dcloudio/uni-shared
"
);
const
uni_cli_shared_1
=
require
(
"
@dcloudio/uni-cli-shared
"
);
const
validateFunction_1
=
require
(
"
./validateFunction
"
);
process
.
env
.
UNI_CLOUD_PROVIDER
=
JSON
.
stringify
([]);
const
uniCloudSpaces
=
[];
const
initUniCloudEnvOnce
=
(
0
,
uni_shared_1
.
once
)(
initUniCloudEnv
);
initUniCloudEnvOnce
();
...
...
@@ -94,6 +93,17 @@ function checkUniModules() {
}
function
initUniCloudEnv
()
{
checkUniModules
();
if
(
process
.
env
.
UNI_CLOUD_PROVIDER
)
{
const
spaces
=
JSON
.
parse
(
process
.
env
.
UNI_CLOUD_PROVIDER
);
if
(
!
(
0
,
shared_1
.
isArray
)(
spaces
))
{
return
;
}
if
(
spaces
.
length
)
{
uniCloudSpaces
.
push
(...
spaces
);
return
;
}
}
process
.
env
.
UNI_CLOUD_PROVIDER
=
JSON
.
stringify
([]);
if
(
!
process
.
env
.
UNI_CLOUD_SPACES
)
{
return
;
}
...
...
packages/uni-mp-baidu/dist/uni.api.esm.js
浏览文件 @
b36870f2
...
...
@@ -1226,6 +1226,9 @@ const navigateBackMiniProgram = {
const
showShareMenu
=
{
name
:
'
openShare
'
,
};
const
login
=
{
name
:
'
getLoginCode
'
,
};
const
getAccountInfoSync
=
{
name
:
'
getEnvInfoSync
'
,
returnValue
(
fromRes
,
toRes
)
{
...
...
@@ -1249,6 +1252,7 @@ var protocols = /*#__PURE__*/Object.freeze({
navigateToMiniProgram
:
navigateToMiniProgram
,
navigateBackMiniProgram
:
navigateBackMiniProgram
,
showShareMenu
:
showShareMenu
,
login
:
login
,
getAccountInfoSync
:
getAccountInfoSync
,
redirectTo
:
redirectTo
,
navigateTo
:
navigateTo
,
...
...
packages/uni-mp-weixin/dist/uni.api.esm.js
浏览文件 @
b36870f2
...
...
@@ -1162,6 +1162,19 @@ const getWindowInfo = {
},
};
const
getAppAuthorizeSetting
=
{
returnValue
:
function
(
fromRes
,
toRes
)
{
const
{
locationReducedAccuracy
}
=
fromRes
;
toRes
.
locationAccuracy
=
'
unsupported
'
;
if
(
locationReducedAccuracy
===
true
)
{
toRes
.
locationAccuracy
=
'
reduced
'
;
}
else
if
(
locationReducedAccuracy
===
false
)
{
toRes
.
locationAccuracy
=
'
full
'
;
}
},
};
const
mocks
=
[
'
__route__
'
,
'
__wxExparserNodeId__
'
,
'
__wxWebviewId__
'
];
const
getProvider
=
initGetProvider
({
...
...
@@ -1206,7 +1219,8 @@ var protocols = /*#__PURE__*/Object.freeze({
showActionSheet
:
showActionSheet
,
getDeviceInfo
:
getDeviceInfo
,
getAppBaseInfo
:
getAppBaseInfo
,
getWindowInfo
:
getWindowInfo
getWindowInfo
:
getWindowInfo
,
getAppAuthorizeSetting
:
getAppAuthorizeSetting
});
var
index
=
initUni
(
shims
,
protocols
);
...
...
packages/uni-stat/dist/uni-cloud-stat.cjs.js
浏览文件 @
b36870f2
...
...
@@ -446,10 +446,10 @@ const uni_cloud_config = () => {
const
get_space
=
(
config
)
=>
{
const
uniCloudConfig
=
uni_cloud_config
();
const
{
spaceId
,
provider
,
clientSecret
}
=
uniCloudConfig
;
const
space_type
=
[
'
tcb
'
,
'
aliyun
'
];
const
space_type
=
[
'
tcb
'
,
'
tencent
'
,
'
aliyun
'
];
const
is_provider
=
space_type
.
indexOf
(
provider
)
!==
-
1
;
const
is_aliyun
=
provider
===
'
aliyun
'
&&
spaceId
&&
clientSecret
;
const
is_tcb
=
provider
===
'
tcb
'
&&
spaceId
;
const
is_tcb
=
(
provider
===
'
tcb
'
||
provider
===
'
tencent
'
)
&&
spaceId
;
if
(
is_provider
&&
(
is_aliyun
||
is_tcb
))
{
return
uniCloudConfig
...
...
packages/uni-stat/dist/uni-cloud-stat.es.js
浏览文件 @
b36870f2
...
...
@@ -444,10 +444,10 @@ const uni_cloud_config = () => {
const
get_space
=
(
config
)
=>
{
const
uniCloudConfig
=
uni_cloud_config
();
const
{
spaceId
,
provider
,
clientSecret
}
=
uniCloudConfig
;
const
space_type
=
[
'
tcb
'
,
'
aliyun
'
];
const
space_type
=
[
'
tcb
'
,
'
tencent
'
,
'
aliyun
'
];
const
is_provider
=
space_type
.
indexOf
(
provider
)
!==
-
1
;
const
is_aliyun
=
provider
===
'
aliyun
'
&&
spaceId
&&
clientSecret
;
const
is_tcb
=
provider
===
'
tcb
'
&&
spaceId
;
const
is_tcb
=
(
provider
===
'
tcb
'
||
provider
===
'
tencent
'
)
&&
spaceId
;
if
(
is_provider
&&
(
is_aliyun
||
is_tcb
))
{
return
uniCloudConfig
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录