镭速文件上传
获取资产上传地址
请求地址: https://app.3dcat.live/api/3dcat/transfer/getServer
请求方法: Get
请求参数:
返回结果:
字段名 | 类型 | 说明 |
---|---|---|
clientVersion | String | 插件客户端版本 |
protocolVersion | String | 协议版本 |
raysyncTransfer | RaysyncTransfer | 镭速相关信息 |
appGroupId | Integer | app组id |
fileGroupId | Integer | 文件组id |
RaysyncTransfer
字段名 | 类型 | 说明 |
---|---|---|
serverIp | String | 服务器ip |
serverPort | String | 服务器端口 |
proxyIp | String | 代理服务器ip |
proxyPort | String | 代理端口 |
sslPort | String | ssl端口 |
wssService | String | wssService |
wssPort | String | wss端口 |
返回内容示例:
{
"version":"1.0.0",
"result":true,
"message":"success",
"code":200,
"data":{
"clientVersion":"5.0.7.8",
"protocolVersion":"5.0.7.8",
"appGroupId":"5",
"fileGroupId":"5",
"raysyncTransfer":{
"serverIp":"127.0.0.1",
"serverPort":2123,
"proxyIp":"192.168.0.56",
"proxyPort":32001,
"sslPort":42443,
"wssService":42442,
"wssPort":42442
}
},
"serverTime":1626678048327,
"requestId":"dc926819cef0fdc4"
}
命令行上传资产
镭速目录/rayfile-c.exe -a serverIp -P serverPort -u userName -w "appId&1&2&12345678" -o upload -s filePath -d /input/userId
字段名 | 类型 | 说明 |
---|---|---|
镭速目录 | String | 镭速的安装路径 |
serverIp | String | 服务器ip |
serverPort | String | 服务器端口 |
userName | String | 用户名 |
appId | String | sdk的appId |
filePath | String | 上传的文件 |
userId | String | ssl端口 |
示例
C:\Program Files (x86)\RaySync Client\rayfile-c.exe -a 192.168.0.10 -P 32002 -u test -w "343421234443&1&2&12345678" -o upload -s C:\Users\test\Desktop\444.zip -d /input/5