diff --git a/src/app/pages/terminals/terminals.component.html b/src/app/pages/terminals/terminals.component.html index b634672..724adff 100644 --- a/src/app/pages/terminals/terminals.component.html +++ b/src/app/pages/terminals/terminals.component.html @@ -50,7 +50,7 @@ Введите ID точки заказа: - + + - +
diff --git a/src/app/pages/terminals/terminals.component.ts b/src/app/pages/terminals/terminals.component.ts index 39078d8..0914eb2 100644 --- a/src/app/pages/terminals/terminals.component.ts +++ b/src/app/pages/terminals/terminals.component.ts @@ -119,7 +119,7 @@ export class TerminalsComponent implements OnInit { "client_id": this.choose, "terminal_id": this.jsonRpcService.changeId, "address": address, - "areas": this.chooseArea, + "areas": [1,2,3], "public_id": public_id } }, RpcService.authService, false) @@ -174,10 +174,14 @@ export class TerminalsComponent implements OnInit { registerTerminal2() { let public_id = document.getElementsByTagName("input")[0].value + let address = document.getElementsByTagName("input")[1].value this.jsonRpcService.rpc2({ - method: 'registerTerminal', + method: 'createTerminal', params: { + "client_id": this.jsonRpcService.ClientChoose, "public_id": public_id, + "address": address, + "areas": [1,2,3] } }, RpcService.authService, false) .subscribe({