This commit is contained in:
richboo111
2023-05-30 11:15:35 +08:00
parent 9c98131ac3
commit 5ededa87d3

View File

@@ -3,6 +3,8 @@ package sfps2
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/globals"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
) )
@@ -126,6 +128,7 @@ func (a *API) GetCallbackUrlIndex(request *http.Request) (map[string]interface{}
temp = map[string]interface{}{} temp = map[string]interface{}{}
) )
if err = json.Unmarshal(data, &temp); err == nil { if err = json.Unmarshal(data, &temp); err == nil {
globals.SugarLogger.Debugf("GetCallbackUrlIndex temp=%s", utils.Format4Output(temp, false))
urlIndex = temp["url_index"].(string) urlIndex = temp["url_index"].(string)
fmt.Println(urlIndex) fmt.Println(urlIndex)
} }
@@ -160,6 +163,7 @@ func (a *API) GetCallbackUrlIndex(request *http.Request) (map[string]interface{}
default: default:
return nil, CallbackResponseErr(false) return nil, CallbackResponseErr(false)
} }
globals.SugarLogger.Debugf("GetCallbackUrlIndex result=%s", utils.Format4Output(result, false))
return result, SuccessResponse return result, SuccessResponse
} }