sfps
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user