bugfix
parent
1a7ebef58f
commit
9c3dcdb012
|
|
@ -30,7 +30,7 @@ func ServerStart(c *fiber.Ctx) error {
|
|||
|
||||
func OnRtmpConnect(c *fiber.Ctx) error {
|
||||
|
||||
var body map[string]interface{}
|
||||
body := new(models.Connect)
|
||||
|
||||
if err := c.BodyParser(body); err != nil {
|
||||
log.Printf("Error Start: %s\n", err)
|
||||
|
|
|
|||
|
|
@ -50,6 +50,15 @@ type UpdPub struct {
|
|||
WriteBitrate int `json:"write_bitrate"`
|
||||
}
|
||||
|
||||
type Connect struct {
|
||||
ServerId string `json:"server_id"`
|
||||
SessionId string `json:"session_id"`
|
||||
RemoteAddress string `json:"remote_addr"`
|
||||
App string `json:"app"`
|
||||
FlashVer string `json:"flashVer"`
|
||||
TcUrl string `json:"tcUrl"`
|
||||
}
|
||||
|
||||
type Purchase struct {
|
||||
Data struct {
|
||||
Context struct {
|
||||
|
|
|
|||
Loading…
Reference in New Issue