Browse Source

fix: channel typ error

CalciumIon 1 year ago
parent
commit
0b4ef42d86
1 changed files with 2 additions and 2 deletions
  1. 2 2
      relay/common/relay_info.go

+ 2 - 2
relay/common/relay_info.go

@@ -33,7 +33,7 @@ type RelayInfo struct {
 }
 }
 
 
 func GenRelayInfo(c *gin.Context) *RelayInfo {
 func GenRelayInfo(c *gin.Context) *RelayInfo {
-	channelType := c.GetInt("channel")
+	channelType := c.GetInt("channel_type")
 	channelId := c.GetInt("channel_id")
 	channelId := c.GetInt("channel_id")
 
 
 	tokenId := c.GetInt("token_id")
 	tokenId := c.GetInt("token_id")
@@ -112,7 +112,7 @@ type TaskRelayInfo struct {
 }
 }
 
 
 func GenTaskRelayInfo(c *gin.Context) *TaskRelayInfo {
 func GenTaskRelayInfo(c *gin.Context) *TaskRelayInfo {
-	channelType := c.GetInt("channel")
+	channelType := c.GetInt("channel_type")
 	channelId := c.GetInt("channel_id")
 	channelId := c.GetInt("channel_id")
 
 
 	tokenId := c.GetInt("token_id")
 	tokenId := c.GetInt("token_id")