com.tencent.mm.sdk.modelbase.BaseResp Java Examples

The following examples show how to use com.tencent.mm.sdk.modelbase.BaseResp. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WXEntryActivity.java    From MortgageCalculator with Apache License 2.0 6 votes vote down vote up
@Override
public void onResp(BaseResp baseResp) {
    //System.out.println("resp.errCode:" + baseResp.errCode + ",resp.errStr:" + baseResp.errStr);
    switch (baseResp.errCode) {
        case BaseResp.ErrCode.ERR_OK:
            //分享成功
            System.out.println("分享成功");
            break;

        case BaseResp.ErrCode.ERR_USER_CANCEL:
            //分享取消
            System.out.println("分享取消");
            break;

        case BaseResp.ErrCode.ERR_AUTH_DENIED:
            //分享拒绝
            System.out.println("分享拒绝");
            break;
    }

    finish();
}
 
Example #2
Source File: WXEntryActivity.java    From gokit-android with MIT License 6 votes vote down vote up
@Override
public void onResp(BaseResp resp) {
	Log.e(TAG, "onResp...");
	Log.i("Apptest", "onResp...");
	String code = null;
	switch (resp.errCode) {
	case BaseResp.ErrCode.ERR_OK:// 用户同意,只有这种情况的时候code是有效的
		code = ((SendAuth.Resp) resp).code;
		Log.i("Apptest", code);
		getResult(code);
		break;
	case BaseResp.ErrCode.ERR_AUTH_DENIED:// 用户拒绝授权
		Log.e("Apptest", "用户拒绝授权");
		break;
	case BaseResp.ErrCode.ERR_USER_CANCEL:// 用户取消
		Log.e("Apptest", "用户取消");
		break;

	default:// 发送返回

		break;
	}
	finish();
}
 
Example #3
Source File: WeChatShareProxy.java    From ESSocialSDK with Apache License 2.0 6 votes vote down vote up
public static void shareComplete(SendMessageToWX.Resp resp) {
    if (null != mCallback) {
        switch (resp.errCode) {
            case BaseResp.ErrCode.ERR_OK:
                mCallback.onSuccess();
                break;
            case BaseResp.ErrCode.ERR_USER_CANCEL:
                mCallback.onCancel();
                break;
            case BaseResp.ErrCode.ERR_AUTH_DENIED:
            default:
                mCallback.onFailure(new Exception("BaseResp.ErrCode.ERR_AUTH_DENIED"));
                break;
        }
    }
}
 
Example #4
Source File: WXEntryActivity.java    From Gizwits-SmartBuld_Android with MIT License 6 votes vote down vote up
@Override
public void onResp(BaseResp resp) {
	Log.e(TAG, "onResp...");
	Log.i("Apptest", "onResp...");
	String code = null;
	switch (resp.errCode) {
	case BaseResp.ErrCode.ERR_OK:// 用户同意,只有这种情况的时候code是有效的
		code = ((SendAuth.Resp) resp).code;
		Log.i("Apptest", code);
		getResult(code);
		break;
	case BaseResp.ErrCode.ERR_AUTH_DENIED:// 用户拒绝授权
		Log.e("Apptest", "用户拒绝授权");
		break;
	case BaseResp.ErrCode.ERR_USER_CANCEL:// 用户取消
		Log.e("Apptest", "用户取消");
		break;

	default:// 发送返回

		break;
	}
	finish();
}
 
Example #5
Source File: WXEntryActivity.java    From QiQuYing with Apache License 2.0 6 votes vote down vote up
@Override
public void onResp(BaseResp resp) {
	int result = 0;
	switch (resp.errCode) {
	case BaseResp.ErrCode.ERR_OK:
		result = R.string.errcode_success;
		Toast.makeText(this, getString(result), Toast.LENGTH_LONG).show();
		ImgToastUtils.showMessage(this, getString(result), R.drawable.center_ok_tip);
		break;
	case BaseResp.ErrCode.ERR_USER_CANCEL:
		result = R.string.errcode_cancel;
		ToastUtils.showMessageInCenter(this, getString(result));
		break;
	case BaseResp.ErrCode.ERR_AUTH_DENIED:
		result = R.string.errcode_deny;
		ToastUtils.showMessageInCenter(this, getString(result));
		break;
	default:
		result = R.string.errcode_unknown;
		break;
	}
	Log.e(TAG, resp.errStr+""+resp.errCode);
	finish();
}
 
