Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a method for analyzing a tax control device, an electronic device, and a storage medium, which at least solve the problem in the prior art that the tax control device cannot be analyzed in time.
In a first aspect, an embodiment of the present disclosure provides a method for analyzing tax control equipment, including:
acquiring a log file of the tax control equipment;
analyzing the performance of the tax control equipment based on the log file to obtain an analysis result;
obtaining a solution for improving the performance of the tax control equipment based on the analysis result;
the solution is sent.
Optionally, the log file stores data related to the tax control device according to a set format.
Optionally, analyzing the performance of the tax control device based on the log file includes:
analyzing the log file to obtain a corresponding code;
and comparing the code with a pre-stored code to obtain an analysis result.
Optionally, the comparing the code with a pre-stored code to obtain an analysis result includes:
searching whether a corresponding pre-stored code exists or not based on the code;
if the corresponding pre-stored code exists, outputting a corresponding analysis result, and if the corresponding pre-stored code does not exist, storing the code into a code list and transmitting the code.
Optionally, after the step of sending the code, the method further includes:
receiving a feedback result;
and generating a corresponding pre-stored code based on the feedback result.
Optionally, after the step of comparing the code with a pre-stored code to obtain an analysis result, the method further includes:
and classifying the users of the tax control equipment according to the analysis result, and establishing a user classification list.
Optionally, the sending the solution includes:
the solution is sent based on a user classification list.
Optionally, the solution includes an upgrade file.
In a second aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
a memory storing executable instructions;
a processor executing the executable instructions in the memory to implement the method of any of the first aspects.
In a third aspect, this disclosed embodiment also provides a computer-readable storage medium, where a computer program is stored, and when executed by a processor, the computer program implements the method in any one of the first aspect.
According to the method, the log file of the tax control equipment is obtained, the performance of the tax control equipment is analyzed based on the log file, when the fact that the tax control equipment is abnormal or the performance needs to be improved is analyzed, a corresponding solution is generated, the solution is sent to related personnel or equipment, the tax control equipment is maintained or upgraded in time, the tax control equipment is analyzed in time, and the performance of the tax control equipment is improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Detailed Description
Preferred embodiments of the present disclosure will be described in more detail below. While the following describes preferred embodiments of the present disclosure, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein.
Tax payers need to perform ticket operations, such as invoicing, online card reading and clearing, online ticket purchasing and other services, and need to perform corresponding processing by means of tax control equipment to complete the services, otherwise, the tax payers can only queue up and handle in a hall of a tax bureau, which is time-consuming and labor-consuming, and even needs to go back and forth for several times. Therefore, the taxpayer uses the tax control device to perform network transaction service. However, in the actual use process, various unpredictable abnormalities may occur in the tax control device program, such as abnormal termination of service, abnormal error reporting, memory leakage, and the like, so that the taxpayer cannot handle the service in time. Then, it becomes very important to quickly locate the abnormal situation of the tax control device. But the memory problem is a bottleneck for all hardware devices. For tax control, the log file cannot be stored too much, otherwise the whole memory is occupied.
As shown in fig. 1, a method of analyzing a tax control device, comprising:
step S101: acquiring a log file of the tax control equipment;
the tax control equipment is abnormal or generates a log file in daily application to record the running state of the tax control equipment.
Step S102: analyzing the performance of the tax control equipment based on the log file to obtain an analysis result;
step S103: obtaining a solution for improving the performance of the tax control equipment based on the analysis result;
step S104: the solution is sent.
Optionally, the log file stores data related to the tax control device according to a set format.
The format of the log file can be set by a manufacturer of the tax control equipment or a software designer, and the format of the log file can be continuously updated in time application so as to adapt to new abnormal conditions.
Optionally, analyzing the performance of the tax control device based on the log file includes:
analyzing the log file to obtain a corresponding code;
and comparing the code with a pre-stored code to obtain an analysis result.
The method comprises the steps of storing codes formed according to previous performance detection, fault or abnormity detection of the tax control equipment on a server, and storing the codes on the server in advance, wherein if the tax control equipment has a stuck abnormity in advance, after field maintenance by maintenance personnel, the reason of the stuck abnormity is known, the maintenance personnel uploads corresponding abnormity descriptions and corresponding codes such as KD1 to be stored in the corresponding server, and adjusts a corresponding log format, so that whether the project is abnormal or not is detected in a log file generated by the tax control equipment, if the abnormity occurs again in other tax control equipment, the abnormal codes and corresponding solutions can be directly called, and the abnormal tax control equipment can be maintained according to the corresponding solutions.
Optionally, the comparing the code with a pre-stored code to obtain an analysis result includes:
searching whether a corresponding pre-stored code exists or not based on the code;
if the corresponding pre-stored code exists, outputting a corresponding analysis result, and if the corresponding pre-stored code does not exist, storing the code into a code list and transmitting the code.
Various exceptions can occur when the tax control device is used, if the exception occurs before, the prestored code corresponding to the exception can be stored in the server, and if the exception is a new exception, the exception needs to be sent to corresponding personnel, such as research and development personnel.
Optionally, after the step of sending the code, the method further includes:
receiving a feedback result;
and generating a corresponding pre-stored code based on the feedback result.
And the research and development personnel proposes a solution according to the code and the related description, checks whether the solution can solve the exception, if the exception can be solved, converts and prestores the code into the server, corresponds the solution to the prestored code, and directly calls the solution when the exception is encountered again.
Optionally, after the step of comparing the code with a pre-stored code to obtain an analysis result, the method further includes:
and classifying the users of the tax control equipment according to the analysis result, and establishing a user classification list.
Optionally, the sending the solution includes:
the solution is sent based on a user classification list.
Optionally, the solution includes an upgrade file.
Classifying users according to the service categories or the service personnel of the tax control equipment, if the tax control equipment is used by an individual industrial and commercial company, the tax control equipment cannot have special equipment maintenance personnel, some users are large enterprises, corresponding equipment maintenance personnel exist in the enterprises, if a simple abnormity is met, the tax control equipment is restarted, the restarted tax control equipment is sent to all the users, the users can solve the abnormity by themselves, but sometimes the abnormity reason is complex, general personnel cannot solve the abnormity by themselves, and for the users without professional maintenance personnel, the solution is sent to the relevant maintenance personnel of the tax control equipment company, and the maintenance personnel special for the companies maintain the users according to the solution. For a large company, a maintenance person in the company can maintain the abnormality according to the solution, and the maintenance scheme is directly sent to the maintenance person in the large company. And the problem of the software of the tax control equipment can be solved in a software upgrading mode, and the upgrading file only needs to be sent to the software upgrading of the tax control equipment by the tax control equipment.
The method for analyzing the tax control equipment in the embodiment of the disclosure provides a method for analyzing the performance of the tax control equipment through a big data analysis means. During the process of using the tax control device, the user transmits the generated limited log file to a big data platform (server) in an http communication protocol mode. The big data platform analyzes and sums up results according to a log file format generated by the tax control equipment, highlights abnormal service information of the tax control equipment, counts the tax control equipment with the same abnormal condition, and sends the abnormal condition to operation and maintenance personnel in a mail or short message mode. After receiving the information, the operation and maintenance personnel can quickly locate the cause of the problem and solve the problem of the user in time.
A specific application scenario, as shown in fig. 2, is to analyze the tax control device based on big data, and specifically includes the following processes:
1. the tax control equipment generates log information:
in order to minimize the situation that the taxpayer queues to the tax bureau hall for handling the tax service, the taxpayer can use a specific tax control device to perform tax related operations. Although the tax control device brings convenience to the taxpayer, the corresponding defect also exists. For example, the tax control device causes corresponding abnormal business processing due to some reason, or the tax control device is in an uncontrollable state, the taxpayer does not know how to process, and even if an error is fed back to the research and development staff, the taxpayer needs to perform remote coordination, continuously updates the tax control version with the log, repeatedly performs the operation of log guiding, has a long processing flow, and consumes the information of the taxpayer. At this time, the tax control device needs to write in the log file according to a certain format setting, such as the format of error ID, corresponding service ID, error type, and the like. When the log file reaches a certain size, the log file is uploaded to a big data platform (server). And if the network condition allows, the data can be uploaded to a log platform in real time. And the big data platform is used for sorting the received log information and quickly positioning error information.
2. And (3) log information analysis of the big data platform:
after the tax control equipment transmits the log information to the big data platform, the big data platform needs to perform sorting, analysis, induction and statistics according to the log format information of the tax control equipment, highlight abnormal information in the platform, and send the abnormal information to research personnel in a mail or short message mode. Research personnel receive the information fed back by the big data platform, can position in time and solve problems quickly, and can check the log file of the tax control equipment conveniently; the behavior log files frequently operated by the user can be counted, so that a product manager can conveniently check the behavior log files and the service requirements can be improved. Research personnel can also focus main attention on the frequent behavior business of the user, and normal business operation of the taxpayer can be ensured to be normally carried out.
According to the method for analyzing the tax control equipment, on one hand, the log file generated by the tax control equipment can be timely sent to a large data platform, and the problem that the log file rolls off due to insufficient memory capacity is solved;
on the other hand, the big data analysis platform can position abnormal tax control equipment in time, and operation and maintenance personnel can process the abnormal tax control equipment in time conveniently.
The log information of the tax control equipment is transmitted to the big data platform, and the big data platform can analyze and summarize the abnormal information of the tax control equipment in time, so that the problems of users can be conveniently and quickly processed; the most frequent daily operation and the problems of the user can be obtained, and the tax control equipment is optimized in a key mode, so that the use experience of the user can be improved, and more new functions suitable for the user can be generated.
An embodiment of the present disclosure provides an electronic device comprising a memory and a processor,
a memory storing executable instructions;
and the processor executes the executable instructions in the memory so as to execute the method for analyzing the tax control equipment.
The memory is to store non-transitory computer readable instructions. In particular, the memory may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc.
The processor may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. In one embodiment of the disclosure, the processor is configured to execute the computer readable instructions stored in the memory.
Those skilled in the art should understand that, in order to solve the technical problem of how to obtain a good user experience, the present embodiment may also include well-known structures such as a communication bus, an interface, and the like, and these well-known structures should also be included in the protection scope of the present disclosure.
For the detailed description of the present embodiment, reference may be made to the corresponding descriptions in the foregoing embodiments, which are not repeated herein.
Embodiments of the present disclosure provide a computer-readable storage medium storing a computer program which, when executed by a processor, implements a method of analyzing a tax control device.
A computer-readable storage medium according to an embodiment of the present disclosure has non-transitory computer-readable instructions stored thereon. The non-transitory computer readable instructions, when executed by a processor, perform all or a portion of the steps of the methods of the embodiments of the disclosure previously described.
The computer-readable storage media include, but are not limited to: optical storage media (e.g., CD-ROMs and DVDs), magneto-optical storage media (e.g., MOs), magnetic storage media (e.g., magnetic tapes or removable disks), media with built-in rewritable non-volatile memory (e.g., memory cards), and media with built-in ROMs (e.g., ROM cartridges).
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments.