예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Power("supplier_smsconfig", "手机短信设置"))
            {
                PageReturnMsg = PageNoPowerMsg();
            }

            B_BaseConfig_Supplier bconfig = new B_BaseConfig_Supplier();

            //model = bconfig.LoadConfig();
            model        = ShopCache.GetBaseConfig_Supplier(CurrentSupplier.id);
            SMS_password = model.SMS_password;
            try
            {
                if (model.SMS_server == "0" && model.SMS_state == "1")
                {
                    smsClient = new SMSClient("sms.todaynic.com", Convert.ToInt32(model.SMS_serverport), model.SMS_user, model.SMS_password);
                    account   = smsClient.getBalance();
                }
            }
            catch
            {
            }
            if (SMS_password != "")
            {
                SMS_password = "******";
            }
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Power("supplier_emailconfig", "邮件设置"))
            {
                PageReturnMsg = PageNoPowerMsg();
            }

            B_BaseConfig_Supplier bconfig = new B_BaseConfig_Supplier();

            //model = bconfig.LoadConfig();
            model    = ShopCache.GetBaseConfig_Supplier(CurrentSupplier.id);
            password = model.MailPassWord;
            if (password != "")
            {
                password = "******";
            }
        }