微信app采集

This commit is contained in:
wule committed 2026-03-26 21:34:59 +08:00
1 parent 52220daa8b
commit 2f61dc1cdd
67 files changed
+6197 -1118

No files matched your search

+5 -1
View File
@@ -27,7 +27,7 @@ namespace AllBase
/// <summary>
/// 版本ID
/// </summary>
public static int VersionCount = 929;
public static int VersionCount = 932;
//public static int VersionCount = 613;
/// <summary>
@@ -746,6 +746,10 @@ namespace AllBase
{
return LoginApiUrl + "/bxx_" + file + "?obj=" + BaseClass.MainPath + "/bxx_" + file;
}
public static string BuildWXObjString(string file, bool IsLoginDef = false)
{
return LoginApiUrl + "/wxxd_" + file + "?obj=" + BaseClass.MainPath + "/wxxd_" + file;
}
}
public class KeyValueBase
+1 -1
View File
@@ -754,7 +754,7 @@ namespace AllBase
rst += htmlTmp.Substring(0, 1);
if (htmlTmp.StartsWith("["))
braceNum++;
else if (htmlTmp.StartsWith("}"))
else if (htmlTmp.StartsWith("]"))
braceNum--;
htmlTmp = htmlTmp.Substring(1);
if (braceNum == 0)
+12 -7
View File
@@ -46,13 +46,18 @@ namespace AllBase
public static T DeserializeJsonToObjectNullable<T>(string json) where T : class
{
if (string.IsNullOrEmpty(json))
return json as T;
JsonSerializer serializer = new JsonSerializer();
StringReader sr = new StringReader(json);
object o = serializer.Deserialize(new JsonTextReader(sr), typeof(T));
T t = o as T;
return t;
try
{
JsonSerializer serializer = new JsonSerializer();
StringReader sr = new StringReader(json);
object o = serializer.Deserialize(new JsonTextReader(sr), typeof(T));
T t = o as T;
return t;
}
catch
{
return null;
}
}
public static JObject JObjectParse(string json)
@@ -43,6 +43,7 @@ namespace AllBase.Model.Result
public string change_cat_name { get; set; }
public string wx_cat_leaf { get; set; }
public string ext_code { get; set; }
public string secret_spu_id { get; set; }
public string product_name { get; set; }
public string main_img { get; set; }
public string spu_id { get; set; }
@@ -8,22 +8,26 @@ namespace AllBase.Model.Result.WXResult
{
public class WXClientProductInfoLite
{
public string product_id { get; set; } // "10000066623849",
public string appid { get; set; } // "wx62cca7dc2354b687"
public wx_client_prod_key product_key { get; set; }
public wx_client_prod_info info { get; set; }
public List<WXProductSkuInfoLite> productSkus { get; set; }
}
public class wx_client_prod_info
{
public string title { get; set; } // "2026新款情侣棒球帽立体C字母刺绣显脸小时尚百搭休闲韩版大头围鸭舌帽",
public string sub_title { get; set; } // "2025新款C字母立体刺绣棒球帽",
public List<wx_client_category> category { get; set; } // { "cat_id": "6093" }
/// <summary>
/// 主图列表
/// </summary>
public List<string> head_img { get; set; } // ["https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/64f0a5760000484b151963b6bb81bc1e000000a000004f50", ...]
public List<wx_client_category> category { get; set; } // { "cat_id": "6093" }
/// <summary>
/// 商品详情(图)
/// </summary>
public wx_client_detail detail { get; set; }
public wx_client_prod_detail detail { get; set; }
/// <summary>
/// 商品属性
/// </summary>
@@ -32,16 +36,47 @@ namespace AllBase.Model.Result.WXResult
/// 品牌id
/// </summary>
public string brand_id { get; set; } // "10250056"
public wx_client_sku_id_list sku_id_list { get; set; }
public wx_sku sku_list { get; set; }
public List<wx_client_product_sale_attr> product_sale_attrs { get; set; }
public List<WXProductSkuInfoLite> productSkus { get; set; }
public string total_sold_num { get; set; }
/// <summary>
/// 总销量
/// </summary>
public string total_sold_num { get; set; } // "46631"
public wx_client_service_desc service_desc { get; set; }
public wx_client_express_info express_info { get; set; }
public List<wx_client_head_video_info> headVideoInfo { get; set; }
public object afterSaleInfo { get; set; }
public List<object> deliveryExpressFee { get; set; }
public List<object> templateInfo { get; set; }
public string spuCode { get; set; }
}
public class wx_client_express_info
{
public string template_id { get; set; } // "243911370004",
public string product_id { get; set; } // "10000066623849",
public int? piece { get; set; } // 1,
public int? weight { get; set; } // 0,
public int? price { get; set; } // 5980
}
public class wx_client_service_desc
{
public string desc { get; set; } // "(麻烦阿姐阿哥们,带纸箱邮寄过去的一定记得用纸盒邮寄回,袋子邮寄的,带袋子寄回,拒收到付件,拒收自提件)"
}
public class wx_client_sku_id_list
{
public List<string> sku_ids { get; set; } //[ "1597139289", "1597121531", "1597127451", "1597113890", "1597119654" ]
}
public class wx_client_prod_key
{
public string product_id { get; set; } // "10000066623849",
public string appid { get; set; } // "wx62cca7dc2354b687"
}
public class wx_client_head_video_info
@@ -90,12 +125,14 @@ namespace AllBase.Model.Result.WXResult
public int? origin_price { get; set; } // 5980,
}
public class wx_client_detail
public class wx_client_prod_detail
{
/// <summary>
/// 详情图
/// </summary>
public List<string> detail_img { get; set; } // ["https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/64f21d2b00009e7a156bc7cd6d63b01e000000a000004f50", ...]
public List<string> detailImg { get; set; } // ["https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/64f21d2b00009e7a156bc7cd6d63b01e000000a000004f50", ...]
public List<string> detail_img_real { get { return detail_img == null ? detailImg : detail_img; } }
public string desc { get; set; } // "纯萃美2025新款情侣棒球帽立体C字母刺绣显脸小时尚百搭休闲网红款韩版大头围硬顶鸭舌帽男女同款"
}
@@ -106,7 +143,9 @@ namespace AllBase.Model.Result.WXResult
public class wx_client_category
{
public string catIdStr { get { return string.IsNullOrEmpty(cat_id) ? catId : cat_id; } } // "0",
public string cat_id { get; set; } // "0",
public string catId { get; set; } // "0",
public string name { get; set; } // "主要材质", "C字母刺绣"
public string f_cat_id { get; set; } // "0",
public string brand_cat { get; set; } // "0",