Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
basic-uniapp-v3
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-uniapp-v3
Commits
f6059117
提交
f6059117
authored
8月 31, 2023
作者:
方治民
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 更新 uni_modules
上级
9431d8c9
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
62 行增加
和
32 行删除
+62
-32
changelog.md
src/uni_modules/uni-id-common/changelog.md
+4
-0
package.json
src/uni_modules/uni-id-common/package.json
+1
-1
index.js
...mon/uniCloud/cloudfunctions/common/uni-id-common/index.js
+0
-0
package.json
...uniCloud/cloudfunctions/common/uni-id-common/package.json
+1
-1
changelog.md
src/uni_modules/uni-upgrade-center-app/changelog.md
+4
-0
package.json
src/uni_modules/uni-upgrade-center-app/package.json
+2
-2
upgrade-popup.vue
...ni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue
+41
-25
db_init.json
...les/uni-upgrade-center-app/uniCloud/database/db_init.json
+1
-0
call-check-version.js
...odules/uni-upgrade-center-app/utils/call-check-version.js
+7
-2
check-update.js
src/uni_modules/uni-upgrade-center-app/utils/check-update.js
+1
-1
没有找到文件。
src/uni_modules/uni-id-common/changelog.md
浏览文件 @
f6059117
## 1.0.16(2023-04-25)
-
新增maxTokenLength配置,用于限制数据库用户记录token数组的最大长度
## 1.0.15(2023-04-06)
-
修复部分语言国际化出错的Bug
## 1.0.14(2023-03-07)
-
修复 admin用户包含其他角色时未包含在token的Bug
## 1.0.13(2022-07-21)
...
...
src/uni_modules/uni-id-common/package.json
浏览文件 @
f6059117
{
"displayName"
:
"uni-id-common"
,
"version"
:
"1.0.1
4
"
,
"version"
:
"1.0.1
6
"
,
"description"
:
"包含uni-id token生成、校验、刷新功能的云函数公共模块"
,
"keywords"
:
[
"uni-id-common"
,
...
...
src/uni_modules/uni-id-common/uniCloud/cloudfunctions/common/uni-id-common/index.js
浏览文件 @
f6059117
差异被折叠。
点击展开。
src/uni_modules/uni-id-common/uniCloud/cloudfunctions/common/uni-id-common/package.json
浏览文件 @
f6059117
{
"name"
:
"uni-id-common"
,
"version"
:
"1.0.1
4
"
,
"version"
:
"1.0.1
6
"
,
"description"
:
"uni-id token生成、校验、刷新"
,
"homepage"
:
"https://uniapp.dcloud.io/uniCloud/uni-id-common.html"
,
"repository"
:
{
...
...
src/uni_modules/uni-upgrade-center-app/changelog.md
浏览文件 @
f6059117
## 0.6.3(2023-08-30)
-
修复 下载 wgt 时如果后缀名不正确,重命名后安装
## 0.6.2(2022-11-21)
-
处理 cloudfunctions 目录
## 0.6.1(2022-08-17)
-
修复 后台添加应用市场,但都没有启用的情况下报错的Bug (需要 uni-admin 1.9.3+)
## 0.6.0(2022-07-19)
...
...
src/uni_modules/uni-upgrade-center-app/package.json
浏览文件 @
f6059117
{
"displayName"
:
"升级中心 uni-upgrade-center - App"
,
"version"
:
"0.6.
1
"
,
"version"
:
"0.6.
3
"
,
"description"
:
"uni升级中心 - 客户端检查更新"
,
"keywords"
:
[
"uniCloud"
,
...
...
@@ -10,7 +10,7 @@
],
"repository"
:
"https://gitee.com/dcloud/uni-upgrade-center/tree/master/uni_modules/uni-upgrade-center-app"
,
"engines"
:
{
"HBuilderX"
:
"^3.
1.0
"
"HBuilderX"
:
"^3.
2.14
"
},
"dcloudext"
:
{
"sale"
:
{
...
...
src/uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue
浏览文件 @
f6059117
...
...
@@ -28,22 +28,20 @@
<
template
v-else
>
<template
v-if=
"!downloadSuccess"
>
<view
class=
"progress-box flex-column"
v-if=
"downloading"
>
<progress
class=
"progress"
border-radius=
"35"
:percent=
"downLoadPercent"
activeColor=
"#3DA7FF"
show-info
stroke-width=
"10"
/>
<progress
class=
"progress"
border-radius=
"35"
:percent=
"downLoadPercent"
activeColor=
"#3DA7FF"
show-info
stroke-width=
"10"
/>
<view
style=
"width:100%;font-size: 28rpx;display: flex;justify-content: space-around;"
>
<text>
{{
downLoadingText
}}
</text>
<text>
(
{{
downloadedSize
}}
/
{{
packageFileSize
}}
M)
</text>
</view>
</view>
<button
v-else
class=
"content-button"
style=
"border: none;color: #fff;"
plain
@
click=
"updateApp"
>
<button
v-else
class=
"content-button"
style=
"border: none;color: #fff;"
plain
@
click=
"updateApp"
>
{{
downLoadBtnText
}}
</button>
</
template
>
<button
v-else-if=
"downloadSuccess && !installed"
class=
"content-button"
style=
"border: none;color: #fff;"
plain
:loading=
"installing"
:disabled=
"installing"
@
click=
"installPackage"
>
<button
v-else-if=
"downloadSuccess && !installed"
class=
"content-button"
style=
"border: none;color: #fff;"
plain
:loading=
"installing"
:disabled=
"installing"
@
click=
"installPackage"
>
{{installing ? '正在安装……' : '下载完成,立即安装'}}
</button>
...
...
@@ -55,8 +53,8 @@
</view>
</view>
<image
v-if=
"!is_mandatory"
class=
"close-img"
src=
"../images/app_update_close.png"
@
click
.
stop=
"closeUpdate"
>
</image>
<image
v-if=
"!is_mandatory"
class=
"close-img"
src=
"../images/app_update_close.png"
@
click
.
stop=
"closeUpdate"
>
</image>
</view>
</view>
</template>
...
...
@@ -282,22 +280,25 @@
success
:
res
=>
{
if
(
res
.
statusCode
==
200
)
{
this
.
downloadSuccess
=
true
;
this
.
tempFilePath
=
res
.
tempFilePath
// 强制更新,直接安装
if
(
this
.
is_mandatory
)
{
this
.
installPackage
();
// fix: wgt 文件下载完成后后缀不是 wgt
if
(
this
.
isWGT
&&
res
.
tempFilePath
.
split
(
'.'
).
slice
(
-
1
)
!==
'wgt'
)
{
const
failCallback
=
(
e
)
=>
{
console
.
log
(
'[FILE RENAME FAIL]:'
,
JSON
.
stringify
(
e
));
}
plus
.
io
.
resolveLocalFileSystemURL
(
res
.
tempFilePath
,
function
(
entry
)
{
entry
.
getParent
((
parent
)
=>
{
const
newName
=
`new_wgt_
${
Date
.
now
()}
.wgt`
entry
.
copyTo
(
parent
,
newName
,
(
res
)
=>
{
this
.
tempFilePath
=
res
.
fullPath
this
.
downLoadComplete
()
},
failCallback
)
},
failCallback
)
},
failCallback
);
}
else
{
this
.
tempFilePath
=
res
.
tempFilePath
this
.
downLoadComplete
()
}
}
},
complete
:
()
=>
{
this
.
downloading
=
false
;
this
.
downLoadPercent
=
0
this
.
downloadedSize
=
0
this
.
packageFileSize
=
0
downloadTask
=
null
;
}
});
...
...
@@ -307,6 +308,20 @@
this
.
packageFileSize
=
(
res
.
totalBytesExpectedToWrite
/
Math
.
pow
(
1024
,
2
)).
toFixed
(
2
);
});
},
downLoadComplete
()
{
this
.
downloading
=
false
;
this
.
downLoadPercent
=
0
this
.
downloadedSize
=
0
this
.
packageFileSize
=
0
downloadTask
=
null
;
// 强制更新,直接安装
if
(
this
.
is_mandatory
)
{
this
.
installPackage
();
}
},
installPackage
()
{
// #ifdef APP-PLUS
// wgt资源包安装
...
...
@@ -436,7 +451,7 @@
background-color
:
#fff
;
box-sizing
:
border-box
;
padding
:
0
50
rpx
;
font-family
:
-apple-system-font
,
'Helvetica Neue'
,
Helvetica
,
sans-serif
;
font-family
:
Source
Han
Sans
CN
;
}
.text
{
...
...
@@ -536,4 +551,4 @@
flex-direction
:
column
;
align-items
:
center
;
}
</
style
>
</
style
>
\ No newline at end of file
src/uni_modules/uni-upgrade-center-app/uniCloud/database/db_init.json
0 → 100644
浏览文件 @
f6059117
{}
src/uni_modules/uni-upgrade-center-app/utils/call-check-version.js
浏览文件 @
f6059117
...
...
@@ -2,13 +2,18 @@ export default function() {
// #ifdef APP-PLUS
return
new
Promise
((
resolve
,
reject
)
=>
{
plus
.
runtime
.
getProperty
(
plus
.
runtime
.
appid
,
function
(
widgetInfo
)
{
cons
t
data
=
{
le
t
data
=
{
action
:
'checkVersion'
,
appid
:
plus
.
runtime
.
appid
,
appVersion
:
plus
.
runtime
.
version
,
wgtVersion
:
widgetInfo
.
version
}
console
.
log
(
"data: "
,
data
);
data
=
{
"action"
:
"checkVersion"
,
"appid"
:
"__UNI__TEST__"
,
"appVersion"
:
"1.0"
,
"wgtVersion"
:
"1.0"
}
uniCloud
.
callFunction
({
name
:
'uni-upgrade-center'
,
data
,
...
...
src/uni_modules/uni-upgrade-center-app/utils/check-update.js
浏览文件 @
f6059117
...
...
@@ -64,7 +64,7 @@ export default function() {
uni
.
removeStorageSync
(
PACKAGE_INFO_KEY
)
}
})
return
}
else
if
(
code
<
0
)
{
// TODO 云函数报错处理
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论