diff --git a/app/api/mobile/apis/ecloud.rb b/app/api/mobile/apis/ecloud.rb index cf438f87..23725226 100644 --- a/app/api/mobile/apis/ecloud.rb +++ b/app/api/mobile/apis/ecloud.rb @@ -10,7 +10,7 @@ module Mobile desc "ecloud接口测试" post 'list' do - EcloudService.new.list + EcloudService.new.list(params) end end diff --git a/app/services/ecloud_service.rb b/app/services/ecloud_service.rb index b35f05e6..9306e57f 100644 --- a/app/services/ecloud_service.rb +++ b/app/services/ecloud_service.rb @@ -1,6 +1,6 @@ class EcloudService - def list + def list params return {status: 0, message: "test", code: params[:code], params: params} end