diff --git a/uni_modules/opendb-feedback/pages/opendb-feedback/add.vue b/uni_modules/opendb-feedback/pages/opendb-feedback/add.vue index 267239c80c5b099a02fd201289934dff644bfdbf..0b2b87cf1af6c548e1c90370f29c35e5a645391a 100644 --- a/uni_modules/opendb-feedback/pages/opendb-feedback/add.vue +++ b/uni_modules/opendb-feedback/pages/opendb-feedback/add.vue @@ -123,13 +123,13 @@ db.collection(dbCollectionName).add(value).then((res) => { uni.showToast({ icon: 'none', - title: '新增成功' + title: '反馈成功' }) this.getOpenerEventChannel().emit('refreshData') setTimeout(() => uni.navigateBack(), 500) }).catch((err) => { uni.showModal({ - content: err.message || '请求服务失败', + content: err.message || '反馈失败', showCancel: false }) }).finally(() => { diff --git a/uni_modules/uni-quick-login/uniCloud/cloudfunctions/user-center/index.js b/uni_modules/uni-quick-login/uniCloud/cloudfunctions/user-center/index.js index 520d4bebe53dcc7b8dc7d2207fef79b30b116b0f..5ecbc7436bc8664ed6f4507fef941671758cba33 100644 --- a/uni_modules/uni-quick-login/uniCloud/cloudfunctions/user-center/index.js +++ b/uni_modules/uni-quick-login/uniCloud/cloudfunctions/user-center/index.js @@ -1,9 +1,15 @@ 'use strict'; -const uniID = require('uni-id') +let uniID = require('uni-id') const uniCaptcha = require('uni-captcha') const db = uniCloud.database() const dbCmd = db.command exports.main = async (event, context) => { + /** + * UNI_WYQ:这里的uniID换成新的,保证多人访问不会冲突 + */ + uniID = uniID.createInstance({ + context + }) //event为客户端上传的参数 console.log('event : ' + event) let params = event.params || {}