This commit is contained in:
richboo111
2022-08-03 14:49:41 +08:00
parent a3b888c2c5
commit b78d5c4ca2

View File

@@ -158,8 +158,8 @@ func GetMixPayDetail(orderID string) (details *MixPayDetail, err error) {
sql += "SELECT order_id,balance_price,total_price,wx_price,status FROM mix_pay WHERE order_id = ?"
sqlParams = append(sqlParams, orderID)
}
if err = GetRow(GetDB(), &info, sql, sqlParams); err == nil {
//return nil, err
err = GetRow(GetDB(), &info, sql, sqlParams)
if err == nil {
details = &MixPayDetail{
OrderID: info[0].OrderID,
BalancePrice: info[0].BalancePrice,
@@ -168,5 +168,5 @@ func GetMixPayDetail(orderID string) (details *MixPayDetail, err error) {
Status: info[0].Status,
}
}
return info[0], err
return details, err
}