fix: some
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 2m14s

This commit is contained in:
luo
2026-10-13 16:11:02 +08:00
parent da95a914e3
commit 97dec4dc65
9 changed files with 71 additions and 61 deletions

View File

@@ -21,6 +21,11 @@ export const getBindingSuccessState = (state, phone, mode) => {
if (mode === 'customer') {
return { customerPhone: phone, assetPhoneIsOwn: null, needBindPhone: false };
}
// Even if the customer phone was unavailable, successful binding of a
// previously unbound asset proves an association now exists, not its owner.
if (state.assetPhoneBound === false) {
return { assetPhoneBound: true, assetPhoneIsOwn: null, needBindPhone: false };
}
// An ambiguous success response does not identify which phone was changed.
return { needBindPhone: false };
};