批量直传功能 jit配置保存到货号功能(30%)

This commit is contained in:
wule committed 2025-11-20 16:39:31 +08:00
1 parent b23eb0e497
commit 6865064eca
8 files changed
+691 -516

No files matched your search

@@ -1085,6 +1085,10 @@ namespace KJD_Web.BLL
int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
int page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(200);
bool is_random = RegexUtils.GetStringQuery(ref inputData, "is_random").ParseToBool();
if (is_random)
{
page_size = 3;
}
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
MysqlUtils mySql = new MysqlUtils(conn);
@@ -1155,11 +1159,16 @@ namespace KJD_Web.BLL
spec_name = row["spec_name"].ParseToString(),
use_count = row["use_count"].ParseToInt(),
};
if(img.base64_mdy_time.AddDays(2) < DateTime.Now)
if(img.base64_mdy_time.AddDays(3) < DateTime.Now)
{
// 每过两天返回给客户端空图,让客户端重传base64图片
// 每过3天返回给客户端空图,让客户端重传base64图片
img.img_url = "";
}
else if (is_random && !string.IsNullOrWhiteSpace(img.img_url))
{
// (仅上货)3天内返回给客户端图片链接同时不传base64图片
img.img_base64 = "";
}
//if (isDetail)
//{
// img.img_base64 = row["img_base64"].ToString();