Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问有没有服务器端返回消息的相关参数或说明? #9

Open
Pancent opened this issue May 25, 2021 · 1 comment
Open

Comments

@Pancent
Copy link

Pancent commented May 25, 2021

看到这个插件,想在自己服务器上开发服务端,但不知道具体要返回哪些参数和内容。

我的理解:客户端提交的url参数是请求服务的远程地址,通过paramName参数获取图片文件内容,在customBody参数中放置验证上传的用户Key和HASH。

那服务端该如何响应?状态码、返回类型和参数分别是什么。大致猜到是200状态,Json格式,然后消息内容就不明白了。

@sayeui
Copy link

sayeui commented Apr 11, 2022

看到这个插件,想在自己服务器上开发服务端,但不知道具体要返回哪些参数和内容。

我的理解:客户端提交的url参数是请求服务的远程地址,通过paramName参数获取图片文件内容,在customBody参数中放置验证上传的用户Key和HASH。

那服务端该如何响应?状态码、返回类型和参数分别是什么。大致猜到是200状态,Json格式,然后消息内容就不明白了。

你可以让服务端返回一个json,里面返回图片url地址,例如返回{"code":200,"msg":"上传成功","url":"www.xxxx.com/123.png"},然后在插件里设置jsonPath为url就可以让插件获取到上传的图片url地址了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants