|
@@ -66,7 +66,7 @@ public class NetRequestApi {
|
|
public static void init(final Activity activity, final InitCallback initCallback) {
|
|
public static void init(final Activity activity, final InitCallback initCallback) {
|
|
|
|
|
|
|
|
|
|
- ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "yyrh_initing")));
|
|
|
|
|
|
+ ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "qj_initing")));
|
|
|
|
|
|
HashMap<String, String> map = getCommonParams();
|
|
HashMap<String, String> map = getCommonParams();
|
|
|
|
|
|
@@ -89,7 +89,7 @@ public class NetRequestApi {
|
|
YYLog.i(errorMessage);
|
|
YYLog.i(errorMessage);
|
|
|
|
|
|
|
|
|
|
- initCallback.onInitError(activity.getString(ResourceUtil.getStringId(activity, "yyrh_network_error_tip")));
|
|
|
|
|
|
+ initCallback.onInitError(activity.getString(ResourceUtil.getStringId(activity, "qj_network_error_tip")));
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -138,7 +138,7 @@ public class NetRequestApi {
|
|
|
|
|
|
public static void loginWithYy(boolean isShowPrg, final Activity activity, String account, String password, final LoginCallback loginCallback) {
|
|
public static void loginWithYy(boolean isShowPrg, final Activity activity, String account, String password, final LoginCallback loginCallback) {
|
|
if (isShowPrg){
|
|
if (isShowPrg){
|
|
- ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "yyrh_logging")));
|
|
|
|
|
|
+ ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "qj_logging")));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -169,9 +169,9 @@ public class NetRequestApi {
|
|
@Override
|
|
@Override
|
|
public void onFailure(int code, String errorMessage) {
|
|
public void onFailure(int code, String errorMessage) {
|
|
ProgressDialogUtils.dismiss();
|
|
ProgressDialogUtils.dismiss();
|
|
- new TosUtil(activity, TosUtil.TOAST_ERROR, activity.getString(ResourceUtil.getStringId(activity, "yyrh_network_error_tip"))).show();
|
|
|
|
|
|
+ new TosUtil(activity, TosUtil.TOAST_ERROR, activity.getString(ResourceUtil.getStringId(activity, "qj_network_error_tip"))).show();
|
|
|
|
|
|
- loginCallback.onLoginError(activity.getString(ResourceUtil.getStringId(activity, "yyrh_network_error_tip")));
|
|
|
|
|
|
+ loginCallback.onLoginError(activity.getString(ResourceUtil.getStringId(activity, "qj_network_error_tip")));
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -225,7 +225,7 @@ public class NetRequestApi {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "yyrh_registering")));
|
|
|
|
|
|
+ ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "qj_registering")));
|
|
|
|
|
|
HashMap<String, String> map = getCommonParams();
|
|
HashMap<String, String> map = getCommonParams();
|
|
|
|
|
|
@@ -256,7 +256,7 @@ public class NetRequestApi {
|
|
@Override
|
|
@Override
|
|
public void onFailure(int code, String errorMessage) {
|
|
public void onFailure(int code, String errorMessage) {
|
|
ProgressDialogUtils.dismiss();
|
|
ProgressDialogUtils.dismiss();
|
|
- registerCallback.onRegisterFailed(activity.getString(ResourceUtil.getStringId(activity, "yyrh_network_error_tip")));
|
|
|
|
|
|
+ registerCallback.onRegisterFailed(activity.getString(ResourceUtil.getStringId(activity, "qj_network_error_tip")));
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -293,7 +293,7 @@ public class NetRequestApi {
|
|
}
|
|
}
|
|
|
|
|
|
public static void loginWithChannel(final Activity activity, String channelLoginInfo, final LoginCallback loginCallback) {
|
|
public static void loginWithChannel(final Activity activity, String channelLoginInfo, final LoginCallback loginCallback) {
|
|
- ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "yyrh_logging")));
|
|
|
|
|
|
+ ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "qj_logging")));
|
|
|
|
|
|
HashMap<String, String> map = getCommonParams();
|
|
HashMap<String, String> map = getCommonParams();
|
|
|
|
|
|
@@ -315,10 +315,10 @@ public class NetRequestApi {
|
|
public void onFailure(int code, String errorMessage) {
|
|
public void onFailure(int code, String errorMessage) {
|
|
ProgressDialogUtils.dismiss();
|
|
ProgressDialogUtils.dismiss();
|
|
|
|
|
|
- new TosUtil(activity, TosUtil.TOAST_ERROR, activity.getString(ResourceUtil.getStringId(activity, "yyrh_network_error_tip"))).show();
|
|
|
|
|
|
+ new TosUtil(activity, TosUtil.TOAST_ERROR, activity.getString(ResourceUtil.getStringId(activity, "qj_network_error_tip"))).show();
|
|
|
|
|
|
|
|
|
|
- loginCallback.onLoginError(activity.getString(ResourceUtil.getStringId(activity, "yyrh_network_error_tip")));
|
|
|
|
|
|
+ loginCallback.onLoginError(activity.getString(ResourceUtil.getStringId(activity, "qj_network_error_tip")));
|
|
YYLog.i(errorMessage);
|
|
YYLog.i(errorMessage);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -383,7 +383,7 @@ public class NetRequestApi {
|
|
|
|
|
|
|
|
|
|
if (createTime.length() != 10) {
|
|
if (createTime.length() != 10) {
|
|
- new TosUtil(activity, TosUtil.TOAST_ERROR, activity.getString(ResourceUtil.getStringId(activity, "yyrh_ctime_format_error"))).show();
|
|
|
|
|
|
+ new TosUtil(activity, TosUtil.TOAST_ERROR, activity.getString(ResourceUtil.getStringId(activity, "qj_ctime_format_error"))).show();
|
|
|
|
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -450,7 +450,7 @@ public class NetRequestApi {
|
|
final Activity activity, final PayOrderCallback callback) {
|
|
final Activity activity, final PayOrderCallback callback) {
|
|
|
|
|
|
|
|
|
|
- ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "yyrh_pay_init")));
|
|
|
|
|
|
+ ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "qj_pay_init")));
|
|
String cp_order_id = (String) map.get("game_no");
|
|
String cp_order_id = (String) map.get("game_no");
|
|
String money = (String) map.get("pay_money");
|
|
String money = (String) map.get("pay_money");
|
|
String server_id = (String) map.get("server_id");
|
|
String server_id = (String) map.get("server_id");
|
|
@@ -484,7 +484,7 @@ public class NetRequestApi {
|
|
|
|
|
|
String role_ctime = (String) map.get("role_ctime");
|
|
String role_ctime = (String) map.get("role_ctime");
|
|
if (Utils.judgeStrNull(role_ctime)) {
|
|
if (Utils.judgeStrNull(role_ctime)) {
|
|
- new TosUtil(activity, TosUtil.TOAST_ERROR, activity.getString(ResourceUtil.getStringId(activity, "yyrh_pls_upload_roleinfo_frist"))).show();
|
|
|
|
|
|
+ new TosUtil(activity, TosUtil.TOAST_ERROR, activity.getString(ResourceUtil.getStringId(activity, "qj_pls_upload_roleinfo_frist"))).show();
|
|
ProgressDialogUtils.dismiss();
|
|
ProgressDialogUtils.dismiss();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -532,9 +532,9 @@ public class NetRequestApi {
|
|
@Override
|
|
@Override
|
|
public void onFailure(int code, String errorMessage) {
|
|
public void onFailure(int code, String errorMessage) {
|
|
ProgressDialogUtils.dismiss();
|
|
ProgressDialogUtils.dismiss();
|
|
- new TosUtil(activity, TosUtil.TOAST_ERROR, activity.getString(ResourceUtil.getStringId(activity, "yyrh_network_error_tip"))).show();
|
|
|
|
|
|
+ new TosUtil(activity, TosUtil.TOAST_ERROR, activity.getString(ResourceUtil.getStringId(activity, "qj_network_error_tip"))).show();
|
|
|
|
|
|
- callback.onPayFailed(activity.getString(ResourceUtil.getStringId(activity, "yyrh_network_error_tip")));
|
|
|
|
|
|
+ callback.onPayFailed(activity.getString(ResourceUtil.getStringId(activity, "qj_network_error_tip")));
|
|
|
|
|
|
YYLog.i(errorMessage);
|
|
YYLog.i(errorMessage);
|
|
}
|
|
}
|
|
@@ -584,7 +584,7 @@ public class NetRequestApi {
|
|
|
|
|
|
public static void getPhoneCaptcha(final Activity activity, String phone, String action, final UserPhoneLoginFragment.CaptchaCallback captchaCallback) {
|
|
public static void getPhoneCaptcha(final Activity activity, String phone, String action, final UserPhoneLoginFragment.CaptchaCallback captchaCallback) {
|
|
|
|
|
|
- ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "yyrh_get_code")));
|
|
|
|
|
|
+ ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "qj_get_code")));
|
|
|
|
|
|
HashMap<String, String> map = getCommonParams();
|
|
HashMap<String, String> map = getCommonParams();
|
|
|
|
|
|
@@ -604,9 +604,9 @@ public class NetRequestApi {
|
|
@Override
|
|
@Override
|
|
public void onFailure(int code, String errorMessage) {
|
|
public void onFailure(int code, String errorMessage) {
|
|
ProgressDialogUtils.dismiss();
|
|
ProgressDialogUtils.dismiss();
|
|
- new TosUtil(activity, TosUtil.TOAST_ERROR, activity.getString(ResourceUtil.getStringId(activity, "yyrh_network_error_tip"))).show();
|
|
|
|
|
|
+ new TosUtil(activity, TosUtil.TOAST_ERROR, activity.getString(ResourceUtil.getStringId(activity, "qj_network_error_tip"))).show();
|
|
|
|
|
|
- captchaCallback.onGetFailed(activity.getString(ResourceUtil.getStringId(activity, "yyrh_network_error_tip")));
|
|
|
|
|
|
+ captchaCallback.onGetFailed(activity.getString(ResourceUtil.getStringId(activity, "qj_network_error_tip")));
|
|
|
|
|
|
YYLog.i(errorMessage);
|
|
YYLog.i(errorMessage);
|
|
}
|
|
}
|
|
@@ -642,7 +642,7 @@ public class NetRequestApi {
|
|
if (ProgressDialogUtils.isShowing()) {
|
|
if (ProgressDialogUtils.isShowing()) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "yyrh_registering")));
|
|
|
|
|
|
+ ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "qj_registering")));
|
|
|
|
|
|
HashMap<String, String> map = getCommonParams();
|
|
HashMap<String, String> map = getCommonParams();
|
|
|
|
|
|
@@ -664,7 +664,7 @@ public class NetRequestApi {
|
|
public void onFailure(int code, String errorMessage) {
|
|
public void onFailure(int code, String errorMessage) {
|
|
ProgressDialogUtils.dismiss();
|
|
ProgressDialogUtils.dismiss();
|
|
|
|
|
|
- phoneRegisterCallback.onRegisterFailed(activity.getString(ResourceUtil.getStringId(activity, "yyrh_network_error_tip")));
|
|
|
|
|
|
+ phoneRegisterCallback.onRegisterFailed(activity.getString(ResourceUtil.getStringId(activity, "qj_network_error_tip")));
|
|
YYLog.i(errorMessage);
|
|
YYLog.i(errorMessage);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -726,7 +726,7 @@ public class NetRequestApi {
|
|
|
|
|
|
public static void resetPwdWithPhone(Activity activity, String phone, String code, String pwd, final UserRetrievePwdFragment.ResetPwdCallback resetPwdCallback) {
|
|
public static void resetPwdWithPhone(Activity activity, String phone, String code, String pwd, final UserRetrievePwdFragment.ResetPwdCallback resetPwdCallback) {
|
|
|
|
|
|
- ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "yyrh_resetpwd")));
|
|
|
|
|
|
+ ProgressDialogUtils.show(activity, activity.getString(ResourceUtil.getStringId(activity, "qj_resetpwd")));
|
|
|
|
|
|
HashMap<String, String> map = getCommonParams();
|
|
HashMap<String, String> map = getCommonParams();
|
|
|
|
|