Commit abe9f454 authored by 天马流星拳's avatar 天马流星拳

feat(api): 修改completeTask接口配置为对象形式

将completeTask接口从字符串形式改为对象配置,支持指定method和withToken参数
parent 5b42aeb6
......@@ -51,7 +51,12 @@ const API = generateAPI({
// 获取任务列表的接口
getTaskList: "task_1/queryTasks.do",
// 完成任务接口
completeTask: "task_1/doCompleted.do",
// completeTask: "task_1/doCompleted.do",
completeTask: {
uri: "task_1/doCompleted.do",
method: 'post',
withToken: true,
},
// 任务领奖接口
sendPrizeTask: "task_1/sendPrize.do",
// 查询题目
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment