Beispiel #1
0
    private void SaveWxPtInfo()
    {
        Model.CurrentMerModel cm    = BLL.MerchantBLL.CurrentModel();
        Model.WxPtInfoModel   model = new WxPtInfoModel();
        model.WxPtId = ReDecimal("WxPtId", 0);
        BLL.WxBLL bll = new BLL.WxBLL();
        if (model.WxPtId == 0)
        {
        }
        else
        {
            model = bll.GetWxPtInfoModel(model.WxPtId);
        }

        model.WxPtCode = ReStr("WxPtCode");

        model.WxPtName   = ReStr("WxPtName");
        model.ReUrl      = ReStr("ReUrl");
        model.ReToken    = ReStr("ReToken");
        model.AppId      = ReStr("AppId");
        model.AppSecret  = ReStr("AppSecret");
        model.MerId      = cm.CurrentMerId;
        model.WxPtTypeId = ReInt("WxPtTypeId");
        model.YuanShiId  = ReStr("YuanShiId");
        model.ArticleUrl = ReStr("ArticleUrl", "");
        model.ProUrl     = ReStr("ProUrl", "");
        model.TieZiUrl   = ReStr("TieZiUrl", "");
        bll.SaveWxPtInfo(model);
        ReTrue();
    }