Example #6
Source File: ShareByWeixin.java    From ShareSDK with MIT License 6 votes vote down vote up
@Override
public void onReceive(Context context, Intent intent) {
    if (intent.hasExtra(ShareConstant.EXTRA_WEIXIN_RESULT)) {
        int errCode = intent.getIntExtra(ShareConstant.EXTRA_WEIXIN_RESULT, BaseResp.ErrCode.ERR_USER_CANCEL);
        int resultCode = (errCode == BaseResp.ErrCode.ERR_OK) ? Activity.RESULT_OK : Activity.RESULT_CANCELED;
        if (resultCode == Activity.RESULT_OK) {
            //分享成功
            if (null != listener) {
                listener.onShare(channel, ShareConstant.SHARE_STATUS_COMPLETE);
            }
            ToastUtil.showToast(context, R.string.share_success, true);
        } else {
            //分享失败
            if (null != listener) {
                listener.onShare(channel, ShareConstant.SHARE_STATUS_FAILED);
            }
            // ToastUtil.showToast(context, R.string.share_failed, true);
        }
    }
}
 
Example #7
Source File: WXEntryActivity.java    From MortgageCalculator with Apache License 2.0 6 votes vote down vote up
@Override
public void onResp(BaseResp baseResp) {
    //System.out.println("resp.errCode:" + baseResp.errCode + ",resp.errStr:" + baseResp.errStr);
    switch (baseResp.errCode) {
        case BaseResp.ErrCode.ERR_OK:
            //分享成功
            System.out.println("分享成功");
            break;

        case BaseResp.ErrCode.ERR_USER_CANCEL:
            //分享取消
            System.out.println("分享取消");
            break;

        case BaseResp.ErrCode.ERR_AUTH_DENIED:
            //分享拒绝
            System.out.println("分享拒绝");
            break;
    }

    finish();
}
 
Example #8
Source File: WxShareInstance.java    From ShareUtil with Apache License 2.0 6 votes vote down vote up
@Override
public void handleResult(Intent data) {
    mIWXAPI.handleIntent(data, new IWXAPIEventHandler() {
        @Override
        public void onReq(BaseReq baseReq) {
        }

        @Override
        public void onResp(BaseResp baseResp) {
            switch (baseResp.errCode) {
                case BaseResp.ErrCode.ERR_OK:
                    ShareUtil.mShareListener.shareSuccess();
                    break;
                case BaseResp.ErrCode.ERR_USER_CANCEL:
                    ShareUtil.mShareListener.shareCancel();
                    break;
                default:
                    ShareUtil.mShareListener.shareFailure(new Exception(baseResp.errStr));
            }
        }
    });
}
 
Example #9
Source File: WXPayEntryActivity.java    From Android-Application-ZJB with Apache License 2.0 6 votes vote down vote up
@Override
public void onResp(BaseResp baseResp) {
    switch (baseResp.errCode) {
        case BaseResp.ErrCode.ERR_OK:
            Logger.e(TAG, ResHelper.getString(R.string.weixin_pay_success));
            RxBusManager.post(EventConstant.KEY_PAY_RESULT, BaseResp.ErrCode.ERR_OK);
            break;
        case BaseResp.ErrCode.ERR_USER_CANCEL:
            Logger.e(TAG, ResHelper.getString(R.string.weixin_pay_cancel));
            RxBusManager.post(EventConstant.KEY_PAY_RESULT, BaseResp.ErrCode.ERR_USER_CANCEL);
            break;
        case BaseResp.ErrCode.ERR_AUTH_DENIED:
            Logger.e(TAG, ResHelper.getString(R.string.weixin_pay_fail));
            RxBusManager.post(EventConstant.KEY_PAY_RESULT, BaseResp.ErrCode.ERR_AUTH_DENIED);
            break;
        default:
            break;
    }
    finish();
}
 
Example #10
Source File: WXCallbackActivity.java    From ESSocialSDK with Apache License 2.0 5 votes vote down vote up
@Override
public void onResp(BaseResp resp) {
    if (resp instanceof SendAuth.Resp)
        WeChatSSOProxy.authComplete((SendAuth.Resp) resp);
    else if (resp instanceof SendMessageToWX.Resp)
        WeChatShareProxy.shareComplete((SendMessageToWX.Resp) resp);

    finish();
}
 
