Commit 5efaccf2 authored by wangp's avatar wangp

lakala

parent 8fa41a45
...@@ -788,7 +788,7 @@ func selectRefundBill(tx *sql.Tx, input *models.RefundParamInput) (string, strin ...@@ -788,7 +788,7 @@ func selectRefundBill(tx *sql.Tx, input *models.RefundParamInput) (string, strin
var platform_type uint8 var platform_type uint8
var source_code uint8 var source_code uint8
var notice_request interface{} var notice_request interface{}
var notice_response interface{} var notice_response []byte
var notice_request2 []byte var notice_request2 []byte
//notice_request2 = []byte(`abc`) //notice_request2 = []byte(`abc`)
//payment_order_code, paymoney //payment_order_code, paymoney
...@@ -810,7 +810,11 @@ func selectRefundBill(tx *sql.Tx, input *models.RefundParamInput) (string, strin ...@@ -810,7 +810,11 @@ func selectRefundBill(tx *sql.Tx, input *models.RefundParamInput) (string, strin
} }
} else if source_code==9 { } 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 { } else {
//聚合收银台 //聚合收银台
notice_request = new(models.CashierNoticeInput) notice_request = new(models.CashierNoticeInput)
...@@ -853,14 +857,14 @@ func selectRefundBill(tx *sql.Tx, input *models.RefundParamInput) (string, strin ...@@ -853,14 +857,14 @@ func selectRefundBill(tx *sql.Tx, input *models.RefundParamInput) (string, strin
} }
} else if source_code==9 { } else if source_code==9 {
//聚合被扫 //聚合被扫
//resp_data := notice_request.(map[string]interface{})["resp_data"] resp_data := notice_request.(map[string]interface{})["resp_data"]
//fmt.Println("resp_data返回值:", resp_data) fmt.Println("resp_data返回值:", resp_data)
//if resp_data == nil { if resp_data == nil {
// return "", "", 0, 0, "", "", errors.New("数据错误:resp_data返回值为空") return "", "", 0, 0, "", "", errors.New("数据错误:resp_data返回值为空")
//} }
//log_no = resp_data.(map[string]interface{})["log_no"].(string) //拉卡拉对账单流水号 log_no = resp_data.(map[string]interface{})["log_no"].(string) //拉卡拉对账单流水号
log_no = "66210310187398" //log_no = "66210310187398"
//fmt.Println("log_no返回值:", log_no) fmt.Println("log_no返回值:", log_no)
if log_no == "" { if log_no == "" {
return "", "", 0, 0, "", "", errors.New("数据错误:拉卡拉对账单流水号为空") return "", "", 0, 0, "", "", errors.New("数据错误:拉卡拉对账单流水号为空")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment