微信小店图片盗链逻辑
This commit is contained in:
1 parent
50ae0c3ce4
commit
12f2037e54
12 files changed
+512
-366
No files matched your search
@@ -138,6 +138,7 @@ namespace KJD_Web.BLL.BXX
|
||||
string send_to_out_server = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "send_to_out_server"))?.Replace("'", "\\'");
|
||||
string sku_edit_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sku_edit_json"))?.Replace("'", "\\'");
|
||||
string sku_secret_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sku_secret_json"))?.Replace("'", "\\'");
|
||||
string wx_img_map_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "wx_img_map_json"))?.Replace("'", "\\'");
|
||||
|
||||
if (string.IsNullOrEmpty(user_name))
|
||||
{
|
||||
@@ -209,6 +210,8 @@ namespace KJD_Web.BLL.BXX
|
||||
sql += " p.sku_edit_json='" + sku_edit_json + "',";
|
||||
if (sku_secret_json != null)
|
||||
sql += " p.sku_secret_json=@sku_secret_json,";
|
||||
if (wx_img_map_json != null)
|
||||
sql += " p.wx_img_map_json=@wx_img_map_json,";
|
||||
sql += " p.mdy_time='" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "',";
|
||||
sql = sql.TrimEnd(',');
|
||||
sql += " where spu_id='" + spu_id + "';";
|
||||
@@ -217,6 +220,7 @@ namespace KJD_Web.BLL.BXX
|
||||
paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "product_json", Value = product_json, });
|
||||
paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "size_json", Value = size_json, });
|
||||
paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "sku_secret_json", Value = sku_secret_json, });
|
||||
paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "wx_img_map_json", Value = wx_img_map_json, });
|
||||
|
||||
var rst = mySql.ExecuteNonQuery(sql, paramLst.ToArray());
|
||||
mySql.Close();
|
||||
@@ -438,6 +442,7 @@ namespace KJD_Web.BLL.BXX
|
||||
prod.sku_secret_json = row["sku_secret_json"].ToString();
|
||||
prod.sku_img_replace_base64 = row["img_base64"].ToString();
|
||||
//prod.sku_img_replace_url = row["img_url"].ToString();
|
||||
prod.wx_img_map_json = row["wx_img_map_json"].ToString();
|
||||
}
|
||||
if (!string.IsNullOrEmpty(get_select_count))
|
||||
{
|
||||
|
||||
@@ -62,6 +62,7 @@ namespace KJD_Web.Model
|
||||
/// 微信推单商品和sku加密code信息
|
||||
/// </summary>
|
||||
public string sku_secret_json { get; set; }
|
||||
public string wx_img_map_json { get; set; }
|
||||
public int sku_img_replace_id { get; set; }
|
||||
public string sku_img_replace_base64 { get; set; }
|
||||
public string sku_img_replace_url { get; set; }
|
||||
|
||||
Reference in new issue
Block a user