-
Notifications
You must be signed in to change notification settings - Fork 124
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
post返回空数组 #120
Comments
提供下复现代码和账户信息~ |
|
$ret = $Api->post('/base64', [ 'username' => 'skadi', 'password' => '', 'typeid' => 1001, 'image' => '' ])->body;
print_r($ret->getContents()); 这里是有数据的啊? {"success":true,"code":"0","message":"success","data":{"result":"9349","id":"Zx3KeRNZQTKEXKbXg_niEQ"}} |
感谢指点,getContents是在文档那里提示了吗? |
@sy-records 发现问题的根源了 |
curl代码也给个 |
我也遇到类似的问题,不知道题主最终解决了没 |
使用SaberGM post请求http://api.ttshitu.com/base64得到意外的结果(空内容)
似乎并不是contentType的问题
The text was updated successfully, but these errors were encountered: