调整
This commit is contained in:
parent
6e6be7492e
commit
5f862d5c3f
@ -22,12 +22,14 @@ import (
|
|||||||
其他的需要校验
|
其他的需要校验
|
||||||
|
|
||||||
OutApp不需要限制并发数!!!
|
OutApp不需要限制并发数!!!
|
||||||
|
Callback 也不需要
|
||||||
*/
|
*/
|
||||||
func CaForward(c *gin.Context) {
|
func CaForward(c *gin.Context) {
|
||||||
accountId := c.DefaultQuery("account_id", "")
|
accountId := c.DefaultQuery("account_id", "")
|
||||||
sessionId := c.DefaultQuery("session_id", "")
|
sessionId := c.DefaultQuery("session_id", "")
|
||||||
|
|
||||||
var needlimit bool = !strings.HasPrefix(c.DefaultQuery("c", ""), "OutApp")
|
cmd:=c.DefaultQuery("c", "")
|
||||||
|
var needlimit bool = !strings.HasPrefix(cmd, "OutApp") && !strings.HasPrefix(cmd, "Callback")
|
||||||
if needlimit && !jccommon.IsValidSessionId(accountId, sessionId) {
|
if needlimit && !jccommon.IsValidSessionId(accountId, sessionId) {
|
||||||
f5.RspErr(c, 500, "invalid session_id")
|
f5.RspErr(c, 500, "invalid session_id")
|
||||||
c.Abort()
|
c.Abort()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user