Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
Njzj.Biz.Bocoms.Openapis.V4.5
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶然
Njzj.Biz.Bocoms.Openapis.V4.5
Commits
0b9ad94e
Commit
0b9ad94e
authored
Jun 18, 2024
by
Neo Turing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扫码支付传值优化
parent
0fae0c08
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
Extension.cs
Extensions/Extension.cs
+5
-2
Njzj.Biz.Bocoms.Openapis.V4.5.csproj
Njzj.Biz.Bocoms.Openapis.V4.5.csproj
+3
-3
AssemblyInfo.cs
Properties/AssemblyInfo.cs
+2
-2
No files found.
Extensions/Extension.cs
View file @
0b9ad94e
...
...
@@ -187,7 +187,7 @@ namespace Com.Bocom.OpenApi
{
conn
=
KiviiContext
.
GetOpenedDbConnection
<
Payment
>();
}
var
accountBiz
=
settlement
.
Currency
.
GetBizAccount
();
var
accountBiz
=
settlement
.
Currency
.
GetBizAccount
(
settlement
.
OwnerKvid
,
settlement
.
OwnerName
);
var
dynamicSplitPayments
=
new
List
<
Payment
>();
...
...
@@ -249,8 +249,9 @@ namespace Com.Bocom.OpenApi
var
amount
=
settlements
.
Sum
(
o
=>
o
.
Amount
);
if
(
amount
<=
0
)
return
null
;
if
(
uniqueCode
.
IsNullOrEmpty
())
uniqueCode
=
Guid
.
NewGuid
().
ToString
();
//生成二维码的唯一性交易编号
var
summary
=
$"
{
settlements
[
0
].
BizId
}
等共
{
settlements
.
Count
}
条结算进行扫码支付!"
;
var
remark
=
settlements
[
0
].
PayerName
;
var
ownerName
=
settlements
[
0
].
OwnerName
;
var
summary
=
$"部门:
{
ownerName
}
,付款单位:
{
remark
}
,
{
settlements
[
0
].
BizId
}
等共
{
settlements
.
Count
}
条结算进行扫码支付!"
;
//var rtnTests = new MPNG210001ResponseV1();
//rtnTests.rsp_body = new MPNG210001ResponseV1.RspBody();
//rtnTests.SetBizState("S");
...
...
@@ -283,6 +284,8 @@ namespace Com.Bocom.OpenApi
bizContent
.
req_body
.
currency
=
"CNY"
;
bizContent
.
req_body
.
tran_content
=
summary
;
bizContent
.
req_body
.
mer_memo
=
remark
;
//bizContent.req_body.terminal_info = remark.Length > 50 ? remark.Substring(0, 49) : remark;
//bizContent.req_body.shop_id = ownerName.Length > 40 ? ownerName.Substring(0, 39) : ownerName;
request
.
SetBizContent
(
bizContent
);
var
response
=
client
.
Execute
(
request
,
uniqueCode
.
Replace
(
"-"
,
""
));
...
...
Njzj.Biz.Bocoms.Openapis.V4.5.csproj
View file @
0b9ad94e
...
...
@@ -151,12 +151,12 @@
<Content
Include=
"Sdk\Dll\BouncyCastle.Crypto.dll"
/>
</ItemGroup>
<ItemGroup>
<ProjectReference
Include=
"..\
..\Kivii.K5\
Kivii.Biz.Finances.V2.0\Src\Kivii.Biz.Finances.V2.0.csproj"
>
<Project>
{8
d9479e9-5c4f-4d96-8bc1-c771be0d91b
1}
</Project>
<ProjectReference
Include=
"..\Kivii.Biz.Finances.V2.0\Src\Kivii.Biz.Finances.V2.0.csproj"
>
<Project>
{8
D9479E9-5C4F-4D96-8BC1-C771BE0D91B
1}
</Project>
<Name>
Kivii.Biz.Finances.V2.0
</Name>
</ProjectReference>
<ProjectReference
Include=
"..\Njzj.Biz.Finances.Bocoms\Njzj.Biz.Finances.Bocoms.V4.5.csproj"
>
<Project>
{
ff478a9b-20f1-471e-b163-7a70b1933c
25}
</Project>
<Project>
{
FF478A9B-20F1-471E-B163-7A70B1933C
25}
</Project>
<Name>
Njzj.Biz.Finances.Bocoms.V4.5
</Name>
</ProjectReference>
</ItemGroup>
...
...
Properties/AssemblyInfo.cs
View file @
0b9ad94e
...
...
@@ -33,5 +33,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.2024.
227
0")]
[assembly: AssemblyFileVersion("5.4.2024.
227
0")]
[assembly: AssemblyVersion("5.4.2024.
618
0")]
[assembly: AssemblyFileVersion("5.4.2024.
618
0")]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment