/// <summary> /// 某个商品分类的路径 /// </summary> /// <param name="id"></param> /// <returns></returns> public string Categorypath(int id) { Shop.Model.Lebi_Pro_Type pro_type = Shop.Bussiness.B_Lebi_Pro_Type.GetModel(id); if (pro_type == null) { pro_type = new Shop.Model.Lebi_Pro_Type(); } string str = EX_Product.TypePath(pro_type, id.ToString()); string[] arr = str.Split(','); string res = ""; for (int i = 0; i < arr.Length; i++) { Lebi_Pro_Type model = B_Lebi_Pro_Type.GetModel("id = " + int.Parse(arr[i]) + " and IsShow = 1"); if (model == null) { continue; } res += Lang(model.Name); if (i < arr.Length - 1) { res += " » "; } } return(res); }