using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Windows.Forms; using AllBase; namespace _29WxOrder { [System.Runtime.InteropServices.ComVisible(true)] public class JsEvent { public Object MyParam { get; set; } public Object GetMyParam() { if (MyParam.GetType().IsArray) { String s = "["; Object[] o = (Object[])MyParam; for (int i = 0; i < o.Length; i++) { s += "'" + o[i].ToString() + "'"; if (i < (o.Length - 1)) { s += ","; } } s += "]"; return s; } return MyParam; } public void openMyPc(String dir) { if (string.IsNullOrEmpty(dir) || dir.Length < 2 || !dir.Contains(",")) return; string act = dir.Substring(0, 1); string value = dir.Substring(2); if (act == "1") { BaseClass.ChromeUserAgent = value; return; } if (act == "2") { string html = value; string shopName = BaseRegex.GetMatchRegexString(ref html, @"([^<]+?)"); if (string.IsNullOrEmpty(shopName)) return; return; } if (act == "3") { BaseClass.ChromeChatHtml = value; return; } if (act == "4")//获取用户信息 { if (BaseClass.MainCatId > 0) return; string url = "http://mms.pinduoduo.com/userinfo"; string refere = "http://mms.pinduoduo.com/Pdd.html"; return; } //====淘宝登录===== if (act == "5") { string html = value; } } public static string ChatHtml = ""; } }