Static resource processing method and device of car insurance claim settlement system, server and medium

By pre-setting configuration files and location code blocks, integrating the needs of different static resource pages, the problem of repeated modification of static resource packages in the auto insurance claims system is solved, and the effect of reducing development workload and improving system flexibility is achieved.

CN119718305APending Publication Date: 2025-03-28PEOPLE'S INSURANCE COMPANY OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411795190.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The existing auto insurance claims system has the problem of duplicate code modification in the development and deployment of static resource packages, which leads to increased workload of developers and is not flexible enough.

Method used

By pre-setting the configuration file, obtaining matching location code blocks according to the version number in the static resource request, obtaining the root directory and files of the static resource file, integrating the requirements of different static resource pages into a static resource package, and deploying them to multiple provinces.

Benefits of technology

Reduces the workload of developers and improves system flexibility. You only need to modify the code in one go to cope with changes in the background logic of static resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718305A_ABST
    Figure CN119718305A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a static resource processing method and device of a car insurance claim settlement system, a server and a medium. The method comprises the following steps: receiving a static resource request sent by a browser client for a car insurance claim settlement system; obtaining a version number in the static resource request; judging whether a position block code matched with the version number exists in a preset configuration file or not; if yes, obtaining a root directory of a static resource corresponding to the version number in the position block code; judging whether a static resource file corresponding to the static resource request exists in a root directory of the static resource or not; and if it is judged that the static resource file corresponding to the static resource request exists in the root directory of the static resource, sending the static resource file to a browser client, so that the browser client displays a static resource page of the car insurance claim settlement system corresponding to the static resource request according to the static resource file. According to the method, the workload of developers is reduced, and the flexibility is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a static resource processing method, device, server and medium for a motor vehicle insurance claims system. Background Art

[0002] In the auto insurance claims system, the background processing logic of static resources in the auto insurance claims systems of different provinces is the same, but there are different requirements for the display of static resource pages.

[0003] At present, the existing technology generally develops and deploys static resource packages for different provinces respectively to meet the display needs of static resource pages in different provinces.

[0004] However, the auto insurance claims system involves a large amount of code. When the background logic corresponding to the static resources changes, the static resource packages of all provinces need to be modified, resulting in repeated code modification work, increasing the workload of developers and lack of flexibility. Summary of the invention

[0005] The static resource processing method, device, server and medium of the motor vehicle insurance claims system provided in the embodiments of the present application are used to reduce the workload of developers and improve flexibility.

[0006] In a first aspect, an embodiment of the present application provides a static resource processing method for a motor vehicle insurance claims system, comprising: receiving a static resource request sent by a browser client to the motor vehicle insurance claims system; obtaining a version number in the static resource request; determining whether a location block code matching the version number exists in a pre-set configuration file; if it is determined that a location block code matching the version number exists in the pre-set configuration file, then obtaining a root directory of the static resource corresponding to the version number in the location block code; determining whether a static resource file corresponding to the static resource request exists in the root directory of the static resource; wherein the root directory and static resource file of the static resource are pre-set according to different version numbers; if it is determined that a static resource file corresponding to the static resource request exists in the root directory of the static resource, then sending the static resource file to the browser client, so that the browser client displays a static resource page of the motor vehicle insurance claims system corresponding to the static resource request according to the static resource file.

[0007] In a possible implementation, before receiving a static resource request sent by a browser client to a motor vehicle insurance claims system, the method also includes: setting environment variables and basic routing paths for different versions of the motor vehicle insurance claims system; wherein the motor vehicle insurance claims system includes multiple versions, and each version corresponds to a version number; according to the environment variables and basic routing paths, an output directory for static resource files is set for each version; wherein the output directory includes a root directory of static resources; the static resource files corresponding to each version are saved in the root directory of static resources; in the configuration file, a location code block is set for each version of the motor vehicle insurance claims system, and the output directory for the static resource files of each version is set in the location code block to obtain a pre-set configuration file.

