修正修改医生 银行卡问题

This commit is contained in:
2023-07-20 13:50:55 +08:00
parent de9dde6404
commit 6751b1d312
5 changed files with 205 additions and 11 deletions
-8
View File
@@ -96,14 +96,6 @@ func (r *UserDoctor) PutUserDoctor(c *gin.Context) {
return
}
// 签名、身份证数据不为空的情况下,银行卡必填
if req.IdCardFront != "" && req.IdCardBack != "" && req.SignImage != "" {
if req.BankCardCode == "" || req.BankId == "" || req.BankCardProvinceId == 0 || req.BankCardCountyId == 0 || req.BankCardCityId == 0 {
responses.FailWithMessage("请填入银行卡数据", c)
return
}
}
id := c.Param("doctor_id")
if id == "" {
responses.FailWithMessage("缺少参数", c)