fix:优化请求次数
add:
This commit is contained in:
2022-03-28 09:53:30 +08:00
parent f7f0e4eeb8
commit 9b3a1c8b92
120 changed files with 4455 additions and 4319 deletions

View File

@@ -9,6 +9,7 @@ import android.util.Log;
import com.google.gson.JsonObject;
import com.uiui.sn.IGetInfoInterface;
import com.uiui.sn.service.main.MainService;
import com.uiui.sn.utils.JGYUtils;
import com.uiui.sn.utils.SPUtils;
import com.uiui.sn.utils.Utils;
@@ -47,12 +48,11 @@ public class RemoteService extends Service {
@Override
public String getUserInfo() throws RemoteException {
if (MainService.mPresenter != null) {
MainService.mPresenter.getUserInfo();
if (MainService.getPresenter() != null) {
// MainService.getPresenter().getUserInfo();
}
String username = Settings.System.getString(getContentResolver(), "UserInfo_username");
String avatar = Settings.System.getString(getContentResolver(), "UserInfo_avatar");
// String gread = Settings.System.getString(getContentResolver(), "UserInfo_grade");
int gread = (int) SPUtils.get(RemoteService.this, "int_grade", 0);
String gankaoUID = Settings.System.getString(getContentResolver(), "gankaoUID");
JsonObject jsonObject = new JsonObject();