sunsheng 1 年之前
父节点
当前提交
2366ad171f
共有 2 个文件被更改,包括 0 次插入6 次删除
  1. 0 3
      src/api/test.go
  2. 0 3
      src/api/user.go

+ 0 - 3
src/api/test.go

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

+ 0 - 3
src/api/user.go

@@ -313,17 +313,14 @@ func ImportUser(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 			rowNum := index + 1
 			rowNum := index + 1
 			// 标题行
 			// 标题行
 			if index == 0 {
 			if index == 0 {
-				rowNum++
 				continue
 				continue
 			}
 			}
 			// 表头
 			// 表头
 			if index == 1 {
 			if index == 1 {
-				rowNum++
 				continue
 				continue
 			}
 			}
 			// 去除可能的空行
 			// 去除可能的空行
 			if len(us[0]) < 3 {
 			if len(us[0]) < 3 {
-				rowNum++
 				continue
 				continue
 			}
 			}
 			// 用户名name 编号nid 密码password 角色roles
 			// 用户名name 编号nid 密码password 角色roles