[0008] In a possible implementation, after obtaining the pre-set configuration file, it also includes: obtaining different versions of static resource requests according to the version numbers of different versions of the motor vehicle insurance claims system; determining whether different versions of static resource files are correctly obtained according to different versions of the static resource requests; if it is determined that different versions of static resource files are correctly obtained according to different versions of the static resource requests, it is determined that the static resource files corresponding to each version are successfully saved in the root directory of the static resource, and that the location code blocks of different versions are successfully set in the pre-set configuration file.

[0009] In one possible implementation, the pre-set configuration file includes multiple location code blocks; accordingly, determining whether there is a location block code matching the version number in the pre-set configuration file includes: based on an exact matching rule, matching the version number with the multiple location code blocks to determine whether there is a location block code matching the version number in the pre-set configuration file.

[0010] In a possible implementation, after determining whether there is a static resource file corresponding to the static resource request in the root directory of the static resource, it also includes: if it is determined that there is no static resource file corresponding to the static resource request in the root directory of the static resource, obtaining log information; according to the static resource request, obtaining from the log information the reason why there is no static resource file corresponding to the static resource request in the root directory of the static resource; and sending the reason to the operation and maintenance terminal so that the operation and maintenance terminal performs a diagnosis based on the reason.

[0011] In a second aspect, an embodiment of the present application provides a static resource processing device of a motor vehicle insurance claims system, comprising:

[0012] A receiving module, used for receiving a static resource request sent by a browser client to a motor insurance claims system;

[0013] The acquisition module is used to obtain the version number in the static resource request;

[0014] The first judgment module is used to judge whether there is a location block code matching the version number in the preset configuration file;

[0015] A first determination module is used to obtain the root directory of the static resource corresponding to the version number in the location block code if it is determined that there is a location block code matching the version number in the preset configuration file;

[0016] The second judgment module is used to judge whether there is a static resource file corresponding to the static resource request in the root directory of the static resource; wherein the root directory of the static resource and the static resource file are pre-set according to different version numbers;

[0017] The second determination module is used to send the static resource file to the browser client if it is determined that there is a static resource file corresponding to the static resource request in the root directory of the static resource, so that the browser client displays the static resource page of the motor vehicle insurance claims system corresponding to the static resource request according to the static resource file.

[0018] In a possible implementation, the device also includes a setting module, which is used to set environment variables and basic routing paths for different versions of the auto insurance claims system; wherein the auto insurance claims system includes multiple versions, and each version corresponds to a version number; according to the environment variables and basic routing paths, an output directory of static resource files is set for each version; wherein the output directory includes a root directory of static resources; the static resource files corresponding to each version are saved in the root directory of the static resources; a location code block is set for each version of the auto insurance claims system in the configuration file, and the output directory of the static resource files of each version is set in the location code block to obtain a pre-set configuration file.

[0019] In a third aspect, an embodiment of the present application provides a server, including: a memory, a processor;

[0020] The memory stores computer-executable instructions;

[0021] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0023] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0024] The static resource processing method, device, server and medium of the motor insurance claims system provided by the embodiment of the present application pre-sets a configuration file. When a static resource request sent by a browser client to the motor insurance claims system is received, the matching position code block is obtained in the pre-set configuration file according to the version number in the static resource request, and the static resource file corresponding to the static resource request is obtained according to the position code block, and the static resource file is sent to the browser client, so that the browser client displays the static resource page of the motor insurance claims system corresponding to the static resource request according to the static resource file. Through the pre-set configuration file, the display requirements of different static resource pages are integrated into a static resource package and deployed to multiple provinces. When the background logic corresponding to the static resource changes, only one modification of the code is required, which reduces the workload of developers and improves flexibility. In addition, if the static resource file corresponding to the static resource request does not exist in the root directory of the static resource, the reason for the non-existence is obtained through the log information, and the reason is sent to the operation and maintenance terminal, so that the operation and maintenance terminal can diagnose according to the reason, thereby improving the accuracy of obtaining the static resource file. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0026] Figure 1 A schematic diagram of a scenario of a static resource processing method of a motor vehicle insurance claims system provided in an embodiment of the present application;

