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