1订单相关服务调整 2用户最大数据库商品数量设置

This commit is contained in:
wule committed 2026-06-22 09:35:22 +08:00
1 parent 0cfb454b37
commit b064af6379
7 files changed
+323 -10

No files matched your search

@@ -69,11 +69,6 @@ namespace KJD_Web.BLL.BXX
return "{\"code\":666,\"msg\":\"当前版本已失效,请更新软件\"}";
}
if (add_user_name != null && add_user_name != "admin")
{
Thread.Sleep(1000);
}
if (string.IsNullOrEmpty(product_get_type))
{
product_get_type = "母店采集";
@@ -83,11 +78,26 @@ namespace KJD_Web.BLL.BXX
{
return "{\"code\":500,\"msg\":\"没有用户名\"}";
}
if (add_user_name != null && add_user_name != "admin")
{
Thread.Sleep(2000);
}
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
MysqlUtils mySql = new MysqlUtils(conn);
string sql = "";
if (add_user_name != null && add_user_name != "admin")
{
sql = "select count(*) from bxx.product where is_del=0 and add_user_name='" + add_user_name + "'";
var count = mySql.ExecuteRowCount(sql);
if (!string.IsNullOrEmpty(mySql.Message) || count > 100000)
{
mySql.Close();
return "{\"code\":500,\"msg\":\"产品数据库已达上限10万,请删除旧数据后重新添加新商品\"}";
}
}
int ban_wx = 0;
int ban_pdd = 0;
if (product_get_type == "厂商直采")