1更新cef版本到138 2其他一些小改动
This commit is contained in:
1 parent
800ccb857d
commit
c5be88568c
161 files changed
+1670
-6757
No files matched your search
@@ -5,8 +5,6 @@ using System.Windows.Forms;
|
||||
using AllBase;
|
||||
using Work.CollectClass;
|
||||
using System.IO;
|
||||
using JavaScriptEngineSwitcher.V8;
|
||||
using JavaScriptEngineSwitcher.Core;
|
||||
|
||||
namespace Work.Api
|
||||
{
|
||||
@@ -175,11 +173,11 @@ namespace Work.Api
|
||||
//string fun2 = string.Format(@"getEncode('{0}','{1}','{2}')", strTime, strToken, strNumber);
|
||||
//string codex = ExecuteScript(fun2, strContent);
|
||||
string codex = "";
|
||||
using (IJsEngine jsEngine = new V8JsEngine())
|
||||
{
|
||||
jsEngine.Execute(GetProductOnlineClass.JsCodeGetSms);
|
||||
codex = jsEngine.CallFunction("aaa", "").ToString();
|
||||
}
|
||||
//using (IJsEngine jsEngine = new V8JsEngine())
|
||||
//{
|
||||
// jsEngine.Execute(GetProductOnlineClass.JsCodeGetSms);
|
||||
// codex = jsEngine.CallFunction("aaa", "").ToString();
|
||||
//}
|
||||
|
||||
string dataUp = "{\"cat_id\":" + r.cat_id + ",\"crawlerInfo\":\"" + codex + "\",\"goods_type\":\"1\",\"country\":\"\",\"country_id\":\"\"," +
|
||||
"\"warehouse\":\"\",\"customs\":\"\",\"is_customs\":0,\"is_pre_sale\":0,\"pre_sale_time\":\"\"," +
|
||||
@@ -259,11 +257,11 @@ namespace Work.Api
|
||||
html = GetPostTaobaoHtml.GetJsonPost(url, refere, true, "", Shop.Cookies);
|
||||
|
||||
url = "https://mms.pinduoduo.com/glide/v2/mms/edit/commit/submit";
|
||||
using (IJsEngine jsEngine = new V8JsEngine())
|
||||
{
|
||||
jsEngine.Execute(GetProductOnlineClass.JsCodeGetSms);
|
||||
codex = jsEngine.CallFunction("aaa", "").ToString();
|
||||
}
|
||||
//using (IJsEngine jsEngine = new V8JsEngine())
|
||||
//{
|
||||
// jsEngine.Execute(GetProductOnlineClass.JsCodeGetSms);
|
||||
// codex = jsEngine.CallFunction("aaa", "").ToString();
|
||||
//}
|
||||
data = "{\"goods_commit_id\":\"" + pinId + "\",\"crawlerInfo\":\"" + codex + "\"}";
|
||||
html = GetPostTaobaoHtml.UploadTaobaoPost(url, refere, true, data, Shop.Cookies);
|
||||
error_msg = BaseRegex.GetStringJson(ref html, "error_msg");
|
||||
|
||||
Reference in new issue
Block a user