What's wrong with the writing of beego model?

clipboard.png

clipboard.png

Apr.01,2022

err in line 316 does not exist in scope.
golang has block-level scope. You need to define err outside the if/else above line 316

var err error
if wid == 100017927 {
    _, err = xxx
} else {
    _, err = xxx
}
if err == nil {
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e84b-2b161.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e84b-2b161.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?