提交 434ba3a1 编写于 作者: M MicroMilo

修改点啥

上级 f7aae4ee
...@@ -16,9 +16,6 @@ ...@@ -16,9 +16,6 @@
<uni-forms-item name="owner_id" label="发布者id"> <uni-forms-item name="owner_id" label="发布者id">
<uni-easyinput placeholder="小队活动发布者id" v-model="formData.owner_id"></uni-easyinput> <uni-easyinput placeholder="小队活动发布者id" v-model="formData.owner_id"></uni-easyinput>
</uni-forms-item> </uni-forms-item>
<uni-forms-item name="background_picture" label="背景图片">
<uni-easyinput placeholder="小队活动背景图片" v-model="formData.background_picture"></uni-easyinput>
</uni-forms-item>
<uni-forms-item name="place" label="地点"> <uni-forms-item name="place" label="地点">
<uni-easyinput placeholder="小队活动地点" v-model="formData.place"></uni-easyinput> <uni-easyinput placeholder="小队活动地点" v-model="formData.place"></uni-easyinput>
</uni-forms-item> </uni-forms-item>
...@@ -71,7 +68,6 @@ ...@@ -71,7 +68,6 @@
"start_date": "", "start_date": "",
"end_date": "", "end_date": "",
"owner_id": "", "owner_id": "",
"background_picture": "",
"place": "", "place": "",
"status": null, "status": null,
"participants": null, "participants": null,
......
...@@ -16,9 +16,6 @@ ...@@ -16,9 +16,6 @@
<uni-forms-item name="owner_id" label="发布者id"> <uni-forms-item name="owner_id" label="发布者id">
<uni-easyinput placeholder="小队活动发布者id" v-model="formData.owner_id"></uni-easyinput> <uni-easyinput placeholder="小队活动发布者id" v-model="formData.owner_id"></uni-easyinput>
</uni-forms-item> </uni-forms-item>
<uni-forms-item name="background_picture" label="背景图片">
<uni-easyinput placeholder="小队活动背景图片" v-model="formData.background_picture"></uni-easyinput>
</uni-forms-item>
<uni-forms-item name="place" label="地点"> <uni-forms-item name="place" label="地点">
<uni-easyinput placeholder="小队活动地点" v-model="formData.place"></uni-easyinput> <uni-easyinput placeholder="小队活动地点" v-model="formData.place"></uni-easyinput>
</uni-forms-item> </uni-forms-item>
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
<uni-th align="center" filter-type="search" @filter-change="filterChange($event, 'start_date')" sortable @sort-change="sortChange($event, 'start_date')">开始时间</uni-th> <uni-th align="center" filter-type="search" @filter-change="filterChange($event, 'start_date')" sortable @sort-change="sortChange($event, 'start_date')">开始时间</uni-th>
<uni-th align="center" filter-type="search" @filter-change="filterChange($event, 'end_date')" sortable @sort-change="sortChange($event, 'end_date')">结束时间</uni-th> <uni-th align="center" filter-type="search" @filter-change="filterChange($event, 'end_date')" sortable @sort-change="sortChange($event, 'end_date')">结束时间</uni-th>
<uni-th align="center" sortable @sort-change="sortChange($event, 'owner_id')">发布者id</uni-th> <uni-th align="center" sortable @sort-change="sortChange($event, 'owner_id')">发布者id</uni-th>
<uni-th align="center" filter-type="search" @filter-change="filterChange($event, 'background_picture')" sortable @sort-change="sortChange($event, 'background_picture')">背景图片</uni-th>
<uni-th align="center" filter-type="search" @filter-change="filterChange($event, 'place')" sortable @sort-change="sortChange($event, 'place')">地点</uni-th> <uni-th align="center" filter-type="search" @filter-change="filterChange($event, 'place')" sortable @sort-change="sortChange($event, 'place')">地点</uni-th>
<uni-th align="center" sortable @sort-change="sortChange($event, 'status')">活动状态</uni-th> <uni-th align="center" sortable @sort-change="sortChange($event, 'status')">活动状态</uni-th>
<uni-th align="center" filter-type="range" @filter-change="filterChange($event, 'participants')" sortable @sort-change="sortChange($event, 'participants')">参与人数</uni-th> <uni-th align="center" filter-type="range" @filter-change="filterChange($event, 'participants')" sortable @sort-change="sortChange($event, 'participants')">参与人数</uni-th>
...@@ -40,7 +39,6 @@ ...@@ -40,7 +39,6 @@
<uni-td align="center">{{item.start_date}}</uni-td> <uni-td align="center">{{item.start_date}}</uni-td>
<uni-td align="center">{{item.end_date}}</uni-td> <uni-td align="center">{{item.end_date}}</uni-td>
<uni-td align="center">{{item.owner_id}}</uni-td> <uni-td align="center">{{item.owner_id}}</uni-td>
<uni-td align="center">{{item.background_picture}}</uni-td>
<uni-td align="center">{{item.place}}</uni-td> <uni-td align="center">{{item.place}}</uni-td>
<uni-td align="center">{{item.status}}</uni-td> <uni-td align="center">{{item.status}}</uni-td>
<uni-td align="center">{{item.participants}}</uni-td> <uni-td align="center">{{item.participants}}</uni-td>
...@@ -106,7 +104,6 @@ ...@@ -106,7 +104,6 @@
"开始时间": "start_date", "开始时间": "start_date",
"结束时间": "end_date", "结束时间": "end_date",
"发布者id": "owner_id", "发布者id": "owner_id",
"背景图片": "background_picture",
"地点": "place", "地点": "place",
"活动状态": "status", "活动状态": "status",
"参与人数": "participants", "参与人数": "participants",
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<uni-th align="center" sortable @sort-change="sortChange($event, 'owner_id')">用户id</uni-th> <uni-th align="center" sortable @sort-change="sortChange($event, 'owner_id')">用户id</uni-th>
<uni-th align="center" filter-type="range" @filter-change="filterChange($event, 'distance')" sortable @sort-change="sortChange($event, 'distance')">距离</uni-th> <uni-th align="center" filter-type="range" @filter-change="filterChange($event, 'distance')" sortable @sort-change="sortChange($event, 'distance')">距离</uni-th>
<uni-th align="center" filter-type="range" @filter-change="filterChange($event, 'pace')" sortable @sort-change="sortChange($event, 'pace')">配速</uni-th> <uni-th align="center" filter-type="range" @filter-change="filterChange($event, 'pace')" sortable @sort-change="sortChange($event, 'pace')">配速</uni-th>
<uni-th align="center" sortable @sort-change="sortChange($event, 'path_line')">路线</uni-th> <!-- <uni-th align="center" sortable @sort-change="sortChange($event, 'path_line')">路线</uni-th> -->
<uni-th align="center" sortable @sort-change="sortChange($event, 'start_point')">起始地点</uni-th> <uni-th align="center" sortable @sort-change="sortChange($event, 'start_point')">起始地点</uni-th>
<uni-th align="center" sortable @sort-change="sortChange($event, 'end_point')">结束地点</uni-th> <uni-th align="center" sortable @sort-change="sortChange($event, 'end_point')">结束地点</uni-th>
<uni-th align="center">操作</uni-th> <uni-th align="center">操作</uni-th>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<uni-td align="center">{{item.owner_id}}</uni-td> <uni-td align="center">{{item.owner_id}}</uni-td>
<uni-td align="center">{{item.distance}}</uni-td> <uni-td align="center">{{item.distance}}</uni-td>
<uni-td align="center">{{item.pace}}</uni-td> <uni-td align="center">{{item.pace}}</uni-td>
<uni-td align="center">{{item.path_line}}</uni-td> <!-- <uni-td align="center">{{item.path_line}}</uni-td> -->
<uni-td align="center">{{item.start_point}}</uni-td> <uni-td align="center">{{item.start_point}}</uni-td>
<uni-td align="center">{{item.end_point}}</uni-td> <uni-td align="center">{{item.end_point}}</uni-td>
<uni-td align="center"> <uni-td align="center">
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<uni-th align="center" filter-type="range" @filter-change="filterChange($event, 'pace')" sortable @sort-change="sortChange($event, 'pace')">配速</uni-th> <uni-th align="center" filter-type="range" @filter-change="filterChange($event, 'pace')" sortable @sort-change="sortChange($event, 'pace')">配速</uni-th>
<uni-th align="center" sortable @sort-change="sortChange($event, 'start_point')">起始地点</uni-th> <uni-th align="center" sortable @sort-change="sortChange($event, 'start_point')">起始地点</uni-th>
<uni-th align="center" sortable @sort-change="sortChange($event, 'end_point')">结束地点</uni-th> <uni-th align="center" sortable @sort-change="sortChange($event, 'end_point')">结束地点</uni-th>
<uni-th align="center" sortable @sort-change="sortChange($event, 'path_line')">路线</uni-th> <!-- <uni-th align="center" sortable @sort-change="sortChange($event, 'path_line')">路线</uni-th> -->
<uni-th align="center">操作</uni-th> <uni-th align="center">操作</uni-th>
</uni-tr> </uni-tr>
<uni-tr v-for="(item,index) in data" :key="index"> <uni-tr v-for="(item,index) in data" :key="index">
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<uni-td align="center">{{item.pace}}</uni-td> <uni-td align="center">{{item.pace}}</uni-td>
<uni-td align="center">{{item.start_point}}</uni-td> <uni-td align="center">{{item.start_point}}</uni-td>
<uni-td align="center">{{item.end_point}}</uni-td> <uni-td align="center">{{item.end_point}}</uni-td>
<uni-td align="center">{{item.path_line}}</uni-td> <!-- <uni-td align="center">{{item.path_line}}</uni-td> -->
<uni-td align="center"> <uni-td align="center">
<view class="uni-group"> <view class="uni-group">
<button @click="navigateTo('./edit?id='+item._id, false)" class="uni-button" size="mini" type="primary">修改</button> <button @click="navigateTo('./edit?id='+item._id, false)" class="uni-button" size="mini" type="primary">修改</button>
......
...@@ -88,6 +88,18 @@ ...@@ -88,6 +88,18 @@
filterToWhere filterToWhere
} from '../../../js_sdk/validator/mustgo-user.js'; } from '../../../js_sdk/validator/mustgo-user.js';
// uniCloud.callFunction({
// name: 'fe-sport-feelings',
// data: {
// type: '跑步',
// id: '6453ab9e28064a7587271ea6',
// feeling: 'gggggooooooddddd'
// }
// })
// .then(res => {
// console.log(res)
// })
const db = uniCloud.database() const db = uniCloud.database()
// 表查询配置 // 表查询配置
const dbOrderBy = '' // 排序字段 const dbOrderBy = '' // 排序字段
......
...@@ -39,7 +39,7 @@ exports.main = async (event, context) => { ...@@ -39,7 +39,7 @@ exports.main = async (event, context) => {
data: { data: {
name: 'DCloud', name: 'DCloud',
code: smsCode, code: smsCode,
expMinute: '3', expMinute: '5',
} }
}) })
......
...@@ -18,6 +18,7 @@ exports.main = async (event, context) => { ...@@ -18,6 +18,7 @@ exports.main = async (event, context) => {
data: { data: {
userId: res.data[0]["_id"], userId: res.data[0]["_id"],
name: res.data[0]["name"], name: res.data[0]["name"],
icon: res.data[0]["icon"],
gender: res.data[0]["gender"], gender: res.data[0]["gender"],
phone_num: res.data[0]["phone_num"], phone_num: res.data[0]["phone_num"],
team_id: res.data[0]["team_id"], team_id: res.data[0]["team_id"],
......
// 本文件中的json内容将在云函数【运行】时作为参数传给云函数。
// 配置教程参考:https://uniapp.dcloud.net.cn/uniCloud/rundebug.html#runparam
{
"username": "osako",
"gender": "男",
"password": "12345678",
"phone": "15860855025",
"school": "福州大学"
}
\ No newline at end of file
...@@ -6,12 +6,27 @@ exports.main = async (event, context) => { ...@@ -6,12 +6,27 @@ exports.main = async (event, context) => {
const db = uniCloud.database(); const db = uniCloud.database();
const collection = db.collection('mustgo-user'); const collection = db.collection('mustgo-user');
let res = await collection.add({ let res = await collection.where({
phone_num: event.phone
}).get()
console.log(res)
if (res.affectedDocs > 0) {
return {
code: 400,
message: "手机号重复",
data: {
}
}
}
res = await collection.add({
name: event.username, name: event.username,
gender: event.gender, gender: event.gender,
password: event.password, password: event.password,
phone_num: event.phone, phone_num: event.phone,
team_id: "", team_id: "",
icon: "https://mp-6f6feaec-a026-4402-8e8d-18f7572890da.cdn.bspapp.com/cloudstorage/0510a534-dd8d-41f0-8341-601aa677e243.jpg",
school: event.school, school: event.school,
type: "644a64c228064a7587cd79bf", type: "644a64c228064a7587cd79bf",
total_running_distance: 0, total_running_distance: 0,
...@@ -31,7 +46,7 @@ exports.main = async (event, context) => { ...@@ -31,7 +46,7 @@ exports.main = async (event, context) => {
//返回数据给客户端 //返回数据给客户端
return { return {
code: 400, code: 400,
message: "注册失败", message: "手机号重复",
data: { data: {
} }
} }
......
// 本文件中的json内容将在云函数【运行】时作为参数传给云函数。
// 配置教程参考:https://uniapp.dcloud.net.cn/uniCloud/rundebug.html#runparam
{
"type": "跑步",
"id": "6453ab9e28064a7587271ea6",
"feeling": "demodemodemdoe"
}
\ No newline at end of file
'use strict';
exports.main = async (event, context) => {
//event为客户端上传的参数
console.log('event : ', event)
const db = uniCloud.database();
let table;
if (event.type == '跑步')
table = 'mustgo-running-record';
else
table = 'mustgo-walking-record';
const collection = db.collection(table);
let res = await collection.doc(event.id).update({
feelings: event.feeling
})
if (res.updated > 0) {
return {
code: 200,
message: "保存成功",
data: {
}
}
}
//返回数据给客户端
return {
code: 500,
message: "服务器错误",
data: {
}
}
};
{
"name": "fe-sport-feelings",
"dependencies": {},
"extensions": {
"uni-cloud-jql": {}
}
}
\ No newline at end of file
...@@ -9,7 +9,7 @@ exports.main = async (event, context) => { ...@@ -9,7 +9,7 @@ exports.main = async (event, context) => {
let res = await collection.add({ let res = await collection.add({
start_date: event.startTime, start_date: event.startTime,
duration: event.duration, duration: event.duration,
feelings: event.feelings, feelings: "",
owner_id: event.userId, owner_id: event.userId,
distance: event.distance, distance: event.distance,
pace: event.pace, pace: event.pace,
...@@ -19,13 +19,15 @@ exports.main = async (event, context) => { ...@@ -19,13 +19,15 @@ exports.main = async (event, context) => {
}) })
console.log(res) console.log(res)
let sportId = res.id;
// userID // userID
collection = db.collection('mustgo-user'); collection = db.collection('mustgo-user');
res = await collection.where({ res = await collection.where({
_id: event.userId _id: event.userId
}).get() }).get()
// console.log(res) console.log(res)
let cur = res.data[0]["total_running_distance"]; let cur = res.data[0]["total_running_distance"];
cur += event.distance cur += event.distance
...@@ -39,7 +41,7 @@ exports.main = async (event, context) => { ...@@ -39,7 +41,7 @@ exports.main = async (event, context) => {
code: 200, code: 200,
message: "保存成功", message: "保存成功",
data: { data: {
id: sportId
} }
} }
......
...@@ -9,7 +9,7 @@ exports.main = async (event, context) => { ...@@ -9,7 +9,7 @@ exports.main = async (event, context) => {
let res = await collection.add({ let res = await collection.add({
start_date: event.startTime, start_date: event.startTime,
duration: event.duration, duration: event.duration,
feelings: event.feelings, // feelings: event.feelings,
owner_id: event.userId, owner_id: event.userId,
distance: event.distance, distance: event.distance,
pace: event.pace, pace: event.pace,
...@@ -19,6 +19,8 @@ exports.main = async (event, context) => { ...@@ -19,6 +19,8 @@ exports.main = async (event, context) => {
}) })
console.log(res) console.log(res)
let sportId = res.id;
// userID // userID
collection = db.collection('mustgo-user'); collection = db.collection('mustgo-user');
res = await collection.where({ res = await collection.where({
...@@ -39,7 +41,7 @@ exports.main = async (event, context) => { ...@@ -39,7 +41,7 @@ exports.main = async (event, context) => {
code: 200, code: 200,
message: "保存成功", message: "保存成功",
data: { data: {
id: sportId
} }
} }
......
{ {
"passwordSecret": "passwordSecret-demo", "passwordSecret": "passwordSecret-demo",
"tokenSecret": "tokenSecret-demo", "tokenSecret": "tokenSecret-demo",
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"passwordErrorLimit": 6, "passwordErrorLimit": 6,
"bindTokenToDevice": false, "bindTokenToDevice": false,
"passwordErrorRetryTime": 3600, "passwordErrorRetryTime": 3600,
"autoSetInviteCode": false, "autoSetInviteCode": false,
"forceInviteCode": false, "forceInviteCode": false,
"app": { "app": {
"tokenExpiresIn": 2592000, "tokenExpiresIn": 2592000,
"tokenExpiresThreshold": 864000, "tokenExpiresThreshold": 864000,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid", "appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid",
"appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret" "appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret"
}, },
"apple": { "apple": {
"bundleId": "苹果开发者后台获取的bundleId" "bundleId": "苹果开发者后台获取的bundleId"
} }
} }
}, },
"web": { "web": {
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"oauth": { "oauth": {
"weixin-h5": { "weixin-h5": {
"appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信公众号后台获取的appsecret" "appsecret": "微信公众号后台获取的appsecret"
}, },
"weixin-web": { "weixin-web": {
"appid": "微信PC页面扫码登录配置appid", "appid": "微信PC页面扫码登录配置appid",
"appsecret": "微信PC页面扫码登录配置appsecret" "appsecret": "微信PC页面扫码登录配置appsecret"
} }
} }
}, },
"mp-weixin": { "mp-weixin": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信小程序后台获取的appsecret" "appsecret": "微信小程序后台获取的appsecret"
} }
} }
}, },
"mp-alipay": { "mp-alipay": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"alipay": { "alipay": {
"appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr", "appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr",
"privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr" "privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr"
} }
} }
}, },
"service": { "service": {
"sms": { "sms": {
"name": "应用名称,对应短信模版的name", "name": "应用名称,对应短信模版的name",
"codeExpiresIn": 300, "codeExpiresIn": 300,
"smsKey": "短信密钥key,开通短信服务处可以看到", "smsKey": "短信密钥key,开通短信服务处可以看到",
"smsSecret": "短信密钥secret,开通短信服务处可以看到", "smsSecret": "短信密钥secret,开通短信服务处可以看到",
"scene": { "scene": {
"bind-mobile-by-sms": { "bind-mobile-by-sms": {
"templateId": "绑定手机号使用的短信验证码模板", "templateId": "绑定手机号使用的短信验证码模板",
"codeExpiresIn": 240 "codeExpiresIn": 240
} }
} }
}, },
"univerify": { "univerify": {
"appid": "当前应用的appid,使用云函数URL化,此项必须配置", "appid": "当前应用的appid,使用云函数URL化,此项必须配置",
"apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965", "apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965",
"apiSecret": "" "apiSecret": ""
} }
} }
} }
\ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
}, },
{ {
"type": "stat", "type": "stat",
"time": "* * 1 10" "time": "* * 20 53"
}, },
{ {
"type": "stat", "type": "stat",
......
{ {
"passwordSecret": "passwordSecret-demo", "passwordSecret": "passwordSecret-demo",
"tokenSecret": "tokenSecret-demo", "tokenSecret": "tokenSecret-demo",
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"passwordErrorLimit": 6, "passwordErrorLimit": 6,
"bindTokenToDevice": false, "bindTokenToDevice": false,
"passwordErrorRetryTime": 3600, "passwordErrorRetryTime": 3600,
"autoSetInviteCode": false, "autoSetInviteCode": false,
"forceInviteCode": false, "forceInviteCode": false,
"app": { "app": {
"tokenExpiresIn": 2592000, "tokenExpiresIn": 2592000,
"tokenExpiresThreshold": 864000, "tokenExpiresThreshold": 864000,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid", "appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid",
"appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret" "appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret"
}, },
"apple": { "apple": {
"bundleId": "苹果开发者后台获取的bundleId" "bundleId": "苹果开发者后台获取的bundleId"
} }
} }
}, },
"web": { "web": {
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"oauth": { "oauth": {
"weixin-h5": { "weixin-h5": {
"appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信公众号后台获取的appsecret" "appsecret": "微信公众号后台获取的appsecret"
}, },
"weixin-web": { "weixin-web": {
"appid": "微信PC页面扫码登录配置appid", "appid": "微信PC页面扫码登录配置appid",
"appsecret": "微信PC页面扫码登录配置appsecret" "appsecret": "微信PC页面扫码登录配置appsecret"
} }
} }
}, },
"mp-weixin": { "mp-weixin": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信小程序后台获取的appsecret" "appsecret": "微信小程序后台获取的appsecret"
} }
} }
}, },
"mp-alipay": { "mp-alipay": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"alipay": { "alipay": {
"appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr", "appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr",
"privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr" "privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr"
} }
} }
}, },
"service": { "service": {
"sms": { "sms": {
"name": "应用名称,对应短信模版的name", "name": "应用名称,对应短信模版的name",
"codeExpiresIn": 300, "codeExpiresIn": 300,
"smsKey": "短信密钥key,开通短信服务处可以看到", "smsKey": "短信密钥key,开通短信服务处可以看到",
"smsSecret": "短信密钥secret,开通短信服务处可以看到", "smsSecret": "短信密钥secret,开通短信服务处可以看到",
"scene": { "scene": {
"bind-mobile-by-sms": { "bind-mobile-by-sms": {
"templateId": "绑定手机号使用的短信验证码模板", "templateId": "绑定手机号使用的短信验证码模板",
"codeExpiresIn": 240 "codeExpiresIn": 240
} }
} }
}, },
"univerify": { "univerify": {
"appid": "当前应用的appid,使用云函数URL化,此项必须配置", "appid": "当前应用的appid,使用云函数URL化,此项必须配置",
"apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965", "apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965",
"apiSecret": "" "apiSecret": ""
} }
} }
} }
\ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
}, },
{ {
"type": "stat", "type": "stat",
"time": "* * 1 10" "time": "* * 20 53"
}, },
{ {
"type": "stat", "type": "stat",
......
{ {
"passwordSecret": "passwordSecret-demo", "passwordSecret": "passwordSecret-demo",
"tokenSecret": "tokenSecret-demo", "tokenSecret": "tokenSecret-demo",
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"passwordErrorLimit": 6, "passwordErrorLimit": 6,
"bindTokenToDevice": false, "bindTokenToDevice": false,
"passwordErrorRetryTime": 3600, "passwordErrorRetryTime": 3600,
"autoSetInviteCode": false, "autoSetInviteCode": false,
"forceInviteCode": false, "forceInviteCode": false,
"app": { "app": {
"tokenExpiresIn": 2592000, "tokenExpiresIn": 2592000,
"tokenExpiresThreshold": 864000, "tokenExpiresThreshold": 864000,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid", "appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid",
"appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret" "appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret"
}, },
"apple": { "apple": {
"bundleId": "苹果开发者后台获取的bundleId" "bundleId": "苹果开发者后台获取的bundleId"
} }
} }
}, },
"web": { "web": {
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"oauth": { "oauth": {
"weixin-h5": { "weixin-h5": {
"appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信公众号后台获取的appsecret" "appsecret": "微信公众号后台获取的appsecret"
}, },
"weixin-web": { "weixin-web": {
"appid": "微信PC页面扫码登录配置appid", "appid": "微信PC页面扫码登录配置appid",
"appsecret": "微信PC页面扫码登录配置appsecret" "appsecret": "微信PC页面扫码登录配置appsecret"
} }
} }
}, },
"mp-weixin": { "mp-weixin": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信小程序后台获取的appsecret" "appsecret": "微信小程序后台获取的appsecret"
} }
} }
}, },
"mp-alipay": { "mp-alipay": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"alipay": { "alipay": {
"appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr", "appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr",
"privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr" "privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr"
} }
} }
}, },
"service": { "service": {
"sms": { "sms": {
"name": "应用名称,对应短信模版的name", "name": "应用名称,对应短信模版的name",
"codeExpiresIn": 300, "codeExpiresIn": 300,
"smsKey": "短信密钥key,开通短信服务处可以看到", "smsKey": "短信密钥key,开通短信服务处可以看到",
"smsSecret": "短信密钥secret,开通短信服务处可以看到", "smsSecret": "短信密钥secret,开通短信服务处可以看到",
"scene": { "scene": {
"bind-mobile-by-sms": { "bind-mobile-by-sms": {
"templateId": "绑定手机号使用的短信验证码模板", "templateId": "绑定手机号使用的短信验证码模板",
"codeExpiresIn": 240 "codeExpiresIn": 240
} }
} }
}, },
"univerify": { "univerify": {
"appid": "当前应用的appid,使用云函数URL化,此项必须配置", "appid": "当前应用的appid,使用云函数URL化,此项必须配置",
"apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965", "apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965",
"apiSecret": "" "apiSecret": ""
} }
} }
} }
\ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
}, },
{ {
"type": "stat", "type": "stat",
"time": "* * 1 10" "time": "* * 20 53"
}, },
{ {
"type": "stat", "type": "stat",
......
{ {
"passwordSecret": "passwordSecret-demo", "passwordSecret": "passwordSecret-demo",
"tokenSecret": "tokenSecret-demo", "tokenSecret": "tokenSecret-demo",
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"passwordErrorLimit": 6, "passwordErrorLimit": 6,
"bindTokenToDevice": false, "bindTokenToDevice": false,
"passwordErrorRetryTime": 3600, "passwordErrorRetryTime": 3600,
"autoSetInviteCode": false, "autoSetInviteCode": false,
"forceInviteCode": false, "forceInviteCode": false,
"app": { "app": {
"tokenExpiresIn": 2592000, "tokenExpiresIn": 2592000,
"tokenExpiresThreshold": 864000, "tokenExpiresThreshold": 864000,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid", "appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid",
"appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret" "appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret"
}, },
"apple": { "apple": {
"bundleId": "苹果开发者后台获取的bundleId" "bundleId": "苹果开发者后台获取的bundleId"
} }
} }
}, },
"web": { "web": {
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"oauth": { "oauth": {
"weixin-h5": { "weixin-h5": {
"appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信公众号后台获取的appsecret" "appsecret": "微信公众号后台获取的appsecret"
}, },
"weixin-web": { "weixin-web": {
"appid": "微信PC页面扫码登录配置appid", "appid": "微信PC页面扫码登录配置appid",
"appsecret": "微信PC页面扫码登录配置appsecret" "appsecret": "微信PC页面扫码登录配置appsecret"
} }
} }
}, },
"mp-weixin": { "mp-weixin": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信小程序后台获取的appsecret" "appsecret": "微信小程序后台获取的appsecret"
} }
} }
}, },
"mp-alipay": { "mp-alipay": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"alipay": { "alipay": {
"appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr", "appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr",
"privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr" "privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr"
} }
} }
}, },
"service": { "service": {
"sms": { "sms": {
"name": "应用名称,对应短信模版的name", "name": "应用名称,对应短信模版的name",
"codeExpiresIn": 300, "codeExpiresIn": 300,
"smsKey": "短信密钥key,开通短信服务处可以看到", "smsKey": "短信密钥key,开通短信服务处可以看到",
"smsSecret": "短信密钥secret,开通短信服务处可以看到", "smsSecret": "短信密钥secret,开通短信服务处可以看到",
"scene": { "scene": {
"bind-mobile-by-sms": { "bind-mobile-by-sms": {
"templateId": "绑定手机号使用的短信验证码模板", "templateId": "绑定手机号使用的短信验证码模板",
"codeExpiresIn": 240 "codeExpiresIn": 240
} }
} }
}, },
"univerify": { "univerify": {
"appid": "当前应用的appid,使用云函数URL化,此项必须配置", "appid": "当前应用的appid,使用云函数URL化,此项必须配置",
"apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965", "apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965",
"apiSecret": "" "apiSecret": ""
} }
} }
} }
\ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
}, },
{ {
"type": "stat", "type": "stat",
"time": "* * 1 10" "time": "* * 20 53"
}, },
{ {
"type": "stat", "type": "stat",
......
{ {
"passwordSecret": "passwordSecret-demo", "passwordSecret": "passwordSecret-demo",
"tokenSecret": "tokenSecret-demo", "tokenSecret": "tokenSecret-demo",
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"passwordErrorLimit": 6, "passwordErrorLimit": 6,
"bindTokenToDevice": false, "bindTokenToDevice": false,
"passwordErrorRetryTime": 3600, "passwordErrorRetryTime": 3600,
"autoSetInviteCode": false, "autoSetInviteCode": false,
"forceInviteCode": false, "forceInviteCode": false,
"app": { "app": {
"tokenExpiresIn": 2592000, "tokenExpiresIn": 2592000,
"tokenExpiresThreshold": 864000, "tokenExpiresThreshold": 864000,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid", "appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid",
"appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret" "appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret"
}, },
"apple": { "apple": {
"bundleId": "苹果开发者后台获取的bundleId" "bundleId": "苹果开发者后台获取的bundleId"
} }
} }
}, },
"web": { "web": {
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"oauth": { "oauth": {
"weixin-h5": { "weixin-h5": {
"appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信公众号后台获取的appsecret" "appsecret": "微信公众号后台获取的appsecret"
}, },
"weixin-web": { "weixin-web": {
"appid": "微信PC页面扫码登录配置appid", "appid": "微信PC页面扫码登录配置appid",
"appsecret": "微信PC页面扫码登录配置appsecret" "appsecret": "微信PC页面扫码登录配置appsecret"
} }
} }
}, },
"mp-weixin": { "mp-weixin": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信小程序后台获取的appsecret" "appsecret": "微信小程序后台获取的appsecret"
} }
} }
}, },
"mp-alipay": { "mp-alipay": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"alipay": { "alipay": {
"appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr", "appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr",
"privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr" "privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr"
} }
} }
}, },
"service": { "service": {
"sms": { "sms": {
"name": "应用名称,对应短信模版的name", "name": "应用名称,对应短信模版的name",
"codeExpiresIn": 300, "codeExpiresIn": 300,
"smsKey": "短信密钥key,开通短信服务处可以看到", "smsKey": "短信密钥key,开通短信服务处可以看到",
"smsSecret": "短信密钥secret,开通短信服务处可以看到", "smsSecret": "短信密钥secret,开通短信服务处可以看到",
"scene": { "scene": {
"bind-mobile-by-sms": { "bind-mobile-by-sms": {
"templateId": "绑定手机号使用的短信验证码模板", "templateId": "绑定手机号使用的短信验证码模板",
"codeExpiresIn": 240 "codeExpiresIn": 240
} }
} }
}, },
"univerify": { "univerify": {
"appid": "当前应用的appid,使用云函数URL化,此项必须配置", "appid": "当前应用的appid,使用云函数URL化,此项必须配置",
"apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965", "apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965",
"apiSecret": "" "apiSecret": ""
} }
} }
} }
\ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
}, },
{ {
"type": "stat", "type": "stat",
"time": "* * 1 10" "time": "* * 20 53"
}, },
{ {
"type": "stat", "type": "stat",
......
{ {
"passwordSecret": "passwordSecret-demo", "passwordSecret": "passwordSecret-demo",
"tokenSecret": "tokenSecret-demo", "tokenSecret": "tokenSecret-demo",
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"passwordErrorLimit": 6, "passwordErrorLimit": 6,
"bindTokenToDevice": false, "bindTokenToDevice": false,
"passwordErrorRetryTime": 3600, "passwordErrorRetryTime": 3600,
"autoSetInviteCode": false, "autoSetInviteCode": false,
"forceInviteCode": false, "forceInviteCode": false,
"app": { "app": {
"tokenExpiresIn": 2592000, "tokenExpiresIn": 2592000,
"tokenExpiresThreshold": 864000, "tokenExpiresThreshold": 864000,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid", "appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid",
"appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret" "appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret"
}, },
"apple": { "apple": {
"bundleId": "苹果开发者后台获取的bundleId" "bundleId": "苹果开发者后台获取的bundleId"
} }
} }
}, },
"web": { "web": {
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"oauth": { "oauth": {
"weixin-h5": { "weixin-h5": {
"appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信公众号后台获取的appsecret" "appsecret": "微信公众号后台获取的appsecret"
}, },
"weixin-web": { "weixin-web": {
"appid": "微信PC页面扫码登录配置appid", "appid": "微信PC页面扫码登录配置appid",
"appsecret": "微信PC页面扫码登录配置appsecret" "appsecret": "微信PC页面扫码登录配置appsecret"
} }
} }
}, },
"mp-weixin": { "mp-weixin": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信小程序后台获取的appsecret" "appsecret": "微信小程序后台获取的appsecret"
} }
} }
}, },
"mp-alipay": { "mp-alipay": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"alipay": { "alipay": {
"appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr", "appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr",
"privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr" "privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr"
} }
} }
}, },
"service": { "service": {
"sms": { "sms": {
"name": "应用名称,对应短信模版的name", "name": "应用名称,对应短信模版的name",
"codeExpiresIn": 300, "codeExpiresIn": 300,
"smsKey": "短信密钥key,开通短信服务处可以看到", "smsKey": "短信密钥key,开通短信服务处可以看到",
"smsSecret": "短信密钥secret,开通短信服务处可以看到", "smsSecret": "短信密钥secret,开通短信服务处可以看到",
"scene": { "scene": {
"bind-mobile-by-sms": { "bind-mobile-by-sms": {
"templateId": "绑定手机号使用的短信验证码模板", "templateId": "绑定手机号使用的短信验证码模板",
"codeExpiresIn": 240 "codeExpiresIn": 240
} }
} }
}, },
"univerify": { "univerify": {
"appid": "当前应用的appid,使用云函数URL化,此项必须配置", "appid": "当前应用的appid,使用云函数URL化,此项必须配置",
"apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965", "apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965",
"apiSecret": "" "apiSecret": ""
} }
} }
} }
\ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
}, },
{ {
"type": "stat", "type": "stat",
"time": "* * 1 10" "time": "* * 20 53"
}, },
{ {
"type": "stat", "type": "stat",
......
{ {
"passwordSecret": "passwordSecret-demo", "passwordSecret": "passwordSecret-demo",
"tokenSecret": "tokenSecret-demo", "tokenSecret": "tokenSecret-demo",
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"passwordErrorLimit": 6, "passwordErrorLimit": 6,
"bindTokenToDevice": false, "bindTokenToDevice": false,
"passwordErrorRetryTime": 3600, "passwordErrorRetryTime": 3600,
"autoSetInviteCode": false, "autoSetInviteCode": false,
"forceInviteCode": false, "forceInviteCode": false,
"app": { "app": {
"tokenExpiresIn": 2592000, "tokenExpiresIn": 2592000,
"tokenExpiresThreshold": 864000, "tokenExpiresThreshold": 864000,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid", "appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid",
"appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret" "appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret"
}, },
"apple": { "apple": {
"bundleId": "苹果开发者后台获取的bundleId" "bundleId": "苹果开发者后台获取的bundleId"
} }
} }
}, },
"web": { "web": {
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"oauth": { "oauth": {
"weixin-h5": { "weixin-h5": {
"appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信公众号后台获取的appsecret" "appsecret": "微信公众号后台获取的appsecret"
}, },
"weixin-web": { "weixin-web": {
"appid": "微信PC页面扫码登录配置appid", "appid": "微信PC页面扫码登录配置appid",
"appsecret": "微信PC页面扫码登录配置appsecret" "appsecret": "微信PC页面扫码登录配置appsecret"
} }
} }
}, },
"mp-weixin": { "mp-weixin": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信小程序后台获取的appsecret" "appsecret": "微信小程序后台获取的appsecret"
} }
} }
}, },
"mp-alipay": { "mp-alipay": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"alipay": { "alipay": {
"appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr", "appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr",
"privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr" "privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr"
} }
} }
}, },
"service": { "service": {
"sms": { "sms": {
"name": "应用名称,对应短信模版的name", "name": "应用名称,对应短信模版的name",
"codeExpiresIn": 300, "codeExpiresIn": 300,
"smsKey": "短信密钥key,开通短信服务处可以看到", "smsKey": "短信密钥key,开通短信服务处可以看到",
"smsSecret": "短信密钥secret,开通短信服务处可以看到", "smsSecret": "短信密钥secret,开通短信服务处可以看到",
"scene": { "scene": {
"bind-mobile-by-sms": { "bind-mobile-by-sms": {
"templateId": "绑定手机号使用的短信验证码模板", "templateId": "绑定手机号使用的短信验证码模板",
"codeExpiresIn": 240 "codeExpiresIn": 240
} }
} }
}, },
"univerify": { "univerify": {
"appid": "当前应用的appid,使用云函数URL化,此项必须配置", "appid": "当前应用的appid,使用云函数URL化,此项必须配置",
"apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965", "apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965",
"apiSecret": "" "apiSecret": ""
} }
} }
} }
\ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
}, },
{ {
"type": "stat", "type": "stat",
"time": "* * 1 10" "time": "* * 20 53"
}, },
{ {
"type": "stat", "type": "stat",
......
{ {
"passwordSecret": "passwordSecret-demo", "passwordSecret": "passwordSecret-demo",
"tokenSecret": "tokenSecret-demo", "tokenSecret": "tokenSecret-demo",
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"passwordErrorLimit": 6, "passwordErrorLimit": 6,
"bindTokenToDevice": false, "bindTokenToDevice": false,
"passwordErrorRetryTime": 3600, "passwordErrorRetryTime": 3600,
"autoSetInviteCode": false, "autoSetInviteCode": false,
"forceInviteCode": false, "forceInviteCode": false,
"app": { "app": {
"tokenExpiresIn": 2592000, "tokenExpiresIn": 2592000,
"tokenExpiresThreshold": 864000, "tokenExpiresThreshold": 864000,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid", "appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid",
"appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret" "appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret"
}, },
"apple": { "apple": {
"bundleId": "苹果开发者后台获取的bundleId" "bundleId": "苹果开发者后台获取的bundleId"
} }
} }
}, },
"web": { "web": {
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 3600, "tokenExpiresThreshold": 3600,
"oauth": { "oauth": {
"weixin-h5": { "weixin-h5": {
"appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信公众号登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信公众号后台获取的appsecret" "appsecret": "微信公众号后台获取的appsecret"
}, },
"weixin-web": { "weixin-web": {
"appid": "微信PC页面扫码登录配置appid", "appid": "微信PC页面扫码登录配置appid",
"appsecret": "微信PC页面扫码登录配置appsecret" "appsecret": "微信PC页面扫码登录配置appsecret"
} }
} }
}, },
"mp-weixin": { "mp-weixin": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取", "appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
"appsecret": "微信小程序后台获取的appsecret" "appsecret": "微信小程序后台获取的appsecret"
} }
} }
}, },
"mp-alipay": { "mp-alipay": {
"tokenExpiresIn": 259200, "tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400, "tokenExpiresThreshold": 86400,
"oauth": { "oauth": {
"alipay": { "alipay": {
"appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr", "appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr",
"privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr" "privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr"
} }
} }
}, },
"service": { "service": {
"sms": { "sms": {
"name": "应用名称,对应短信模版的name", "name": "应用名称,对应短信模版的name",
"codeExpiresIn": 300, "codeExpiresIn": 300,
"smsKey": "短信密钥key,开通短信服务处可以看到", "smsKey": "短信密钥key,开通短信服务处可以看到",
"smsSecret": "短信密钥secret,开通短信服务处可以看到", "smsSecret": "短信密钥secret,开通短信服务处可以看到",
"scene": { "scene": {
"bind-mobile-by-sms": { "bind-mobile-by-sms": {
"templateId": "绑定手机号使用的短信验证码模板", "templateId": "绑定手机号使用的短信验证码模板",
"codeExpiresIn": 240 "codeExpiresIn": 240
} }
} }
}, },
"univerify": { "univerify": {
"appid": "当前应用的appid,使用云函数URL化,此项必须配置", "appid": "当前应用的appid,使用云函数URL化,此项必须配置",
"apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965", "apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965",
"apiSecret": "" "apiSecret": ""
} }
} }
} }
\ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
}, },
{ {
"type": "stat", "type": "stat",
"time": "* * 1 10" "time": "* * 20 53"
}, },
{ {
"type": "stat", "type": "stat",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册