XMLWAN 4 vuotta sitten
vanhempi
commit
8fe1f107a4

+ 1 - 1
conf/app.conf Näytä tiedosto

@@ -1,5 +1,5 @@
1 1
 appname = 血透
2
-httpport = 9529
2
+httpport = 9531
3 3
 runmode = dev
4 4
 
5 5
 

+ 2 - 0
controllers/new_mobile_api_controllers/new_dialysis_api_controller.go Näytä tiedosto

@@ -2353,6 +2353,7 @@ func (this *NewDialysisApiController) UpdateGroup() {
2353 2353
 	name := this.GetString("name")
2354 2354
 	byName, _ := service.GetGroupByNameOne(name, orgid)
2355 2355
 	if byName.ID > 0 && byName.ID != id {
2356
+		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
2356 2357
 		return
2357 2358
 	}
2358 2359
 	group := models.DeviceGroup{Name: name}
@@ -2397,6 +2398,7 @@ func (this *NewDialysisApiController) UpdatedBed() {
2397 2398
 	BedName, _ := service.GetBedByNameOne(name, orgId)
2398 2399
 	fmt.Println("-----", BedName.ID)
2399 2400
 	if BedName.ID > 0 && BedName.ID != id {
2401
+		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
2400 2402
 		return
2401 2403
 	}
2402 2404
 	number := models.DeviceNumber{