public void GetConfigOfSms() { var smsName = ConfigHelper.GetValue("jikeSmsName"); var SmsPwd = ConfigHelper.GetValue("jikeSmsPwd"); for (int i = 0; i < 3; i++) { if (!SmsApi.logined) { SmsApi.logined = SmsApi.Login(smsName, SmsPwd); // SmsApi.Login } } }
public static void GetConfigOfSms() { var configstrlist = PwBusiness.FileHelper.read(Application.StartupPath + "//config//shoujiconfig.txt"); GlobalVar.smsName = configstrlist[0]; GlobalVar.SmsPwd = configstrlist[1]; for (int i = 0; i < 3; i++) { if (!SmsApi.logined) { SmsApi.logined = SmsApi.Login(GlobalVar.smsName, GlobalVar.SmsPwd); // SmsApi.Login } } }