@ -60,6 +60,15 @@ func main() {
sql = "truncate table t_base_student_import_excel"
db.SQL(sql).Execute()
//清空自动日志
var logPath = ConfigUtil.DistributeRemotePath + "Logs"
file := logPath + "/dsBaseRpc.log"
if CommonUtil.Exists(file) {
f, _ := os.OpenFile(file, os.O_WRONLY|os.O_TRUNC, 0600)
defer f.Close()
f.WriteString("清空成功!")
}
})
c.Start()
defer c.Stop()