Browse Source

getcasebyid缺少返回值

zjxpcyc 6 years ago
parent
commit
1d10d519f7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      models/sys.go

+ 1
- 1
models/sys.go View File

@@ -276,5 +276,5 @@ func GetCaseByID(caseID string) (cs *model.SysCase, err error) {
276 276
 	cs = new(model.SysCase)
277 277
 
278 278
 	_, err = DBEngine.Where("case_id=?", caseID).Get(cs)
279
-	return
279
+	return cs, err
280 280
 }