Merge branch 'jdshop' of https://e.coding.net/rosydev/jx-callback into jdshop

This commit is contained in:
richboo111
2023-02-06 13:54:45 +08:00
4 changed files with 49 additions and 0 deletions

View File

@@ -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)