/// <summary> /// 创建商品信息。 /// </summary> /// <returns>已创建的商品信息。</returns> public PostbackDataObject GetPostback() { var result = new PostbackDataObject { ID = Guid.NewGuid().ToString(), ServerArchitecture = string.Format("{0} processors on {1} bit OS.", Environment.ProcessorCount, Environment.Is64BitOperatingSystem ? "64" : "32"), ServerDateTime = DateTime.Now, ServerOS = Environment.OSVersion.ToString(), MachineName = Environment.MachineName, CLRVersion = Environment.Version.ToString() }; return(result); }
/// <summary> /// 创建商品信息。 /// </summary> /// <param name="productDataObjects">需要创建的商品信息。</param> /// <returns>已创建的商品信息。</returns> public PostbackDataObject GetPostback() { PostbackDataObject result = new PostbackDataObject { ID = Guid.NewGuid().ToString(), ServerArchitecture = string.Format("{0} processors on {1} bit OS.", Environment.ProcessorCount, Environment.Is64BitOperatingSystem ? "64" : "32"), ServerDateTime = DateTime.Now, ServerOS = Environment.OSVersion.ToString(), MachineName = Environment.MachineName, CLRVersion = Environment.Version.ToString() }; return result; }