|
|
|
@ -26,6 +26,7 @@ namespace DS.Module.PrintModule
|
|
|
|
|
private readonly string moduleUrl;
|
|
|
|
|
private readonly string templateUrl;
|
|
|
|
|
private readonly string jsonPrintInfoUrl;
|
|
|
|
|
private readonly string jsonPrintStreamUrl;
|
|
|
|
|
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -45,6 +46,7 @@ namespace DS.Module.PrintModule
|
|
|
|
|
moduleUrl = AppSetting.app(new string[] { "PrintService", "GetModuleListUrl" }).ObjToString();
|
|
|
|
|
templateUrl = AppSetting.app(new string[] { "PrintService", "GetTemplateListUrl" }).ObjToString();
|
|
|
|
|
jsonPrintInfoUrl = AppSetting.app(new string[] { "PrintService", "GetJsonPrintInfoUrl" }).ObjToString();
|
|
|
|
|
jsonPrintStreamUrl = AppSetting.app(new string[] { "PrintService", "GetJsonPrintStreamUrl" }).ObjToString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -141,7 +143,7 @@ namespace DS.Module.PrintModule
|
|
|
|
|
//DataResult res = new DataResult();
|
|
|
|
|
|
|
|
|
|
// 发起POST请求,超时时间15秒,返回响应字节数组
|
|
|
|
|
string result = HttpUtillib.HttpPost(jsonPrintInfoUrl, JsonConvert.SerializeObject(req), 30);
|
|
|
|
|
string result = HttpUtillib.HttpPost(jsonPrintStreamUrl, JsonConvert.SerializeObject(req), 30);
|
|
|
|
|
if (null == result)
|
|
|
|
|
{
|
|
|
|
|
throw new Exception("请求失败,请联系管理员");
|
|
|
|
|