Exemple #1
0
func InitServer() {
	h.examids, _ = model.GetAllExamId()

	if len(h.examids) == 0 {
		fmt.Println("没有找到题目")
	}
	//fmt.Println(h.examids)
	go h.run()
}
Exemple #2
0
// 重新加载
func (this *hub) reloadCfg(level int8) {
	switch level {
	case 0:
		this.examids, _ = model.GetAllExamId()
	}
}