diff --git a/alpha/admin/pages/content/mustgo-post/edit.vue b/alpha/admin/pages/content/mustgo-post/edit.vue
index 2831e35665bd2168381497f885bda54b6dbdf4de..caf8ceabd9af23233189bc3dc98558c04e64cdca 100644
--- a/alpha/admin/pages/content/mustgo-post/edit.vue
+++ b/alpha/admin/pages/content/mustgo-post/edit.vue
@@ -5,19 +5,25 @@
-
+
+
-
+
+
-
+
-
+
+
+
+
@@ -86,6 +89,9 @@
{text: '男', value: '男'},
{text: '女', value: '女'}
],
+ place: [
+ {value:'福州大学',text:'福州大学'},
+ ],
types: [
{text: '学生', value: '644a64c228064a7587cd79bf'},
{text: '老师', value: '644a64d2e766bb0085e6048e'}
diff --git a/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-college-likePost/index.js b/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-college-likePost/index.js
index d7dd6e0820655131fdfe06b9e8394c9c3d75966c..50267301322f3b010265b31e8aec295c673941f1 100644
--- a/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-college-likePost/index.js
+++ b/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-college-likePost/index.js
@@ -24,7 +24,7 @@ exports.main = async (event, context) => {
owner_id:event.userId
})
- const res4 = await message_table.add({
+ const res5 = await message_table.add({
state:false,
types:"点赞",
content:"",
@@ -49,6 +49,12 @@ exports.main = async (event, context) => {
likes:res.data[0]["likes"] - 1,
})
+ const deleteMessage = await message_table.where({
+ types:"点赞",
+ from_id:event.userId,
+ post_id:event.postId
+ }).remove()
+
const deleteLike = await like_table.doc(islike.data[0]["_id"]).remove()
if(deleteLike.deleted === 1){
return {