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())