瀏覽代碼

Merge branch 'cygx/cygx_14.0' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

zhangchuanxing 4 月之前
父節點
當前提交
2636d538cc
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      controllers/report.go

+ 3 - 2
controllers/report.go

@@ -4561,11 +4561,12 @@ func (this *ReportController) ChooseSubmitPush() {
 	}
 
 	isPush := req.IsPush // 是否接受推送
-	isRefuse := req.IsRefuse
+	//isRefuse := req.IsRefuse
 	isSubjective := req.IsSubjective
 	isObjective := req.IsObjective
 
-	isRefuse = 1 - isPush // 是否拒绝推送,与是否接收推送进行取反(兼容老的数据库字段)
+	req.IsRefuse = 1 - isPush // 是否拒绝推送,与是否接收推送进行取反(兼容老的数据库字段)
+	isRefuse := req.IsRefuse
 	if isRefuse == 0 && isSubjective == 0 && isObjective == 0 {
 		br.Msg = "请至少选择一项主客观内容"
 		return