签到签退
签到签退数据主要用于控制微信支付凭证是否包含开发票入口、是否创建用户行程单
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
plate_number | string | 车牌号 |
driver_license | string | 营运资格证号 |
event_time | string | 事件发生时间 |
event_type | string | 事件类型 |
region_id | integer | 行政区划ID |
php
$instance->v3->taxiInvoice->attendance->punch->postAsync([
'json' => [
'plate_number' => '粤B12345',
'driver_license' => '6298416',
'event_time' => '2019-12-01T12:00:00.000+08:00',
'event_type' => 'SIGN_IN',
'region_id' => 510100,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/taxi-invoice/attendance/punch')->postAsync([
'json' => [
'plate_number' => '粤B12345',
'driver_license' => '6298416',
'event_time' => '2019-12-01T12:00:00.000+08:00',
'event_type' => 'SIGN_IN',
'region_id' => 510100,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/taxi-invoice/attendance/punch']->postAsync([
'json' => [
'plate_number' => '粤B12345',
'driver_license' => '6298416',
'event_time' => '2019-12-01T12:00:00.000+08:00',
'event_type' => 'SIGN_IN',
'region_id' => 510100,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->taxiInvoice->attendance->punch->post([
'json' => [
'plate_number' => '粤B12345',
'driver_license' => '6298416',
'event_time' => '2019-12-01T12:00:00.000+08:00',
'event_type' => 'SIGN_IN',
'region_id' => 510100,
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/taxi-invoice/attendance/punch')->post([
'json' => [
'plate_number' => '粤B12345',
'driver_license' => '6298416',
'event_time' => '2019-12-01T12:00:00.000+08:00',
'event_type' => 'SIGN_IN',
'region_id' => 510100,
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/taxi-invoice/attendance/punch']->post([
'json' => [
'plate_number' => '粤B12345',
'driver_license' => '6298416',
'event_time' => '2019-12-01T12:00:00.000+08:00',
'event_type' => 'SIGN_IN',
'region_id' => 510100,
],
]);
print_r($response->getStatusCode() === 204);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |
参阅 官方文档