浏览代码

错误提示

xuzhiheng 2 年之前
父节点
当前提交
eb907406e8
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 {