🐛修复paytype没有删除干净的错误
This commit is contained in:
@@ -119,7 +119,6 @@ func (c *AddController) AddRoad() {
|
||||
roadName := strings.TrimSpace(c.GetString("roadName"))
|
||||
roadRemark := strings.TrimSpace(c.GetString("roadRemark"))
|
||||
productUid := strings.TrimSpace(c.GetString("productName"))
|
||||
payType := strings.TrimSpace(c.GetString("payType"))
|
||||
basicRate := strings.TrimSpace(c.GetString("basicRate"))
|
||||
settleFee := strings.TrimSpace(c.GetString("settleFee"))
|
||||
roadTotalLimit := strings.TrimSpace(c.GetString("roadTotalLimit"))
|
||||
@@ -138,7 +137,6 @@ func (c *AddController) AddRoad() {
|
||||
endHour,
|
||||
roadName,
|
||||
productUid,
|
||||
payType,
|
||||
basicRate,
|
||||
settleFee,
|
||||
roadTotalLimit,
|
||||
|
||||
@@ -341,7 +341,7 @@ func (c *AddService) AddBankCard(userName, bankCode, accountName, certificateTyp
|
||||
}
|
||||
|
||||
func (c *AddService) AddRoad(startHour, endHour, roadName, productUid,
|
||||
payType, basicRate, settleFee, roadTotalLimit, roadEverydayLimit,
|
||||
basicRate, settleFee, roadTotalLimit, roadEverydayLimit,
|
||||
singleMinLimit, singleMaxLimit, roadUid, roadRemark, params, productCode, paymentHtml string) *datas.BaseDataJSON {
|
||||
|
||||
dataJSON := new(datas.BaseDataJSON)
|
||||
@@ -360,8 +360,6 @@ func (c *AddService) AddRoad(startHour, endHour, roadName, productUid,
|
||||
dataJSON.Msg = "通道名称不能为空"
|
||||
} else if v := valid.Required(productUid, "productUid"); !v.Ok {
|
||||
dataJSON.Msg = "产品名称不能为空"
|
||||
} else if v := valid.Required(payType, "payType"); !v.Ok {
|
||||
dataJSON.Msg = "支付类型不能为空"
|
||||
} else if v := valid.Required(basicRate, ""); !v.Ok {
|
||||
dataJSON.Msg = "成本费率不能为空"
|
||||
} else if v := valid.Range(startHourTmp, 0, 23, ""); !v.Ok {
|
||||
@@ -411,7 +409,6 @@ func (c *AddService) AddRoad(startHour, endHour, roadName, productUid,
|
||||
roadInfo.Remark = roadRemark
|
||||
roadInfo.ProductUid = productUid
|
||||
roadInfo.ProductName = productName
|
||||
roadInfo.PayType = payType
|
||||
roadInfo.BasicFee = basicFee
|
||||
roadInfo.SettleFee = settleFeeTmp
|
||||
roadInfo.TotalLimit = totalLimit
|
||||
@@ -438,7 +435,6 @@ func (c *AddService) AddRoad(startHour, endHour, roadName, productUid,
|
||||
Remark: roadRemark,
|
||||
ProductUid: productUid,
|
||||
ProductName: productName,
|
||||
PayType: payType,
|
||||
BasicFee: basicFee,
|
||||
SettleFee: settleFeeTmp,
|
||||
TotalLimit: totalLimit,
|
||||
|
||||
Reference in New Issue
Block a user