Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!EX_Admin.Power("appconfig_edit", "APP设置"))
            {
                PageReturnMsg = PageNoPowerMsg();
            }

            val                       = B_BaseConfig.Get("app_menu");
            app_name                  = B_BaseConfig.Get("app_name");
            app_lefticon              = B_BaseConfig.Get("app_lefticon");
            app_lefturl               = B_BaseConfig.Get("app_lefturl");
            app_righticon             = B_BaseConfig.Get("app_righticon");
            app_righturl              = B_BaseConfig.Get("app_righturl");
            app_toplogo               = B_BaseConfig.Get("app_toplogo");
            app_toplogourl            = B_BaseConfig.Get("app_toplogourl");
            app_topbackground         = B_BaseConfig.Get("app_topbackground");
            app_topcolor              = B_BaseConfig.Get("app_topcolor");
            app_topline               = B_BaseConfig.Get("app_topline");
            app_bottombackground      = B_BaseConfig.Get("app_bottombackground");
            app_bottomcolor           = B_BaseConfig.Get("app_bottomcolor");
            app_bottomline            = B_BaseConfig.Get("app_bottomline");
            app_bottomcount           = B_BaseConfig.Get("app_bottomcount");
            app_startimage            = B_BaseConfig.Get("app_startimage");
            app_starturl              = B_BaseConfig.Get("app_starturl");
            app_waittimes             = B_BaseConfig.Get("app_waittimes");
            app_version               = B_BaseConfig.Get("app_version");
            app_downloadurl           = B_BaseConfig.Get("app_downloadurl");
            app_share                 = B_BaseConfig.Get("app_share");
            app_share_wechat_key      = B_BaseConfig.Get("app_share_wechat_key");
            app_share_wechat_secret   = B_BaseConfig.Get("app_share_wechat_secret");
            app_share_qq_key          = B_BaseConfig.Get("app_share_qq_key");
            app_share_qq_secret       = B_BaseConfig.Get("app_share_qq_secret");
            app_share_dingtalk_key    = B_BaseConfig.Get("app_share_dingtalk_key");
            app_share_dingtalk_secret = B_BaseConfig.Get("app_share_dingtalk_secret");
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!EX_Admin.Power("appconfig_edit", "APP设置"))
            {
                PageReturnMsg = PageNoPowerMsg();
            }

            val                  = B_BaseConfig.Get("app_menu");
            app_name             = B_BaseConfig.Get("app_name");
            app_lefticon         = B_BaseConfig.Get("app_lefticon");
            app_lefturl          = B_BaseConfig.Get("app_lefturl");
            app_righticon        = B_BaseConfig.Get("app_righticon");
            app_righturl         = B_BaseConfig.Get("app_righturl");
            app_toplogo          = B_BaseConfig.Get("app_toplogo");
            app_toplogourl       = B_BaseConfig.Get("app_toplogourl");
            app_topbackground    = B_BaseConfig.Get("app_topbackground");
            app_topcolor         = B_BaseConfig.Get("app_topcolor");
            app_topline          = B_BaseConfig.Get("app_topline");
            app_bottombackground = B_BaseConfig.Get("app_bottombackground");
            app_bottomcolor      = B_BaseConfig.Get("app_bottomcolor");
            app_bottomline       = B_BaseConfig.Get("app_bottomline");
            app_startimage       = B_BaseConfig.Get("app_startimage");
            app_starturl         = B_BaseConfig.Get("app_starturl");
            app_waittimes        = B_BaseConfig.Get("app_waittimes");
        }
