Fix error logout, add apart of chat module, type account, change format code, add error_code API