Zhenjie Yan
Zhenjie Yan
有个拦截器,可以看下文档。 https://yanzhenjie.com/AndServer/annotation/Interceptor.html
应该可以的啊,大家都这么用的...
收到,下个版本我测试解决下。
可以升级下2.1.10,之前可能切换center到central时两个站点的源不同,有个源可能发布的有问题,现在统一发布到central了,大家可以升级下试试了。
可以升级下2.1.10看看,我们公司使用2.1.9是正常的;我估计可能是因为之前切jcenter和central导致的,现在统一发布在central了,应该不会有问题了。
伪代码如下,可以添加不限个数的Website: ```java @Config public class AppConfig implements WebConfig { @Override public void onConfig(Context context, Delegate delegate) { delegate.addWebsite(new AssetsWebsite(context, "/web")); delegate.addWebsite(Website2); delegate.addWebsite(Website3); } } ```
上面贴的代码有异常,打印具体异常看看,哪里出问题了,SSLContext的使用网络有很多教程可以参考下。
AndServer only supports Java/Kotlin, and you need to comply with AndServer's rule, you can use SQLite for SQL.
一样的,看看文档,还是可以拿到response的,也可以response.setBody的。只是异步后设置,接口可能已经返回了,其实可以在接口实现方法里同步搞,因为接口本身是在一个线程里面运行的。