Example #11
Source File: WXEntryActivity.java    From MiBandDecompiled with Apache License 2.0 5 votes vote down vote up
public void onResp(BaseResp baseresp)
    {
        baseresp.errCode;
        JVM INSTR tableswitch -4 0: default 40
    //                   -4 94
    //                   -3 40
    //                   -2 88
    //                   -1 40
    //                   0 82;
           goto _L1 _L2 _L1 _L3 _L1 _L4
_L1:
        String s = "\u53D1\u9001\u8FD4\u56DE";
_L6:
        CustomToast.makeText(this, s, 1).show();
        Log.d("chenee", (new StringBuilder()).append("onResp...............").append(s).toString());
        finish();
        return;
_L4:
        s = "\u53D1\u9001\u6210\u529F!";
        continue; /* Loop/switch isn't completed */
_L3:
        s = "\u53D1\u9001\u53D6\u6D88";
        continue; /* Loop/switch isn't completed */
_L2:
        s = "\u53D1\u9001\u88AB\u62D2\u7EDD";
        if (true) goto _L6; else goto _L5
_L5:
    }
 
Example #12
Source File: WeixinPayHelper.java    From android-common-utils with Apache License 2.0 5 votes vote down vote up
@Override
public void onResp(BaseResp resp) {
    if (resp.getType() == ConstantsAPI.COMMAND_PAY_BY_WX) {
        if (mPayCallback != null) {
            mPayCallback.onResponse(resp.errCode, resp.errStr);
            mPayCallback = null;
        }
    }
    mProcessing.set(false);
}
 
Example #13
Source File: CashierAcitivity.java    From letv with Apache License 2.0 5 votes vote down vote up
private void payCallBacks() {
    this.mAliPay.setAliPayCallback(new AliPayCallback() {
        public void aliPayCalledBack(String result) {
            LOG.logI("支付宝" + result);
            CashierAcitivity.this.lepay_cashier_next.setClickable(true);
            CashierAcitivity.this.progressBar.setVisibility(8);
            AliPayResult payResult = new AliPayResult(result);
            String resultStatus = payResult.getStaus();
            if (TextUtils.equals(resultStatus, "9000")) {
                CashierAcitivity.this.hasShowPaySuccess(CashierAcitivity.this.mTradeInfo.getKey(), ELePayState.OK, CashierAcitivity.this.mTradeInfo.getPrice());
            } else if (TextUtils.equals(resultStatus, "4000")) {
                ToastUtils.makeText(CashierAcitivity.this.context, "支付宝钱包未安装,请下载安装!");
            } else {
                CashierAcitivity.this.cardPayHelper.showPayStatus(CashierAcitivity.this.mTradeInfo.getKey(), ELePayState.FAILT, payResult.getResult());
            }
        }
    });
    this.mWxPay.setCallback(new WXPayCallback() {
        public void wxPayCallback(BaseResp resp) {
            CashierAcitivity.this.lepay_cashier_next.setClickable(true);
            CashierAcitivity.this.progressBar.setVisibility(8);
            switch (resp.errCode) {
                case 0:
                    CashierAcitivity.this.hasShowPaySuccess(CashierAcitivity.this.mTradeInfo.getKey(), ELePayState.OK, CashierAcitivity.this.mTradeInfo.getPrice());
                    return;
                default:
                    CashierAcitivity.this.cardPayHelper.showPayStatus(CashierAcitivity.this.mTradeInfo.getKey(), ELePayState.FAILT, TextUtils.isEmpty(resp.errStr) ? "支付失败" : resp.errStr);
                    return;
            }
        }
    });
}
 
Example #14
Source File: d.java    From MiBandDecompiled with Apache License 2.0 5 votes vote down vote up
public final boolean sendResp(BaseResp baseresp)
{
    if (e)
    {
        throw new IllegalStateException("sendResp fail, WXMsgImpl has been detached");
    }
    if (!com.tencent.mm.sdk.openapi.c.a(b, "com.tencent.mm", d))
    {
        com.tencent.mm.sdk.b.a.a("MicroMsg.SDK.WXApiImplV10", "sendResp failed for wechat app signature check failed");
        return false;
    }
    if (!baseresp.checkArgs())
    {
        com.tencent.mm.sdk.b.a.a("MicroMsg.SDK.WXApiImplV10", "sendResp checkArgs fail");
        return false;
    } else
    {
        Bundle bundle = new Bundle();
        baseresp.toBundle(bundle);
        com.tencent.mm.sdk.a.a.a a1 = new com.tencent.mm.sdk.a.a.a();
        a1.e = bundle;
        a1.d = (new StringBuilder("weixin://sendresp?appid=")).append(c).toString();
        a1.b = "com.tencent.mm";
        a1.c = "com.tencent.mm.plugin.base.stub.WXEntryActivity";
        return com.tencent.mm.sdk.a.a.a(b, a1);
    }
}
 
Example #15
Source File: WXPayCallbackActivity.java    From PayAndroid with Apache License 2.0 5 votes vote down vote up
@Override
public void onResp(BaseResp baseResp) {
    if(baseResp.getType() == ConstantsAPI.COMMAND_PAY_BY_WX) {
        if(WXPay.getInstance() != null) {
            if(baseResp.errStr != null) {
                Log.e("wxpay", "errstr=" + baseResp.errStr);
            }

            WXPay.getInstance().onResp(baseResp.errCode);
            finish();
        }
    }
}
 
Example #16
Source File: WXEntryActivity.java    From ShareSDK with MIT License 5 votes vote down vote up
@Override
public void onResp(BaseResp resp) {
    Intent intent = new Intent();
    intent.setAction(ShareConstant.ACTION_WEIXIN_CALLBACK);
    intent.putExtra(ShareConstant.EXTRA_WEIXIN_RESULT, resp.errCode);
    sendBroadcast(intent);
    finish();
}
 
Example #17
Source File: WXPayEntryActivity.java    From letv with Apache License 2.0 5 votes vote down vote up
public void onResp(BaseResp resp) {
    LogInfo.log("weixin", "onPayFinish, errCode = " + resp.errCode);
    finish();
    if (resp.getType() == 5) {
        if (resp.errCode == 0) {
            LetvAlipayManager.getInstance().startPaySucceedActivity("");
        } else if (resp.errCode != -2) {
            PayFailedActivity.launch(this);
        }
    }
    LetvAlipayManager.getInstance().finishWxPay();
}
 
Example #18
Source File: WXEntryActivity.java    From GOpenSource_AppKit_Android_AS with MIT License 5 votes vote down vote up
@Override
public void onResp(BaseResp resp) {
	Log.e(TAG, "onResp...");
	Log.i("Apptest", "onResp...");
	SDKLog.d(TAG + "   onResp...");
	String code = null;
	switch (resp.errCode) {
	case BaseResp.ErrCode.ERR_OK:// 用户同意,只有这种情况的时候code是有效的
		code = ((SendAuth.Resp) resp).code;
		Log.i("Apptest", code);

		SDKLog.d(TAG + "   code..." + code);
		getResult(code);
		break;
	case BaseResp.ErrCode.ERR_AUTH_DENIED:// 用户拒绝授权
		Log.e("Apptest", "用户拒绝授权");
		SDKLog.d(TAG + "   用户拒绝授权...");
		break;
	case BaseResp.ErrCode.ERR_USER_CANCEL:// 用户取消
		Log.e("Apptest", "用户取消");
		SDKLog.d(TAG + "   用户取消...");
		break;

	default:// 发送返回

		break;
	}
	finish();
}
 
Example #19
Source File: WXEntryActivity.java    From FoodOrdering with Apache License 2.0 5 votes vote down vote up
@Override
public void onResp(BaseResp resp) {
    Intent intent = new Intent();
    intent.setAction(ShareConstant.ACTION_WEIXIN_CALLBACK);
    intent.putExtra(ShareConstant.EXTRA_WEIXIN_RESULT, resp.errCode);
    sendBroadcast(intent);
    finish();
}
 
Example #20
Source File: WxLoginInstance.java    From ShareUtil with Apache License 2.0 5 votes vote down vote up
@Override
public void handleResult(int requestCode, int resultCode, Intent data) {
    mIWXAPI.handleIntent(data, new IWXAPIEventHandler() {
        @Override
        public void onReq(BaseReq baseReq) {
        }

        @Override
        public void onResp(BaseResp baseResp) {
            if (baseResp instanceof SendAuth.Resp && baseResp.getType() == 1) {
                SendAuth.Resp resp = (SendAuth.Resp) baseResp;
                switch (resp.errCode) {
                    case BaseResp.ErrCode.ERR_OK:
                        getToken(resp.code);
                        break;
                    case BaseResp.ErrCode.ERR_USER_CANCEL:
                        mLoginListener.loginCancel();
                        break;
                    case BaseResp.ErrCode.ERR_SENT_FAILED:
                        mLoginListener.loginFailure(new Exception(INFO.WX_ERR_SENT_FAILED));
                        break;
                    case BaseResp.ErrCode.ERR_UNSUPPORT:
                        mLoginListener.loginFailure(new Exception(INFO.WX_ERR_UNSUPPORT));
                        break;
                    case BaseResp.ErrCode.ERR_AUTH_DENIED:
                        mLoginListener.loginFailure(new Exception(INFO.WX_ERR_AUTH_DENIED));
                        break;
                    default:
                        mLoginListener.loginFailure(new Exception(INFO.WX_ERR_AUTH_ERROR));
                }
            }
        }
    });
}
 
