Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
system_pay
Project
Project
Details
Activity
Releases
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
王沛
system_pay
Commits
5efaccf2
Commit
5efaccf2
authored
Sep 28, 2023
by
wangp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lakala
parent
8fa41a45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
pay.go
repository/pay/pay.go
+14
-10
No files found.
repository/pay/pay.go
View file @
5efaccf2
...
...
@@ -788,7 +788,7 @@ func selectRefundBill(tx *sql.Tx, input *models.RefundParamInput) (string, strin
var
platform_type
uint8
var
source_code
uint8
var
notice_request
interface
{}
var
notice_response
interface
{}
var
notice_response
[]
byte
var
notice_request2
[]
byte
//notice_request2 = []byte(`abc`)
//payment_order_code, paymoney
...
...
@@ -810,7 +810,11 @@ func selectRefundBill(tx *sql.Tx, input *models.RefundParamInput) (string, strin
}
}
else
if
source_code
==
9
{
//聚合被扫
notice_request
=
notice_response
notice_request
=
make
(
map
[
string
]
interface
{},
0
)
if
err
:=
json
.
Unmarshal
(
notice_response
,
&
notice_request
);
err
!=
nil
{
return
""
,
""
,
0
,
0
,
""
,
""
,
err
}
//notice_request = notice_response
}
else
{
//聚合收银台
notice_request
=
new
(
models
.
CashierNoticeInput
)
...
...
@@ -853,14 +857,14 @@ func selectRefundBill(tx *sql.Tx, input *models.RefundParamInput) (string, strin
}
}
else
if
source_code
==
9
{
//聚合被扫
//
resp_data := notice_request.(map[string]interface{})["resp_data"]
//
fmt.Println("resp_data返回值:", resp_data)
//
if resp_data == nil {
//
return "", "", 0, 0, "", "", errors.New("数据错误:resp_data返回值为空")
//
}
//
log_no = resp_data.(map[string]interface{})["log_no"].(string) //拉卡拉对账单流水号
log_no
=
"66210310187398"
//
fmt.Println("log_no返回值:", log_no)
resp_data
:=
notice_request
.
(
map
[
string
]
interface
{})[
"resp_data"
]
fmt
.
Println
(
"resp_data返回值:"
,
resp_data
)
if
resp_data
==
nil
{
return
""
,
""
,
0
,
0
,
""
,
""
,
errors
.
New
(
"数据错误:resp_data返回值为空"
)
}
log_no
=
resp_data
.
(
map
[
string
]
interface
{})[
"log_no"
]
.
(
string
)
//拉卡拉对账单流水号
//
log_no = "66210310187398"
fmt
.
Println
(
"log_no返回值:"
,
log_no
)
if
log_no
==
""
{
return
""
,
""
,
0
,
0
,
""
,
""
,
errors
.
New
(
"数据错误:拉卡拉对账单流水号为空"
)
}
...
...
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