|
|
@@ -31,6 +31,7 @@ import com.me.network.app.http.rx.ResultSubscriber;
|
|
|
import com.modular.apputils.listener.OnPlayListener;
|
|
|
import com.modular.apputils.utils.playsdk.AliPlay;
|
|
|
import com.modular.apputils.utils.playsdk.WxPlay;
|
|
|
+import com.modular.apputils.widget.VeriftyDialog;
|
|
|
import com.tencent.mm.opensdk.constants.ConstantsAPI;
|
|
|
import com.tencent.mm.opensdk.modelbase.BaseReq;
|
|
|
import com.tencent.mm.opensdk.modelbase.BaseResp;
|
|
|
@@ -379,13 +380,24 @@ public class WXPayEntryActivity extends AppCompatActivity implements View.OnClic
|
|
|
if (baseResp.getType() == ConstantsAPI.COMMAND_PAY_BY_WX) {
|
|
|
if (baseResp.errCode == BaseResp.ErrCode.ERR_OK) {
|
|
|
Toast.makeText(this, R.string.str_error_wechat_pay_success, Toast.LENGTH_LONG).show();
|
|
|
+ new VeriftyDialog.Builder(this)
|
|
|
+ .setCanceledOnTouchOutside(false)
|
|
|
+ .setContent("感谢您的爱心!")
|
|
|
+ .setShowCancel(false)
|
|
|
+ .build(new VeriftyDialog.OnDialogClickListener() {
|
|
|
+ @Override
|
|
|
+ public void result(boolean clickSure) {
|
|
|
+ finish();
|
|
|
+ }
|
|
|
+ });
|
|
|
} else if (baseResp.errCode == BaseResp.ErrCode.ERR_COMM) {
|
|
|
Toast.makeText(this, R.string.str_error_wechat_pay_fail, Toast.LENGTH_LONG).show();
|
|
|
+ finish();
|
|
|
} else if (baseResp.errCode == BaseResp.ErrCode.ERR_USER_CANCEL) {
|
|
|
Toast.makeText(this, R.string.str_error_wechat_pay_cancel, Toast.LENGTH_LONG).show();
|
|
|
+ finish();
|
|
|
}
|
|
|
}
|
|
|
- finish();
|
|
|
}
|
|
|
|
|
|
|