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
|
//! @file src/client/mod.rs
|
||||||
//! @desc 客户端模块,负责操作米游社客户端
|
//! @desc 客户端模块,负责操作米游社客户端
|
||||||
//! @since Beta v0.6.10
|
//! @since Beta v0.6.10/v0.7.0
|
||||||
|
|
||||||
mod menu;
|
mod menu;
|
||||||
mod utils;
|
mod utils;
|
||||||
@@ -8,7 +8,7 @@ mod utils;
|
|||||||
use tauri::{AppHandle, Manager, WebviewWindowBuilder};
|
use tauri::{AppHandle, Manager, WebviewWindowBuilder};
|
||||||
use tauri_utils::config::WebviewUrl;
|
use tauri_utils::config::WebviewUrl;
|
||||||
|
|
||||||
static BBS_VERSION: &'static str = "2.81.1";
|
static BBS_VERSION: &'static str = "2.82.0";
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub async fn create_mhy_client(handle: AppHandle, func: String, url: String) {
|
pub async fn create_mhy_client(handle: AppHandle, func: String, url: String) {
|
||||||
|
|||||||
@@ -24,10 +24,14 @@ export async function getPostFull(
|
|||||||
postId: number,
|
postId: number,
|
||||||
cookie?: Record<string, string>,
|
cookie?: Record<string, string>,
|
||||||
): Promise<TGApp.Plugins.Mys.Post.FullData | TGApp.BBS.Response.Base> {
|
): Promise<TGApp.Plugins.Mys.Post.FullData | TGApp.BBS.Response.Base> {
|
||||||
const param = { post_id: postId };
|
const param = { post_id: postId, read: 1 };
|
||||||
let header;
|
let header;
|
||||||
if (cookie) header = getRequestHeader(cookie, "GET", param);
|
if (cookie) {
|
||||||
else header = { referer: Referer };
|
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`, {
|
const resp = await TGHttp<TGApp.Plugins.Mys.Post.Response>(`${Mpabu}getPostFull`, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: header,
|
headers: header,
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ const apiHubReq = {
|
|||||||
forum: getAllGamesForums,
|
forum: getAllGamesForums,
|
||||||
game: getGameList,
|
game: getGameList,
|
||||||
mission: getMissions,
|
mission: getMissions,
|
||||||
post: { like: upVotePost },
|
post: { like: upVotePost, share: getShareConf },
|
||||||
};
|
};
|
||||||
|
|
||||||
export default apiHubReq;
|
export default apiHubReq;
|
||||||
|
|||||||
Reference in New Issue
Block a user