xuzhiheng 2 anni fa
parent
commit
eb907406e8
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      service/service.go

+ 2 - 2
service/service.go

@@ -29,7 +29,7 @@ func AddUsePerson(this *entmanageapplication.AddUsePersonReq) *entmanageapplicat
 		use_count := common.IntAll((*sourceData)["use_count"])
 		if empower_count-use_count < len(UserArr) {
 			msg = "购买数量不足"
-			code = int64(1)
+			code = int64(-1)
 		} else {
 			for _, v := range UserArr {
 				entUserId, _ := strconv.Atoi(v)
@@ -40,7 +40,7 @@ func AddUsePerson(this *entmanageapplication.AddUsePersonReq) *entmanageapplicat
 						ok = JyMysql.Update(EntnichePower, map[string]interface{}{"wait_empower_id": this.WaitEmpowerId, "ent_user_id": this.EntUserId}, map[string]interface{}{"status": 1, "update_time": timeStr})
 					} else {
 						msg = "请勿重复添加"
-						code = int64(1)
+						code = int64(-1)
 						break
 					}
 				} else {