Commit a8b15f89 by sikang

接口更新 添加参数 ‘ 同盾采集集成标识‘

parent 0c96aa58
......@@ -7,6 +7,7 @@ import java.util.List;
import io.reactivex.Observable;
import okhttp3.ResponseBody;
import tech.starwin.LibConfig;
import tech.starwin.base.BasePresenter;
import tech.starwin.constants.TrackEvent;
import tech.starwin.impl.HttpObserver;
......@@ -46,7 +47,8 @@ public class LoanPresenter extends BasePresenter<LoanApi> {
* 获取贷款进度
*/
public void getCertifyProgress(String action) {
handleRequest(action, apiService.getCertifyProgress(LoginManager.get().getToken()));
boolean tdFlag = !TextUtils.isEmpty(LibConfig.TONGDUN_PARENT_KEY);
handleRequest(action, apiService.getCertifyProgress(LoginManager.get().getToken(), tdFlag));
}
/**
......@@ -106,7 +108,7 @@ public class LoanPresenter extends BasePresenter<LoanApi> {
public void getProductList(String action) {
if (TextUtils.isEmpty(LoginManager.get().getToken())) {
handleRequest(action, apiService.getProductsDefault());
}else{
} else {
handleRequest(action, apiService.getProducts());
}
}
......
......@@ -93,7 +93,7 @@ public class UploadPresenter extends BasePresenter<UploadApi> {
MultipartBodyMaker.makeSimplePart("delta", faceData),
AppInfoUtils.getAndroidID(context),
productId,
TextUtils.isEmpty(LibConfig.TONGDUN_PARENT_KEY) ? false : true,
!TextUtils.isEmpty(LibConfig.TONGDUN_PARENT_KEY),
LoginManager.get().getToken()
),
new HttpObserver<BasicAck>() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment