mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
🐛 修正浏览参数
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//! @file src/client/mod.rs
|
||||
//! @desc 客户端模块,负责操作米游社客户端
|
||||
//! @since Beta v0.6.10
|
||||
//! @since Beta v0.6.10/v0.7.0
|
||||
|
||||
mod menu;
|
||||
mod utils;
|
||||
@@ -8,7 +8,7 @@ mod utils;
|
||||
use tauri::{AppHandle, Manager, WebviewWindowBuilder};
|
||||
use tauri_utils::config::WebviewUrl;
|
||||
|
||||
static BBS_VERSION: &'static str = "2.81.1";
|
||||
static BBS_VERSION: &'static str = "2.82.0";
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn create_mhy_client(handle: AppHandle, func: String, url: String) {
|
||||
|
||||
@@ -24,10 +24,14 @@ export async function getPostFull(
|
||||
postId: number,
|
||||
cookie?: Record<string, string>,
|
||||
): Promise<TGApp.Plugins.Mys.Post.FullData | TGApp.BBS.Response.Base> {
|
||||
const param = { post_id: postId };
|
||||
const param = { post_id: postId, read: 1 };
|
||||
let header;
|
||||
if (cookie) header = getRequestHeader(cookie, "GET", param);
|
||||
else header = { referer: Referer };
|
||||
if (cookie) {
|
||||
header = {
|
||||
...getRequestHeader(cookie, "GET", param, "K2", true),
|
||||
"x-rpc-client_type": "2",
|
||||
};
|
||||
} else header = { referer: Referer };
|
||||
const resp = await TGHttp<TGApp.Plugins.Mys.Post.Response>(`${Mpabu}getPostFull`, {
|
||||
method: "GET",
|
||||
headers: header,
|
||||
|
||||
@@ -134,7 +134,7 @@ const apiHubReq = {
|
||||
forum: getAllGamesForums,
|
||||
game: getGameList,
|
||||
mission: getMissions,
|
||||
post: { like: upVotePost },
|
||||
post: { like: upVotePost, share: getShareConf },
|
||||
};
|
||||
|
||||
export default apiHubReq;
|
||||
|
||||
Reference in New Issue
Block a user