Initial commit
This commit is contained in:
141
sources/com/ubt/jimu/user/repository/GdprWorker.java
Normal file
141
sources/com/ubt/jimu/user/repository/GdprWorker.java
Normal file
@@ -0,0 +1,141 @@
|
||||
package com.ubt.jimu.user.repository;
|
||||
|
||||
import com.ubt.jimu.base.db.user.UserDbHandler;
|
||||
import com.ubt.jimu.base.entities.ApiStatus;
|
||||
import com.ubt.jimu.base.entities.User;
|
||||
import com.ubt.jimu.base.entities.UserPactInfo;
|
||||
import com.ubt.jimu.base.http.ApiConstants;
|
||||
import com.ubt.jimu.user.Constant;
|
||||
import com.ubt.jimu.user.repository.GdprWorker;
|
||||
import com.ubt.jimu.utils.LocaleUtils;
|
||||
import com.ubtrobot.log.ALog;
|
||||
import io.reactivex.ObservableSource;
|
||||
import io.reactivex.Observer;
|
||||
import io.reactivex.android.schedulers.AndroidSchedulers;
|
||||
import io.reactivex.disposables.Disposable;
|
||||
import io.reactivex.functions.Function;
|
||||
import io.reactivex.schedulers.Schedulers;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class GdprWorker {
|
||||
private UserPactInfo a;
|
||||
|
||||
public interface IUserPackInfo {
|
||||
void a();
|
||||
|
||||
void a(String str, String str2, int i, String str3);
|
||||
}
|
||||
|
||||
public void b(final IUserPackInfo iUserPackInfo) {
|
||||
User user = UserDbHandler.getUser();
|
||||
if (user == null || user.getUserId() <= 0) {
|
||||
return;
|
||||
}
|
||||
ALog.a("gdprWorker").d("userRegister:" + user.getUserId());
|
||||
UserRepository.b(ApiConstants.PRODECT_ID, 0, LocaleUtils.c()).subscribeOn(Schedulers.b()).flatMap(new Function() { // from class: com.ubt.jimu.user.repository.a
|
||||
@Override // io.reactivex.functions.Function
|
||||
public final Object apply(Object obj) {
|
||||
return GdprWorker.a(GdprWorker.IUserPackInfo.this, (UserPactInfo) obj);
|
||||
}
|
||||
}).observeOn(AndroidSchedulers.a()).subscribe(new Observer<ApiStatus>(this) { // from class: com.ubt.jimu.user.repository.GdprWorker.2
|
||||
@Override // io.reactivex.Observer
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public void onNext(ApiStatus apiStatus) {
|
||||
ALog.a("gdprWorker").d("协议保存成功");
|
||||
iUserPackInfo.a();
|
||||
}
|
||||
|
||||
@Override // io.reactivex.Observer
|
||||
public void onComplete() {
|
||||
}
|
||||
|
||||
@Override // io.reactivex.Observer
|
||||
public void onError(Throwable th) {
|
||||
ALog.a("gdprWorker").d("协议保存失败");
|
||||
iUserPackInfo.a();
|
||||
}
|
||||
|
||||
@Override // io.reactivex.Observer
|
||||
public void onSubscribe(Disposable disposable) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void a(final IUserPackInfo iUserPackInfo) {
|
||||
User user = UserDbHandler.getUser();
|
||||
if (user == null || user.getUserId() <= 0) {
|
||||
return;
|
||||
}
|
||||
ALog.a("gdprWorker").d("查询用户隐私政策:userId:" + user.getUserId());
|
||||
UserRepository.a(ApiConstants.PRODECT_ID, user.getUserId(), LocaleUtils.c()).subscribeOn(Schedulers.b()).flatMap(new Function() { // from class: com.ubt.jimu.user.repository.b
|
||||
@Override // io.reactivex.functions.Function
|
||||
public final Object apply(Object obj) {
|
||||
return GdprWorker.this.a((UserPactInfo) obj);
|
||||
}
|
||||
}).observeOn(AndroidSchedulers.a()).subscribe(new Observer<UserPactInfo>() { // from class: com.ubt.jimu.user.repository.GdprWorker.1
|
||||
@Override // io.reactivex.Observer
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public void onNext(UserPactInfo userPactInfo) {
|
||||
ALog.a("gdprWorker").d("服务器最新协议:" + userPactInfo.toString());
|
||||
ALog.a("gdprWorker").d("用户同意的最新协议:" + GdprWorker.this.a.toString());
|
||||
UserPactInfo.UserPactDetail userPactDetail = null;
|
||||
UserPactInfo.UserPactDetail userPactDetail2 = null;
|
||||
for (UserPactInfo.UserPactDetail userPactDetail3 : userPactInfo.getData()) {
|
||||
if (2 == userPactDetail3.getType()) {
|
||||
userPactDetail2 = userPactDetail3;
|
||||
}
|
||||
}
|
||||
if (GdprWorker.this.a == null || GdprWorker.this.a.getData() == null) {
|
||||
ALog.a("gdprWorker").d("弹窗:" + Constant.a);
|
||||
iUserPackInfo.a(userPactDetail2.getVersion(), userPactDetail2.getLan(), userPactDetail2.getType(), Constant.a);
|
||||
return;
|
||||
}
|
||||
for (UserPactInfo.UserPactDetail userPactDetail4 : GdprWorker.this.a.getData()) {
|
||||
if (2 == userPactDetail4.getType()) {
|
||||
userPactDetail = userPactDetail4;
|
||||
}
|
||||
}
|
||||
if (userPactDetail2 == null || userPactDetail == null) {
|
||||
return;
|
||||
}
|
||||
String version = userPactDetail2.getVersion();
|
||||
ALog.a("gdprWorker").d("服务器最新版本号:---" + version + "----用户同意的最新版本号:" + userPactDetail.getVersion());
|
||||
if (version.compareToIgnoreCase(userPactDetail.getVersion()) > 0) {
|
||||
ALog.a("gdprWorker").d("弹窗:" + Constant.a);
|
||||
iUserPackInfo.a(userPactDetail2.getVersion(), userPactDetail2.getLan(), userPactDetail2.getType(), Constant.a);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // io.reactivex.Observer
|
||||
public void onComplete() {
|
||||
}
|
||||
|
||||
@Override // io.reactivex.Observer
|
||||
public void onError(Throwable th) {
|
||||
}
|
||||
|
||||
@Override // io.reactivex.Observer
|
||||
public void onSubscribe(Disposable disposable) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public /* synthetic */ ObservableSource a(UserPactInfo userPactInfo) throws Exception {
|
||||
this.a = userPactInfo;
|
||||
return UserRepository.b(ApiConstants.PRODECT_ID, 0, LocaleUtils.c());
|
||||
}
|
||||
|
||||
static /* synthetic */ ObservableSource a(IUserPackInfo iUserPackInfo, UserPactInfo userPactInfo) throws Exception {
|
||||
if (userPactInfo != null) {
|
||||
ALog.a("gdprWorker").d("服务器最新协议:" + userPactInfo.toString());
|
||||
for (UserPactInfo.UserPactDetail userPactDetail : userPactInfo.getData()) {
|
||||
if (2 == userPactDetail.getType()) {
|
||||
ALog.a("gdprWorker").d("保存用户协议:Lan:" + userPactDetail.getLan() + "--ProductId:" + userPactDetail.getProductId() + "--Type:" + userPactDetail.getType() + "---version:" + userPactDetail.getVersion());
|
||||
return UserRepository.a(userPactDetail.getLan(), userPactDetail.getProductId(), userPactDetail.getType(), userPactDetail.getVersion());
|
||||
}
|
||||
}
|
||||
}
|
||||
iUserPackInfo.a();
|
||||
return null;
|
||||
}
|
||||
}
|
327
sources/com/ubt/jimu/user/repository/UserRepository.java
Normal file
327
sources/com/ubt/jimu/user/repository/UserRepository.java
Normal file
@@ -0,0 +1,327 @@
|
||||
package com.ubt.jimu.user.repository;
|
||||
|
||||
import android.content.Context;
|
||||
import com.ubt.jimu.JimuApplication;
|
||||
import com.ubt.jimu.base.cache.SharePreferenceHelper;
|
||||
import com.ubt.jimu.base.db.user.UserDbHandler;
|
||||
import com.ubt.jimu.base.entities.AddressInfo;
|
||||
import com.ubt.jimu.base.entities.ApiRecord;
|
||||
import com.ubt.jimu.base.entities.ApiStatus;
|
||||
import com.ubt.jimu.base.entities.Constant;
|
||||
import com.ubt.jimu.base.entities.Fans;
|
||||
import com.ubt.jimu.base.entities.FollowEntities;
|
||||
import com.ubt.jimu.base.entities.Interest;
|
||||
import com.ubt.jimu.base.entities.MyPostListEntities;
|
||||
import com.ubt.jimu.base.entities.PraiseBean;
|
||||
import com.ubt.jimu.base.entities.Rank;
|
||||
import com.ubt.jimu.base.entities.RegisterBean;
|
||||
import com.ubt.jimu.base.entities.ReqSaveUserPactInfo;
|
||||
import com.ubt.jimu.base.entities.TTSAccessToken;
|
||||
import com.ubt.jimu.base.entities.TokenBean;
|
||||
import com.ubt.jimu.base.entities.User;
|
||||
import com.ubt.jimu.base.entities.UserDetailInfo;
|
||||
import com.ubt.jimu.base.entities.UserExtraInfo;
|
||||
import com.ubt.jimu.base.entities.UserPactInfo;
|
||||
import com.ubt.jimu.base.http.ApiClient;
|
||||
import com.ubt.jimu.base.http.ApiConstants;
|
||||
import com.ubt.jimu.base.http.service.UserService;
|
||||
import com.ubt.jimu.user.model.EmailCheckMsg;
|
||||
import com.ubt.jimu.utils.DeviceUtils;
|
||||
import io.reactivex.Observable;
|
||||
import io.reactivex.functions.BiFunction;
|
||||
import io.reactivex.functions.Consumer;
|
||||
import io.reactivex.functions.Function;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class UserRepository {
|
||||
private static boolean a = false;
|
||||
|
||||
static /* synthetic */ User a(User user, ApiStatus apiStatus) throws Exception {
|
||||
return user;
|
||||
}
|
||||
|
||||
public static Observable<User> b(Context context, Map<String, String> map) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).thirdLogin(map).map(new Function<RegisterBean, User>() { // from class: com.ubt.jimu.user.repository.UserRepository.1
|
||||
@Override // io.reactivex.functions.Function
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public User apply(RegisterBean registerBean) throws Exception {
|
||||
User user = registerBean.getUser();
|
||||
if (user != null) {
|
||||
user.setId(user.getUserId());
|
||||
user.setToken(registerBean.getToken().getToken());
|
||||
UserRepository.a(user.getToken(), user.getUserId());
|
||||
UserDbHandler.save(user);
|
||||
}
|
||||
return user;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static Observable<UserDetailInfo> c() {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).getUserDetailInfo();
|
||||
}
|
||||
|
||||
public static Observable<TokenBean> d() {
|
||||
a = true;
|
||||
return ((UserService) ApiClient.getService(UserService.class)).refreshToken().doAfterNext(new Consumer<TokenBean>() { // from class: com.ubt.jimu.user.repository.UserRepository.12
|
||||
@Override // io.reactivex.functions.Consumer
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public void accept(TokenBean tokenBean) throws Exception {
|
||||
new SharePreferenceHelper().put(SharePreferenceHelper.AUTHOR_TOKEN, tokenBean.getToken());
|
||||
UserDbHandler.updateUserToken(tokenBean.getToken());
|
||||
boolean unused = UserRepository.a = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static boolean e() {
|
||||
return a;
|
||||
}
|
||||
|
||||
public static Observable<User> a(Context context, Map<String, String> map) {
|
||||
return Observable.zip(((UserService) ApiClient.getService(UserService.class)).register(map).map(new Function<RegisterBean, User>() { // from class: com.ubt.jimu.user.repository.UserRepository.3
|
||||
@Override // io.reactivex.functions.Function
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public User apply(RegisterBean registerBean) throws Exception {
|
||||
User user = registerBean.getUser();
|
||||
if (user != null) {
|
||||
user.setId(user.getUserId());
|
||||
user.setToken(registerBean.getToken().getToken());
|
||||
UserRepository.a(user.getToken(), user.getUserId());
|
||||
UserDbHandler.save(user);
|
||||
}
|
||||
return user;
|
||||
}
|
||||
}), b(DeviceUtils.a(context)), new BiFunction<User, ApiStatus, User>() { // from class: com.ubt.jimu.user.repository.UserRepository.4
|
||||
public User a(User user, ApiStatus apiStatus) throws Exception {
|
||||
return user;
|
||||
}
|
||||
|
||||
@Override // io.reactivex.functions.BiFunction
|
||||
public /* bridge */ /* synthetic */ User apply(User user, ApiStatus apiStatus) throws Exception {
|
||||
User user2 = user;
|
||||
a(user2, apiStatus);
|
||||
return user2;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static Observable<AddressInfo> c(long j) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).getUserAddress(j);
|
||||
}
|
||||
|
||||
public static Observable<List<Interest>> b(long j, long j2, int i, int i2) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).getUserInterestList(j, j2, i, i2).map(new Function<ApiRecord<Interest>, List<Interest>>() { // from class: com.ubt.jimu.user.repository.UserRepository.10
|
||||
@Override // io.reactivex.functions.Function
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public List<Interest> apply(ApiRecord<Interest> apiRecord) throws Exception {
|
||||
return apiRecord.getRecords();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static Observable<List<Rank>> b(long j) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).getRankList(j);
|
||||
}
|
||||
|
||||
public static Observable<TokenBean> a(String str, String str2, int i) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).verifyCaptcha(str, str2, i);
|
||||
}
|
||||
|
||||
public static Observable<UserDetailInfo> b(Map<String, String> map) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).updateUserDetailInfo(map);
|
||||
}
|
||||
|
||||
public static Observable<User> a(Context context, String str, String str2) {
|
||||
HashMap hashMap = new HashMap();
|
||||
hashMap.put("account", str);
|
||||
hashMap.put("appId", String.valueOf(Constant.Base.APP_ID));
|
||||
hashMap.put("password", str2);
|
||||
return Observable.zip(((UserService) ApiClient.getService(UserService.class)).setPasswordAndLogin(hashMap).map(new Function<RegisterBean, User>() { // from class: com.ubt.jimu.user.repository.UserRepository.5
|
||||
@Override // io.reactivex.functions.Function
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public User apply(RegisterBean registerBean) throws Exception {
|
||||
User user = registerBean.getUser();
|
||||
if (user != null) {
|
||||
user.setId(user.getUserId());
|
||||
user.setToken(registerBean.getToken().getToken());
|
||||
UserRepository.a(user.getToken(), user.getUserId());
|
||||
UserDbHandler.save(user);
|
||||
}
|
||||
return user;
|
||||
}
|
||||
}), b(DeviceUtils.a(context)), new BiFunction() { // from class: com.ubt.jimu.user.repository.c
|
||||
@Override // io.reactivex.functions.BiFunction
|
||||
public final Object apply(Object obj, Object obj2) {
|
||||
User user = (User) obj;
|
||||
UserRepository.a(user, (ApiStatus) obj2);
|
||||
return user;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static Observable<String> b(String str, String str2, String str3) {
|
||||
HashMap hashMap = new HashMap();
|
||||
hashMap.put("address", str);
|
||||
hashMap.put("addressee", str2);
|
||||
hashMap.put("contactInfo", str3);
|
||||
return ((UserService) ApiClient.getService(UserService.class)).updateUserAddress(hashMap);
|
||||
}
|
||||
|
||||
public static Observable<TTSAccessToken> b() {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).getTTSToken();
|
||||
}
|
||||
|
||||
public static Observable<ApiStatus> b(String str) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).updateImei(ApiConstants.APP_ID, str);
|
||||
}
|
||||
|
||||
public static Observable<ApiStatus> b(String str, String str2) {
|
||||
HashMap hashMap = new HashMap();
|
||||
hashMap.put("account", str);
|
||||
hashMap.put("captcha", str2);
|
||||
return ((UserService) ApiClient.getService(UserService.class)).verifyImei(ApiConstants.APP_ID, hashMap);
|
||||
}
|
||||
|
||||
public static Observable<ApiStatus> a(String str, String str2, String str3) {
|
||||
HashMap hashMap = new HashMap();
|
||||
hashMap.put("password", str);
|
||||
hashMap.put("token", str2);
|
||||
hashMap.put("userId", String.valueOf(str3));
|
||||
return ((UserService) ApiClient.getService(UserService.class)).resetPassword(hashMap);
|
||||
}
|
||||
|
||||
public static Observable<UserPactInfo> b(String str, int i, String str2) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).getPactInfo(str, i, str2);
|
||||
}
|
||||
|
||||
public static Observable<ApiStatus> a(String str, int i, int i2) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).getCaptcha(str, i, i2);
|
||||
}
|
||||
|
||||
public static void a(String str, long j) {
|
||||
SharePreferenceHelper sharePreferenceHelper = new SharePreferenceHelper();
|
||||
sharePreferenceHelper.put(SharePreferenceHelper.AUTHOR_TOKEN, str);
|
||||
sharePreferenceHelper.put(SharePreferenceHelper.SP_KEY_USER_ID, String.valueOf(j));
|
||||
}
|
||||
|
||||
public static Observable<UserExtraInfo> a(final long j, final long j2) {
|
||||
HashMap hashMap = new HashMap();
|
||||
hashMap.put("userId", String.valueOf(j));
|
||||
hashMap.put("viewUserId", String.valueOf(j2));
|
||||
hashMap.put("language", JimuApplication.l().g());
|
||||
return ((UserService) ApiClient.getService(UserService.class)).getUserInfo(hashMap).doAfterNext(new Consumer<UserExtraInfo>() { // from class: com.ubt.jimu.user.repository.UserRepository.6
|
||||
@Override // io.reactivex.functions.Consumer
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public void accept(UserExtraInfo userExtraInfo) throws Exception {
|
||||
long j3 = j;
|
||||
if (j3 != 0) {
|
||||
long j4 = j2;
|
||||
if (j4 == 0 || j3 != j4) {
|
||||
return;
|
||||
}
|
||||
UserDbHandler.updateUserInfo(UserExtraInfo.toUser(UserDbHandler.getUser(), userExtraInfo));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static Observable<MyPostListEntities> a(long j) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).getUserPostList(j);
|
||||
}
|
||||
|
||||
public static Observable<List<Fans>> a(long j, long j2, int i, int i2) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).getUserFansList(j, j2, i, i2).map(new Function<ApiRecord<Fans>, List<Fans>>() { // from class: com.ubt.jimu.user.repository.UserRepository.9
|
||||
@Override // io.reactivex.functions.Function
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public List<Fans> apply(ApiRecord<Fans> apiRecord) throws Exception {
|
||||
return apiRecord.getRecords();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static Observable<List<PraiseBean.Praise>> a(long j, int i, int i2) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).getUserPraiseList(j, i, i2).map(new Function<PraiseBean, List<PraiseBean.Praise>>() { // from class: com.ubt.jimu.user.repository.UserRepository.11
|
||||
@Override // io.reactivex.functions.Function
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public List<PraiseBean.Praise> apply(PraiseBean praiseBean) throws Exception {
|
||||
return praiseBean.getRecords();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static Observable<FollowEntities> a(int i) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).addPraise(i);
|
||||
}
|
||||
|
||||
public static Observable<ApiStatus> a(Map<String, String> map) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).sendGuardianEmail(map);
|
||||
}
|
||||
|
||||
public static Observable<EmailCheckMsg> a(String str, String str2) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).getParentEmailCheckState(str, str2);
|
||||
}
|
||||
|
||||
public static Observable<UserDetailInfo> a(String str, int i, String str2) {
|
||||
HashMap hashMap = new HashMap();
|
||||
hashMap.put("account", str);
|
||||
hashMap.put("accountType", String.valueOf(i));
|
||||
hashMap.put("captcha", str2);
|
||||
return ((UserService) ApiClient.getService(UserService.class)).bindAccount(hashMap);
|
||||
}
|
||||
|
||||
public static Observable<ApiStatus> a(String str) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).logout(str);
|
||||
}
|
||||
|
||||
public static Observable<ApiStatus> a() {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).deleteUserInfo(1, "");
|
||||
}
|
||||
|
||||
public static Observable<ApiStatus> a(String str, String str2, String str3, String str4, String str5) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).getCaptcha(str, str2, str3, str4, str5);
|
||||
}
|
||||
|
||||
public static Observable<User> a(int i, String str, String str2) {
|
||||
HashMap hashMap = new HashMap();
|
||||
hashMap.put("account", str);
|
||||
hashMap.put("password", str2);
|
||||
hashMap.put("accountType", String.valueOf(i));
|
||||
hashMap.put("appId", ApiConstants.APP_ID);
|
||||
return ((UserService) ApiClient.getService(UserService.class)).login(hashMap).map(new Function<RegisterBean, User>() { // from class: com.ubt.jimu.user.repository.UserRepository.13
|
||||
@Override // io.reactivex.functions.Function
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public User apply(RegisterBean registerBean) throws Exception {
|
||||
User user = registerBean.getUser();
|
||||
if (user != null) {
|
||||
user.setId(user.getUserId());
|
||||
user.setToken(registerBean.getToken().getToken());
|
||||
}
|
||||
return user;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static Observable<ApiStatus> a(String str, String str2, String str3, String str4) {
|
||||
HashMap hashMap = new HashMap();
|
||||
hashMap.put("accessToken", str);
|
||||
hashMap.put("appId", str2);
|
||||
hashMap.put("loginType", str3);
|
||||
hashMap.put("openId", str4);
|
||||
return ((UserService) ApiClient.getService(UserService.class)).checkHadLogin(hashMap);
|
||||
}
|
||||
|
||||
public static Observable<UserPactInfo> a(String str, long j, String str2) {
|
||||
return ((UserService) ApiClient.getService(UserService.class)).getUserPactInfo(str, j, str2);
|
||||
}
|
||||
|
||||
public static Observable<ApiStatus> a(String str, String str2, int i, String str3) {
|
||||
ArrayList arrayList = new ArrayList();
|
||||
arrayList.add(new ReqSaveUserPactInfo(str, str2, i, str3));
|
||||
return ((UserService) ApiClient.getService(UserService.class)).saveUserPact(arrayList);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user