提交 570948df 编写于 作者: DCloud_JSON's avatar DCloud_JSON

重大调整,原云函数名称:user-center改名叫uni-id-cf

上级 909a1803
......@@ -95,7 +95,7 @@ uni-starter + uniCloud admin,应用开发从未如此简单快捷!
- 短信登陆:
+ 使用本功能需要在[DCloud开发者中心](https://dev.dcloud.net.cn/uniSms)开通并充值
+ 教程参考[短信服务开通指南](https://ask.dcloud.net.cn/article/37534)
+ 修改短信注册/登陆发生验证码的模板id,在文件`/uniCloud-aliyun/cloudfunctions/user-center/index.js` 搜索 `const templateId = '11753'` 替换为自己申请的模板id
+ 修改短信注册/登陆发生验证码的模板id,在文件`/uniCloud-aliyun/cloudfunctions/uni-id-cf/index.js` 搜索 `const templateId = '11753'` 替换为自己申请的模板id
- 一键登录:
+ [开通配置](https://dev.dcloud.net.cn/uniLogin)
+ [使用指南](https://uniapp.dcloud.io/univerify)
......@@ -301,7 +301,7 @@ uni-starter
│ │ | | └─file.cert uni-id依赖的配置文件,假如你使用微信发红包功能,需要的证书文件就是放到这里
│ | | └───uni-id uni-id用户体系 <a target="_blank" href="https://uniapp.dcloud.io/uniCloud/uni-id">详情</a>
│ | ├─uni-analyse-searchhot 云端一体搜索模板依赖的云函数 <a target="_blank" href="https://ext.dcloud.net.cn/plugin?id=3851">详情</a>
│ | └─user-center 用户中心云函数,实现用户注册、修改密码、发送验证码、快捷登录(微信、短信、账户、一键登录)
│ | └─uni-id-cf 用户中心云函数,实现用户注册、修改密码、发送验证码、快捷登录(微信、短信、账户、一键登录)
│ └──database 云数据目录
│ ├─db_init.json db_init.json初始化数据库文件,其中不再包含schema <a target="_blank" href="https://uniapp.dcloud.net.cn/uniCloud/hellodb?id=db-init">详情</a>
│ ├─opendb-app-versions.schema.json 应用版本,表结构文件
......
## 1.0.2(2021-05-17)
添加 uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json 文件
## 1.0.1(2021-05-17)
manifest.json 在小程序平台增加了一个配置项 betterScopedSlots,启用新的作用域插槽编译,用于支持作用域插槽内使用复杂表达式。
## 1.0.0(2021-05-17)
......
......@@ -265,7 +265,7 @@
params,
type
});
this.request('user-center/login_by_' + type, params, result => {
this.request('uni-id-cf/login_by_' + type, params, result => {
console.log(result);
if (result.code === 0) {
if (type == 'univerify') {
......
......@@ -75,7 +75,7 @@
icon: 'none'
});
this.request('user-center/sendSmsCode',
this.request('uni-id-cf/sendSmsCode',
{
"mobile": this.phone,
"type": this.codeType
......
{
"id": "uni-starter",
"displayName": "uni-starter",
"version": "1.0.1",
"description": "集成了商用项目开发常见功能的项目模板",
"version": "1.0.2",
"description": "一个集成了商用项目开发常见功能的项目模板",
"keywords": [
"uni-starter",
"login",
......
......@@ -42,7 +42,7 @@
},
methods: {
submit(){ //完成并提交
this.request('user-center/loginBySms',
this.request('uni-id-cf/loginBySms',
{
"mobile":this.phone,
"code":this.code
......
......@@ -63,7 +63,7 @@
});
}
// 下边是可以登录
this.request('user-center/login', {
this.request('uni-id-cf/login', {
"username": this.username,
"password": this.password,
"captcha":this.captcha
......@@ -91,7 +91,7 @@
},
createCaptcha(){
this.request(
'user-center/createCaptcha', {
'uni-id-cf/createCaptcha', {
scene: "login"
},
result => {
......
......@@ -135,7 +135,7 @@
submit() {
this.$refs.form.submit()
.then(res => {
this.request('user-center/resetPwdBySmsCode', {
this.request('uni-id-cf/resetPwdBySmsCode', {
"mobile": this.formData.phone,
"code": this.formData.code,
"password": this.formData.pwd
......
......@@ -63,7 +63,7 @@ import mixin from '../common/login-page.mixin.js';
})
},
submitForm(value) {
this.request('user-center/register',value,result=>{
this.request('uni-id-cf/register',value,result=>{
console.log(result);
if(result.code === 0){
this.loginSuccess(result)
......
......@@ -48,7 +48,7 @@
*/
submit() {
console.log(this.formData);
this.request('user-center/bind_mobile_by_sms', {
this.request('uni-id-cf/bind_mobile_by_sms', {
"mobile": this.formData.phone,
"code": this.formData.code
}, result=> {
......
......@@ -69,7 +69,7 @@
"univerifyStyle": this.univerifyStyle,
success: async e => {
console.log(e.authResult);
this.request('user-center/bind_mobile_by_univerify',
this.request('uni-id-cf/bind_mobile_by_univerify',
e.authResult,
result=>
{
......
{
"name": "user-center",
"name": "uni-id-cf",
"version": "1.0.0",
"lockfileVersion": 2,
"requires": true,
......
{
"name": "user-center",
"name": "uni-id-cf",
"version": "1.0.0",
"description": "",
"main": "index.js",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册