Foxtable(狐表)用户栏目专家坐堂 → [求助]base-64字符串无效字符?


  共有3750人关注过本帖平板打印复制链接

主题:[求助]base-64字符串无效字符?

帅哥哟,离线,有人找我吗?
jnletao
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:四尾狐 帖子:936 积分:7725 威望:0 精华:0 注册:2013/7/7 13:37:00
[求助]base-64字符串无效字符?  发帖心情 Post By:2013/12/24 19:31:00 [只看该作者]

base-64字符串无效字符!

此主题相关图片如下:360软件小助手截图20131224192714.jpg
按此在新窗口浏览图片
 下载信息  [文件大小:   下载次数: ]
点击浏览该文件:启动项目.zip

BeforeOpenProject

Dim ipFile As String = FileSys.GetParentPath(e.File) & "\dbpath.ini"
If FileSys.FileExists(ipFile) = False Then
Dim FileName As String = FileSys.GetParentPath(e.File) & "\dbpath.ini"
Dim Info As String
If InputValue(Info, "设置","请在此处粘贴安装信息:") Then
'这时要对info解密分析信息是否正确
Dim Val As String = DecryptText(Info,"zhang","博讯科技#") '解密,两个密钥必须和加密的时候相同
If Val IsNot Nothing AndAlso Val.split("※").Length = 2 Then
FileSys.WriteAllText(FileName, Info, False,Encoding.UTF8)
Else
e.Cancel = True
e.HideSplashForm = True
MessageBox.show("密钥不对,设置初始信息失败,无法打开此项目.")
End If
Else
e.Cancel = True
e.HideSplashForm = True
MessageBox.show("您取消了安装信息设置,请在下次启动时设置.")
End If
Else
If Filesys.FileExists(ipFile) Then
Dim ip As String = FileSys.ReadAllText(ipFile,Encoding.UTF8)
'这时要对info解密分析信息是否正确
Dim Val As String = DecryptText(ip,"zhang","博讯科技#") '解密,两个密钥必须和加密的时候相同
Dim Values() As String = Val.split("※")
If Val IsNot Nothing AndAlso Values.Length = 2 Then
'网络不通,就不打开项目:
If Network.Ping(Values(0)) = False Then
e.Cancel = True
e.HideSplashForm = True
MessageBox.Show("无法连接服务器,软件启动失败!请稍候重试!")
End If
Else
e.Cancel = True
e.HideSplashForm = True
MessageBox.show("密钥发生了变化,设置初始信息失败,无法打开此项目.")
End If
'e.ConnectionString = e.ConnectionString.Replace("119.119.120.120",ip)将来在这里先pingIP是否通
End If
End If



 回到顶部