[0027] Figure 2 A flowchart of a static resource processing method of a motor vehicle insurance claims system provided in an embodiment of the present application;

[0028] Figure 3 A schematic diagram of the structure of a static resource processing device of a motor vehicle insurance claims system provided in an embodiment of the present application;

[0029] Figure 4 A schematic diagram of the hardware structure of the server provided in an embodiment of the present application.

[0030] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0031] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0032] In the auto insurance claims system, the background processing logic of static resources in the auto insurance claims systems of different provinces is the same, but there are different requirements for the display of static resource pages. At present, the existing technology generally develops and deploys static resource packages for different provinces to meet the display requirements of static resource pages in different provinces. However, the auto insurance claims system involves a large amount of code. When the background logic corresponding to the static resources changes, the static resource packages of all provinces need to be modified, resulting in repeated code modification work, which increases the workload of developers and is not flexible enough.

[0033] In order to solve the above technical problems, the embodiment of the present application proposes the following technical ideas: pre-set a configuration file, the configuration file includes the root directory and static resource files of different versions of static resources, when receiving a static resource request sent by a browser client to the motor insurance claims system, obtain a matching location code block in the pre-set configuration file according to the version number in the static resource request, obtain the corresponding static resource file according to the location code block, and integrate the display requirements of different static resource pages into a static resource package through the pre-set configuration file, which is deployed to multiple provinces. When the background logic corresponding to the static resource changes, only one modification of the code is required, which reduces the workload of developers and improves flexibility.

[0034] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0035] Figure 1 A schematic diagram of a scenario of a static resource processing method of a motor vehicle insurance claims system provided in an embodiment of the present application, such as Figure 1 As shown, the specific application scenarios of the present application include: a browser client 101 and a server 102.

[0036] refer to Figure 1, the browser client 101 sends a static resource request for the auto insurance claim system to the server 102. The server 102 obtains the version number in the static resource request; if it is determined that there is a location block code matching the version number in the pre-set configuration file, then the root directory of the static resource corresponding to the version number is obtained in the location block code; if it is determined that there is a static resource file corresponding to the static resource request under the root directory of the static resource, then the static resource file is sent to the browser client 101, so that the browser client 101 displays the static resource page of the auto insurance claim system corresponding to the static resource request according to the static resource file.

[0037] Figure 2 A flow chart of a static resource processing method of a motor vehicle insurance claims system provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method includes:

[0038] S201: receiving a static resource request sent by a browser client to a motor vehicle insurance claims system.

[0039] Optionally, the static resource request may be a URL request.

[0040] For example, the static resource request is http: / / xxx.com / claimcar / 30140 /

[0041] S202: Obtain the version number in the static resource request.

[0042] Exemplarily, the version number in the static resource request is 30140.

[0043] S203: Determine whether there is a location block code matching the version number in the pre-set configuration file.

[0044] In this embodiment, the pre-set configuration file includes multiple position code blocks.

[0045] Specifically, based on the exact matching rule, the version number is matched with a plurality of location code blocks to determine whether a location block code matching the version number exists in the pre-set configuration file.

[0046] The exact matching rule is: location= / {}.

[0047] For example, the location code block that matches version number 30140 is:

[0048] location / claimcar / 30140

[0049] …

[0050] }

[0051] S204: If it is determined that there is a location block code matching the version number in the preset configuration file, then the root directory of the static resource corresponding to the version number is obtained in the location block code.

[0052] Specifically, the location block code includes the keyword root, wherein the root keyword indicates the root directory of the static resource corresponding to the version number.

[0053] S205: Determine whether there is a static resource file corresponding to the static resource request in the root directory of the static resource; wherein the root directory of the static resource and the static resource file are pre-set according to different version numbers.

[0054] Specifically, the location block code also includes a keyword try_files, where try_files indicates a specific path for searching for static resource files in the root directory of static resources, and the keyword try_files is used to determine whether there is a static resource file corresponding to the static resource request in the root directory of static resources.

