调整备货逻辑不允许品质分过低的商品自动备货(完成但尚未测试) 注释无用的相关接口(原小奶狗,小奶兔)
This commit is contained in:
1 parent
fceead357f
commit
8445ec1828
19 files changed
+865
-540
No files matched your search
@@ -757,14 +757,14 @@ namespace Work.Api
|
||||
|
||||
public static void Ini()
|
||||
{
|
||||
string[] l = FileBase.ReadAllLines("taobao_cat.ico");
|
||||
for (int i = 0; l != null && i < l.Length; i++)
|
||||
{
|
||||
if (!l[i].Contains("\t"))
|
||||
continue;
|
||||
string[] s = l[i].Split('\t');
|
||||
TaobaoCat.Add(int.Parse(s[0]), s[1]);
|
||||
}
|
||||
//string[] l = FileBase.ReadAllLines("taobao_cat.ico");
|
||||
//for (int i = 0; l != null && i < l.Length; i++)
|
||||
//{
|
||||
// if (!l[i].Contains("\t"))
|
||||
// continue;
|
||||
// string[] s = l[i].Split('\t');
|
||||
// TaobaoCat.Add(int.Parse(s[0]), s[1]);
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,44 +15,44 @@ namespace Work.Api
|
||||
|
||||
public static void Ini()
|
||||
{
|
||||
if (DefaultProperties.Count == 0)
|
||||
{
|
||||
GetDefaultProperties();
|
||||
}
|
||||
//string file = FileBase.ReadAllText("mobelx.dll");
|
||||
//if (string.IsNullOrEmpty(file))
|
||||
// return;
|
||||
//CatTemplate = JsonHelper.DeserializeJsonToObject<Dictionary<int, CatTemplateBase>>(file);
|
||||
//if (CatTemplate == null)
|
||||
// CatTemplate = new Dictionary<int, CatTemplateBase>();
|
||||
//for (int i = 0; i < Properties.Count; i++)
|
||||
//if (DefaultProperties.Count == 0)
|
||||
//{
|
||||
// Properties[i].value_unit = "";
|
||||
// for (int j = 0; j < Properties[i].Values.Count; j++)
|
||||
// {
|
||||
// if (string.IsNullOrEmpty(Properties[i].Values[j].p_unit))
|
||||
// Properties[i].Values[j].p_unit = "";
|
||||
// }
|
||||
// if (Properties[i].pid == 93)
|
||||
// {
|
||||
// for (int j = 0; j < Properties[i].cats.Count; j++)
|
||||
// {
|
||||
// if (Properties.Exists(p => p.pid == 59 && p.cats.Contains(Properties[i].cats[j])))
|
||||
// continue;
|
||||
// var m = new ModelBase();
|
||||
// m.name = "中国国家强制性产品认证证书";
|
||||
// m.name_all = "中国国家强制性产品认证证书";
|
||||
// m.must = true;
|
||||
// m.show_type = 1;
|
||||
// m.template_pid = 33178;
|
||||
// m.template_module_id = 7207;
|
||||
// m.pid = 59;
|
||||
// m.cats = Properties[i].cats;
|
||||
// m.value_unit = "";
|
||||
// Properties.Add(m);
|
||||
// }
|
||||
// }
|
||||
// GetDefaultProperties();
|
||||
//}
|
||||
////string file = FileBase.ReadAllText("mobelx.dll");
|
||||
////if (string.IsNullOrEmpty(file))
|
||||
//// return;
|
||||
////CatTemplate = JsonHelper.DeserializeJsonToObject<Dictionary<int, CatTemplateBase>>(file);
|
||||
////if (CatTemplate == null)
|
||||
//// CatTemplate = new Dictionary<int, CatTemplateBase>();
|
||||
////for (int i = 0; i < Properties.Count; i++)
|
||||
////{
|
||||
//// Properties[i].value_unit = "";
|
||||
//// for (int j = 0; j < Properties[i].Values.Count; j++)
|
||||
//// {
|
||||
//// if (string.IsNullOrEmpty(Properties[i].Values[j].p_unit))
|
||||
//// Properties[i].Values[j].p_unit = "";
|
||||
//// }
|
||||
//// if (Properties[i].pid == 93)
|
||||
//// {
|
||||
//// for (int j = 0; j < Properties[i].cats.Count; j++)
|
||||
//// {
|
||||
//// if (Properties.Exists(p => p.pid == 59 && p.cats.Contains(Properties[i].cats[j])))
|
||||
//// continue;
|
||||
//// var m = new ModelBase();
|
||||
//// m.name = "中国国家强制性产品认证证书";
|
||||
//// m.name_all = "中国国家强制性产品认证证书";
|
||||
//// m.must = true;
|
||||
//// m.show_type = 1;
|
||||
//// m.template_pid = 33178;
|
||||
//// m.template_module_id = 7207;
|
||||
//// m.pid = 59;
|
||||
//// m.cats = Properties[i].cats;
|
||||
//// m.value_unit = "";
|
||||
//// Properties.Add(m);
|
||||
//// }
|
||||
//// }
|
||||
////}
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取必填项
|
||||
|
||||
Reference in new issue
Block a user