@@ -220,17 +220,14 @@ func ImportTest(c *gin.Context, apictx *ApiSession) (interface{}, error) {
rowNum := index + 1
// 标题行
if index == 0 {
- rowNum++
continue
}
// 表头
if index == 1 {
// 去除可能的空行
if len(ts[0]) < 3 {
// 问题(content) 试题类型(type) (options)选项A 选项B 选项C 选项D 分值(score) (answer)答案
@@ -313,17 +313,14 @@ func ImportUser(c *gin.Context, apictx *ApiSession) (interface{}, error) {
if len(us[0]) < 3 {
// 用户名name 编号nid 密码password 角色roles