ABS login
This commit is contained in:
parent
55b226e729
commit
e9992575dc
@ -1188,6 +1188,173 @@
|
||||
"body": "[\n {\n \"raceId\": 1,\n \"sysDataOnly\": \"2025-06-29\",\n \"raceVenue\": {\n \"raceVenueId\": 1,\n \"venue\": \"BNG\"\n },\n \"numberOfRace\": 4\n },\n {\n \"raceId\": 2,\n \"sysDataOnly\": \"2025-07-29\",\n \"raceVenue\": {\n \"raceVenueId\": 1,\n \"venue\": \"BNG\"\n },\n \"numberOfRace\": 4\n },\n {\n \"raceId\": 3,\n \"sysDataOnly\": \"2025-08-29\",\n \"raceVenue\": {\n \"raceVenueId\": 1,\n \"venue\": \"BNG\"\n },\n \"numberOfRace\": 4\n },\n {\n \"raceId\": 4,\n \"sysDataOnly\": \"2025-06-30\",\n \"raceVenue\": {\n \"raceVenueId\": 1,\n \"venue\": \"BNG\"\n },\n \"numberOfRace\": 4\n }\n]"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ABS ping",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "http://localhost:8081/abs/health",
|
||||
"protocol": "http",
|
||||
"host": [
|
||||
"localhost"
|
||||
],
|
||||
"port": "8081",
|
||||
"path": [
|
||||
"abs",
|
||||
"health"
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "ABS login",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"opCard\":\"021804111066\",\n \"btId\":\"0483\",\n \"usrId\":\"\",\n \"password\":\"0660000\",\n \"passwordEnc\":\"\",\n \"btMake\":\"\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": {
|
||||
"raw": "http://localhost:8081/abs/login",
|
||||
"protocol": "http",
|
||||
"host": [
|
||||
"localhost"
|
||||
],
|
||||
"port": "8081",
|
||||
"path": [
|
||||
"abs",
|
||||
"login"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "",
|
||||
"value": null,
|
||||
"disabled": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": [
|
||||
{
|
||||
"name": "ABS login",
|
||||
"originalRequest": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"opCard\":\"021804111066\",\n \"btId\":\"0483\",\n \"usrId\":\"\",\n \"password\":\"0660000\",\n \"passwordEnc\":\"\",\n \"btMake\":\"\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": {
|
||||
"raw": "http://localhost:8081/abs/login",
|
||||
"protocol": "http",
|
||||
"host": [
|
||||
"localhost"
|
||||
],
|
||||
"port": "8081",
|
||||
"path": [
|
||||
"abs",
|
||||
"login"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "",
|
||||
"value": null,
|
||||
"disabled": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"status": "OK",
|
||||
"code": 200,
|
||||
"_postman_previewlanguage": "",
|
||||
"header": [
|
||||
{
|
||||
"key": "Vary",
|
||||
"value": "Origin"
|
||||
},
|
||||
{
|
||||
"key": "Vary",
|
||||
"value": "Access-Control-Request-Method"
|
||||
},
|
||||
{
|
||||
"key": "Vary",
|
||||
"value": "Access-Control-Request-Headers"
|
||||
},
|
||||
{
|
||||
"key": "X-Content-Type-Options",
|
||||
"value": "nosniff"
|
||||
},
|
||||
{
|
||||
"key": "X-XSS-Protection",
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"key": "Cache-Control",
|
||||
"value": "no-cache, no-store, max-age=0, must-revalidate"
|
||||
},
|
||||
{
|
||||
"key": "Pragma",
|
||||
"value": "no-cache"
|
||||
},
|
||||
{
|
||||
"key": "Expires",
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"key": "X-Frame-Options",
|
||||
"value": "DENY"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "Transfer-Encoding",
|
||||
"value": "chunked"
|
||||
},
|
||||
{
|
||||
"key": "Date",
|
||||
"value": "Sat, 23 Aug 2025 05:24:30 GMT"
|
||||
},
|
||||
{
|
||||
"key": "Keep-Alive",
|
||||
"value": "timeout=60"
|
||||
},
|
||||
{
|
||||
"key": "Connection",
|
||||
"value": "keep-alive"
|
||||
}
|
||||
],
|
||||
"cookie": [],
|
||||
"body": "{\n \"ok\": true,\n \"target\": \"192.0.0.14:7000\",\n \"sentHeaderHex\": \"640000007d17000001000000010000000000000000000000\",\n \"sentBodyHex\": \"0000000000303231383034313131303636000000000033393933333333330000003034383300\",\n \"replyBytes\": 511,\n \"replyHexFirst64\": \"6400000000000000020000000000000000000000323032352f30382f32332f31303a35333a35370052454e554b41505241534144202e4b000000000000000000\",\n \"rcvHeaderRaw\": {\n \"nTxnCd\": 100,\n \"nRetCd\": 0,\n \"nNumRecs\": 2,\n \"nTxnId\": 0,\n \"cBtMake\": 0,\n \"size\": 24\n },\n \"success\": true,\n \"encryption\": {\n \"used\": true,\n \"utcSeconds\": 30,\n \"key\": 3,\n \"encPasswd\": \"39933333\"\n },\n \"offsetProbe\": {\n \"bodyOffset\": 20,\n \"around\": \"\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u00002025/08/23/10:53\"\n },\n \"log\": {\n \"cDateTime\": \"2025/08/23/10:53:57\",\n \"cUsrNm\": \"RENUKAPRASAD .K\",\n \"cUsrId\": \"066\",\n \"cSupNm\": \"\",\n \"cSupId\": \"\",\n \"cUsrTyp\": \"OPTR\",\n \"fOpenBal\": 0,\n \"fTktSalesByVoucher\": 0,\n \"fTktSalesByCash\": 0,\n \"fTktSalesByMemCard\": 0,\n \"nTktSalesByVoucherCount\": 0,\n \"nTktSalesByCashCount\": 0,\n \"nTktSalesByMemCardCount\": 0,\n \"fPayoutByVoucher\": 0,\n \"fPayoutByCash\": 0,\n \"fPayoutByMemCard\": 0,\n \"nPayoutByVoucherCount\": 0,\n \"nPayoutByCashCount\": 0,\n \"nPayoutByMemCardCount\": 0,\n \"fCancelByVoucher\": 0,\n \"fCancelByCash\": 0,\n \"fCancelByMemCard\": 0,\n \"nCancelByVoucherCount\": 0,\n \"nCancelByCashCount\": 0,\n \"nCancelByMemCardCount\": 0,\n \"fDeposit\": 0,\n \"fWithdrawAmt\": 0,\n \"fVoucherSales\": 0,\n \"fVoucherEncash\": 0,\n \"fCloseBal\": 0,\n \"fSaleTarget\": 0,\n \"size\": 197\n }\n}"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -53,7 +53,7 @@ public class AbsController {
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(value = "/abs/poll", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
@PostMapping(value = "/poll", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
public Object poll(@RequestBody(required = false) Map<String, Object> body) {
|
||||
try {
|
||||
int btMake = extractBtMake(body);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user