1、修复租赁订单归还时手机尾号为空时报错的缺陷;
This commit is contained in:
parent
9c4e75d749
commit
80cc72a74b
|
@ -122,7 +122,7 @@ func RevertGoods(c *gin.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(order.PhoneExt) != 4 {
|
if order.PhoneExt != "" && len(order.PhoneExt) != 4 {
|
||||||
app.Error(c, http.StatusBadRequest, errors.New("手机尾号填写有误(4位数字)"),
|
app.Error(c, http.StatusBadRequest, errors.New("手机尾号填写有误(4位数字)"),
|
||||||
"手机尾号填写有误(4位数字)")
|
"手机尾号填写有误(4位数字)")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user