Пример #1
0
        private string ReadSystemClassID(string taobaoClassIDList)
        {
            string str = string.Empty;

            if (taobaoClassIDList != string.Empty)
            {
                foreach (string str2 in taobaoClassIDList.Split(new char[] { ',' }))
                {
                    if (str2 != string.Empty)
                    {
                        ProductClassInfo info = ProductClassBLL.ReadProductClassCacheByTaobaoID(Convert.ToInt64(str2));
                        if (info.FatherID == 0)
                        {
                            str = str + "|" + info.ID.ToString() + "|";
                        }
                        else
                        {
                            string str4 = str;
                            str = str4 + "|" + info.FatherID.ToString() + "|" + info.ID.ToString() + "|";
                        }
                    }
                }
            }
            return(str);
        }