fix: 修正删除客户时的错误代码,更新授权码和许可证相关的错误信息

This commit is contained in:
wood911010 committed 2026-02-02 01:43:27 +08:00
1 parent 251fcba655
commit 3edbaef170
1 file changed
+2 -2
+2 -2
View File
@@ -240,7 +240,7 @@ func (s *customerService) DeleteCustomer(ctx context.Context, id string) error {
return i18n.NewI18nError("900004", lang, err.Error())
}
if hasAuthCodes {
return i18n.NewI18nError("200006", lang)
return i18n.NewI18nError("200008", lang)
}
// 检查是否有关联的许可证
@@ -249,7 +249,7 @@ func (s *customerService) DeleteCustomer(ctx context.Context, id string) error {
return i18n.NewI18nError("900004", lang, err.Error())
}
if hasLicenses {
return i18n.NewI18nError("200006", lang)
return i18n.NewI18nError("200008", lang)
}
// 委托给Repository层进行物理删除