Example #21
Source File: WeChatSSOProxy.java    From ESSocialSDK with Apache License 2.0 5 votes vote down vote up
public static void authComplete(SendAuth.Resp resp) {

        switch (resp.errCode) {
            case BaseResp.ErrCode.ERR_OK:
                callback.onGetCodeSuccess(resp.code);
                break;
            case BaseResp.ErrCode.ERR_USER_CANCEL:
                callback.onCancel();
                break;
            case BaseResp.ErrCode.ERR_AUTH_DENIED:
                callback.onFailure(new Exception("BaseResp.ErrCode.ERR_AUTH_DENIED"));
                break;
        }
    }
 
Example #22
Source File: AbsWebActivity.java    From Android-Application-ZJB with Apache License 2.0 5 votes vote down vote up
/**
 * 微信支付结果
 *
 * @param code
 */
private void processPayResult(int code) {
    try {
        boolean payStatus = code == BaseResp.ErrCode.ERR_OK;
        JSONObject object = new JSONObject();
        object.put("prepayid", mWxPrePayId);
        object.put("payStatus", payStatus);

        //通知JS支付结果
        mWebView.callHandler("webWxPayNotify", object.toString(), null);
    } catch (Exception e) {
        e.printStackTrace();
    }
}
 
Example #23
Source File: AbsPayActivity.java    From Android-Application-ZJB with Apache License 2.0 5 votes vote down vote up
private void processPayResult(int code) {
    switch (code) {
        case BaseResp.ErrCode.ERR_OK:
            UIHelper.shortToast(R.string.pay_success);
            mViewModel.updatePayType("wxPay");
            refreshUI();
            break;
        case BaseResp.ErrCode.ERR_USER_CANCEL:
            UIHelper.shortToast(R.string.pay_cancel);
            break;
        case BaseResp.ErrCode.ERR_AUTH_DENIED:
            UIHelper.shortToast(R.string.pay_failed);
            break;
    }
}
 
Example #24
Source File: BaseWebFragment.java    From Android-Application-ZJB with Apache License 2.0 5 votes vote down vote up
/**
 * 微信支付结果
 *
 * @param code
 */
private void processPayResult(int code) {
    try {
        boolean payStatus = code == BaseResp.ErrCode.ERR_OK;
        JSONObject object = new JSONObject();
        object.put("prepayid", mWxPrePayId);
        object.put("payStatus", payStatus);

        //通知JS支付结果
        mWebView.callHandler("webWxPayNotify", object.toString(), null);
    } catch (Exception e) {
        e.printStackTrace();
    }
}
 
Example #25
Source File: DrivingTestInsPayActivity.java    From Android-Application-ZJB with Apache License 2.0 5 votes vote down vote up
private void processPayResult(int code) {
    switch (code) {
        case BaseResp.ErrCode.ERR_OK:
            UIHelper.shortToast(R.string.weixin_pay_success);
            finish();
            break;
        case BaseResp.ErrCode.ERR_USER_CANCEL:
            UIHelper.shortToast(R.string.weixin_pay_cancel);
            break;
        case BaseResp.ErrCode.ERR_AUTH_DENIED:
            UIHelper.shortToast(R.string.weixin_pay_fail);
            break;
    }
}
 
Example #26
Source File: ShareActivity.java    From MiBandDecompiled with Apache License 2.0 4 votes vote down vote up
public void onResp(BaseResp baseresp)
{
}
 
Example #27
Source File: WXPay.java    From letv with Apache License 2.0 4 votes vote down vote up
public void setResp(BaseResp baseResp) {
    if (this.mWxCallback != null) {
        this.mWxCallback.wxPayCallback(baseResp);
    }
}
 
Example #28
Source File: WXPayEntryActivity.java    From letv with Apache License 2.0 4 votes vote down vote up
public void onResp(BaseResp resp) {
    this.wxPay.setResp(resp);
    LOG.logE("resp:" + resp.errCode);
    finish();
}
 
