|
@@ -6,6 +6,7 @@ import (
|
|
|
"cicv-data-closedloop/common/config/c_log"
|
|
|
commonEntity "cicv-data-closedloop/common/entity"
|
|
|
"cicv-data-closedloop/common/util"
|
|
|
+ "fmt"
|
|
|
"github.com/gin-gonic/gin"
|
|
|
"github.com/signintech/gopdf"
|
|
|
"io"
|
|
@@ -44,7 +45,9 @@ func Tick(c *gin.Context) {
|
|
|
}
|
|
|
teamName := param.TeamName
|
|
|
positionX, _ := strconv.ParseFloat(param.PositionX, 64)
|
|
|
- positionY, _ := strconv.ParseFloat(param.PositionY, 64)
|
|
|
+ var positionY float64
|
|
|
+ numStr := param.PositionY
|
|
|
+ _, _ = fmt.Sscanf(numStr, "%e", &positionY)
|
|
|
if !util.ContainsKey(cacheTeamName, teamName) && math.Abs(positionX-InitialPositionX) < 5.00 && math.Abs(positionY-InitialPositionY) < 5.00 { // (在起点开始)
|
|
|
sqlTemplate, _ := util.ReadFile(c_db.SqlFilesMap["exam-insert-begin_time-and-topic-by-team_name.sql"])
|
|
|
stage := "表演赛"
|