Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
0613d8ab
U
uni-app
项目概览
DCloud
/
uni-app
2 个月 前同步成功
通知
718
Star
38705
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
7
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
7
Issue
7
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0613d8ab
编写于
1月 21, 2021
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs(uni-id): 解决冲突
上级
e4158a4c
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
0 addition
and
38 deletion
+0
-38
docs/uniCloud/uni-id.md
docs/uniCloud/uni-id.md
+0
-38
未找到文件。
docs/uniCloud/uni-id.md
浏览文件 @
0613d8ab
...
@@ -179,19 +179,11 @@ exports.main = async (event, context) => {
...
@@ -179,19 +179,11 @@ exports.main = async (event, context) => {
"codeExpiresIn"
:
180
,
//
验证码过期时间,单位为秒,注意一定要是
60
的整数倍
"codeExpiresIn"
:
180
,
//
验证码过期时间,单位为秒,注意一定要是
60
的整数倍
"smsKey"
:
"your sms key"
,
//
短信密钥key,开通短信服务处可以看到
"smsKey"
:
"your sms key"
,
//
短信密钥key,开通短信服务处可以看到
"smsSecret"
:
"your sms secret"
//
短信密钥secret,开通短信服务处可以看到
"smsSecret"
:
"your sms secret"
//
短信密钥secret,开通短信服务处可以看到
<<<<<<<
HEAD
},
},
"univerify"
:
{
"univerify"
:
{
"appid"
:
"your appid"
,
//
当前应用的appid,使用云函数URL化,此项必须配置
"appid"
:
"your appid"
,
//
当前应用的appid,使用云函数URL化,此项必须配置
"apiKey"
:
"your apiKey"
,
//
apiKey
和
apiSecret在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=
0
,文档:https://ask.dcloud.net.cn/article/
37965
"apiKey"
:
"your apiKey"
,
//
apiKey
和
apiSecret在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=
0
,文档:https://ask.dcloud.net.cn/article/
37965
"apiSecret"
:
"your apiSecret"
"apiSecret"
:
"your apiSecret"
=======
},
"univerify"
:
{
"appid"
:
"your appid"
,
//
当前应用的appid,使用云函数URL化,此项必须配置
"apiKey"
:
"your apiKey"
,
//
apiKey
和
apiSecret
在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=
0
,文档:https://ask.dcloud.net.cn/article/
37965
"apiSecret"
:
"your apiSecret"
>>>>>>>
master
}
}
}
}
}
}
...
@@ -664,19 +656,12 @@ uniCloud.callFunction({
...
@@ -664,19 +656,12 @@ uniCloud.callFunction({
**响应参数**
**响应参数**
<<<<<<< HEAD
| 字段 | 类型 | 说明 |
| 字段 | 类型 | 说明 |
| --- | --- | --- |
| --- | --- | --- |
| code | Number|错误码,0表示成功 |
| code | Number|错误码,0表示成功 |
| message | String|详细信息 |
| message | String|详细信息 |
| token | String|生成的token |
| token | String|生成的token |
| tokenExpired| Number|token过期时间对应的时间戳|
| tokenExpired| Number|token过期时间对应的时间戳|
=======
| 字段 | 类型 | 必填| 说明 |
| --- | --- | --- | --- |
| token | String| 是 |生成的token |
| tokenExpired| Number| 是 |token过期时间对应的时间戳|
>>>>>>> master
### 修改密码 @update-password
### 修改密码 @update-password
...
@@ -1489,19 +1474,11 @@ exports.main = async function(event,context) {
...
@@ -1489,19 +1474,11 @@ exports.main = async function(event,context) {
| type | String |操作类型,
`login`
为登录、
`register`
为注册|
| type | String |操作类型,
`login`
为登录、
`register`
为注册|
| openid | String |用户openid |
| openid | String |用户openid |
| unionid | String | 否 |用户unionid,能取到此参数时会返回 |
| unionid | String | 否 |用户unionid,能取到此参数时会返回 |
<<<<<<< HEAD
| token | String |登录成功之后返回的token信息 |
| token | String |登录成功之后返回的token信息 |
| userInfo | Object|用户全部信息 |
| userInfo | Object|用户全部信息 |
| tokenExpired | String |token过期时间 |
| tokenExpired | String |token过期时间 |
| mobileConfirmed | Boolean |是否已验证手机号 |
| mobileConfirmed | Boolean |是否已验证手机号 |
| emailConfirmed | Boolean |是否已验证邮箱 |
| emailConfirmed | Boolean |是否已验证邮箱 |
=======
| token | String | 是 |登录成功之后返回的token信息 |
| userInfo | Object | 否 |用户全部信息,
`type`
为
`login`
时返回 |
| tokenExpired | String | 是 |token过期时间 |
| mobileConfirmed | Boolean | 是 |是否已验证手机号 |
| emailConfirmed | Boolean | 是 |是否已验证邮箱 |
>>>>>>> master
**示例代码**
**示例代码**
...
@@ -1712,7 +1689,6 @@ exports.main = async function(event,context) {
...
@@ -1712,7 +1689,6 @@ exports.main = async function(event,context) {
**响应参数**
**响应参数**
<<<<<<< HEAD
| 字段 | 类型 | 说明 |
| 字段 | 类型 | 说明 |
| --- | --- | --- |
| --- | --- | --- |
| code | Number |错误码,0表示成功 |
| code | Number |错误码,0表示成功 |
...
@@ -1725,20 +1701,6 @@ exports.main = async function(event,context) {
...
@@ -1725,20 +1701,6 @@ exports.main = async function(event,context) {
| tokenExpired | String |token过期时间 |
| tokenExpired | String |token过期时间 |
| mobileConfirmed | Boolean |是否已验证手机号 |
| mobileConfirmed | Boolean |是否已验证手机号 |
| emailConfirmed | Boolean |是否已验证邮箱 |
| emailConfirmed | Boolean |是否已验证邮箱 |
=======
| 字段 | 类型 | 必填| 说明 |
| --- | --- | --- | --- |
| code | Number | 是 |错误码,0表示成功 |
| message | String | 是 |详细信息 |
| uid | String | 是 |用户uid |
| type | String | 是 |操作类型,
`login`
为登录、
`register`
为注册|
| openid | String | 是 |用户openid |
| token | String | 是 |登录成功之后返回的token信息 |
| userInfo | Object| 是 |用户全部信息,
`type`
为
`login`
时返回 |
| tokenExpired | String | 是 |token过期时间 |
| mobileConfirmed | Boolean | 是 |是否已验证手机号 |
| emailConfirmed | Boolean | 是 |是否已验证邮箱 |
>>>>>>> master
**示例代码**
**示例代码**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录