1、修复租赁订单归还时手机尾号为空时报错的缺陷;

This commit is contained in:
chenlin 2025-07-18 18:24:36 +08:00
parent 9c4e75d749
commit 80cc72a74b

View File

@ -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