版本
Face(地址:/v6/face)
请求类型:POST

公共参数

请求地址
环境 HTTP HTTPS
正式环境: http://api.siguohuacheng.com https://api.siguohuacheng.com
沙箱环境: http://api.siguohuacheng.com https://api.siguohuacheng.com
请求头信息(header)
名称 类型 必须 默认 说明
Timestamp string 发送请求的时间,格式"yyyy-MM-dd HH:mm:ss"
Format string json 响应格式。默认为json格式,可选值:xml,json

请求示例

  • 微信小程序
  • Javascript
  • PHP
    wx.request({
        method: 'POST',
        url: 'http://api.siguohuacheng.com/v6/face',
        headers: {
            
            'Timestamp': '2025-12-08 11:30:12', 
                   
            'Format': 'json'
        },
        success:function(res) {
            console.log(res)
        }
    })
                                    
    $.ajax({
        type: 'POST',
        url: 'http://api.siguohuacheng.com/v6/face',
        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';
        $param = [];
        $header = [
            
            'Timestamp:2025-12-08 11:30:12',
            
            'Format:json',
        ];

        $result = Http::post($url, $param, $header);
        print_r($result);
    }
}
                                    

返回示例

  • JSON
  • XML
    {
    "code": 0,
    "message": "success",
    "data": []
}                                        
    
    0
    
    
    
                                        

异常示例

  • JSON
  • XML
{
    "code": 404,
    "message": "empty method!"
}                                    

    404
    
                                    

错误码解释

错误码 错误消息 解决方案

API测试工具

请求头信息(header)
发送请求的时间,格式"yyyy-MM-dd HH:mm:ss"
响应格式。默认为json格式,可选值:xml,json
请求参数