add generateUrlParams and fixed generateHashDatas bug