太感谢了!!!有用!!!
小程序上传报错 提示非法的文件, 怎么解决?报错信息如下, 这个错误提示与没有差不多. 还是改了变量名的文件, 控制台没有输出错误, 不便于定位错误 大佬们 可能是什么原因啊 message:Error: 非法的文件,错误信息:invalid file: 3CDAA2E46BAEBEDF5ABCCAE36C8BA4A1.js, 1:191, SyntaxError: Unexpected token =!function(){const t=require("E615F6676BAEBEDF80739E60979BA4A1.js"),e=require("46D3BE516BAEBEDF20B5D65669ABA4A1.js"),a=require("B66F8D406BAEBEDFD009E54748BBA4A1.js");const n=new class{userInfo={};getToken=async()=>{for(;null==this.userInfo.token;)await e.delay(.5);return this.userInfo.token};getUserInfo=async(n=!0)=>{if(n&&await this.getToken())return this.userInfo;const s=await e.get(t.getUserInfo,{token:await this.getToken()});return a.info("获取用户信息",s),this.userInfo=s.data,0==s.status?s.data:{}};login=async n=>{const s=await e.post(t.login,{code:n,timestamp:(new Date).getTime().toString(),systemInfo:wx.getSystemInfoSync()});return a.info("登录",s),this.userInfo=s.data,0==s.status?s.data:{}};getHomeImg=async()=>{const n=await e.get(t.homeImg);return a.info("获取轮播图",n),0==n.status?n.data:[]};getRanking=async(n="today")=>{const s=await e.get(t.ranking,{type:n});return a.info("获取"+n,s),0==s.status?s.data:[]};getPractiseList=async(n=0,s=15,o="每日练习")=>{const i=await e.get(t.practiseList,{begin:n,num:s,type:o});return a.info("获取练习题列表",i),0==i.status?i.data:[]};changeInfo=async(n={})=>{const s=await e.post(t.changeInfo,{token:await this.getToken(),userInfo:n});return a.info("修改信息",s),0==s.status?(""!=s.data.token&&(this.userInfo.token=s.data.token),Object.assign(s.data)):Object.assign(n)};getProblems=async(n=0,s=15,o="all")=>{const i=await e.get(t.getProblems,{token:await this.getToken(),begin:n,num:s,type:o});return a.info(`获取${o}题目列表`,i),0==i.status?i.data:[]};getProblem=async n=>{const s=await e.get(t.getProblem,{token:await this.getToken(),problem_id:n});return a.info("获取单个题目",s),0==s.status?s.data:{}};getNewProblems=async n=>{const s=await e.get(t.getNewProblems,{token:await this.getToken(),exam_id:n});return a.info("获取练习题",s),0==s.status?s.data:[]};submitAnswer=async(n,s)=>{const o=await e.post(t.submitAnswer,{token:await this.getToken(),exam_id:n,answer:s});return a.info("提交练习题答案",o),0==o.status?o.data:{}};search=async(n="",s="all")=>{if(""==n)return[];const o=await e.get(t.search,{keyword:n,type:s});return a.info("搜索"+n,o),0==o.status?o.data:[]}};module.exports=n}(); [20230406 21:41:17][wx49c3da798eaf16f0] appid: wx49c3da798eaf16f0 openid: o6zAJsyzWxiEcL9j2SVE-9uvYVkg ideVersion: 1.06.2303220 osType: win32-x64 time: 2023-04-06 21:41:21
07-19