|
@@ -37,6 +37,7 @@ func Config(c *gin.Context) {
|
|
|
func UpdateUsedDuration(c *gin.Context) {
|
|
|
deviceId := c.Query("deviceId")
|
|
|
usedDurationStr := c.Query("usedDuration")
|
|
|
+ log.Printf("deviceId: %s, usedDuration: %s", deviceId, usedDurationStr)
|
|
|
usedDuration, err := strconv.ParseUint(usedDurationStr, 10, 64)
|
|
|
if err != nil {
|
|
|
dto.Error(c, err)
|