diff --git a/src/api/CanApi.js b/src/api/CanApi.js index 77adcd5..ab44fe7 100644 --- a/src/api/CanApi.js +++ b/src/api/CanApi.js @@ -3,7 +3,7 @@ import service from "." const CanApi = { //获取候选人列表 getCandidates(token){ - return service.post('https://api.xxcg.com/investvote/getCandidates/',{token}); + return service.post('https://api.homilychart.com/investvote/getCandidates',{token}); }, //投票 @@ -11,15 +11,15 @@ const CanApi = { let formData = new FormData(); formData.append("token", token); formData.append("code", code); - return service.post('https://api.xxcg.com/investvote/vote',formData) + return service.post('https://api.homilychart.com/investvote/vote',formData) }, //查看详情 Detail(jwcode){ - return service.get(`https://api.xxcg.com/investvote/getVotesByCandidate/`+`${jwcode}`) - } + return service.get(`https://api.homilychart.com/investvote/getVotesByCandidate/`+`${jwcode}`) + }, //重置投票记录 Reset(){ - return service.get('https://api.xxcg.com/investvote/resetVote') + return service.get('https://api.homilychart.com/investvote/resetVote') } }