Example #29
Source File: WXEntryActivity.java    From letv with Apache License 2.0 4 votes vote down vote up
public void onResp(BaseResp resq) {
    if (resq != null && (resq instanceof Resp) && resq.getType() == 1) {
        Resp resps = (Resp) resq;
        if (resps != null) {
            try {
                if (resps.state.equals("none_weixin_login")) {
                    getCode(resps);
                }
            } catch (Exception e) {
                finish();
                e.printStackTrace();
            }
        }
    } else if (resq.getType() != 4) {
        try {
            switch (resq.errCode) {
                case -5:
                case -4:
                case -3:
                case -1:
                    ToastUtils.showToast((Context) this, getString(2131100850));
                    if (observers != null && observers.size() > 0) {
                        for (WXShareResultObserver observer : observers) {
                            observer.onWXShareFail();
                        }
                        break;
                    }
                case -2:
                    if (observers != null && observers.size() > 0) {
                        for (WXShareResultObserver observer2 : observers) {
                            observer2.onWXCanneled();
                        }
                        break;
                    }
                case 0:
                    ToastUtils.showToast((Context) this, getString(2131100851));
                    LogInfo.log("lxx", "weixin ERR_OK");
                    if (PointsUtils.canShareGainPoints()) {
                    }
                    if (LetvWeixinShare.isShareFriendZone) {
                        LogInfo.log("fornia", "isShareFriendZone true LetvWeixinShare.mFragId" + LetvWeixinShare.mFragId + "|LetvWeixinShare.mStaticsId" + LetvWeixinShare.mStaticsId);
                        if (!TextUtils.isEmpty(LetvWeixinShare.mFragId)) {
                            StatisticsUtils.staticticsInfoPost(this, "19", LetvWeixinShare.mFragId, "5001", 1, null, LetvWeixinShare.mStaticsId, NetworkUtils.DELIMITER_LINE, NetworkUtils.DELIMITER_LINE, NetworkUtils.DELIMITER_LINE, NetworkUtils.DELIMITER_LINE, NetworkUtils.DELIMITER_LINE);
                        }
                    } else {
                        LogInfo.log("fornia", "isShareFriendZone false LetvWeixinShare.mFragId" + LetvWeixinShare.mFragId + "|LetvWeixinShare.mStaticsId" + LetvWeixinShare.mStaticsId);
                        if (!TextUtils.isEmpty(LetvWeixinShare.mFragId)) {
                            StatisticsUtils.staticticsInfoPost(this, "19", LetvWeixinShare.mFragId, "5002", 2, null, LetvWeixinShare.mStaticsId, NetworkUtils.DELIMITER_LINE, NetworkUtils.DELIMITER_LINE, NetworkUtils.DELIMITER_LINE, NetworkUtils.DELIMITER_LINE, NetworkUtils.DELIMITER_LINE);
                        }
                    }
                    LogInfo.log("fornia", "showAwardPage LetvWeixinShare.mGiftShareAwardCallback:" + LetvWeixinShare.mGiftShareAwardCallback + "|" + LetvWeixinShare.mAwardUrl);
                    if (!(LetvWeixinShare.mGiftShareAwardCallback == null || TextUtils.isEmpty(LetvWeixinShare.mAwardUrl))) {
                        LetvWeixinShare.mGiftShareAwardCallback.showAwardPage(LetvWeixinShare.mAwardUrl);
                        LetvWeixinShare.mGiftShareAwardCallback = null;
                        LetvWeixinShare.mAwardUrl = "";
                    }
                    if (LetvWeixinShare.mLaunchMode == 22 && LetvWeixinShare.mActivity != null) {
                        LetvWeixinShare.mLaunchMode = -1;
                        RedPacketSdkController.shareSuccess(LetvWeixinShare.mActivity);
                    }
                    if (observers != null && observers.size() > 0) {
                        for (WXShareResultObserver observer22 : observers) {
                            LogInfo.log("lxx", "observer.onWXShareSucceed()");
                            observer22.onWXShareSucceed();
                        }
                        break;
                    }
                default:
                    if (observers != null && observers.size() > 0) {
                        for (WXShareResultObserver observer222 : observers) {
                            observer222.onWXShareFail();
                        }
                        break;
                    }
            }
            LogInfo.log("wx", "WXEntryActivity -------------- onResp arg0 = " + resq.errCode);
            finish();
        } catch (Exception e2) {
            finish();
            e2.printStackTrace();
        }
    }
}
 
Example #30
Source File: IWXAPIEventHandler.java    From MiBandDecompiled with Apache License 2.0 votes vote down vote up
public abstract void onResp(BaseResp baseresp);