fix:修改路径Union添加绝对地址

This commit is contained in:
2025-11-13 14:14:06 +08:00
parent 0f18ff4641
commit 0bffcebf1d
20 changed files with 216 additions and 25 deletions

BIN
.vs/MisPosFD/v17/.suo Normal file

Binary file not shown.

BIN
.vs/MisPosFD/v17/.wsuo Normal file

Binary file not shown.

View File

@@ -0,0 +1,54 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\backup\\Code\\Code\\MisPosFD\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\backup\\Code\\Code\\MisPosFD\\obj\\x86\\Debug\\.NETFramework,Version=v4.5.AssemblyAttributes.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:obj\\x86\\Debug\\.NETFramework,Version=v4.5.AssemblyAttributes.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{CF67D09B-E914-4E35-B209-C55E21E2DDF4}|MisPosFD.csproj|c:\\backup\\code\\code\\misposfd\\misposfd\\domain\\online.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{CF67D09B-E914-4E35-B209-C55E21E2DDF4}|MisPosFD.csproj|solutionrelative:misposfd\\domain\\online.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": ".NETFramework,Version=v4.5.AssemblyAttributes.cs",
"DocumentMoniker": "C:\\backup\\Code\\Code\\MisPosFD\\obj\\x86\\Debug\\.NETFramework,Version=v4.5.AssemblyAttributes.cs",
"RelativeDocumentMoniker": "obj\\x86\\Debug\\.NETFramework,Version=v4.5.AssemblyAttributes.cs",
"ToolTip": "C:\\backup\\Code\\Code\\MisPosFD\\obj\\x86\\Debug\\.NETFramework,Version=v4.5.AssemblyAttributes.cs",
"RelativeToolTip": "obj\\x86\\Debug\\.NETFramework,Version=v4.5.AssemblyAttributes.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAMAAAACAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-11-13T06:00:04.672Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "Online.cs",
"DocumentMoniker": "C:\\backup\\Code\\Code\\MisPosFD\\MisPosFD\\Domain\\Online.cs",
"RelativeDocumentMoniker": "MisPosFD\\Domain\\Online.cs",
"ToolTip": "C:\\backup\\Code\\Code\\MisPosFD\\MisPosFD\\Domain\\Online.cs",
"RelativeToolTip": "MisPosFD\\Domain\\Online.cs",
"ViewState": "AgIAAAAAAAAAAAAAAADwvxAAAAAtAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-11-13T05:59:52.383Z",
"EditorCaption": ""
}
]
}
]
}
]
}

View File

