Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
言程序plus
uni-starter
提交
00688380
U
uni-starter
项目概览
言程序plus
/
uni-starter
与 Fork 源项目一致
Fork自
DCloud / uni-starter
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
00688380
编写于
1月 29, 2023
作者:
study夏羽
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
验证码组件/uni-id-co更新
上级
88c7e97a
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
17 addition
and
18 deletion
+17
-18
uni_modules/uni-captcha/changelog.md
uni_modules/uni-captcha/changelog.md
+3
-1
uni_modules/uni-captcha/components/uni-popup-captcha/uni-popup-captcha.vue
...aptcha/components/uni-popup-captcha/uni-popup-captcha.vue
+1
-1
uni_modules/uni-captcha/package.json
uni_modules/uni-captcha/package.json
+1
-1
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/index.js
...ptcha/uniCloud/cloudfunctions/common/uni-captcha/index.js
+1
-1
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/package.json
...a/uniCloud/cloudfunctions/common/uni-captcha/package.json
+1
-1
uni_modules/uni-captcha/uniCloud/cloudfunctions/uni-captcha-co/index.obj.js
...ptcha/uniCloud/cloudfunctions/uni-captcha-co/index.obj.js
+1
-4
uni_modules/uni-id-pages/config.js
uni_modules/uni-id-pages/config.js
+2
-2
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/validator.js
...ges/uniCloud/cloudfunctions/uni-id-co/common/validator.js
+1
-1
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/admin/update-user.js
...loud/cloudfunctions/uni-id-co/module/admin/update-user.js
+4
-4
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/utils/set-push-cid.js
...oud/cloudfunctions/uni-id-co/module/utils/set-push-cid.js
+1
-1
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json
...i-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json
+1
-1
未找到文件。
uni_modules/uni-captcha/changelog.md
浏览文件 @
00688380
## 0.6.2(2023-01-10)
## 0.6.4(2023-01-16)
-
修复 部分情况下APP端无法获取验证码的问题
## 0.6.3(2023-01-11)
-
修复 抖音小程序无法显示的Bug
-
修复 刷新时兼容 device_uuid
## 0.6.1(2022-06-23)
...
...
uni_modules/uni-captcha/components/uni-popup-captcha/uni-popup-captcha.vue
浏览文件 @
00688380
...
...
@@ -66,7 +66,7 @@
this
.
$refs
.
popup
.
close
()
},
confirm
()
{
if
(
!
this
.
val
||
this
.
val
.
length
<
4
){
if
(
!
this
.
val
){
return
uni
.
showToast
({
title
:
'
请填写验证码
'
,
icon
:
'
none
'
...
...
uni_modules/uni-captcha/package.json
浏览文件 @
00688380
{
"id"
:
"uni-captcha"
,
"displayName"
:
"uni-captcha"
,
"version"
:
"0.6.
2
"
,
"version"
:
"0.6.
4
"
,
"description"
:
"云端一体图形验证码组件"
,
"keywords"
:
[
"captcha"
,
...
...
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/index.js
浏览文件 @
00688380
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/package.json
浏览文件 @
00688380
{
"name"
:
"uni-captcha"
,
"version"
:
"0.
2.2
"
,
"version"
:
"0.
6.4
"
,
"description"
:
"uni-captcha"
,
"main"
:
"index.js"
,
"homepage"
:
"https://ext.dcloud.net.cn/plugin?id=4048"
,
...
...
uni_modules/uni-captcha/uniCloud/cloudfunctions/uni-captcha-co/index.obj.js
浏览文件 @
00688380
...
...
@@ -6,16 +6,13 @@ const db = uniCloud.database();
//获取数据表opendb-verify-codes对象
const
verifyCodes
=
db
.
collection
(
'
opendb-verify-codes
'
)
const
createConfig
=
require
(
'
uni-config-center
'
)
const
captchaConfig
=
createConfig
({
// 获取配置实例
pluginId
:
'
captcha-config
'
// common/uni-config-center下的插件配置目录名
})
const
Config
=
captchaConfig
.
config
()
// 获取common/uni-config-center/share-config/config.json的内容
console
.
log
(
Config
,
"
15----------
"
);
// console.log(Config,"15----------");
module
.
exports
=
{
async
getImageCaptcha
({
scene
})
{
...
...
uni_modules/uni-id-pages/config.js
浏览文件 @
00688380
...
...
@@ -28,8 +28,8 @@ export default {
],
//政策协议
"
agreements
"
:
{
"
serviceUrl
"
:
"
https://
xxx
"
,
//用户服务协议链接
"
privacyUrl
"
:
"
https://
xxx
"
,
//隐私政策条款链接
"
serviceUrl
"
:
"
https://
ask.dcloud.net.cn/protocol.html
"
,
//用户服务协议链接
"
privacyUrl
"
:
"
https://
ask.dcloud.net.cn/protocol.html
"
,
//隐私政策条款链接
// 哪些场景下显示,1.注册(包括登录并注册,如:微信登录、苹果登录、短信验证码登录)、2.登录(如:用户名密码登录)
"
scope
"
:
[
'
register
'
,
'
login
'
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/validator.js
浏览文件 @
00688380
...
...
@@ -366,7 +366,7 @@ class Validator {
schemaKey
}
}
else
{
delete
value
[
schemaKey
]
//
delete value[schemaKey]
continue
}
}
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/admin/update-user.js
浏览文件 @
00688380
...
...
@@ -92,7 +92,7 @@ module.exports = async function (params = {}) {
const
realData
=
Object
.
keys
(
data
).
reduce
((
res
,
key
)
=>
{
const
item
=
data
[
key
]
if
(
item
)
{
if
(
item
!==
undefined
)
{
res
[
key
]
=
item
}
return
res
...
...
@@ -114,7 +114,6 @@ module.exports = async function (params = {}) {
}
}
}
if
(
password
)
{
const
passwordUtils
=
new
PasswordUtils
({
clientInfo
:
this
.
getUniversalClientInfo
(),
...
...
@@ -127,12 +126,13 @@ module.exports = async function (params = {}) {
password
})
d
ata
.
password
=
passwordHash
d
ata
.
password_secret_version
=
version
realD
ata
.
password
=
passwordHash
realD
ata
.
password_secret_version
=
version
}
await
userCollection
.
doc
(
uid
).
update
(
realData
)
return
{
errCode
:
0
}
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/utils/set-push-cid.js
浏览文件 @
00688380
...
...
@@ -95,7 +95,7 @@ module.exports = async function (params = {}) {
const
getDeviceRes
=
await
deviceCollection
.
where
({
device_id
:
deviceId
}).
get
()
console
.
log
(
getDeviceRes
)
//
console.log(getDeviceRes)
if
(
getDeviceRes
.
data
.
length
>
1
)
{
return
{
errCode
:
ERROR
.
SYSTEM_ERROR
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json
浏览文件 @
00688380
...
...
@@ -7,7 +7,7 @@
"author"
:
"DCloud"
,
"dependencies"
:
{
"jsonwebtoken"
:
"8.5.1"
,
"lodash.merge"
:
"
^
4.6.2"
,
"lodash.merge"
:
"4.6.2"
,
"uni-captcha"
:
"file:../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha"
,
"uni-config-center"
:
"file:../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
,
"uni-id-common"
:
"file:../../../../uni-id-common/uniCloud/cloudfunctions/common/uni-id-common"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录