diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs
index 51df077..b58878e 100644
--- a/AllBase/BaseClass.cs
+++ b/AllBase/BaseClass.cs
@@ -27,7 +27,7 @@ namespace AllBase
///
/// 版本ID
///
- public static int VersionCount = 657;
+ public static int VersionCount = 658;
//public static int VersionCount = 613;
///
diff --git a/AllBase/Model/Result/TemuResult/AiSkuImgInfo.cs b/AllBase/Model/Result/TemuResult/AiSkuImgInfo.cs
index d064031..46ccee6 100644
--- a/AllBase/Model/Result/TemuResult/AiSkuImgInfo.cs
+++ b/AllBase/Model/Result/TemuResult/AiSkuImgInfo.cs
@@ -20,5 +20,13 @@ namespace AllBase.Model.Result.TemuResult
public DateTime mdy_time { get; set; }
public DateTime base64_mdy_time { get; set; }
public string img_base64 { get; set; }
+ public int use_count { get; set; }
+
+ ///
+ /// 记录上货过程中是否被使用,在同一个商品上货一次过程中同一张图使用多少次都算1次
+ ///
+ public bool is_use { get; set; } = false;
+ public int width { get; set; } = 800;
+ public int height { get; set; } = 800;
}
}
diff --git a/KJDService/KJD_WebService/BLL/KJD/ProductManage.cs b/KJDService/KJD_WebService/BLL/KJD/ProductManage.cs
index cb70b17..fa43695 100644
--- a/KJDService/KJD_WebService/BLL/KJD/ProductManage.cs
+++ b/KJDService/KJD_WebService/BLL/KJD/ProductManage.cs
@@ -1099,7 +1099,39 @@ namespace KJD_Web.BLL
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
MysqlUtils mySql = new MysqlUtils(conn);
- string sql = "update kjd.sku_img_base64 set img_url=\'" + img_url + "\' where id='" + id + "'";
+ string sql = "update kjd.sku_img_base64 set img_url=\'" + img_url + "\' where id='" + id + "';";
+
+ var rst = mySql.ExecuteNonQuery(sql);
+ mySql.Close();
+ if (rst)
+ {
+ return "{\"code\":200,\"msg\":\"success\"}";
+ }
+ else
+ return "{\"code\":500,\"msg\":\"保存失败:" + mySql.Message + "\"}";
+ }
+ return "{\"code\":19999,\"msg\":\"输入为空\"}";
+ }
+
+ public string MdyBase64ImgUseCount(string inputData)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt();
+ string time1 = RegexUtils.GetStringQuery(ref inputData, "code");
+ if (time1 != EncrypUtil.Encryption(time))
+ return "{\"code\":50000,\"msg\":\"校验失败\"}";
+
+ var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name")?.Replace("'", "\\'");
+ var ids = RegexUtils.GetStringQuery(ref inputData, "db_ids")?.Replace("'", "\\'");
+ if (string.IsNullOrEmpty(ids))
+ {
+ return "{\"code\":500,\"msg\":\"保存失败:缺少图片编号\"}";
+ }
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn);
+ string sql = "update kjd.sku_img_base64 set use_count=use_count+1 where id in (" + ids + ");";
var rst = mySql.ExecuteNonQuery(sql);
mySql.Close();
diff --git a/KJDService/KJD_WebService/ProductService.asmx.cs b/KJDService/KJD_WebService/ProductService.asmx.cs
index d000c21..4920ed8 100644
--- a/KJDService/KJD_WebService/ProductService.asmx.cs
+++ b/KJDService/KJD_WebService/ProductService.asmx.cs
@@ -273,5 +273,16 @@ namespace KJD_Web
Context.Response.Write(result);
Context.Response.End();
}
+
+ [WebMethod]
+ public void mdy_base64_img_use_count()
+ {
+ string jsontext = GetRequestJsonString();
+ var result = jsontext;
+ result = new ProductManage().MdyBase64ImgUseCount(jsontext);
+
+ Context.Response.Write(result);
+ Context.Response.End();
+ }
}
}
diff --git a/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.cs b/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.cs
index 3b3f753..4997a5d 100644
--- a/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.cs
+++ b/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.cs
@@ -1042,6 +1042,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
prodParam.goodsAdvantageLabelTypes = prodInfo.goodsAdvantageLabelVOList != null ?
prodInfo.goodsAdvantageLabelVOList : new List