fixed if router is matched, then return; add some constants;code optimize;

fixed if router is matched, then return; add some constants;code
optimize;