Преглед изворни кода

后端: 信息变更不交费不从参数表取值,写死

baichengfei пре 5 година
родитељ
комит
bc75d85c52

+ 3 - 4
src/dashoo.cn/backend/api/controllers/oilsupplier/infoChangeListener.go

@@ -11,7 +11,6 @@ import (
 	"dashoo.cn/backend/api/business/paymentinfo"
 	"dashoo.cn/backend/api/business/workflow"
 	. "dashoo.cn/backend/api/controllers"
-	baseparameter "dashoo.cn/business2/parameter"
 	"dashoo.cn/utils"
 	"encoding/json"
 	"strconv"
@@ -147,11 +146,11 @@ func (this *OilInfoChangeListenerController) CheckNeedPay() {
 	var infoChangeEntity infochange.OilInfoChange
 	infoSrv.GetEntityById(infoId, &infoChangeEntity)
 
-	paramSvc := baseparameter.GetBaseparameterService(utils.DBE)
-	isPay, _ := strconv.Atoi(paramSvc.GetBaseparameterMessage("PAYCHECK", "paramset", "isPayFeeForInfoChange"))
+	//paramSvc := baseparameter.GetBaseparameterService(utils.DBE)
+	//isPay, _ := strconv.Atoi(paramSvc.GetBaseparameterMessage("PAYCHECK", "paramset", "isPayFeeForInfoChange"))
 
 	// 1交费, 2不交费
-	this.Data["json"] = isPay
+	this.Data["json"] = 2 // 信息变更申请不需交费,暂时不从配置表中取信息,防止参数表误操作导致抛异常
 	this.ServeJSON()
 }