If the OnePlus phone cannot be charged when it uses a Huawei charger, it may be caused by incompatibility between the charger and the phone or poor contact between the charging port. It is recommended to use the original charger or a compatible third-party charger for charging. At the same time, check whether the charging port of the mobile phone is dusty or loose, and you can clean it with a cotton swab or remove the plug and reinsert the charging port. If the problem persists, it is recommended to contact after-sales service.
This is clearly a mismatched charger.