allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.yiranchunqiu:Network:1.0'
}
subscribe2 = App.getInstance().httpUtil2.createService(AppApi.class)
.weatherXiaomi("0", "0", "weathercn:101220101", "1",
"weather20151024", "zUFJoAR2ZVrDy1vF3D07", "false", "zh_cn")
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
o -> Log.d("测试", o.toString()),
throwable -> Log.d("测试", throwable.toString())
);
subscribe1 = App.getInstance().httpUtil1.createService(AppApi.class)
.login(bean)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
o -> Log.d("测试", o.toString()),
throwable -> Log.d("测试", throwable.toString())
);