Method: Model::Auth#deal_test_case

Defined in:
app/models/wechat/model/auth.rb

#deal_test_case(agency) ⇒ Object

第三方平台上线测试用例2 测试公众号使用客服消息接口处理用户消息



26
27
28
29
30
31
32
# File 'app/models/wechat/model/auth.rb', line 26

def deal_test_case(agency)
  text_service = agency.wechat_services.build(type: 'TextService')
  text_service.open_id = request.open_id
  text_service.value = "#{auth_code}_from_api"
  text_service.save
  text_service.do_send
end