[0055] Optionally, if it is determined that there is no static resource file corresponding to the static resource request in the root directory of the static resource, log information is obtained; based on the static resource request, the reason why there is no static resource file corresponding to the static resource request in the root directory of the static resource is obtained from the log information; the reason is sent to the operation and maintenance terminal so that the operation and maintenance terminal performs a diagnosis based on the reason.

[0056] Optionally, if the static resource file corresponding to the static resource request does not exist in the root directory of the static resource, page information indicating that the static resource file is not found is returned.

[0057] Optionally, you can use commands such as tail, cat, less, or more to view the specific content of the log information.

[0058] Optionally, the grep command may be used to search the log information for a line of page information in which the static resource file is not found, so as to obtain the reason why the static resource file corresponding to the static resource request does not exist in the root directory of the static resource.

[0059] S206: If it is determined that a static resource file corresponding to the static resource request exists in the root directory of the static resource, the static resource file is sent to the browser client, so that the browser client displays a static resource page of the motor vehicle insurance claims system corresponding to the static resource request according to the static resource file.

[0060] Optionally, the static resource file is an index.html file.

[0061] Specifically, if there is a static resource file corresponding to the static resource request, the index.html file is sent to the browser client, so that the browser client displays the static resource page corresponding to the static resource request according to index.html, so that different version number requests can access the static resource pages of the auto insurance claims system with different version numbers.

[0062] In summary, by pre-setting the configuration file, when receiving the static resource request sent by the browser client to the auto insurance claims system, according to the version number in the static resource request, the matching location code block is obtained in the pre-set configuration file, and the static resource file corresponding to the static resource request is obtained according to the location code block, and the static resource file is sent to the browser client, so that the browser client displays the static resource page of the auto insurance claims system corresponding to the static resource request according to the static resource file. Through the pre-set configuration file, the display requirements of different static resource pages are integrated into a static resource package and deployed to multiple provinces. When the background logic corresponding to the static resource changes, only one modification of the code is required, which reduces the workload of developers and improves flexibility. In addition, if the static resource file corresponding to the static resource request does not exist in the root directory of the static resource, the reason for the non-existence is obtained through the log information, and the reason is sent to the operation and maintenance terminal, so that the operation and maintenance terminal can diagnose according to the reason, thereby improving the accuracy of obtaining static resource files.

[0063] Based on the above embodiment, in this embodiment, the process of pre-setting the root directory and static resource files of static resources according to different version numbers and the process of obtaining the pre-set configuration file are introduced, which are described in detail as follows:

[0064] S301: setting environment variables and basic routing paths for different versions of the auto insurance claims system respectively; wherein the auto insurance claims system includes multiple versions, each version corresponding to a version number.

[0065] For example, the environment variable VUE_APP_VERSION="30140" is set, and the routing base path is set to " / claimcar / " + process.env.VUE_APP_VERSION.

[0066] S302: according to the environment variables and the basic routing path, an output directory of static resource files is set for each version; wherein the output directory includes a root directory of static resources.

[0067] Optionally, use the static resource module's packaging tool to set the output directory of the static resource file to "claimcar / " + process.env.VUE_APP_VERSION. Set the output directory of static resource files with different version numbers according to environment variables and routing base paths.

[0068] Optionally, the keyword publicPath in the static resource module packaging tool represents the path where the resource is referenced. This configuration will be introduced in index.html <script> <link>等标签中的资源路径添加前缀,publicPath配置为" / claimcar / " + process.env.VUE_APP_VERSION,即通过不同版本号的路径可以找到对应的静态资源文件。

[0069] S303:在静态资源的根目录下保存每个版本对应的静态资源文件。

[0070] S304:在配置文件中对车险理赔系统的不同版本分别设置一个位置代码块,并在位置代码块中设置每个版本静态资源文件的输出目录,以得到预先设置好的配置文件。

[0071] 其中,静态资源文件的输出目录包括静态资源的根目录,以及在静态资源的根目录下静态资源文件的具体位置。

[0072] 示例性地,在配置文件中对不同版本设置的位置代码块为:

