Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

Commit

Permalink
Fixed version checking bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Hao committed Feb 28, 2015
1 parent f27d1ab commit b151d44
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 6 deletions.
Binary file modified BeanfunLogin.rar
Binary file not shown.
13 changes: 13 additions & 0 deletions BeanfunLogin.userprefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Properties>
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.Workbench ActiveDocument="BeanfunLogin/Form1.LoginMethod.cs">
<Files>
<File FileName="BeanfunLogin/Form1.Connect.cs" Line="1" Column="1" />
<File FileName="BeanfunLogin/Form1.LoginMethod.cs" Line="19" Column="3" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
</Properties>
2 changes: 2 additions & 0 deletions BeanfunLogin/BeanfunClient.Login.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Net;
using System.Text.RegularExpressions;
using System.Collections.Specialized;
using System.Diagnostics;

namespace BeanfunLogin
{
Expand Down Expand Up @@ -321,6 +322,7 @@ public void Login(string id, string pass, int loginMethod, string securePass = n
if (response == "")
{ this.errmsg = "LoginNoResponse"; return; }
response = this.ResponseUri.ToString();
Debug.WriteLine(response);
Regex regex = new Regex("skey=(.*)&display");
if (!regex.IsMatch(response))
{ this.errmsg = "LoginNoSkey"; return; }
Expand Down
3 changes: 2 additions & 1 deletion BeanfunLogin/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ public void CheckForUpdate()
{
try
{
string response = this.bfClient.DownloadString("https://github.com/kevin940726/BeanfunLogin");
BeanfunClient bf = new BeanfunClient();
string response = bf.DownloadString("https://github.com/kevin940726/BeanfunLogin");
Regex regex = new Regex("Current Version (\\d\\.\\d\\.\\d)");
if (!regex.IsMatch(response))
return;
Expand Down
4 changes: 2 additions & 2 deletions BeanfunLogin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
// 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
// 指定為預設值:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.5.1.0")]
[assembly: AssemblyFileVersion("1.5.1.0")]
[assembly: AssemblyVersion("1.5.2.0")]
[assembly: AssemblyFileVersion("1.5.2.0")]
[assembly: NeutralResourcesLanguageAttribute("zh-Hant")]
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ New Beanfun MapleStory OTP login.
========================
Login to Beanfun and MapleStory without browsers, using 3DES to encrypt the storing password. Use DES to decrypt and get the OTP.

[Download](https://github.com/kevin940726/BeanfunLogin/raw/master/BeanfunLogin.rar): Current Version 1.5.1.
[Download](https://github.com/kevin940726/BeanfunLogin/raw/master/BeanfunLogin.rar): Current Version 1.5.2.

========================
### Version Log

Version 1.5.2 (Current)
- Fixed version check bug.

Version 1.5.1 (Current)
- Add version checking.

Expand Down
4 changes: 2 additions & 2 deletions zh-TW.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## 新楓之谷Beanfun登入器

[**程式下載**](../../raw/master/BeanfunLogin.rar) - Version 1.5.1
[**程式下載**](../../raw/master/BeanfunLogin.rar) - Version 1.5.2

此版本更新
* 加入檢查更新的功能
* 修正檢查更新的錯誤

### 目錄
* [程式介紹](#程式介紹)
Expand Down

0 comments on commit b151d44

Please sign in to comment.