Skip to content

签到签退

签到签退数据主要用于控制微信支付凭证是否包含开发票入口、是否创建用户行程单

请求参数类型描述
jsonobject声明请求的JSON数据结构
plate_numberstring车牌号
driver_licensestring营运资格证号
event_timestring事件发生时间
event_typestring事件类型
region_idinteger行政区划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);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory