I have same issue, and when i put on fast charging mode then it works properly but if fast cahrging is not on then i gives super slow charging speed. So it not a wire problem.
I suggest to update or degrade your phone, it's not an hardware issue i think it's software issue so if upgrade available than update your phone or not avaible than manually degrade.