Exemplo n.º 3
0
        /// <summary>
        /// 获取App菜单
        /// </summary>
        public void AppMenus()
        {
            string lang = RequestTool.RequestSafeString("lang", "CN");
            string val  = B_BaseConfig.Get("app_menu");

            val = Language.Content(val, lang);
            JavaScriptSerializer     jss   = new JavaScriptSerializer();
            List <BaseConfigAppMenu> menus = B_BaseConfig.AppMenu(val);

            if (menus != null)
            {
                for (int i = 0; i < menus.Count; i++)
                {
                    menus[i].Icon = "http://" + RequestTool.GetRequestDomain() + menus[i].Icon;
                }
            }
            val = jss.Serialize(menus);
            LBAPI api = new LBAPI();

            api.data = val;
            api.msg  = "OK";
            string json = jss.Serialize(api);

            Response.Write(json);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 获取App配置
        /// </summary>
        public void AppConfig()
        {
            string lang                 = RequestTool.RequestSafeString("lang", "CN");
            string app_name             = Language.Content(B_BaseConfig.Get("app_name"), lang);
            string app_lefticon         = "http://" + RequestTool.GetRequestDomain() + Language.Content(B_BaseConfig.Get("app_lefticon"), lang);
            string app_lefturl          = Language.Content(B_BaseConfig.Get("app_lefturl"), lang);
            string app_righticon        = "http://" + RequestTool.GetRequestDomain() + Language.Content(B_BaseConfig.Get("app_righticon"), lang);
            string app_righturl         = Language.Content(B_BaseConfig.Get("app_righturl"), lang);
            string app_toplogo          = "http://" + RequestTool.GetRequestDomain() + Language.Content(B_BaseConfig.Get("app_toplogo"), lang);
            string app_toplogourl       = Language.Content(B_BaseConfig.Get("app_toplogourl"), lang);
            string app_topbackground    = Language.Content(B_BaseConfig.Get("app_topbackground"), lang);
            string app_topcolor         = Language.Content(B_BaseConfig.Get("app_topcolor"), lang);
            string app_topline          = Language.Content(B_BaseConfig.Get("app_topline"), lang);
            string app_bottombackground = Language.Content(B_BaseConfig.Get("app_bottombackground"), lang);
            string app_bottomcolor      = Language.Content(B_BaseConfig.Get("app_bottomcolor"), lang);
            string app_bottomline       = Language.Content(B_BaseConfig.Get("app_bottomline"), lang);
            string app_startimage       = Language.Content(B_BaseConfig.Get("app_startimage"), lang);
            string app_starturl         = Language.Content(B_BaseConfig.Get("app_starturl"), lang);
            string app_waittimes        = Language.Content(B_BaseConfig.Get("app_waittimes"), lang);
            string app_updatetime       = B_BaseConfig.Get("app_updatetime");
            string val = "{\"app_name\":\"" + app_name + "\",\"app_toplogo\":\"" + app_toplogo + "\",\"app_toplogourl\":\"" + app_toplogourl + "\",\"app_lefticon\":\"" + app_lefticon + "\",\"app_lefturl\":\"" + app_lefturl + "\",\"app_righticon\":\"" + app_righticon + "\",\"app_righturl\":\"" + app_righturl + "\",\"app_topbackground\":\"" + app_topbackground + "\",\"app_topline\":\"" + app_topline + "\",\"app_topcolor\":\"" + app_topcolor + "\",\"app_bottombackground\":\"" + app_bottombackground + "\",\"app_bottomline\":\"" + app_bottomline + "\",\"app_bottomcolor\":\"" + app_bottomcolor + "\",\"app_startimage\":\"" + app_startimage + "\",\"app_starturl\":\"" + app_starturl + "\",\"app_waittimes\":\"" + app_waittimes + "\",\"updatetime\":\"" + app_updatetime + "\"}";
            JavaScriptSerializer jss = new JavaScriptSerializer();
            LBAPI api = new LBAPI();

            api.data = val;
            api.msg  = "OK";
            string json = jss.Serialize(api);

            Response.Write(json);
        }
Exemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!EX_Admin.Power("tongbu_taobao", "淘宝同步"))
            {
                PageNoPower();
            }


            shopnick = B_BaseConfig.Get("platform_taobao_shopnick");

            dateFrom = System.DateTime.Now.AddMonths(-1).ToString("yyyy-MM-dd HH:mm:ss");
            dateTo   = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        }
Exemplo n.º 6
0
        /// <summary>
        /// 获取App配置
        /// </summary>
        public void AppConfig()
        {
            string lang                      = RequestTool.RequestSafeString("lang", "CN");
            string app_name                  = Language.Content(B_BaseConfig.Get("app_name"), lang);
            string app_lefticon              = "http://" + RequestTool.GetRequestDomain() + Language.Content(B_BaseConfig.Get("app_lefticon"), lang);
            string app_lefturl               = Language.Content(B_BaseConfig.Get("app_lefturl"), lang);
            string app_righticon             = "http://" + RequestTool.GetRequestDomain() + Language.Content(B_BaseConfig.Get("app_righticon"), lang);
            string app_righturl              = Language.Content(B_BaseConfig.Get("app_righturl"), lang);
            string app_toplogo               = "http://" + RequestTool.GetRequestDomain() + Language.Content(B_BaseConfig.Get("app_toplogo"), lang);
            string app_toplogourl            = Language.Content(B_BaseConfig.Get("app_toplogourl"), lang);
            string app_topbackground         = Language.Content(B_BaseConfig.Get("app_topbackground"), lang);
            string app_topcolor              = Language.Content(B_BaseConfig.Get("app_topcolor"), lang);
            string app_topline               = Language.Content(B_BaseConfig.Get("app_topline"), lang);
            string app_bottombackground      = Language.Content(B_BaseConfig.Get("app_bottombackground"), lang);
            string app_bottomcolor           = Language.Content(B_BaseConfig.Get("app_bottomcolor"), lang);
            string app_bottomline            = Language.Content(B_BaseConfig.Get("app_bottomline"), lang);
            string app_bottomcount           = Language.Content(B_BaseConfig.Get("app_bottomcount"), lang);
            string app_startimage            = Language.Content(B_BaseConfig.Get("app_startimage"), lang);
            string app_starturl              = Language.Content(B_BaseConfig.Get("app_starturl"), lang);
            string app_waittimes             = Language.Content(B_BaseConfig.Get("app_waittimes"), lang);
            string app_version               = Language.Content(B_BaseConfig.Get("app_version"), lang);
            string app_downloadurl           = Language.Content(B_BaseConfig.Get("app_downloadurl"), lang);
            string app_updatetime            = B_BaseConfig.Get("app_updatetime");
            string app_share                 = B_BaseConfig.Get("app_share");
            string app_share_qq_key          = B_BaseConfig.Get("app_share_qq_key");
            string app_share_qq_secret       = B_BaseConfig.Get("app_share_qq_secret");
            string app_share_wechat_key      = B_BaseConfig.Get("app_share_wechat_key");
            string app_share_wechat_secret   = B_BaseConfig.Get("app_share_wechat_secret");
            string app_share_dingtalk_key    = B_BaseConfig.Get("app_share_dingtalk_key");
            string app_share_dingtalk_secret = B_BaseConfig.Get("app_share_dingtalk_secret");
            string val = "{\"app_name\":\"" + app_name + "\",\"app_toplogo\":\"" + app_toplogo + "\",\"app_toplogourl\":\"" + app_toplogourl + "\",\"app_lefticon\":\"" + app_lefticon + "\",\"app_lefturl\":\"" + app_lefturl + "\",\"app_righticon\":\"" + app_righticon + "\",\"app_righturl\":\"" + app_righturl + "\",\"app_topbackground\":\"" + app_topbackground + "\",\"app_topline\":\"" + app_topline + "\",\"app_topcolor\":\"" + app_topcolor + "\",\"app_bottombackground\":\"" + app_bottombackground + "\",\"app_bottomline\":\"" + app_bottomline + "\",\"app_bottomcolor\":\"" + app_bottomcolor + "\",\"app_bottomcount\":\"" + app_bottomcount + "\",\"app_startimage\":\"" + app_startimage + "\",\"app_starturl\":\"" + app_starturl + "\",\"app_waittimes\":\"" + app_waittimes + "\",\"app_version\":\"" + app_version + "\",\"app_downloadurl\":\"" + app_downloadurl + "\",\"updatetime\":\"" + app_updatetime + "\",\"share_settings\":{\"app_share\":\"" + app_share + "\",\"qq\":{\"key\":\"" + app_share_qq_key + "\",\"secret\":\"" + app_share_qq_secret + "\"},\"wechat\":{\"key\":\"" + app_share_wechat_key + "\",\"secret\":\"" + app_share_wechat_secret + "\"},\"dingtalk\":{\"key\":\"" + app_share_dingtalk_key + "\",\"secret\":\"" + app_share_dingtalk_secret + "\"}}}";
            JavaScriptSerializer jss = new JavaScriptSerializer();
            LBAPI api = new LBAPI();

            api.data = val;
            api.msg  = "OK";
            string json = jss.Serialize(api);

            Response.Write(json);
        }