[Compass-ci] [PATCH v2 compass-ci 2/4] assign-account: add new function and optimize