From e31b26a3171c1b6518dae623fb9ec3f86a55cfa6 Mon Sep 17 00:00:00 2001 From: Cold-Mint Date: Mon, 9 Oct 2023 22:39:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BA=86Token=E4=B8=8E?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E4=B8=8D=E5=8C=B9=E9=85=8D=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=9B=B4=E6=96=B0Mod=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/coldmint/rust/pro/ReleaseModActivity.kt | 12 ++++++------ .../main/java/com/coldmint/rust/core/web/WebMod.kt | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/coldmint/rust/pro/ReleaseModActivity.kt b/app/src/main/java/com/coldmint/rust/pro/ReleaseModActivity.kt index 78bed6c..c6f24a9 100644 --- a/app/src/main/java/com/coldmint/rust/pro/ReleaseModActivity.kt +++ b/app/src/main/java/com/coldmint/rust/pro/ReleaseModActivity.kt @@ -774,7 +774,7 @@ class ReleaseModActivity : BaseActivity() { if (isUpdateMode) { updateModWork( modId, - account, + AppSettings.getValue(AppSettings.Setting.Token, ""), modName, modDescribe, updateLog, @@ -795,7 +795,7 @@ class ReleaseModActivity : BaseActivity() { if (isUpdateMode) { updateModWork( modId, - account, + AppSettings.getValue(AppSettings.Setting.Token, ""), modName, modDescribe, updateLog, @@ -814,7 +814,7 @@ class ReleaseModActivity : BaseActivity() { if (isUpdateMode) { updateModWork( modId, - account, + AppSettings.getValue(AppSettings.Setting.Token, ""), modName, modDescribe, updateLog, @@ -837,7 +837,7 @@ class ReleaseModActivity : BaseActivity() { if (isUpdateMode) { updateModWork( modId, - account, + AppSettings.getValue(AppSettings.Setting.Token, ""), modName, modDescribe, updateLog, @@ -964,7 +964,7 @@ class ReleaseModActivity : BaseActivity() { */ fun updateModWork( modId: String, - account: String, + token: String, modName: String, modDescribe: String, updateLog: String, @@ -980,7 +980,7 @@ class ReleaseModActivity : BaseActivity() { WebMod.instance.updateMod(AppSettings.getValue(AppSettings.Setting.AppID, ""), modId, - account, + token, modName, modDescribe, updateLog, diff --git a/assistantCoreLibrary/src/main/java/com/coldmint/rust/core/web/WebMod.kt b/assistantCoreLibrary/src/main/java/com/coldmint/rust/core/web/WebMod.kt index 876bbad..7bc943b 100644 --- a/assistantCoreLibrary/src/main/java/com/coldmint/rust/core/web/WebMod.kt +++ b/assistantCoreLibrary/src/main/java/com/coldmint/rust/core/web/WebMod.kt @@ -971,7 +971,7 @@ class WebMod private constructor() { * 升级模组 * @param appId String * @param modId String - * @param account String + * @param token String * @param modName String * @param describe String * @param tags String @@ -987,7 +987,7 @@ class WebMod private constructor() { fun updateMod( appId: String, modId: String, - account: String, + token: String, modName: String, describe: String, updateLog: String, @@ -1003,7 +1003,7 @@ class WebMod private constructor() { val builder = MultipartBody.Builder().setType(MultipartBody.FORM).addFormDataPart("appID", appId) .addFormDataPart("modId", modId).addFormDataPart("updateLog", updateLog) - .addFormDataPart("account", account).addFormDataPart("modName", modName) + .addFormDataPart("token", token).addFormDataPart("modName", modName) .addFormDataPart("describe", describe).addFormDataPart("tags", tags) .addFormDataPart("versionName", versionName) .addFormDataPart("unitNumber", unitNum.toString())