Merge branch 'jdshop' of https://e.coding.net/rosydev/jx-callback into jdshop
This commit is contained in:
@@ -3,6 +3,7 @@ package controllers
|
||||
import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
@@ -240,6 +241,8 @@ func (c *Auth2Controller) WeixinMPOAuth2() {
|
||||
params.Block = params.Block[:strings.LastIndex(params.Block, "?")]
|
||||
}
|
||||
redirectURL = fmt.Sprintf("%s?info=%s", params.Block, base64.StdEncoding.EncodeToString(utils.MustMarshal(callResult)))
|
||||
globals.SugarLogger.Debugf("===redirectURL=== %s", redirectURL)
|
||||
globals.SugarLogger.Debugf("===retVal=== %s", utils.Format4Output(retVal, false))
|
||||
return retVal, model.ErrorCodeIgnore, err
|
||||
})
|
||||
c.Redirect(redirectURL, http.StatusTemporaryRedirect)
|
||||
|
||||
Reference in New Issue
Block a user