feat: 后端版本迁移修改
This commit is contained in:
@@ -33,7 +33,7 @@ Page({
|
||||
if (this.data.favTab === 'plant') classType = 1;
|
||||
if (this.data.favTab === 'post') classType = 2;
|
||||
|
||||
request.post('/profile/star', {
|
||||
request.post('/plant/profile/star', {
|
||||
current,
|
||||
pageSize: this.data.pageSize,
|
||||
class: classType
|
||||
@@ -111,7 +111,7 @@ Page({
|
||||
const item = e.currentTarget.dataset.item;
|
||||
const { id, type } = item;
|
||||
|
||||
const apiPath = type === 'plant' ? '/wiki/star' : '/post/star';
|
||||
const apiPath = type === 'plant' ? '/plant/wiki/star' : '/plant/post/star';
|
||||
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
|
||||
Reference in New Issue
Block a user