🆕 新增热榜功能
This commit is contained in:
@@ -99,6 +99,25 @@ function changeUserNewsStatus(wxId) {
|
||||
})
|
||||
}
|
||||
|
||||
// 修改用户热搜开启状态
|
||||
function changeUserHotTopStatus(wxId) {
|
||||
axios({
|
||||
method: 'put',
|
||||
url: '/api/hot-top/status',
|
||||
data: {
|
||||
wxId: wxId
|
||||
}
|
||||
}).then(function (response) {
|
||||
console.log(`返回结果: ${JSON.stringify(response)}`);
|
||||
alert(`${response.data}`)
|
||||
}).catch(function (error) {
|
||||
console.log(`错误信息: ${error}`);
|
||||
alert("修改失败")
|
||||
}).finally(function () {
|
||||
window.location.reload();
|
||||
})
|
||||
}
|
||||
|
||||
// 修改指令权限启用状态
|
||||
function changeCommandEnableStatus(wxId) {
|
||||
axios({
|
||||
|
||||
Reference in New Issue
Block a user