[api2] Fix bug:group msg attachment more than 1
[api] refactor group_msg_to_json