我通过网页调试工具可以通过,但是通过接口调用就不能上传了,报错:
null,
me.chanjar.weixin.common.exception.WxErrorException: {"errcode":40005,"errmsg":"invalid file type hint: [xUVtTA0464d100] rid: 64814920-6c00653b-0ee429c3"}
at me.chanjar.weixin.common.util.http.apache.ApacheMediaUploadRequestExecutor.execute(ApacheMediaUploadRequestExecutor.java:48)
at me.chanjar.weixin.common.util.http.apache.ApacheMediaUploadRequestExecutor.execute(ApacheMediaUploadRequestExecutor.java:24)
at me.chanjar.weixin.mp.api.impl.WxMpServiceBaseImpl.executeInternal(WxMpServiceBaseImpl.java:277)
at me.chanjar.weixin.mp.api.impl.WxMpServiceBaseImpl.execute(WxMpServiceBaseImpl.java:239)
at me.chanjar.weixin.mp.api.impl.WxMpMaterialServiceImpl.mediaUpload(WxMpMaterialServiceImpl.java:53)
at me.chanjar.weixin.mp.api.impl.WxMpMaterialServiceImpl.mediaUpload(WxMpMaterialServiceImpl.java:40)
at com.sili.modules.thirdplfserver.weixin.MotaoWeixinService.wxMediaUploadByPath(MotaoWeixinService.java:264)
at com.sili.modules.thirdplfserver.weixin.MotaoWeixinService.getSourceMaterialByPath(MotaoWeixinService.java:249)
at com.sili.modules.thirdplfserver.weixin.MotaoWeixinService.getThumbMediaId(MotaoWeixinService.java:133)
at com.sili.modules.thirdplfserver.weixin.MotaoWeixinService$$FastClassBySpringCGLIB$$1a72028c.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:669)
at com.sili.modules.thirdplfserver.weixin.MotaoWeixinService$$EnhancerBySpringCGLIB$$5b25b4d5.getThumbMediaId(<generated>)
at com.sili.modules.notify.NotifyService.sendMiniPro(NotifyService.java:156)
at com.sili.modules.member.message.NotifyShoppingService.shoppingCar(NotifyShoppingService.java:308)
at com.sili.modules.box.boxwork.unlock.manager.QrUnlockHelper.unlockByMemberOrAgent(QrUnlockHelper.java:222)
at com.sili.modules.box.boxwork.unlock.manager.GuardNormal.unlockByMemberOrAgent(GuardNormal.java:62)
at com.sili.modules.box.boxwork.unlock.manager.GuardBase.openDoor(GuardBase.java:23)
at com.sili.modules.box.boxwork.unlock.BoxUnlockManager.unlock(BoxUnlockManager.java:199)
at com.sili.modules.box.boxwork.unlock.BoxUnlockManager.unlock(BoxUnlockManager.java:171)
at com.sili.modules.box.boxwork.unlock.BoxUnlockManager$$FastClassBySpringCGLIB$$80f9bb5e.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)