Skip to content

Instantly share code, notes, and snippets.

@xx7y7xx
Last active August 11, 2017 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xx7y7xx/a65c17d226da849191a0758ee6398570 to your computer and use it in GitHub Desktop.
Save xx7y7xx/a65c17d226da849191a0758ee6398570 to your computer and use it in GitHub Desktop.
移动端报表请求后端地址

地址

https://acc.yonyoucloud.com/fireport/rptview/view?referAppId=yonyoufi&tenantId=oas6lr3w&op=h5

post请求参数

{"code":"MTrendAnalysis","appid":"yonyoufi","tenantid":"ysdzxt76"}

MTrendAnalysis为报表模板编码

报表模板编码

  • 杜邦分析:MDupont
  • 财务数据指标:MFinancialData
  • 利润表结构分析:MManagementStatus
  • 费用趋势分析:MTrendAnalysis

返回格式

{
    "success": true,
    "message": "",
    "data": "acc.yonyoucloud.com/fireport/ReportServer?reportlet=%2Fyonyoufi%2Foas6lr3w%2FMBalanceSheet%2FMBalanceSheet_p.cpt&__showtoolbar__=false&aid=yonyoufi&tid=oas6lr3w&userid=521fa89e-886e-4d44-9014-eb53097872d1&referAppId=yonyoufi&tenantId=oas6lr3w",
    "code": 1
}

还有费用趋势分析的连接比较特殊

https://acc.yonyoucloud.com/fireport/rptview/view?referAppId=yonyoufi&tenantId=oas6lr3w&rptitem=lr013&op=h5 
POST /fireport/rptview/view?referAppId=yonyoufi&tenantId=oas6lr3w&op=h5 HTTP/1.1
Host: acc.yonyoucloud.com
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: 8f87c751-b944-12d0-670e-188ee872985e

{
  "code": "MTrendAnalysis",
  "appid": "yonyoufi",
  "tenantid": "ysdzxt76"
}
curl -X POST \
  'https://acc.yonyoucloud.com/fireport/rptview/view?referAppId=yonyoufi&tenantId=oas6lr3w&op=h5' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'postman-token: 921f010f-f54b-8d20-6b90-038b673a2981' \
  -d '{
  "code": "MTrendAnalysis",
  "appid": "yonyoufi",
  "tenantid": "ysdzxt76"
}'
{
    "success": true,
    "message": "",
    "data": "acc.yonyoucloud.com/fireport/ReportServer?reportlet=%2Fyonyoufi%2Foas6lr3w%2FMTrendAnalysis%2FMTrendAnalysis_p.cpt&__showtoolbar__=false&aid=yonyoufi&tid=ysdzxt76&userid=674db867-600d-40a7-b549-2cb208b60617&referAppId=yonyoufi&tenantId=oas6lr3w&op=h5",
    "code": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment