This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
packagecrontask
import(
"autogo/cli"
"autogo/dbsql"
"autogo/models"
"fmt"
)
funcCheckIOSDevices(){
m:=cli.GetIOSDevices()
db,err:=dbsql.GetConn(dbsql.DSN)
iferr!=nil{
fmt.Println("[Crontab] 数据库连接失败")
return
}
deferdbsql.Close(db)
varlist[]models.Device
db.Model(models.Device{}).Where("platform = ? AND is_del = 0","ios").Find(&list)