|
@@ -9,6 +9,7 @@ using System.Collections.Generic;
|
|
|
using System.Net;
|
|
|
using System.Text;
|
|
|
using System.IO;
|
|
|
+using System.Web;
|
|
|
|
|
|
namespace UAS_Web
|
|
|
{
|
|
@@ -47,7 +48,7 @@ namespace UAS_Web
|
|
|
{
|
|
|
if (e.Url.Contains("vendbarcode/login.jsp") || e.Url.Contains("relogin.action"))
|
|
|
{
|
|
|
- e.Browser.FocusedFrame.EvaluateScriptAsync("document.getElementById('username').value = '"+BaseUtil.GetCacheData("username") +"';document.getElementById('password').value = '"+ BaseUtil.GetCacheData("password") + "';document.getElementById('master').innerHTML = '"+ BaseUtil.GetCacheData("master") + "';document.getElementById('master1').value = '"+ BaseUtil.GetCacheData("master1") + "';", new TimeSpan(600000));
|
|
|
+ e.Browser.FocusedFrame.EvaluateScriptAsync("document.getElementById('username').value = '"+BaseUtil.GetCacheData("username") +"';document.getElementById('password').value = '"+ BaseUtil.GetCacheData("password") + "';document.getElementById('master').innerHTML = '"+ BaseUtil.GetCacheData("master_fun") + "';document.getElementById('master1').value = '"+ BaseUtil.GetCacheData("master_name") + "';", new TimeSpan(600000));
|
|
|
}
|
|
|
var cookiemanager = CefSharp.Cef.GetGlobalCookieManager();
|
|
|
CookieVisitor visitor = new CookieVisitor();
|
|
@@ -60,13 +61,13 @@ namespace UAS_Web
|
|
|
if (obj.Path.Contains("jsps/vendbarcode"))
|
|
|
{
|
|
|
if (obj.Name == "username")
|
|
|
- BaseUtil.SetCacheData("username", obj.Value);
|
|
|
+ BaseUtil.SetCacheData("username", HttpUtility.UrlDecode(obj.Value));
|
|
|
if (obj.Name == "password")
|
|
|
- BaseUtil.SetCacheData("password", obj.Value);
|
|
|
+ BaseUtil.SetCacheData("password", HttpUtility.UrlDecode(obj.Value));
|
|
|
if (obj.Name == "master_name")
|
|
|
- BaseUtil.SetCacheData("master_name", obj.Value);
|
|
|
+ BaseUtil.SetCacheData("master_name", HttpUtility.UrlDecode(obj.Value));
|
|
|
if (obj.Name == "master_fun")
|
|
|
- BaseUtil.SetCacheData("master_fun", obj.Value);
|
|
|
+ BaseUtil.SetCacheData("master_fun", HttpUtility.UrlDecode(obj.Value));
|
|
|
}
|
|
|
}
|
|
|
|