Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello_uni-id-pages
提交
4959f652
H
hello_uni-id-pages
项目概览
DCloud
/
hello_uni-id-pages
通知
1054
Star
31
Fork
43
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
2
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello_uni-id-pages
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
4959f652
编写于
5月 05, 2023
作者:
C
chenruilong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.1.12
上级
f20c8863
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
38 addition
and
34 deletion
+38
-34
manifest.json
manifest.json
+5
-4
uni_modules/uni-id-pages/changelog.md
uni_modules/uni-id-pages/changelog.md
+7
-3
uni_modules/uni-id-pages/package.json
uni_modules/uni-id-pages/package.json
+1
-1
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/login.js
...ages/uniCloud/cloudfunctions/uni-id-co/lib/utils/login.js
+3
-3
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/admin/add-user.js
...niCloud/cloudfunctions/uni-id-co/module/admin/add-user.js
+11
-1
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/facial-recognition-verify/get-auth-result.js
...id-co/module/facial-recognition-verify/get-auth-result.js
+1
-0
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/relate/unbind-qq.js
...Cloud/cloudfunctions/uni-id-co/module/relate/unbind-qq.js
+1
-14
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/relate/unbind-weixin.js
...d/cloudfunctions/uni-id-co/module/relate/unbind-weixin.js
+2
-4
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/create-captcha.js
.../cloudfunctions/uni-id-co/module/verify/create-captcha.js
+3
-2
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/refresh-captcha.js
...cloudfunctions/uni-id-co/module/verify/refresh-captcha.js
+4
-2
未找到文件。
manifest.json
浏览文件 @
4959f652
{
"name"
:
"uni-id-pages"
,
"appid"
:
"__UNI__
HelloUniApp
"
,
"appid"
:
"__UNI__
ECAF623
"
,
"description"
:
""
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
"100"
,
...
...
@@ -18,7 +18,8 @@
},
/*
模块配置
*/
"modules"
:
{
"OAuth"
:
{}
"OAuth"
:
{},
"FacialRecognitionVerify"
:
{}
},
/*
应用发布信息
*/
"distribute"
:
{
...
...
@@ -57,7 +58,7 @@
"oauth"
:
{
"univerify"
:
{},
"weixin"
:
{
"appid"
:
""
,
"appid"
:
"
wxffdd8fa6ec4ef2a0
"
,
"UniversalLinks"
:
"https://static-9f641af8-e860-44e5-b18f-f68dd8fe3fe4.bspapp.com/uni-universallinks/__UNI__0B1B311/"
},
"apple"
:
{}
...
...
@@ -107,7 +108,7 @@
"quickapp"
:
{},
/*
小程序特有相关
*/
"mp-weixin"
:
{
"appid"
:
"
wx999bf02c8e05dfc9
"
,
"appid"
:
""
,
"setting"
:
{
"urlCheck"
:
false
},
...
...
uni_modules/uni-id-pages/changelog.md
浏览文件 @
4959f652
## 1.1.12(2023-03-29)
-
uni-id-co 修复 更新push_clientid时因device_id没有变化导致无法更新
-
uni-id-co 新增 自无unionid到有unionid状态进行登录时为用户补充unionid字段
## 1.1.12(2023-05-05)
-
uni-id-co 新增 调用 add-user 接口创建用户时允许触发 beforeRegister 钩子方法,beforeRegister 钩子
[
详见
](
https://uniapp.dcloud.net.cn/uniCloud/uni-id-summary.html#before-register
)
-
uni-id-co 新增 自无 unionid 到有 unionid 状态进行登录时为用户补充 unionid 字段
-
uni-id-co 修复 i18n 在特定场景下报错的 bug
-
uni-id-co 修复 跨平台解绑微信/QQ时无法解绑的 bug
-
uni-id-co 修复 微信小程序等平台创建验证码时无法展示的 bug
-
uni-id-co 修复 更新 push_clientid 时因 device_id 没有变化导致无法更新
## 1.1.11(2023-03-24)
-
修复 tabbar页面因为token无效而强制跳转至登录页面(url参数包含
`uniIdRedirectUrl`
)后无法返回的问题
## 1.1.10(2023-03-24)
...
...
uni_modules/uni-id-pages/package.json
浏览文件 @
4959f652
{
"id"
:
"uni-id-pages"
,
"displayName"
:
"uni-id-pages"
,
"version"
:
"1.1.1
1
"
,
"version"
:
"1.1.1
2
"
,
"description"
:
"云端一体简单、统一、可扩展的用户中心页面模版"
,
"keywords"
:
[
"用户管理"
,
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/login.js
浏览文件 @
4959f652
...
...
@@ -173,8 +173,8 @@ async function thirdPartyLogin (params = {}) {
user
}
=
params
return
{
mobileCo
mfirmd
:
user
.
mobile_comfirm
d
,
emailCo
mfirmd
:
user
.
email_comfirm
d
mobileCo
nfirmed
:
!!
user
.
mobile_confirme
d
,
emailCo
nfirmed
:
!!
user
.
email_confirme
d
}
}
...
...
@@ -194,7 +194,7 @@ async function postLogin (params = {}) {
last_login_ip
:
clientIP
,
...
extraData
}
const
createTokenRes
=
await
this
.
uniIdCommon
.
createToken
({
const
createTokenRes
=
await
this
.
uniIdCommon
.
createToken
({
uid
})
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/admin/add-user.js
浏览文件 @
4959f652
...
...
@@ -113,7 +113,17 @@ module.exports = async function (params = {}) {
data
.
mobile_confirmed
=
1
}
await
userCollection
.
add
(
data
)
// 触发 beforeRegister 钩子
const
beforeRegister
=
this
.
hooks
.
beforeRegister
let
userRecord
=
data
if
(
beforeRegister
)
{
userRecord
=
await
beforeRegister
({
userRecord
,
clientInfo
:
this
.
getUniversalClientInfo
()
})
}
await
userCollection
.
add
(
userRecord
)
return
{
errCode
:
0
,
errMsg
:
''
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/facial-recognition-verify/get-auth-result.js
浏览文件 @
4959f652
...
...
@@ -70,6 +70,7 @@ module.exports = async function (params) {
status
:
REAL_NAME_STATUS
.
CERTIFY_FAILED
})
console
.
log
(
ERROR
.
FRV_FAIL
,
'
error:
'
,
res
)
throw
{
errCode
:
ERROR
.
FRV_FAIL
}
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/relate/unbind-qq.js
浏览文件 @
4959f652
...
...
@@ -5,10 +5,6 @@ const {
const
{
LOG_TYPE
,
dbCmd
}
=
require
(
'
../../common/constants
'
)
const
{
getQQPlatform
}
=
require
(
'
../../lib/utils/qq
'
)
/**
* 解绑QQ
* @tutorial https://uniapp.dcloud.net.cn/uniCloud/uni-id-pages.html#unbind-qq
...
...
@@ -16,20 +12,11 @@ const {
*/
module
.
exports
=
async
function
()
{
const
{
uid
}
=
this
.
authInfo
const
{
appId
}
=
this
.
getUniversalClientInfo
()
const
qqPlatform
=
getQQPlatform
.
call
(
this
)
await
preUnBind
.
call
(
this
,
{
uid
,
unBindAccount
:
{
qq_openid
:
dbCmd
.
or
([
{
[
qqPlatform
]:
dbCmd
.
exists
(
true
)
},
{
[
`
${
qqPlatform
}
_
${
appId
}
`
]:
dbCmd
.
exists
(
true
)
}
]),
qq_openid
:
dbCmd
.
exists
(
true
),
qq_unionid
:
dbCmd
.
exists
(
true
)
},
logType
:
LOG_TYPE
.
UNBIND_QQ
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/relate/unbind-weixin.js
浏览文件 @
4959f652
...
...
@@ -16,14 +16,12 @@ const {
*/
module
.
exports
=
async
function
()
{
const
{
uid
}
=
this
.
authInfo
const
weixinPlatform
=
getWeixinPlatform
.
call
(
this
)
//
const weixinPlatform = getWeixinPlatform.call(this)
await
preUnBind
.
call
(
this
,
{
uid
,
unBindAccount
:
{
wx_openid
:
{
[
weixinPlatform
]:
dbCmd
.
exists
(
true
)
},
wx_openid
:
dbCmd
.
exists
(
true
),
wx_unionid
:
dbCmd
.
exists
(
true
)
},
logType
:
LOG_TYPE
.
UNBIND_WEIXIN
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/create-captcha.js
浏览文件 @
4959f652
...
...
@@ -18,7 +18,7 @@ module.exports = async function (params = {}) {
}
this
.
middleware
.
validate
(
params
,
schema
)
const
deviceId
=
this
.
getUniversalClientInfo
().
deviceId
const
{
deviceId
,
platform
}
=
this
.
getUniversalClientInfo
()
const
{
scene
}
=
params
...
...
@@ -29,6 +29,7 @@ module.exports = async function (params = {}) {
}
return
this
.
uniCaptcha
.
create
({
deviceId
,
scene
scene
,
uniPlatform
:
platform
})
}
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/refresh-captcha.js
浏览文件 @
4959f652
...
...
@@ -18,7 +18,8 @@ module.exports = async function (params = {}) {
}
this
.
middleware
.
validate
(
params
,
schema
)
const
deviceId
=
this
.
getUniversalClientInfo
().
deviceId
const
{
deviceId
,
platform
}
=
this
.
getUniversalClientInfo
()
const
{
scene
}
=
params
...
...
@@ -29,6 +30,7 @@ module.exports = async function (params = {}) {
}
return
this
.
uniCaptcha
.
refresh
({
deviceId
,
scene
scene
,
uniPlatform
:
platform
})
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录