checkcode update

add type param