[0073] location / claimcar / 30130{

[0074] ……

[0075] }

[0076] location / claimcar / 30140{

[0077] ……

[0078] }

[0079] 可选地,通过位置代码块中的关键字root指明静态资源文件的根目录,通过关键字try_file指明在静态资源的根目录下静态资源文件的具体位置。

[0080] 综上可知,通过预先设置不同版本的静态资源的根目录和静态资源文件,能够将不同版本的静态资源文件保存在静态资源的根目录下。在收到静态资源请求时,根据静态资源请求中的版本号,在预先设置好的配置文件中获取相匹配的位置代码块,根据位置代码块获取静态资源请求对应的静态资源文件,能够实现根据不同静态资源请求中的版本号获取对应版本的静态资源文件,进一步提高了灵活性。

[0081] 在上述实施例的基础上,在本实施例中,预先设置的对静态资源的根目录和静态资源文件,以及预先设置好的配置文件进行验证的过程进行了介绍,详述如下:

[0082] S401:根据车险理赔系统的不同版本的版本号,获取不同版本的静态资源请求。

[0083] 具体地,根据车险理赔系统的不同版本的版本号,构建不同版本的静态资源请求。

[0084] S402:判断根据不同版本的静态资源请求,是否正确获取不同版本的静态资源文件。

[0085] 具体地,依次输入不同版本的静态资源请求,查看是否正确获取了对应的静态资源文件。

[0086] S403:若判定根据不同版本的静态资源请求,正确获取不同版本的静态资源文件,则判定在静态资源的根目录下成功了保存每个版本对应的静态资源文件,以及预先设置好的配置文件中成功设置了不同版本的位置代码块。

[0087] 在本实施例中,若正确获取了不同版本的静态资源文件,则说明在上一实施例中,在静态资源的根目录下成功了保存每个版本对应的静态资源文件,以及预先设置好的配置文件中成功设置了不同版本的位置代码块。

[0088] 可选地,若未正确获得不同版本的静态资源文件,则说明在上一实施例中,在静态资源的根目录下未成功保存每个版本对应的静态资源文件,或预先设置好的配置文件中未成功设置了不同版本的位置代码块。将未成功获取静态资源文件的静态资源请求发送至运维终端,以使运维终端根据静态资源请求进行诊断。

[0089] 综上可知,通过不同版本的静态资源请求,判断是否能正确获取不同版本的静态资源文件,若能正确获取,则说明在静态资源的根目录下成功了保存每个版本对应的静态资源文件,以及预先设置好的配置文件中成功设置了不同版本的位置代码块,确保在接收浏览器客户端针对车险理赔系统发送的静态资源请求,能正确获取对应的静态资源文件,提高了准确性。

[0090] 图3为本申请实施例提供的车险理赔系统的静态资源处理装置的结构示意图,如图3所示,本实施例提供的车险理赔系统的静态资源处理装置,包括:接收模块301、获取模块302、第一判断模块303、第一判定模块304、第二判断模块305和第二判定模块306。

[0091] 接收模块301,用于接收浏览器客户端针对车险理赔系统发送的静态资源请求;

[0092] 获取模块302,用于获取静态资源请求中的版本号;

[0093] 第一判断模块303,用于判断预先设置好的配置文件中是否存在与版本号相匹配的位置块代码;

[0094] 第一判定模块304,用于若判定预先设置好的配置文件中存在与版本号相匹配的位置块代码,则在位置块代码中,获取版本号对应的静态资源的根目录;

[0095] 第二判断模块305,用于判断在静态资源的根目录下是否存在静态资源请求对应的静态资源文件;其中静态资源的根目录和静态资源文件是预先根据不同版本号设置的;

[0096] 第二判定模块306,用于若判定在静态资源的根目录下存在静态资源请求对应的静态资源文件,则将静态资源文件发送至浏览器客户端,以使浏览器客户端根据静态资源文件,显示静态资源请求对应的车险理赔系统的静态资源页面。

