Language:
Free Online Dictionary|3Dict

據情辦理

Source : CEDICT

to judge by the circumstances (idiom)