更新订单

This commit is contained in:
2018-04-21 01:05:41 +08:00
parent 6ca4a49d9d
commit 0c6b09f73e
11 changed files with 2318 additions and 0 deletions
+14
View File
@@ -5,6 +5,8 @@ using System.Threading.Tasks;
using System.Web;
using Newtonsoft.Json;
using COMCMS.Common;
using System.Text;
using System.IO;
namespace COMCMS.Core
{
@@ -58,4 +60,16 @@ namespace COMCMS.Core
}
}
public static class Extension
{
public static void EchoTip(this JsonTip json)
{
string strJson = JsonTip.GetJsonString(json);
Byte[] bytes = Encoding.UTF8.GetBytes(strJson);
Stream stream = new MemoryStream(bytes);
MyHttpContext.Current.Response.ContentType = "text/plain";
MyHttpContext.Current.Response.Body = stream;
}
}
}