GET api/EcoCar/Busi/Class/FindCurrent/ByCarIndex?carindex={carindex}

依据车辆的ID,查询车辆当前正在开行的班次。需要判断返回值,errcode=0表示检索成功。 这个API用于客人扫座位后的条码后,在条码所示URL的页面中,先访问这个API,查询当前车辆正在开行的班次,当当前车辆没有正在开行的班次时,必须进行提示。 如果本API返回了班次,则再调用其他的API接口,查询班次对应的票型进行展示。

Request Information

URI Parameters

NameDescriptionTypeAdditional information
carindex

车辆的序号(二维码所展示链接的最后一个域)。

integer

Required

Body Parameters

None.

Response Information

Resource Description

依据车辆的ID,查询车辆当前正在开行的班次。需要判断返回值,errcode=0表示检索成功。 这个API用于客人扫座位后的条码后,在条码所示URL的页面中,先访问这个API,查询当前车辆正在开行的班次,当当前车辆没有正在开行的班次时,必须进行提示。 如果本API返回了班次,则再调用其他的API接口,查询班次对应的票型进行展示。

CommonOperationResultWithTagOfEcoCarClassVitem
NameDescriptionTypeAdditional information
errcode

integer

None.

errmsg

string

None.

tag

EcoCarClassVitem

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": {
    "linename": "sample string 1",
    "lineid": "sample string 2",
    "classid": "sample string 3",
    "carno": "sample string 4",
    "carnotype": "sample string 5",
    "seatingcapacity": 6,
    "ticketchecktype": "sample string 7",
    "normaltime": 8.0,
    "yhdlm": "sample string 9",
    "yhmc": "sample string 10",
    "startdate": "sample string 11",
    "starttime": "sample string 12",
    "runstatus": "sample string 13",
    "enddate": "sample string 14",
    "endtime": "sample string 15",
    "curlongitude": 16.0,
    "curlatitude": 17.0,
    "totalsellbillcount": 18,
    "totalticketcount": 19,
    "totalsummary": 20.0,
    "totalcheckcount": 21,
    "totalchecksummary": 22.0,
    "realtimelength": 23.0,
    "GateId": "sample string 24"
  }
}

application/xml, text/xml

Sample:
<CommonOperationResultWithTagOfEcoCarClassViteminy84t6v xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
  <tag xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Common">
    <d2p1:GateId>sample string 24</d2p1:GateId>
    <d2p1:carno>sample string 4</d2p1:carno>
    <d2p1:carnotype>sample string 5</d2p1:carnotype>
    <d2p1:classid>sample string 3</d2p1:classid>
    <d2p1:curlatitude>17</d2p1:curlatitude>
    <d2p1:curlongitude>16</d2p1:curlongitude>
    <d2p1:enddate>sample string 14</d2p1:enddate>
    <d2p1:endtime>sample string 15</d2p1:endtime>
    <d2p1:lineid>sample string 2</d2p1:lineid>
    <d2p1:normaltime>8</d2p1:normaltime>
    <d2p1:realtimelength>23</d2p1:realtimelength>
    <d2p1:runstatus>sample string 13</d2p1:runstatus>
    <d2p1:seatingcapacity>6</d2p1:seatingcapacity>
    <d2p1:startdate>sample string 11</d2p1:startdate>
    <d2p1:starttime>sample string 12</d2p1:starttime>
    <d2p1:ticketchecktype>sample string 7</d2p1:ticketchecktype>
    <d2p1:totalcheckcount>21</d2p1:totalcheckcount>
    <d2p1:totalchecksummary>22</d2p1:totalchecksummary>
    <d2p1:totalsellbillcount>18</d2p1:totalsellbillcount>
    <d2p1:totalsummary>20</d2p1:totalsummary>
    <d2p1:totalticketcount>19</d2p1:totalticketcount>
    <d2p1:yhdlm>sample string 9</d2p1:yhdlm>
    <d2p1:yhmc>sample string 10</d2p1:yhmc>
    <d2p1:linename>sample string 1</d2p1:linename>
  </tag>
</CommonOperationResultWithTagOfEcoCarClassViteminy84t6v>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.