| 环境 | HTTP | HTTPS |
|---|---|---|
| 正式环境: | http://api.siguohuacheng.com | https://api.siguohuacheng.com |
| 沙箱环境: | http://api.siguohuacheng.com | https://api.siguohuacheng.com |
| 名称 | 类型 | 必须 | 默认 | 说明 |
|---|---|---|---|---|
| Timestamp | string | 是 | 发送请求的时间,格式"yyyy-MM-dd HH:mm:ss" | |
| Format | string | 否 | json | 响应格式。默认为json格式,可选值:xml,json |
wx.request({
method: 'PUT',
url: 'http://api.siguohuacheng.com/v6/face/:id',
headers: {
'Timestamp': '2025-12-08 11:30:12',
'Format': 'json'
},
success:function(res) {
console.log(res)
}
})
$.ajax({
type: 'PUT',
url: 'http://api.siguohuacheng.com/v6/face/:id',
headers: {
'Timestamp': '2025-12-08 11:30:12',
'Format': 'json'
},
success: function(res) {
console.log(res)
}
});
namespace app\index\home;
use hisi\Http;
use think\Controller;
class Test extends Controller {
public function index()
{
$url = 'http://api.siguohuacheng.com/v6/face/:id';
$param = [];
$header = [
'Timestamp:2025-12-08 11:30:12',
'Format:json',
];
$result = Http::put($url, $param, $header);
print_r($result);
}
}
{
"code": 0,
"message": "success",
"data": []
}
0
{
"code": 404,
"message": "empty method!"
}
404
| 错误码 | 错误消息 | 解决方案 |
|---|