An IP proxy-based cloud plus terminal invoicing system, a terminal and a medium
By establishing a long connection between the client and the cloud invoicing backend, the problem of multiple users being unable to access the tax bureau's website simultaneously was solved, enabling multiple users to handle invoicing business at the same time and meeting the business requirements of the Golden Tax System Phase IV.
Patent Information
- Application Number
- CN202311664663.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-06
- Publication Date
- 2026-01-09
- Estimated Expiration
- 2043-12-06
AI Technical Summary
Under the Golden Tax System Phase IV, multi-user cloud invoicing systems cannot access the tax bureau's website simultaneously using the same IP address, causing inconvenience.
By binding the client to the tax number and establishing a long connection with the cloud invoicing backend, the IP proxy function is realized to meet the business requirements of the bureau's website and enable multiple users to handle invoicing business simultaneously.
It fulfills the cloud invoicing needs in multi-user scenarios, meets the business requirements of the Golden Tax Phase IV system, and enables diskless invoicing and simultaneous use of the cloud invoicing system by multiple users.
Smart Images

Figure CN117834710B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of lightning arresters, and in particular to a cloud plus terminal invoicing system based on IP agents, a terminal and a medium. BACKGROUND
[0002] Under the background of the fourth golden tax, users no longer use tax control equipment for invoicing, but use cloud invoicing. Users can directly access and use the tax bureau website to handle business through the Internet, and the tax bureau detects the IP of the invoicing computer. The same computer cannot be used to continuously invoice multiple tax numbers at the same time. Therefore, the cloud invoicing system for multiple users cannot access the tax bureau website using the same IP, which causes inconvenience and inconvenience to users. SUMMARY
[0003] The present application aims to at least solve one of the technical problems existing in the prior art. To this end, the present application proposes a cloud plus terminal invoicing system based on IP agents, which can bind the client with the tax number and establish a long connection with the cloud invoicing background to realize the IP agent function, thereby avoiding the restrictions of the tax bureau and allowing multiple users to handle invoicing business at the same time.
[0004] The present application also proposes a terminal and a storage medium having the above-mentioned cloud plus terminal invoicing system based on IP agents.
[0005] The cloud plus terminal invoicing system based on IP agents according to the first aspect embodiment of the present application is characterized in that it comprises a client, a cloud invoicing background, wherein
[0006] The client comprises:
[0007] The client interface has functions including tax number list display, tax number addition, tax number deletion, long connection establishment, long connection disconnection, and identifier update.
[0008] The client background interacts with the client through the network, maintains the tax number list, and is responsible for data storage. A database is established based on tax numbers, and information such as token, long connection key, and timestamp is stored. When the client background receives the long connection establishment request of the human-computer interaction interface, it will establish a long connection with the cloud invoicing background according to the tax number and the user identifier.
[0009] The functions of the cloud invoicing background include user business reception, assembly of local terminal request parameters, pushing of business requests to the client background, and reception of returned results.
[0010] According to the cloud plus terminal invoicing system of the embodiment of the present application, at least the following beneficial effects are achieved: the present application realizes IP proxy function by connecting multiple clients with the cloud invoicing background through long connection, meets the business requirements of local website, and realizes the invoicing requirements in the cloud invoicing multi-user scenario; the tax number is bound to the client and long connection is established with the cloud invoicing background, the tax bureau website is accessed through message pushing to the client, so as to realize the IP proxy function; the cloud plus terminal mode realizes diskless invoicing, and meets the requirements of multi-user simultaneous use of the cloud invoicing system, and meets the business requirements of the fourth golden tax.
[0011] According to some embodiments of the present application, the system further comprises a daemon capable of correcting errors and recording errors when the client background or the cloud invoicing background runs errors.
[0012] According to some embodiments of the present application, the system can realize functions including querying a tax number list, adding a tax number, deleting a tax number, establishing a long connection, disconnecting a long connection, updating an identifier, and a business request.
[0013] According to some embodiments of the present application, the function of querying a tax number list comprises:
[0014] The client interface calls the function of querying a tax number list;
[0015] The background service receives the request sent by the client, queries the long connection state in the tax number list, and returns a tax number list based on the query result; wherein the returned tax number list includes information of a tax number, an identifier and a long connection state.
[0016] According to some embodiments of the present application, the function of adding a tax number comprises:
[0017] The client interface calls the function of adding a tax number;
[0018] The background service receives the request sent by the client, checks whether the added tax number is repeated, generates an identification code corresponding to the tax number when the tax number is not repeated, establishes a long connection, and then adds it to the tax number list; if the tax number is repeated, a failure information is returned.
[0019] According to some embodiments of the present application, the function of deleting a tax number comprises:
[0020] The client interface calls the function of deleting a tax number;
[0021] The background service receives the request sent by the client, checks whether the tax number list contains a tax number to be deleted, checks and disconnects the corresponding long connection when the tax number exists, deletes from the tax number list, and then cleans up the information corresponding to the tax number in the database.
[0022] According to some embodiments of the present application, the function of the update identifier comprises:
[0023] The client interface calls the function of the update identifier;
[0024] The background service receives the request sent by the client, checks whether the long connection corresponding to the identifier is normal, disconnects the long connection if it is normal, and does not need to disconnect if it is not normal, and then generates a new identifier;
[0025] The identifier field in the tax number list is updated based on the new identifier, and the long connection is established based on the new identifier.
[0026] According to some embodiments of the present application, the function of the business request comprises:
[0027] The cloud invoicing background obtains the available long connection, encrypts the data to obtain ciphertext, and sends the ciphertext to the client background service through the long connection;
[0028] The client background receives the long connection message of the cloud invoicing background and decrypts it, updates the database information based on the decrypted data, obtains the request parameters, then performs local interaction to obtain an interaction result, and pushes the interaction result to the cloud invoicing background;
[0029] The cloud invoicing background receives the interaction result and completes the business request.
[0030] The terminal according to the second aspect of the present application comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the cloud plus terminal invoicing system based on IP proxy.
[0031] The computer readable storage medium according to the third aspect of the present application stores computer executable instructions, and the computer executable instructions are used to execute the cloud plus terminal invoicing system based on IP proxy.
[0032] Additional aspects and advantages of the present application will be partially given in the following description, partially will become obvious from the following description, or will be understood by the practice of the present application. BRIEF DESCRIPTION OF DRAWINGS
[0033] The above and / or additional aspects and advantages of the present application will become apparent and more readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
[0034] Figure 1 The structure diagram of the cloud plus terminal invoicing system based on IP proxy of the embodiments of the present application;
[0035] Figure 2 The cloud plus terminal invoicing system based on IP proxy of the embodiments of the present application; Figure 1A flowchart of a function of querying a tax number list in an IP proxy-based cloud plus terminal invoicing system is shown.
[0036] Figure 3 For Figure 1 A flowchart of a function of adding a tax number in an IP proxy-based cloud plus terminal invoicing system is shown.
[0037] Figure 4 For Figure 1 A flowchart of a function of deleting a tax number in an IP proxy-based cloud plus terminal invoicing system is shown.
[0038] Figure 5 For Figure 1 A flowchart of a function of establishing a long connection in an IP proxy-based cloud plus terminal invoicing system is shown.
[0039] Figure 6 For Figure 1 A flowchart of a function of disconnecting a long connection in an IP proxy-based cloud plus terminal invoicing system is shown.
[0040] Figure 7 For Figure 1 A flowchart of a function of updating a client ID in an IP proxy-based cloud plus terminal invoicing system is shown.
[0041] Figure 8 For Figure 1 A flowchart of a function of a business request in an IP proxy-based cloud plus terminal invoicing system is shown. DETAILED DESCRIPTION
[0042] Embodiments of the present application are described in detail below with reference to the attached drawings, wherein the same or similar components have the same or similar designations throughout the several views. The embodiments described below are examples of the present application, and are not intended to limit the present application.
[0043] In the description of the present application, it should be understood that the orientation description, such as the orientation or position relationship indicated by up, down, front, back, left, right, etc., is based on the orientation or position relationship shown in the drawings, and is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation of the present application.
[0044] In the description of the present application, the meaning of one or more is one or more, the meaning of multiple is more than two, greater than, less than, more than, etc. are understood as not including the number, above, below, within, etc. are understood as including the number. If the first, second is described, it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features or implicitly indicating the sequence of indicated technical features.
[0045] In the description of the present application, unless otherwise explicitly limited, the words such as setting, installing, connecting, etc. should be broadly understood, and those skilled in the art can reasonably determine the specific meaning of the above words in the present application in combination with the specific content of the technical scheme.
[0046] Embodiment one,
[0047] Referring to Figure 1 The embodiment of the present application provides a cloud plus end invoicing system based on IP agent, which comprises a client and a cloud invoicing background.
[0048] The client comprises a client interface, and the functions thereof include tax number list display, tax number addition, tax number deletion, long connection establishment, long connection disconnection, and identifier (clientid) update.
[0049] The client background interacts with the client through a network, maintains a tax number list, and is responsible for data storage. A database is established in the tax number dimension, and token, long connection key and timestamp information are stored. When the client background receives the long connection establishment request of the man-machine interface, a long connection is established with the cloud invoicing background according to the tax number and the user identifier.
[0050] The client background interacts with the client through a network, and the IP is 127.0.0.1 and the port is a fixed port.
[0051] The functions of the cloud invoicing background include user service reception, local terminal request parameter assembly, business request pushing to the client background and return result receiving.
[0052] The cloud invoicing background is mainly responsible for user service reception, local terminal request parameter assembly, business request pushing to the client background and return result receiving, completion of user service request, and data security is guaranteed by using a national secret algorithm in the communication process.
[0053] Preferably, the client comprises a daemon program, and the daemon program is mainly responsible for normal running of the client background process and is started by using an administrator permission and automatically started at boot. The daemon program can correct errors and record errors when the client background or the cloud invoicing background runs errors.
[0054] Embodiment two,
[0055] Based on the IP proxy-based cloud plus terminal invoicing system provided in the above embodiment one, the system can realize the following functions during operation: querying a tax number list, adding a tax number, deleting a tax number, establishing a long connection, disconnecting a long connection, updating an identifier, and a business request. The functions are as follows:
[0056] With reference to Figure 2 , the function of querying a tax number list includes:
[0057] The client interface calls the function of querying a tax number list;
[0058] The background service receives the request sent by the client, queries the long connection state in the updated tax number list, and returns a tax number list based on the query result; wherein the returned tax number list includes information of a tax number, an identifier, and a long connection state.
[0059] With reference to Figure 3 , the function of adding a tax number includes:
[0060] The client interface calls the function of adding a tax number;
[0061] The background service receives the request sent by the client, checks whether the added tax number is duplicated, generates an identification code corresponding to the tax number when the tax number is not duplicated, establishes a long connection, and then adds it to the tax number list; if the tax number is duplicated, a failure information is returned.
[0062] With reference to Figure 4 , the function of deleting a tax number includes:
[0063] The client interface calls the function of deleting a tax number;
[0064] The background service receives the request sent by the client, checks whether the tax number list includes a tax number to be deleted, checks and disconnects the corresponding long connection when the tax number exists, deletes it from the tax number list, and then cleans up the information corresponding to the tax number in the database.
[0065] With reference to Figure 5 , the function of establishing a long connection includes:
[0066] The client interface calls the function of establishing a long connection;
[0067] The background service receives the request sent by the client, checks whether the state of the long connection corresponding to the tax number is normal, ends if it is normal, and establishes a long connection based on the identifier clientid of the tax number if it is not normal.
[0068] With reference to Figure 6 , the function of disconnecting a long connection includes:
[0069] The client interface calls the function of disconnecting a long connection;
[0070] The background service receives the request sent by the client, checks whether the state of the long connection corresponding to the tax number is normal, and if not, ends, and if normal, disconnects the corresponding long connection.
[0071] Referring to Figure 7 , the function of updating the identifier includes:
[0072] The client interface calls the function of updating the identifier;
[0073] The background service receives the request sent by the client, checks whether the long connection corresponding to the identifier is normal, and if normal, disconnects the long connection, and if not, does not need to disconnect, and then generates a new identifier;
[0074] The identifier field in the tax number list is updated based on the new identifier, and the long connection is established based on the new identifier.
[0075] Referring to Figure 8 , the function of business request includes:
[0076] The cloud billing background obtains an available long connection, encrypts data to obtain ciphertext, and sends a message to the client background service via the long connection;
[0077] The client background receives the long connection message of the cloud billing background and decrypts it, updates database information based on the decrypted data, obtains a request parameter, then performs local area interaction to obtain an interaction result, and pushes the interaction result to the cloud billing background;
[0078] The cloud billing background receives the interaction result and completes the business request.
[0079] Another embodiment of the present application provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the cloud billing system based on IP proxy when executing the computer program.
[0080] Specifically, the processor can be a CPU, a general processor, a DSP, an ASIC, an FPGA, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure. The processor can also be a combination of computing functions, such as one or more microprocessor combinations, DSP and microprocessor combinations, etc.
[0081] Specifically, the processor is connected with the memory through a bus, and the bus can include a channel for transmitting information. The bus can be a PCI bus or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc.
[0082] The memory can be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, and can also be an EEPROM, a CD-ROM or other optical disc storage, an optical disc storage (including a compact disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program codes in the form of instructions or data structures and capable of being accessed by a computer, but not limited to this.
[0083] Optionally, the memory is used to store the code of the computer program for executing the scheme of the present application, and is controlled by the processor to execute. The processor is used to execute the application program code stored in the memory to realize the IP proxy-based cloud plus terminal invoicing system provided by the above-mentioned embodiments.
[0084] Another embodiment of the present application provides a computer readable storage medium storing computer executable instructions for executing the IP proxy-based cloud plus terminal invoicing system shown in the above Figure 1 embodiments.
[0085] The device embodiments described above are only schematic, and the units described as separate components can or can not be physically separated, i.e. can be located in one place, or can be distributed on multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment scheme.
[0086] As will be appreciated by one of ordinary skill in the art, all or some of the steps, systems, and techniques disclosed herein can be embodied in software, firmware, hardware, and / or suitable combination thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a micro-processing unit, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on computer readable media, which can comprise computer storage media (or non-transitory media), and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Further, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes any information delivery media.
[0087] The above description is that of the preferred embodiments of the present application. Various equivalents substitutions and modifications can be conceived by those skilled in the art without departing from the spirit of the present application, and these equivalents substitutions and modifications are included in the scope of the claims.
Claims
1. An IP proxy-based cloud plus terminal invoicing system, characterized in that, The system comprises a client, a cloud billing background, wherein, the client comprises: a client interface, the functions of which include tax number list display, tax number addition, tax number deletion, long connection establishment, long connection disconnection, and identifier update; a client background that interacts with the client through a network, maintains a tax number list, and is responsible for data storage, database establishment based on tax numbers, token, long connection key, and timestamp information storage, and long connection establishment with the cloud billing background based on tax numbers and user identifiers when the client background receives a long connection establishment request from the client interface; the functions of the cloud billing background include: the cloud billing background obtains available long connections, encrypts data to obtain ciphertext, sends messages to the client background service via long connections, the client background receives long connection messages from the cloud billing background and decrypts them, updates database information based on the decrypted data, obtains request parameters, then performs local area interaction to obtain interaction results, and pushes the interaction results to the cloud billing background; and the cloud billing background receives the interaction results and completes business requests.
2. The system of claim 1, wherein, The client further comprises a daemon that can correct errors and record errors when the client background or the cloud billing background runs errors.
3. The system of claim 1, wherein, The system can realize functions including tax number list query, tax number addition, tax number deletion, long connection establishment, long connection disconnection, identifier update, and business requests.
4. The system of claim 3, wherein, The tax number list query function comprises: a client interface that calls the tax number list query function; a client background that receives a request from the client, queries long connection states in the tax number list, and returns a tax number list based on the query results; wherein the returned tax number list includes tax number, identifier, and long connection state information.
5. The system of claim 3, wherein, The tax number addition function comprises: a client interface that calls the tax number addition function; a client background that receives a request from the client, checks whether the added tax number is duplicated, generates an identifier corresponding to the tax number and establishes a long connection when the tax number is not duplicated, and then adds it to the tax number list; and returns a failure message if the tax number is duplicated.
6. The system of claim 3, wherein, The tax number deletion function comprises: a client interface that calls the tax number deletion function; a client background that receives a request from the client, checks whether a tax number to be deleted exists in the tax number list, checks and disconnects the corresponding long connection when the tax number exists, deletes it from the tax number list, and then cleans up information corresponding to the tax number in the database.
7. The system of claim 3, wherein, The identifier update function comprises: a client interface that calls the identifier update function; a client background that receives a request from the client, checks whether the long connection corresponding to the identifier is normal, disconnects the long connection if it is normal, does not disconnect it if it is not normal, and then generates a new identifier; updates the identifier field in the tax number list based on the new identifier, and establishes a long connection based on the new identifier.
8. A terminal comprising: A memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that the processor executes the computer program to realize the system of any one of claims 1 to 7.
9. A computer-readable storage medium storing computer-executable instructions for performing the system of any one of claims 1 to 7.
Citation Information
Patent Citations
Method for establishing long connection between client and server, communication method and communication system
CN109660584A
Client-assisted entry channel cloud interaction method and electronic equipment
CN112653685A