[0097] 在一种可能的实施方式中,车险理赔系统的静态资源处理装置还包括:设置模块,用于对车险理赔系统的不同版本分别设置环境变量和路由基础路径;其中车险理赔系统包括多个版本,一个版本对应一个版本号;根据环境变量和路由基础路径,为每个版本设置静态资源文件的输出目录;其中输出目录中包括静态资源的根目录;在静态资源的根目录下保存每个版本对应的静态资源文件;在配置文件中对车险理赔系统的不同版本分别设置一个位置代码块,并在位置代码块中设置每个版本静态资源文件的输出目录,以得到预先设置好的配置文件。

[0098] 在一种可能的实施方式中,车险理赔系统静态资源处理装置还包括:验证模块,用于根据车险理赔系统的不同版本的版本号,获取不同版本的静态资源请求;判断根据不同版本的静态资源请求,是否正确获取不同版本的静态资源文件;若判定根据不同版本的静态资源请求,正确获取不同版本的静态资源文件,则判定在静态资源的根目录下成功了保存每个版本对应的静态资源文件,以及预先设置好的配置文件中成功设置了不同版本的位置代码块。

[0099] 在一种可能的实施方式中,预先设置好的配置文件中包括多个位置代码块;相应地,第一判断模块303,具体用于:基于精确匹配规则,将版本号与多个位置代码块进行匹配,以判断预先设置好的配置文件中是否与存在版本号相匹配的位置块代码。

[0100] 在一种可能的实施方式中,车险理赔系统静态资源处理装置还包括:发送模块,用于若判定在静态资源的根目录下不存在静态资源请求对应的静态资源文件,则获取日志信息;根据静态资源请求,从日志信息中,获取静态资源的根目录下不存在静态资源请求对应的静态资源文件的原因;将原因发送至运维终端,以使运维终端根据原因进行诊断。

[0101] 本实施例提供的车险理赔系统的静态资源处理装置可执行上述方法实施例提供的方法,其实现原理和技术效果类似,本实施例此处不做赘述。

[0102] 图4为本申请实施例提供的服务器的硬件结构示意图。如图4所示,本实施例提供的服务器包括:至少一个处理器401和存储器402。可选地,该设备40还包括通信部件403。其中,处理器401、存储器402以及通信部件403通过总线404连接。

[0103] 在具体实现过程中,至少一个处理器401执行存储器402存储的计算机执行指令,使得至少一个处理器401执行上述的方法。

[0104] 处理器401的具体实现过程可参见上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。

[0105] 在上述的实施例中,应理解,处理器可以是中央处理单元(英文:CentralProcessing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:DigitalSignal Processor,简称:DSP)、专用集成电路(英文:Application Specific IntegratedCircuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。

[0106] 存储器可能包含高速存储器(Random Access Memory,RAM),也可能还包括非易失性存储器(Non-volatile Memory,NVM),例如至少一个磁盘存储器。

[0107] 总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(ExtendedIndustry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。

[0108] 本申请还提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述的方法。

[0109] 本申请还提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当处理器执行计算机执行指令时,实现上述的方法。

[0110] 上述可读存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。可读存储介质可以是通用或专用计算机能够存取的任何可用介质。

[0111] 一种示例性的可读存储介质耦合至处理器,从而使处理器能够从该可读存储介质读取信息,且可向该可读存储介质写入信息。当然,可读存储介质也可以是处理器的组成部分。处理器和可读存储介质可以位于专用集成电路(Application Specific IntegratedCircuits,简称:ASIC)中。当然,处理器和可读存储介质也可以作为分立组件存在于设备中。

[0112] 单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。

[0113] 作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。

[0114] 另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。

[0115] 功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。

[0116] 本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。

[0117] 最后应说明的是:本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本发明旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本发明未公开的本技术领域中的公知常识或惯用技术手段,并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求书来限制。< / script>

Claims

1. A static resource processing method for a motor insurance claims system, characterized in that: Applicable to servers, including: Receive static resource requests sent by browser clients to the auto insurance claims system; Obtain the version number in the static resource request; Determine whether there is a location block code matching the version number in the pre-set configuration file; If it is determined that there is a location block code matching the version number in the preset configuration file, then obtaining the root directory of the static resource corresponding to the version number in the location block code; Determine whether there is a static resource file corresponding to the static resource request in the root directory of the static resource; wherein the root directory of the static resource and the static resource file are pre-set according to different version numbers; If it is determined that a static resource file corresponding to the static resource request exists in the root directory of the static resource, the static resource file is sent to the browser client so that the browser client displays the static resource page of the motor insurance claims system corresponding to the static resource request according to the static resource file.

2. The method according to claim 1, characterized in that Before receiving the static resource request sent by the browser client to the automobile insurance claim system, the method further includes: Environment variables and basic routing paths are set for different versions of the auto insurance claims system; wherein the auto insurance claims system includes multiple versions, each version corresponding to a version number; According to the environment variables and the basic routing path, an output directory of static resource files is set for each version; wherein the output directory includes the root directory of static resources; Save the static resource files corresponding to each version in the root directory of the static resource; A location code block is set for each version of the auto insurance claim settlement system in the configuration file, and an output directory of the static resource file of each version is set in the location code block to obtain a pre-set configuration file.

3. The method according to claim 2, characterized in that After obtaining the preset configuration file, the method further includes: Obtaining different versions of static resource requests according to the version numbers of different versions of the auto insurance claims system; Determine whether different versions of static resource files are correctly obtained according to the different versions of static resource requests; If it is determined that different versions of static resource files are correctly obtained according to the different versions of static resource requests, it is determined that the static resource files corresponding to each version are successfully saved in the root directory of the static resource, and the location code blocks of different versions are successfully set in the pre-set configuration file.

4. The method according to claim 1, characterized in that: The pre-set configuration file includes a plurality of position code blocks; Accordingly, determining whether there is a location block code matching the version number in the preset configuration file includes: Based on an exact matching rule, the version number is matched with the multiple location code blocks to determine whether a location block code matching the version number exists in the preset configuration file.

5. The method according to claim 1, characterized in that After determining whether there is a static resource file corresponding to the static resource request in the root directory of the static resource, the method further includes: If it is determined that the static resource file corresponding to the static resource request does not exist in the root directory of the static resource, obtaining log information; According to the static resource request, obtaining from the log information the reason why the static resource file corresponding to the static resource request does not exist in the root directory of the static resource; The cause is sent to the operation and maintenance terminal so that the operation and maintenance terminal performs diagnosis according to the cause.

6. A static resource processing device for a motor vehicle insurance claims system, characterized in that: Applicable to servers, including: A receiving module, used for receiving a static resource request sent by a browser client to a motor insurance claims system; An acquisition module, used to obtain the version number in the static resource request; A first determination module is used to determine whether there is a location block code matching the version number in a preset configuration file; A first determination module is configured to obtain a root directory of a static resource corresponding to the version number in the location block code if it is determined that there is a location block code matching the version number in the preset configuration file; A second judgment module is used to judge whether there is a static resource file corresponding to the static resource request in the root directory of the static resource; wherein the root directory of the static resource and the static resource file are pre-set according to different version numbers; The second determination module is used to send the static resource file to the browser client if it is determined that a static resource file corresponding to the static resource request exists in the root directory of the static resource, so that the browser client displays the static resource page of the motor vehicle insurance claims system corresponding to the static resource request according to the static resource file.

7. The device according to claim 6, characterized in that The device also includes a setting module, which is used to set environment variables and basic routing paths for different versions of the auto insurance claims system; wherein the auto insurance claims system includes multiple versions, and each version corresponds to a version number; according to the environment variables and basic routing paths, an output directory of static resource files is set for each version; wherein the output directory includes a root directory of static resources; the static resource files corresponding to each version are saved in the root directory of the static resources; a location code block is set for each version of the auto insurance claims system in the configuration file, and the output directory of the static resource files of each version is set in the location code block to obtain a pre-set configuration file.

8. A server, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5 when executed by a processor.

10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 5 when being executed by a processor.