1获取充值信息增加字段 传一个字段key1 值:6tnym1br6lhu7 2.取消防抖
This commit is contained in:
parent
bb91d1bef7
commit
2ee9e9c726
@ -536,6 +536,7 @@ public class IMLoginManager extends BaseCacheManager {
|
|||||||
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
||||||
.params("uid", uid)
|
.params("uid", uid)
|
||||||
.params("token", token)
|
.params("token", token)
|
||||||
|
.params("key1", RongcloudIMManager.RONG_IM_KEY)
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
@ -38,6 +38,7 @@ import com.yunbao.common.http.HttpClient;
|
|||||||
import com.yunbao.common.http.LiveHttpUtil;
|
import com.yunbao.common.http.LiveHttpUtil;
|
||||||
import com.yunbao.common.interfaces.CommonCallback;
|
import com.yunbao.common.interfaces.CommonCallback;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
|
import com.yunbao.common.manager.imrongcloud.RongcloudIMManager;
|
||||||
|
|
||||||
import org.greenrobot.eventbus.EventBus;
|
import org.greenrobot.eventbus.EventBus;
|
||||||
|
|
||||||
@ -659,6 +660,7 @@ public class JavascriptInterfaceUtils {
|
|||||||
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
||||||
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
||||||
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
||||||
|
.params("key1", RongcloudIMManager.RONG_IM_KEY)
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
@ -60,6 +60,7 @@ import com.yunbao.common.http.HttpClient;
|
|||||||
import com.yunbao.common.http.live.LiveNetManager;
|
import com.yunbao.common.http.live.LiveNetManager;
|
||||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
|
import com.yunbao.common.manager.imrongcloud.RongcloudIMManager;
|
||||||
import com.yunbao.common.utils.AppManager;
|
import com.yunbao.common.utils.AppManager;
|
||||||
import com.yunbao.common.utils.Bus;
|
import com.yunbao.common.utils.Bus;
|
||||||
import com.yunbao.common.utils.DebugUtils;
|
import com.yunbao.common.utils.DebugUtils;
|
||||||
@ -413,6 +414,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
||||||
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
||||||
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
||||||
|
.params("key1", RongcloudIMManager.RONG_IM_KEY)
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
@ -44,6 +44,7 @@ import com.opensource.svgaplayer.SVGADrawable;
|
|||||||
import com.opensource.svgaplayer.SVGAImageView;
|
import com.opensource.svgaplayer.SVGAImageView;
|
||||||
import com.opensource.svgaplayer.SVGAParser;
|
import com.opensource.svgaplayer.SVGAParser;
|
||||||
import com.opensource.svgaplayer.SVGAVideoEntity;
|
import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||||
|
import com.yunbao.common.manager.imrongcloud.RongcloudIMManager;
|
||||||
import com.yunbao.common.utils.DebugUtils;
|
import com.yunbao.common.utils.DebugUtils;
|
||||||
import com.yunbao.common.utils.L;
|
import com.yunbao.common.utils.L;
|
||||||
import com.yunbao.common.utils.MobclickAgent;
|
import com.yunbao.common.utils.MobclickAgent;
|
||||||
@ -516,6 +517,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
||||||
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
||||||
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
||||||
|
.params("key1", RongcloudIMManager.RONG_IM_KEY)
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
@ -167,16 +167,13 @@ public class LoginActivity extends AbsActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//去掉防止抖动
|
||||||
public void loginClick(View v) {
|
public void loginClick(View v) {
|
||||||
ViewClicksAntiShake.clicksAntiShake(v, new ViewClicksAntiShake.ViewClicksCallBack() {
|
|
||||||
@Override
|
|
||||||
public void onViewClicks() {
|
|
||||||
int i = v.getId();
|
int i = v.getId();
|
||||||
if (i == R.id.btn_login) {
|
if (i == R.id.btn_login) {
|
||||||
//Intent intent = new Intent(LoginActivity.this, NewLiveActivity.class);
|
//Intent intent = new Intent(LoginActivity.this, NewLiveActivity.class);
|
||||||
//startActivity(intent);
|
//startActivity(intent);
|
||||||
login();
|
login();
|
||||||
|
|
||||||
} else if (i == R.id.btn_register) {
|
} else if (i == R.id.btn_register) {
|
||||||
register();
|
register();
|
||||||
} else if (i == R.id.btn_forget_pwd) {
|
} else if (i == R.id.btn_forget_pwd) {
|
||||||
@ -185,8 +182,24 @@ public class LoginActivity extends AbsActivity {
|
|||||||
} else if (i == R.id.btn_tip) {
|
} else if (i == R.id.btn_tip) {
|
||||||
forwardTip();
|
forwardTip();
|
||||||
}
|
}
|
||||||
}
|
// ViewClicksAntiShake.clicksAntiShake(v, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
});
|
// @Override
|
||||||
|
// public void onViewClicks() {
|
||||||
|
// int i = v.getId();
|
||||||
|
// if (i == R.id.btn_login) {
|
||||||
|
// //Intent intent = new Intent(LoginActivity.this, NewLiveActivity.class);
|
||||||
|
// //startActivity(intent);
|
||||||
|
// login();
|
||||||
|
// } else if (i == R.id.btn_register) {
|
||||||
|
// register();
|
||||||
|
// } else if (i == R.id.btn_forget_pwd) {
|
||||||
|
// forgetPwd();
|
||||||
|
//
|
||||||
|
// } else if (i == R.id.btn_tip) {
|
||||||
|
// forwardTip();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ import com.yunbao.common.http.HttpCallback;
|
|||||||
import com.yunbao.common.http.HttpClient;
|
import com.yunbao.common.http.HttpClient;
|
||||||
import com.yunbao.common.interfaces.CommonCallback;
|
import com.yunbao.common.interfaces.CommonCallback;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
|
import com.yunbao.common.manager.imrongcloud.RongcloudIMManager;
|
||||||
import com.yunbao.common.utils.MD5Util;
|
import com.yunbao.common.utils.MD5Util;
|
||||||
import com.yunbao.common.utils.SpUtil;
|
import com.yunbao.common.utils.SpUtil;
|
||||||
import com.yunbao.common.utils.VersionUtil;
|
import com.yunbao.common.utils.VersionUtil;
|
||||||
@ -49,7 +50,7 @@ public class MainHttpUtil {
|
|||||||
.params("user_login", phoneNum)
|
.params("user_login", phoneNum)
|
||||||
.params("user_pass", pwd)
|
.params("user_pass", pwd)
|
||||||
.params("pushid", "")
|
.params("pushid", "")
|
||||||
.params("key1", "6tnym1br6lhu7")
|
.params("key1", RongcloudIMManager.RONG_IM_KEY)
|
||||||
.params("lastlogindevice", "Android")
|
.params("lastlogindevice", "Android")
|
||||||
.params("uuid_Device", uuid)
|
.params("uuid_Device", uuid)
|
||||||
.params("langue", WordUtil.isNewZh()?"chinese":"english")
|
.params("langue", WordUtil.isNewZh()?"chinese":"english")
|
||||||
@ -256,6 +257,7 @@ public class MainHttpUtil {
|
|||||||
*/
|
*/
|
||||||
public static void getBaseInfo(String uid, String token, final CommonCallback<UserBean> commonCallback) {
|
public static void getBaseInfo(String uid, String token, final CommonCallback<UserBean> commonCallback) {
|
||||||
HttpClient.getInstance().get("User.getBaseInfos", MainHttpConsts.GET_BASE_INFO)
|
HttpClient.getInstance().get("User.getBaseInfos", MainHttpConsts.GET_BASE_INFO)
|
||||||
|
.params("key1", RongcloudIMManager.RONG_IM_KEY)
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
@ -290,6 +292,7 @@ public class MainHttpUtil {
|
|||||||
|
|
||||||
public static void getBaseInfos(String uid, String token, HttpCallback callback) {
|
public static void getBaseInfos(String uid, String token, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("User.getBaseInfos", MainHttpConsts.GET_BASE_INFO)
|
HttpClient.getInstance().get("User.getBaseInfos", MainHttpConsts.GET_BASE_INFO)
|
||||||
|
.params("key1", RongcloudIMManager.RONG_IM_KEY)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user