add sanity check for code param, refactor deeplink open event
add sanity check for code param, refactor deeplink open event

education/classroom-desktop,education/classroom-desktop,education/classroom-desktop,education/classroom-desktop