解决了Token与后端不匹配导致无法更新Mod的问题。
This commit is contained in:
parent
b3a894912e
commit
e31b26a317
|
@ -774,7 +774,7 @@ class ReleaseModActivity : BaseActivity<ActivityReleaseModBinding>() {
|
||||||
if (isUpdateMode) {
|
if (isUpdateMode) {
|
||||||
updateModWork(
|
updateModWork(
|
||||||
modId,
|
modId,
|
||||||
account,
|
AppSettings.getValue(AppSettings.Setting.Token, ""),
|
||||||
modName,
|
modName,
|
||||||
modDescribe,
|
modDescribe,
|
||||||
updateLog,
|
updateLog,
|
||||||
|
@ -795,7 +795,7 @@ class ReleaseModActivity : BaseActivity<ActivityReleaseModBinding>() {
|
||||||
if (isUpdateMode) {
|
if (isUpdateMode) {
|
||||||
updateModWork(
|
updateModWork(
|
||||||
modId,
|
modId,
|
||||||
account,
|
AppSettings.getValue(AppSettings.Setting.Token, ""),
|
||||||
modName,
|
modName,
|
||||||
modDescribe,
|
modDescribe,
|
||||||
updateLog,
|
updateLog,
|
||||||
|
@ -814,7 +814,7 @@ class ReleaseModActivity : BaseActivity<ActivityReleaseModBinding>() {
|
||||||
if (isUpdateMode) {
|
if (isUpdateMode) {
|
||||||
updateModWork(
|
updateModWork(
|
||||||
modId,
|
modId,
|
||||||
account,
|
AppSettings.getValue(AppSettings.Setting.Token, ""),
|
||||||
modName,
|
modName,
|
||||||
modDescribe,
|
modDescribe,
|
||||||
updateLog,
|
updateLog,
|
||||||
|
@ -837,7 +837,7 @@ class ReleaseModActivity : BaseActivity<ActivityReleaseModBinding>() {
|
||||||
if (isUpdateMode) {
|
if (isUpdateMode) {
|
||||||
updateModWork(
|
updateModWork(
|
||||||
modId,
|
modId,
|
||||||
account,
|
AppSettings.getValue(AppSettings.Setting.Token, ""),
|
||||||
modName,
|
modName,
|
||||||
modDescribe,
|
modDescribe,
|
||||||
updateLog,
|
updateLog,
|
||||||
|
@ -964,7 +964,7 @@ class ReleaseModActivity : BaseActivity<ActivityReleaseModBinding>() {
|
||||||
*/
|
*/
|
||||||
fun updateModWork(
|
fun updateModWork(
|
||||||
modId: String,
|
modId: String,
|
||||||
account: String,
|
token: String,
|
||||||
modName: String,
|
modName: String,
|
||||||
modDescribe: String,
|
modDescribe: String,
|
||||||
updateLog: String,
|
updateLog: String,
|
||||||
|
@ -980,7 +980,7 @@ class ReleaseModActivity : BaseActivity<ActivityReleaseModBinding>() {
|
||||||
|
|
||||||
|
|
||||||
WebMod.instance.updateMod(AppSettings.getValue(AppSettings.Setting.AppID, ""), modId,
|
WebMod.instance.updateMod(AppSettings.getValue(AppSettings.Setting.AppID, ""), modId,
|
||||||
account,
|
token,
|
||||||
modName,
|
modName,
|
||||||
modDescribe,
|
modDescribe,
|
||||||
updateLog,
|
updateLog,
|
||||||
|
|
|
@ -971,7 +971,7 @@ class WebMod private constructor() {
|
||||||
* 升级模组
|
* 升级模组
|
||||||
* @param appId String
|
* @param appId String
|
||||||
* @param modId String
|
* @param modId String
|
||||||
* @param account String
|
* @param token String
|
||||||
* @param modName String
|
* @param modName String
|
||||||
* @param describe String
|
* @param describe String
|
||||||
* @param tags String
|
* @param tags String
|
||||||
|
@ -987,7 +987,7 @@ class WebMod private constructor() {
|
||||||
fun updateMod(
|
fun updateMod(
|
||||||
appId: String,
|
appId: String,
|
||||||
modId: String,
|
modId: String,
|
||||||
account: String,
|
token: String,
|
||||||
modName: String,
|
modName: String,
|
||||||
describe: String,
|
describe: String,
|
||||||
updateLog: String,
|
updateLog: String,
|
||||||
|
@ -1003,7 +1003,7 @@ class WebMod private constructor() {
|
||||||
val builder =
|
val builder =
|
||||||
MultipartBody.Builder().setType(MultipartBody.FORM).addFormDataPart("appID", appId)
|
MultipartBody.Builder().setType(MultipartBody.FORM).addFormDataPart("appID", appId)
|
||||||
.addFormDataPart("modId", modId).addFormDataPart("updateLog", updateLog)
|
.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("describe", describe).addFormDataPart("tags", tags)
|
||||||
.addFormDataPart("versionName", versionName)
|
.addFormDataPart("versionName", versionName)
|
||||||
.addFormDataPart("unitNumber", unitNum.toString())
|
.addFormDataPart("unitNumber", unitNum.toString())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user