refactoring weixin.rb. Qiu