/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  javax.annotation.Resource
 *  org.apache.commons.logging.Log
 *  org.apache.commons.logging.LogFactory
 *  org.apache.struts2.convention.annotation.Action
 *  org.apache.struts2.convention.annotation.Result
 *  org.springframework.context.annotation.Scope
 *  org.springframework.stereotype.Controller
 */
package com.hst.taxService.action;

import com.hst.common.action.ExtendAction;
import com.hst.common.domain.BaseAppServiceDomain;
import com.hst.common.domain.TaxCommonAppServiceDomain;
import com.hst.common.domain.TaxCommonReturnDomain;
import com.hst.common.service.BaseBusinessService;
import com.hst.common.util.Domain2Util;
import com.hst.common.util.DomainUtil;
import com.hst.common.util.HstJsonUtil;
import com.hst.common.util.HstWxServiceUtil;
import com.hst.framework.constants.AppServiceConstants;
import com.hst.framework.constants.WebConstants;
import com.hst.framework.util.HstToolsUtil;
import com.hst.taxService.service.TaxWxfwhCommonAppService;
import javax.annotation.Resource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

@Controller
@Scope(value="prototype")
@Action(value="/service/taxWxfwhCommon", results={@Result(name="doWxAppService", type="json")})
public class TaxWxfwhCommonAppAction
extends ExtendAction {
    private static final long serialVersionUID = 1L;
    public static Log _logger = LogFactory.getLog(TaxWxfwhCommonAppAction.class);
    private TaxCommonAppServiceDomain domain;

    /*
     * Unable to fully structure code
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    public String doWxAppService() throws Exception {
        block220: {
            service = (TaxWxfwhCommonAppService)this.getService();
            appDomain = null;
            returnDomain = null;
            errorDomain = null;
            ywId = this.getDomain().getYwId();
            psrJson = this.getDomain().getParmJson();
            TaxWxfwhCommonAppAction._logger.info((Object)(String.valueOf(this.getDomain().getYwId()) + "------" + this.getDomain().getParmJson()));
            if (!WebConstants.TAX_ZFSZ_MAP.containsKey(ywId)) break block220;
            try {
                appDomain = Domain2Util.getAppServiceDomain(ywId, psrJson);
                if (appDomain == null) {
                    this.handleException(returnDomain, AppServiceConstants.TAX_JSONPARSE_ERROR);
                    return "doService";
                }
            }
            catch (Exception v0) {
                this.handleException(returnDomain, AppServiceConstants.TAX_JSONPARSE_ERROR);
                return "doService";
            }
            url = WebConstants.TAX_ZFSZ_MAP.get(ywId);
            returnDomain = Domain2Util.getDomain(ywId);
            returnDomain = HstWxServiceUtil.sendMess(url, appDomain, ywId, returnDomain.getClass());
            ** GOTO lbl367
        }
        returnDomain = DomainUtil.getDomain(ywId);
        try {
            appDomain = DomainUtil.getAppServiceDomain(ywId, this.getDomain().getParmJson());
            if (appDomain == null) {
                appDomain = Domain2Util.getAppServiceDomain(ywId, this.getDomain().getParmJson());
            }
            if (appDomain == null) {
                this.handleException(returnDomain, AppServiceConstants.TAX_JSONPARSE_ERROR);
                return "doWxAppService";
            }
        }
        catch (Exception v1) {
            this.handleException(returnDomain, AppServiceConstants.TAX_JSONPARSE_ERROR);
            return "doWxAppService";
        }
        try {
            serClass = service.getClass();
            methodName = ywId.substring(ywId.indexOf(".") + 1);
            try {
                method = serClass.getDeclaredMethod(methodName, new Class[]{appDomain.getClass()});
                returnDomain = (TaxCommonReturnDomain)method.invoke(serClass.newInstance(), new Object[]{appDomain});
            }
            catch (NoSuchMethodException v2) {}
            if (AppServiceConstants.YWID_TAX_WXFWH_PUBSWJGMENU.equals(ywId)) {
                returnDomain = service.pubSwjgMenu(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_PUBBDNSRXX.equals(ywId)) {
                returnDomain = service.pubBdNsrxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_PUBMENUXXSL.equals(ywId)) {
                returnDomain = service.pubMenuXxsl(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_PUBMENUBSZN.equals(ywId)) {
                returnDomain = service.pubMenuBszn(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_PUBGETPIC.equals(ywId)) {
                returnDomain = service.pubGetPic(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_PUBGETFILE.equals(ywId)) {
                returnDomain = service.pubGetFile(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_PUBGETFJXH.equals(ywId)) {
                returnDomain = service.pubGetFjxh(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_PUBPUTFJ.equals(ywId)) {
                returnDomain = service.pubPutFj(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_PUBGRSZXX.equals(ywId)) {
                returnDomain = service.pubGrszxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXTZGGLIST.equals(ywId)) {
                returnDomain = service.wdsxTzggList(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXTZGGLNR.equals(ywId)) {
                returnDomain = service.wdsxTzggNr(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXSSTXLIST.equals(ywId)) {
                returnDomain = service.wdsxSstxList(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXSSTXNR.equals(ywId)) {
                returnDomain = service.wdsxSstxNr(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXDBRWLIST.equals(ywId)) {
                returnDomain = service.wdsxDbrwList(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXDBRWNR.equals(ywId)) {
                returnDomain = service.wdsxDbrwNr(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXDBRWBDXM.equals(ywId)) {
                returnDomain = service.wdsxDbrwBdxm(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXDBRWBDXMXZX.equals(ywId)) {
                returnDomain = service.wdsxDdrwBdxmXzx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXDBRWSAVE.equals(ywId)) {
                returnDomain = service.wdsxDbrwSave(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXDBRWSAVEFJ.equals(ywId)) {
                returnDomain = service.wdsxDbrwSaveFj(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXKDDLIST.equals(ywId)) {
                returnDomain = service.wdsxKddList(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXKDDNR.equals(ywId)) {
                returnDomain = service.wdsxKddNr(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXPJDCLIST.equals(ywId)) {
                returnDomain = service.wdsxPjdcList(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXPJDCNR.equals(ywId)) {
                returnDomain = service.wdsxPjdcNr(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXPJDCNRDAXX.equals(ywId)) {
                returnDomain = service.wdsxPjdcNrDaxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXPJDCSAVE.equals(ywId)) {
                returnDomain = service.wdsxPjdcSave(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXLZJDLIST.equals(ywId)) {
                returnDomain = service.wdsxLzjdList(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXLZJDNR.equals(ywId)) {
                returnDomain = service.wdsxLzjdNr(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXLZJDSAVE.equals(ywId)) {
                returnDomain = service.wdsxLzjdSave(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXBDMSRJC.equals(ywId)) {
                returnDomain = service.wdsxBdNsrJc(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXBDNSRYZM.equals(ywId)) {
                returnDomain = service.wdsxBdNsrYzm(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXBDNSRBD.equals(ywId)) {
                returnDomain = service.wdsxBdNsrBd(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXBDNSRBSY.equals(ywId)) {
                returnDomain = service.wdsxBdNsrBsy(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXBDNSRBSYADD.equals(ywId)) {
                returnDomain = service.wdsxBdNsrBsyAdd(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXBDNSRBSYDEL.equals(ywId)) {
                returnDomain = service.wdsxBdnsrBsyDel(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXGRSZGETPIC.equals(ywId)) {
                returnDomain = service.wdsxGrszGetPic(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXGRSZPUTPIC.equals(ywId)) {
                returnDomain = service.wdsxGrszPutPic(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXGRSZUPDATE.equals(ywId)) {
                returnDomain = service.wdsxGrszUpdate(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXYJJYSAVE.equals(ywId)) {
                returnDomain = service.wdsxYjjySave(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WDSXYJJYLIST.equals(ywId)) {
                returnDomain = service.wdsxYjjyList(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WJZCHECKSQZG.equals(ywId)) {
                returnDomain = service.wjzCheckSqzg(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WJZSAVESQXX.equals(ywId)) {
                returnDomain = service.wjzSaveSqxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WJZCXYSQXX.equals(ywId)) {
                returnDomain = service.wjzCxYsqxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WJZQXSQ.equals(ywId)) {
                returnDomain = service.wjzQxsq(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPYJLXCHECKSQZG.equals(ywId)) {
                returnDomain = service.fpjylxCheckSqzg(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPYJLXCXNSRPZXX.equals(ywId)) {
                returnDomain = service.fpjylxCxNsrPzxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPYJLXCXNSRJCXX.equals(ywId)) {
                returnDomain = service.fpjylxCxNsrJcxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPYJLXCXNSRDYLGXX.equals(ywId)) {
                returnDomain = service.fpjylxCxNsrDylgxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPJYLXCXNSRFPYJXX.equals(ywId)) {
                returnDomain = service.fpjylxCxNsrFpyjxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPYJLXSAVESQXX.equals(ywId)) {
                returnDomain = service.fpjylxSaveSqxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPJYLXCXNSRSQSLXX.equals(ywId)) {
                returnDomain = service.fpjylxCxNsrSqslxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPJYLXQXSQ.equals(ywId)) {
                returnDomain = service.fpjylxQxsq(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPJYLXCXSQSLMXXX.equals(ywId)) {
                returnDomain = service.fpjylxCxSqslMxxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPDKCHECKSQZG.equals(ywId)) {
                returnDomain = service.fpdkCheckSqzg(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPDKCXGHFXX.equals(ywId)) {
                returnDomain = service.fpdkCxGhfxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPDKSAVESQXX.equals(ywId)) {
                returnDomain = service.fpdkSaveSqxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPDKCXNSRSQSLXX.equals(ywId)) {
                returnDomain = service.fpdkCxNsrSqslxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPDKQXSQ.equals(ywId)) {
                returnDomain = service.fpdkQxsq(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_FPDKCXSQSLMXXX.equals(ywId)) {
                returnDomain = service.fpdkCxSqslMxxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WYCXZXZCZXWJLIST.equals(ywId)) {
                returnDomain = service.wycxZxzcZxwjList(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WYCXZXZCZXWJMX.equals(ywId)) {
                returnDomain = service.wycxZxzcZxwjMx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WYCXZXZCJDLIST.equals(ywId)) {
                returnDomain = service.wycxZxzcZcjdList(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WYCXZXZCZCJDMX.equals(ywId)) {
                returnDomain = service.wycxZxzcZcjdMx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_WYCXNSRXYDJCX.equals(ywId)) {
                returnDomain = service.wycxNsrxydjcx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_GKDHCX.equals(ywId)) {
                returnDomain = service.gkdhCx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_ZGSWJGCX.equals(ywId)) {
                returnDomain = service.zgswjgCx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_ZGSWGYCX.equals(ywId)) {
                returnDomain = service.zgswgyCx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_STPXCXKCXX.equals(ywId)) {
                returnDomain = service.stpxCxKcxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_STPXCXKCXXXX.equals(ywId)) {
                returnDomain = service.stpxCxKcxxxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_STPXSAVEBMXX.equals(ywId)) {
                returnDomain = service.stpxSaveBmxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_STPXCXYBMKC.equals(ywId)) {
                returnDomain = service.stpxCxYbmkc(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_STPXSAVEYJYJ.equals(ywId)) {
                returnDomain = service.stpxSaveYjyj(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_STPXCXPJNR.equals(ywId)) {
                returnDomain = service.stpxCxPjnr(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_STPXSAVEPJNR.equals(ywId)) {
                returnDomain = service.stpxSavePjnr(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_YYFWCXZJXX.equals(ywId)) {
                returnDomain = service.yyfwCxZjxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_YYFWCXZJYYFBSJ.equals(ywId)) {
                returnDomain = service.yyfwCxZjyyfbsj(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_YYFWSAVEYYXX.equals(ywId)) {
                returnDomain = service.yyfwSaveYyxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_YYFWCXWYYYXX.equals(ywId)) {
                returnDomain = service.yyfwCxWyyyxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_YYFWQXYYFW.equals(ywId)) {
                returnDomain = service.yyfwQxyyfw(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_PUBGETBSDT.equals(ywId)) {
                returnDomain = service.pubGetBsdt(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_PUBPUTUSERMESS.equals(ywId)) {
                returnDomain = service.pubPutUserMess(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_PUBGETDMBXX.equals(ywId)) {
                returnDomain = service.pubGetDmbxx(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_QYMPXHFKPXXTQ.equals(ywId)) {
                returnDomain = service.qympXhfKpxxTq(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_QYMPGHFKPRSAVE.equals(ywId)) {
                returnDomain = service.qympGhfKprSave(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_QYMPGHFDJXXSAVE.equals(ywId)) {
                returnDomain = service.qympGhfDjxxSave(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_QYMPGHFDJXXJH.equals(ywId)) {
                returnDomain = service.qympGhfDjxxJh(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_QYMPXHFZC.equals(ywId)) {
                returnDomain = service.qympXhfzc(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_QYMPGHFKPRGET.equals(ywId)) {
                returnDomain = service.qympGhfKprGet(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_QYMPGHFDJXXGET.equals(ywId)) {
                returnDomain = service.qympGhfDjxxGet(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_QYMPGHFDJXXDEL.equals(ywId)) {
                returnDomain = service.qympGhfDjxxDel(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_QYMPGHFDJXXJHCLOSE.equals(ywId)) {
                returnDomain = service.qympGhfDjxxJhClose(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_GYWMJKJS.equals(ywId)) {
                returnDomain = service.gywmJkjs(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_GYWMZYZN.equals(ywId)) {
                returnDomain = service.gywmZyzn(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_GYWMLDZL.equals(ywId)) {
                returnDomain = service.gywmLdzl(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_GYWMJGSZ.equals(ywId)) {
                returnDomain = service.gywmJgsz(appDomain);
            } else if (AppServiceConstants.YWID_TAX_WXFWH_GYWMGZDT.equals(ywId)) {
                returnDomain = service.gywmGzdt(appDomain);
            }
            if (AppServiceConstants.YWID_TAX_WXFWH_WGHSQDLISTCX.equals(ywId)) {
                returnDomain = service.WghSqdListCx(appDomain);
            }
            if (AppServiceConstants.YWID_TAX_WXFWH_WGHSQDCX.equals(ywId)) {
                returnDomain = service.WghSqdCx(appDomain);
            }
            if (AppServiceConstants.YWID_TAX_WXFWH_WGHSQDSAVE.equals(ywId)) {
                returnDomain = service.WghSqdSave(appDomain);
            }
            if (AppServiceConstants.YWID_TAX_WXFWH_WGHSQDZF.equals(ywId)) {
                returnDomain = service.WghSqdZf(appDomain);
            }
            if (AppServiceConstants.YWID_TAX_WXFWH_WGHGRXXCX.equals(ywId)) {
                returnDomain = service.WghGrxxCx(appDomain);
            }
            if (AppServiceConstants.YWID_TAX_WXFWH_WGHGRXXSAVE.equals(ywId)) {
                returnDomain = service.WghGrxxSave(appDomain);
            }
            if (AppServiceConstants.YWID_TAX_WXFWH_WGHNSRBDXXCX.equals(ywId)) {
                returnDomain = service.WghNsrBdxxCx(appDomain);
            }
            if (AppServiceConstants.YWID_TAX_WXFWH_WGHNSRBDYZM.equals(ywId)) {
                returnDomain = service.WghNsrBdYzm(appDomain);
            }
            if (AppServiceConstants.YWID_TAX_WXFWH_WGHNSRBD.equals(ywId)) {
                returnDomain = service.WghNsrBd(appDomain);
            }
            if (AppServiceConstants.YWID_TAX_WXFWH_WGHNSRBDJC.equals(ywId)) {
                returnDomain = service.WghNsrBdJc(appDomain);
            }
            if (AppServiceConstants.YWID_TAX_WXFWH_WYCXNSRWSJDCX.equals(ywId)) {
                returnDomain = service.WycxNsrwsjdcx(appDomain);
            }
            if (returnDomain == null) {
                returnDomain = new TaxCommonReturnDomain();
                this.handleException(returnDomain, AppServiceConstants.TAX_APP_ERROR);
                return "doWxAppService";
            }
            ** GOTO lbl367
        }
        catch (Exception e) {
            try {
                if (e.getCause() == null) {
                    e.printStackTrace();
                    TaxWxfwhCommonAppAction._logger.error((Object)"WXFWH_EXCEPTION:", (Throwable)e);
                    errorDomain = this.handleException(e);
                } else {
                    TaxWxfwhCommonAppAction._logger.error((Object)"WXFWH_EXCEPTION:", (Throwable)e);
                    e.getCause().printStackTrace();
                    errorDomain = this.handleException((Exception)e.getCause());
                }
                this.handleServiceException(returnDomain, errorDomain.getCode(), errorDomain.getMess());
                return "doWxAppService";
lbl367:
                // 2 sources

                if (!AppServiceConstants.TAX_APP_SUCCESS.equals(returnDomain.getCode())) {
                    this.handleServiceException(returnDomain, returnDomain.getCode(), returnDomain.getMess());
                    return "doWxAppService";
                }
                try {
                    this.domain.setRetJson(HstJsonUtil.beanToJson(returnDomain));
                    return "doWxAppService";
                }
                catch (Exception v3) {
                    this.handleException(returnDomain, AppServiceConstants.TAX_BEAN_TO_JSON_ERROR);
                    return "doWxAppService";
                }
            }
            catch (Exception e) {
                errorDomain = this.handleException(e);
                this.handleException(returnDomain, errorDomain.getCode(), errorDomain.getMess());
            }
        }
        return "doWxAppService";
    }

    public String commonHandle(BaseAppServiceDomain appDomain) throws Exception {
        return AppServiceConstants.TAX_APP_SUCCESS;
    }

    public void handleException(TaxCommonReturnDomain returnDomain, String code) throws Exception {
        if (returnDomain == null) {
            returnDomain = new TaxCommonReturnDomain();
        }
        returnDomain.setCode(code);
        String message = this.handleExceptionMessage(returnDomain.getCode());
        returnDomain.setMess(message);
        this.domain.setRetJson(HstJsonUtil.beanToJson(returnDomain));
        if (WebConstants.LOG_KZ_ERRORS.equals("Y")) {
            _logger.error((Object)message);
        }
    }

    public void handleException(TaxCommonReturnDomain returnDomain, String code, String error) throws Exception {
        if (returnDomain == null) {
            returnDomain = new TaxCommonReturnDomain();
        }
        returnDomain.setCode(code);
        String message = this.handleExceptionMessage(returnDomain.getCode());
        if (HstToolsUtil.isNullOrEmpty(error)) {
            returnDomain.setMess(message);
        } else {
            returnDomain.setMess(String.valueOf(message) + error);
        }
        this.domain.setRetJson(HstJsonUtil.beanToJson(returnDomain));
    }

    public void handleServiceException(TaxCommonReturnDomain returnDomain, String code, String error) throws Exception {
        returnDomain.setCode(code);
        String message = this.handleExceptionMessage(returnDomain.getCode());
        if (HstToolsUtil.isNullOrEmpty(error)) {
            returnDomain.setMess(message);
        } else {
            returnDomain.setMess(String.valueOf(message) + error);
        }
        this.domain.setRetJson(HstJsonUtil.beanToJson(returnDomain));
    }

    public String handleExceptionMessage(String code) throws Exception {
        String message = "";
        if (HstToolsUtil.isNullOrEmpty(code)) {
            return message;
        }
        message = AppServiceConstants.TAX_CODE_MESS_MAP.containsKey(code) ? AppServiceConstants.TAX_CODE_MESS_MAP.get(code) : (code.length() <= 2 ? "" : "\u672a\u5b9a\u4e49\u7684\u9519\u8bef\uff01");
        return message;
    }

    @Override
    @Resource(name="taxWxfwhAppCommonServiceImp")
    public void setService(BaseBusinessService service) {
        super.setService(service);
    }

    @Override
    public TaxCommonAppServiceDomain getDomain() {
        if (this.domain == null) {
            this.domain = new TaxCommonAppServiceDomain();
        }
        return this.domain;
    }

    public void setDomain(TaxCommonAppServiceDomain domain) {
        this.domain = domain;
    }
}
