private bool FreshQuick(_GoodsFreshStr goodInfo, GoodsFresh objFresh) { string strError = ""; goodInfo.strFreshStatus = "正在登录..."; ShowLogString(goodInfo.strFreshStatus + goodInfo.strAcc); ShowFreshInfo(goodInfo); bool bRet = Login(goodInfo.webPost, goodInfo.strAcc, goodInfo.strPwd, ref strError, false); if (!bRet) { if (strError.IndexOf("为保证账户安全,请填写验证码") < 0) { ShowLogString("为保证账户安全,请填写验证码"); goodInfo.strFreshStatus = "登录失败:" + strError; ShowFreshInfo(goodInfo); if(m_iFreshType ==1 ) WriteLogModifyPwd(string.Format("{0} {1} {2} {3}", goodInfo.strAcc, goodInfo.strPwd, goodInfo.strNewPwd, goodInfo.strFreshStatus), false); return false; } bRet = Login(goodInfo.webPost, goodInfo.strAcc, goodInfo.strPwd, ref strError, true); if (!bRet) { goodInfo.strFreshStatus = "登录失败:" + strError; ShowLogString(goodInfo.strFreshStatus); ShowFreshInfo(goodInfo); if (m_iFreshType == 1) WriteLogModifyPwd(string.Format("{0} {1} {2} {3}", goodInfo.strAcc, goodInfo.strPwd, goodInfo.strNewPwd, goodInfo.strFreshStatus), false); return false; } } if (m_iFreshType == 1) // 修改密码 { goodInfo.strFreshStatus = "正在修改密码..."; ShowLogString(goodInfo.strFreshStatus + goodInfo.strAcc); ShowFreshInfo(goodInfo); if (objFresh.ModifyPwd(goodInfo)) { goodInfo.strFreshStatus = "修改密码成功"; ShowFreshInfo(goodInfo); ShowLogString(goodInfo.strFreshStatus + goodInfo.strAcc); WriteLogModifyPwd(string.Format("{0} {1} {2}", goodInfo.strAcc, goodInfo.strPwd, goodInfo.strNewPwd), true); return true; } else { ShowLogString(goodInfo.strFreshStatus); WriteLogModifyPwd(string.Format("{0} {1} {2} {3}", goodInfo.strAcc, goodInfo.strPwd, goodInfo.strNewPwd, goodInfo.strFreshStatus), false); } return false; } return GetOrderInfo(goodInfo); }