OA联调,需要utf8
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
|
||||
namespace YLErp.Modules.ApiModule
|
||||
{
|
||||
@@ -83,7 +84,7 @@ namespace YLErp.Modules.ApiModule
|
||||
public string PostJson(string apiPath, object postData, Action<HttpRequestMessage> requestHandle)
|
||||
{
|
||||
var str = JsonHelper.Serialize(postData) ?? string.Empty;
|
||||
using (var content = new StringContent(str))
|
||||
using (var content = new StringContent(str, Encoding.UTF8, "application/json"))
|
||||
using (var request = new HttpRequestMessage()
|
||||
{
|
||||
Method = HttpMethod.Post,
|
||||
@@ -93,7 +94,7 @@ namespace YLErp.Modules.ApiModule
|
||||
{
|
||||
request.Headers.Add("Accept-Encoding", "gzip");
|
||||
requestHandle?.Invoke(request);
|
||||
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
|
||||
// content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
|
||||
LogFactory.GetLogger<HttpClientWrap>().Info($"url:{apiPath}\r\npostData:{str}\r\n{content.ToJson()}");
|
||||
try
|
||||
{
|
||||
|
||||
@@ -216,7 +216,7 @@ namespace YLErp.Modules.TradeModule
|
||||
loginname = loginName,
|
||||
systemkey = systemKey,
|
||||
objectclass = objectClass,
|
||||
title = $"交易确认书OA申请-{trade.ClientName}-{contractCode}",
|
||||
title = $"关于场外利率债收益互换交易的审批盖章申请({trade.TradeDate.Value.ToString("yyyyMMdd")}-{trade.ClientName})",
|
||||
urgent = urgent,
|
||||
issend = issend,
|
||||
copyattfileid = "",
|
||||
|
||||
@@ -38,14 +38,14 @@ const colModelGrid = (new function () {
|
||||
}
|
||||
},
|
||||
{ label: 'OA状态', name: 'OAStatus', width: 100, align: 'center' },
|
||||
{ label: 'OA-URL', name: 'OAURL', width: 150, align: 'center',
|
||||
formatter: function (cellValue, options, rowObject) {
|
||||
if (cellValue && cellValue.length > 0) {
|
||||
return '<a href="' + cellValue + '" target="_blank">查看</a>';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
},
|
||||
//{ label: 'OA-URL', name: 'OAURL', width: 150, align: 'center',
|
||||
// formatter: function (cellValue, options, rowObject) {
|
||||
// if (cellValue && cellValue.length > 0) {
|
||||
// return '<a href="' + cellValue + '" target="_blank">查看</a>';
|
||||
// }
|
||||
// return '';
|
||||
// }
|
||||
//},
|
||||
{ label: 'OA消息', name: 'OAMessage', width: 150, align: 'left' },
|
||||
{ label: '交易数量', name: 'tradeCount', width: 80, align: 'center' },
|
||||
{ label: 'tradeIds', name: 'tradeIds', hidden: true, optionHide: true }];
|
||||
|
||||
Reference in New Issue
Block a user