提交 157c745c 编写于 作者: 芊里

用户登录token错误,亚琪已解决

上级 a0c67504
...@@ -123,13 +123,13 @@ ...@@ -123,13 +123,13 @@
db.collection(dbCollectionName).add(value).then((res) => { db.collection(dbCollectionName).add(value).then((res) => {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '新增成功' title: '反馈成功'
}) })
this.getOpenerEventChannel().emit('refreshData') this.getOpenerEventChannel().emit('refreshData')
setTimeout(() => uni.navigateBack(), 500) setTimeout(() => uni.navigateBack(), 500)
}).catch((err) => { }).catch((err) => {
uni.showModal({ uni.showModal({
content: err.message || '请求服务失败', content: err.message || '反馈失败',
showCancel: false showCancel: false
}) })
}).finally(() => { }).finally(() => {
......
'use strict'; 'use strict';
const uniID = require('uni-id') let uniID = require('uni-id')
const uniCaptcha = require('uni-captcha') const uniCaptcha = require('uni-captcha')
const db = uniCloud.database() const db = uniCloud.database()
const dbCmd = db.command const dbCmd = db.command
exports.main = async (event, context) => { exports.main = async (event, context) => {
/**
* UNI_WYQ:这里的uniID换成新的,保证多人访问不会冲突
*/
uniID = uniID.createInstance({
context
})
//event为客户端上传的参数 //event为客户端上传的参数
console.log('event : ' + event) console.log('event : ' + event)
let params = event.params || {} let params = event.params || {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册