1
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
@@ -40,6 +41,7 @@ func (a *API) QueryBillBalance(param *QueryBillBalanceReq) (*QueryBillBalanceRes
|
||||
|
||||
// EwalletWithdrawD1 账户D1提现
|
||||
func (a *API) EwalletWithdrawD1(param *EwalletWithdrawD1Req) (string, string, error) {
|
||||
globals.SugarLogger.Debugf("-----param:= %s", utils.Format4Output(param, false))
|
||||
reqParameter := map[string]interface{}{
|
||||
"reqData": utils.Struct2Map(param, "", false),
|
||||
"reqId": utils.GetUUID(),
|
||||
@@ -47,10 +49,11 @@ func (a *API) EwalletWithdrawD1(param *EwalletWithdrawD1Req) (string, string, er
|
||||
"timestamp": time.Now().Unix(),
|
||||
}
|
||||
result, err := a.AccessAPISign(BillProdUrl, BillDrawD1, http.MethodPost, "", reqParameter)
|
||||
globals.SugarLogger.Debugf("-----result:= %s", utils.Format4Output(result, false))
|
||||
globals.SugarLogger.Debugf("-----result:= %v", err)
|
||||
if err != nil {
|
||||
return "", "", err
|
||||
}
|
||||
|
||||
if result["retCode"].(string) != Success {
|
||||
return "", "", fmt.Errorf(result["retMsg"].(string))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user