@@ -0,0 +1,89 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\backup\\Code\\Code\\MisPosFD\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{CF67D09B-E914-4E35-B209-C55E21E2DDF4}|MisPosFD.csproj|c:\\backup\\code\\code\\misposfd\\misposfd\\union.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{CF67D09B-E914-4E35-B209-C55E21E2DDF4}|MisPosFD.csproj|solutionrelative:misposfd\\union.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{CF67D09B-E914-4E35-B209-C55E21E2DDF4}|MisPosFD.csproj|c:\\backup\\code\\code\\misposfd\\misposfd\\social.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{CF67D09B-E914-4E35-B209-C55E21E2DDF4}|MisPosFD.csproj|solutionrelative:misposfd\\social.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{CF67D09B-E914-4E35-B209-C55E21E2DDF4}|MisPosFD.csproj|c:\\backup\\code\\code\\misposfd\\misposfd\\online.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{CF67D09B-E914-4E35-B209-C55E21E2DDF4}|MisPosFD.csproj|solutionrelative:misposfd\\online.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{CF67D09B-E914-4E35-B209-C55E21E2DDF4}|MisPosFD.csproj|c:\\backup\\code\\code\\misposfd\\misposfd\\domain\\online.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{CF67D09B-E914-4E35-B209-C55E21E2DDF4}|MisPosFD.csproj|solutionrelative:misposfd\\domain\\online.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 1,
"Children": [
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "Online.cs",
"DocumentMoniker": "C:\\backup\\Code\\Code\\MisPosFD\\MisPosFD\\Domain\\Online.cs",
"RelativeDocumentMoniker": "MisPosFD\\Domain\\Online.cs",
"ToolTip": "C:\\backup\\Code\\Code\\MisPosFD\\MisPosFD\\Domain\\Online.cs",
"RelativeToolTip": "MisPosFD\\Domain\\Online.cs",
"ViewState": "AgIAAAAAAAAAAAAAAADwvxoAAAAtAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-11-13T06:08:58.701Z",
"IsPinned": true,
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Union.cs",
"DocumentMoniker": "C:\\backup\\Code\\Code\\MisPosFD\\MisPosFD\\Union.cs",
"RelativeDocumentMoniker": "MisPosFD\\Union.cs",
"ToolTip": "C:\\backup\\Code\\Code\\MisPosFD\\MisPosFD\\Union.cs",
"RelativeToolTip": "MisPosFD\\Union.cs",
"ViewState": "AgIAAAkAAAAAAAAAAADwv28AAABdAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-11-13T06:11:56.03Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "Social.cs",
"DocumentMoniker": "C:\\backup\\Code\\Code\\MisPosFD\\MisPosFD\\Social.cs",
"RelativeDocumentMoniker": "MisPosFD\\Social.cs",
"ToolTip": "C:\\backup\\Code\\Code\\MisPosFD\\MisPosFD\\Social.cs",
"RelativeToolTip": "MisPosFD\\Social.cs",
"ViewState": "AgIAAF8AAAAAAAAAAAAiwG4AAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-11-13T06:10:28.872Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "Online.cs",
"DocumentMoniker": "C:\\backup\\Code\\Code\\MisPosFD\\MisPosFD\\Online.cs",
"RelativeDocumentMoniker": "MisPosFD\\Online.cs",
"ToolTip": "C:\\backup\\Code\\Code\\MisPosFD\\MisPosFD\\Online.cs",
"RelativeToolTip": "MisPosFD\\Online.cs",
"ViewState": "AgIAAAYAAAAAAAAAAADwvxsAAAAtAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-11-13T06:09:06.457Z",
"EditorCaption": ""
}
]
}
]
}
]
}

View File

@@ -6,8 +6,8 @@
[Guid("B85E1284-E657-4DB8-BBD4-EF39BE3208DD")] [Guid("B85E1284-E657-4DB8-BBD4-EF39BE3208DD")]
public interface IOnline public interface IOnline
{ {
string pos(string amount, string orderNo = ""); string pos(string path, string amount, string orderNo = "");
string correct(string traceNo); string correct(string path, string traceNo);
} }
} }

View File

@@ -6,9 +6,9 @@
[Guid("06FF9559-0B27-47E2-8D3B-74B825011D32")] [Guid("06FF9559-0B27-47E2-8D3B-74B825011D32")]
public interface ISocial public interface ISocial
{ {
string query(); string query(string path);
string trade(string amount, string orderNo = ""); string trade(string path, string amount, string orderNo = "");
string correct(string traceNo); string correct(string path, string traceNo);
} }
} }

View File

@@ -6,9 +6,9 @@
[Guid("C48A2C52-E9F1-4E32-8535-9BA1F5B34CFB")] [Guid("C48A2C52-E9F1-4E32-8535-9BA1F5B34CFB")]
public interface IUnion public interface IUnion
{ {
string query(); string query(string path);
string trade(string amount, string orderNo = ""); string trade(string path, string amount, string orderNo = "");
string correct(string traceNo); string correct(string path, string traceNo);
} }
} }

View File

@@ -11,16 +11,21 @@
[Guid("C952B56E-BDFB-4FF9-A84C-1DD8AC013F0A"), ClassInterface(ClassInterfaceType.None)] [Guid("C952B56E-BDFB-4FF9-A84C-1DD8AC013F0A"), ClassInterface(ClassInterfaceType.None)]
public class Online : IOnline public class Online : IOnline
{ {
public string correct(string traceNo) public string correct(string path, string traceNo)
{ {
try try
{ {
if (string.IsNullOrWhiteSpace(path))
{
return ResponseHelper.jError("传入conf.ini配置文件地址为空请检查入参", null);
}
StringBuilder sappname = new StringBuilder("05"); StringBuilder sappname = new StringBuilder("05");
StringBuilder stransid = new StringBuilder("52"); StringBuilder stransid = new StringBuilder("52");
StringBuilder stime = new StringBuilder(DateTime.Now.ToString("yyyyMMddHHmmss")); StringBuilder stime = new StringBuilder(DateTime.Now.ToString("yyyyMMddHHmmss"));
StringBuilder sjsondata = new StringBuilder(JsonConvert.SerializeObject(new { sOrgTraceNo = traceNo })); StringBuilder sjsondata = new StringBuilder(JsonConvert.SerializeObject(new { sOrgTraceNo = traceNo }));
StringBuilder outdata = new StringBuilder(0x400); StringBuilder outdata = new StringBuilder(0x400);
int num = MisPos.MyMisPos(sappname, stransid, stime, sjsondata, outdata); StringBuilder infoPath = new StringBuilder(path);
int num = MisPos.MyMisPosPath(sappname, stransid, stime, sjsondata, infoPath, outdata);
string str = outdata.ToString(); string str = outdata.ToString();
if (num == 0) if (num == 0)
{ {
@@ -46,10 +51,14 @@
} }
} }
public string pos(string amount, string orderNo = "") public string pos(string path, string amount, string orderNo = "")
{ {
try try
{ {
if (string.IsNullOrWhiteSpace(path))
{
return ResponseHelper.jError("传入conf.ini配置文件地址为空请检查入参", null);
}
if (string.IsNullOrEmpty(orderNo)) if (string.IsNullOrEmpty(orderNo))
{ {
orderNo = "FD" + DateTime.Now.ToString("yyyyMMddHHmmss") + CommonHelper.random(5); orderNo = "FD" + DateTime.Now.ToString("yyyyMMddHHmmss") + CommonHelper.random(5);
@@ -63,7 +72,8 @@
sMerOrderNo = orderNo sMerOrderNo = orderNo
})); }));
StringBuilder outdata = new StringBuilder(0x400); StringBuilder outdata = new StringBuilder(0x400);
int num = MisPos.MyMisPos(sappname, stransid, stime, sjsondata, outdata); StringBuilder infoPath = new StringBuilder(path);
int num = MisPos.MyMisPosPath(sappname, stransid, stime, sjsondata, infoPath, outdata);
string str = outdata.ToString(); string str = outdata.ToString();
if (num == 0) if (num == 0)
{ {

View File

@@ -11,16 +11,21 @@
[Guid("2BDD814F-0E23-427A-AFB8-DDFE6AF4ABE1"), ClassInterface(ClassInterfaceType.None)] [Guid("2BDD814F-0E23-427A-AFB8-DDFE6AF4ABE1"), ClassInterface(ClassInterfaceType.None)]
public class Social : ISocial public class Social : ISocial
{ {
public string correct(string traceNo) public string correct(string path, string traceNo)
{ {
try try
{ {
if (string.IsNullOrWhiteSpace(path))
{
return ResponseHelper.jError("传入conf.ini配置文件地址为空请检查入参", null);
}
StringBuilder sappname = new StringBuilder("03"); StringBuilder sappname = new StringBuilder("03");
StringBuilder stransid = new StringBuilder("12"); StringBuilder stransid = new StringBuilder("12");
StringBuilder stime = new StringBuilder(DateTime.Now.ToString("yyyyMMddHHmmss")); StringBuilder stime = new StringBuilder(DateTime.Now.ToString("yyyyMMddHHmmss"));
StringBuilder sjsondata = new StringBuilder(JsonConvert.SerializeObject(new { sOrgTraceNo = traceNo })); StringBuilder sjsondata = new StringBuilder(JsonConvert.SerializeObject(new { sOrgTraceNo = traceNo }));
StringBuilder outdata = new StringBuilder(0x400); StringBuilder outdata = new StringBuilder(0x400);
int num = MisPos.MyMisPos(sappname, stransid, stime, sjsondata, outdata); StringBuilder infoPath = new StringBuilder(path);
int num = MisPos.MyMisPosPath(sappname, stransid, stime, sjsondata, infoPath, outdata);
string str = outdata.ToString(); string str = outdata.ToString();
if (num == 0) if (num == 0)
{ {
@@ -46,15 +51,20 @@
} }
} }
public string query() public string query(string path)
{ {
try try
{ {
if (string.IsNullOrWhiteSpace(path))
{
return ResponseHelper.jError("传入conf.ini配置文件地址为空请检查入参", null);
}
StringBuilder stransid = new StringBuilder("22"); StringBuilder stransid = new StringBuilder("22");
StringBuilder stime = new StringBuilder(DateTime.Now.ToString("yyyyMMddHHmmss")); StringBuilder stime = new StringBuilder(DateTime.Now.ToString("yyyyMMddHHmmss"));
StringBuilder sjsondata = new StringBuilder(0x400); StringBuilder sjsondata = new StringBuilder(0x400);
StringBuilder outdata = new StringBuilder(0x400); StringBuilder outdata = new StringBuilder(0x400);
int num = MisPos.MyMisPos(new StringBuilder("03"), stransid, stime, sjsondata, outdata); StringBuilder infoPath = new StringBuilder(path);
int num = MisPos.MyMisPosPath(new StringBuilder("03"), stransid, stime, sjsondata, infoPath,outdata);
string str = outdata.ToString(); string str = outdata.ToString();
if (num == 0) if (num == 0)
{ {
@@ -78,10 +88,14 @@
} }
} }
public string trade(string amount, string orderNo = "") public string trade(string path, string amount, string orderNo = "")
{ {
try try
{ {
if (string.IsNullOrWhiteSpace(path))
{
return ResponseHelper.jError("传入conf.ini配置文件地址为空请检查入参", null);
}
if (string.IsNullOrEmpty(orderNo)) if (string.IsNullOrEmpty(orderNo))
{ {
orderNo = "FD" + DateTime.Now.ToString("yyyyMMddHHmmss") + CommonHelper.random(5); orderNo = "FD" + DateTime.Now.ToString("yyyyMMddHHmmss") + CommonHelper.random(5);
@@ -94,7 +108,8 @@
sMerOrderNo = orderNo sMerOrderNo = orderNo
})); }));
StringBuilder outdata = new StringBuilder(0x400); StringBuilder outdata = new StringBuilder(0x400);
int num = MisPos.MyMisPos(sappname, stransid, stime, sjsondata, outdata); StringBuilder infoPath = new StringBuilder(path);
int num = MisPos.MyMisPosPath(sappname, stransid, stime, sjsondata, infoPath, outdata);
string str = outdata.ToString(); string str = outdata.ToString();
if (num == 0) if (num == 0)
{ {

View File

@@ -11,16 +11,21 @@
[Guid("95132F66-A747-4967-A284-5C3B2D8553C0"), ClassInterface(ClassInterfaceType.None)] [Guid("95132F66-A747-4967-A284-5C3B2D8553C0"), ClassInterface(ClassInterfaceType.None)]
public class Union : IUnion public class Union : IUnion
{ {
public string correct(string traceNo) public string correct(string path, string traceNo)
{ {
try try
{ {
if (string.IsNullOrWhiteSpace(path))
{
return ResponseHelper.jError("传入conf.ini配置文件地址为空请检查入参", null);
}
StringBuilder sappname = new StringBuilder("03"); StringBuilder sappname = new StringBuilder("03");
StringBuilder stransid = new StringBuilder("32"); StringBuilder stransid = new StringBuilder("32");
StringBuilder stime = new StringBuilder(DateTime.Now.ToString("yyyyMMddHHmmss")); StringBuilder stime = new StringBuilder(DateTime.Now.ToString("yyyyMMddHHmmss"));
StringBuilder sjsondata = new StringBuilder(JsonConvert.SerializeObject(new { sOrgTraceNo = traceNo })); StringBuilder sjsondata = new StringBuilder(JsonConvert.SerializeObject(new { sOrgTraceNo = traceNo }));
StringBuilder outdata = new StringBuilder(0x400); StringBuilder outdata = new StringBuilder(0x400);
int num = MisPos.MyMisPos(sappname, stransid, stime, sjsondata, outdata); StringBuilder infoPath = new StringBuilder(path);
int num = MisPos.MyMisPosPath(sappname, stransid, stime, sjsondata, infoPath, outdata);
string str = outdata.ToString(); string str = outdata.ToString();
if (num == 0) if (num == 0)
{ {
@@ -46,15 +51,20 @@
} }
} }
public string query() public string query(string path)
{ {
try try
{ {
if (string.IsNullOrWhiteSpace(path))
{
return ResponseHelper.jError("传入conf.ini配置文件地址为空请检查入参", null);
}
StringBuilder stransid = new StringBuilder("21"); StringBuilder stransid = new StringBuilder("21");
StringBuilder stime = new StringBuilder(DateTime.Now.ToString("yyyyMMddHHmmss")); StringBuilder stime = new StringBuilder(DateTime.Now.ToString("yyyyMMddHHmmss"));
StringBuilder sjsondata = new StringBuilder(0x400); StringBuilder sjsondata = new StringBuilder(0x400);
StringBuilder outdata = new StringBuilder(0x400); StringBuilder outdata = new StringBuilder(0x400);
int num = MisPos.MyMisPos(new StringBuilder("03"), stransid, stime, sjsondata, outdata); StringBuilder infoPath = new StringBuilder(path);
int num = MisPos.MyMisPosPath(new StringBuilder("03"), stransid, stime, sjsondata, infoPath, outdata);
string str = outdata.ToString(); string str = outdata.ToString();
if (num == 0) if (num == 0)
{ {
@@ -78,10 +88,14 @@
} }
} }
public string trade(string amount, string orderNo = "") public string trade(string path, string amount, string orderNo = "")
{ {
try try
{ {
if (string.IsNullOrWhiteSpace(path))
{
return ResponseHelper.jError("传入conf.ini配置文件地址为空请检查入参", null);
}
if (string.IsNullOrEmpty(orderNo)) if (string.IsNullOrEmpty(orderNo))
{ {
orderNo = "FD" + DateTime.Now.ToString("yyyyMMddHHmmss") + CommonHelper.random(5); orderNo = "FD" + DateTime.Now.ToString("yyyyMMddHHmmss") + CommonHelper.random(5);
@@ -94,7 +108,8 @@
sMerOrderNo = orderNo sMerOrderNo = orderNo
})); }));
StringBuilder outdata = new StringBuilder(0x400); StringBuilder outdata = new StringBuilder(0x400);
int num = MisPos.MyMisPos(sappname, stransid, stime, sjsondata, outdata); StringBuilder infoPath = new StringBuilder(path);
int num = MisPos.MyMisPosPath(sappname, stransid, stime, sjsondata, infoPath, outdata);
string str = outdata.ToString(); string str = outdata.ToString();
if (num == 0) if (num == 0)
{ {

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,4 +1,4 @@
// <autogenerated /> // <autogenerated />
using System; using System;
using System.Reflection; using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = ".NET Framework 4.5")] //[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = ".NET Framework 4.5")]

View File

@@ -10,3 +10,11 @@ C:\Users\Nine\Desktop\MisPosFD\obj\x86\Debug\MisPosFD.csproj.AssemblyReference.c
C:\Users\Nine\Desktop\MisPosFD\obj\x86\Debug\MisPosFD.csproj.CoreCompileInputs.cache C:\Users\Nine\Desktop\MisPosFD\obj\x86\Debug\MisPosFD.csproj.CoreCompileInputs.cache
C:\Users\Nine\Desktop\MisPosFD\obj\x86\Debug\MisPosFD.dll C:\Users\Nine\Desktop\MisPosFD\obj\x86\Debug\MisPosFD.dll
C:\Users\Nine\Desktop\MisPosFD\obj\x86\Debug\MisPosFD.pdb C:\Users\Nine\Desktop\MisPosFD\obj\x86\Debug\MisPosFD.pdb
C:\backup\Code\Code\MisPosFD\obj\x86\Debug\MisPosFD.csproj.AssemblyReference.cache
C:\backup\Code\Code\MisPosFD\obj\x86\Debug\MisPosFD.csproj.CoreCompileInputs.cache
C:\backup\Code\Code\MisPosFD\bin\Debug\MisPosFD.dll
C:\backup\Code\Code\MisPosFD\bin\Debug\MisPosFD.pdb
C:\backup\Code\Code\MisPosFD\bin\Debug\Newtonsoft.Json.dll
C:\backup\Code\Code\MisPosFD\obj\x86\Debug\MisPosFD.csproj.Up2Date
C:\backup\Code\Code\MisPosFD\obj\x86\Debug\MisPosFD.dll
C:\backup\Code\Code\MisPosFD\obj\x86\Debug\MisPosFD.pdb

View File

Binary file not shown.

Binary file not shown.