修复支付问题
This commit is contained in:
@@ -147,8 +147,6 @@ import io.rong.imkit.config.RongConfigCenter;
|
||||
import io.rong.imkit.notification.NotificationConfig;
|
||||
import io.rong.imlib.RongIMClient;
|
||||
import io.rong.imlib.model.Message;
|
||||
import io.rong.push.PushManager;
|
||||
import io.rong.push.PushType;
|
||||
import kotlin.Unit;
|
||||
|
||||
@Route(path = RouteUtil.PATH_MAIN)
|
||||
@@ -292,13 +290,13 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
}
|
||||
|
||||
if (CommonAppConfig.IS_GOOGLE_PLAY == 1) {
|
||||
GoogleUtils.newInstance(MainActivity.this).setFirebaseTokenListener(MainActivity.this, new GoogleUtils.FirebaseTokenListener() {
|
||||
/* GoogleUtils.newInstance(MainActivity.this).setFirebaseTokenListener(MainActivity.this, new GoogleUtils.FirebaseTokenListener() {
|
||||
@Override
|
||||
public void onResultToken(String token) {
|
||||
L.e("GoogleUtils.newInstance:onResultToken:" + token);
|
||||
PushManager.getInstance().onReceiveToken(MainActivity.this, PushType.GOOGLE_FCM, token);
|
||||
}
|
||||
});
|
||||
});*/
|
||||
GoogleUtils.newInstance(MainActivity.this).initFireToken(MainActivity.this);
|
||||
}
|
||||
|
||||
|
||||
@@ -99,10 +99,9 @@ public class MyWalletActivity extends AbsActivity {
|
||||
try {
|
||||
int code = obj.getInt("querySize");
|
||||
if (code == 0) {
|
||||
loadingDialog.setShowText(getString(R.string.order_query_success));
|
||||
payHandler.post(() -> loadingDialog.setHintText(getString(R.string.order_query_success)));
|
||||
payHandler.postDelayed(() -> loadingDialog.dismiss(), 2000);
|
||||
} else {
|
||||
|
||||
JSONArray tokenList = obj.getJSONArray("tokenList");
|
||||
JSONArray orderList = obj.getJSONArray("orderList");
|
||||
String tradeNo = obj.getString("tradeNo");
|
||||
@@ -140,7 +139,7 @@ public class MyWalletActivity extends AbsActivity {
|
||||
googleUtils.queryPurchasesAsync();
|
||||
} else if (CommonAppConfig.IS_GOOGLE_PLAY == 2) {
|
||||
hwBuilder.consume();
|
||||
loadingDialog.setShowText(getString(R.string.order_query_success));
|
||||
payHandler.postDelayed(() -> loadingDialog.setHintText(getString(R.string.order_query_success)), 1000);
|
||||
payHandler.postDelayed(() -> loadingDialog.dismiss(), 2000);
|
||||
} else {
|
||||
loadingDialog.setShowText(getString(R.string.order_query_success));
|
||||
|
||||
Reference in New Issue
Block a user