Method and device for updating business page, electronic equipment and storage medium
By establishing a connection between the business service and management platform, obtaining configuration information, and determining the network address of the target software development kit, real-time upgrades of front-end business services are achieved. This solves the problem of cumbersome front-end business service upgrade processes, improves upgrade efficiency, and automatically updates pages.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DOUYIN VISION CO LTD
- Filing Date
- 2022-03-16
- Publication Date
- 2026-05-01
AI Technical Summary
The process of upgrading front-end business services is cumbersome, resulting in high system overhead and low upgrade efficiency.
By establishing a connection between the target business service and management platform, configuration information is obtained, the target software development kit and its network address are determined, and real-time upgrades are performed based on this information, automatically updating the page.
Simplify the upgrade process, reduce system overhead, improve the efficiency of business service upgrades, and automatically update pages during the upgrade process.
Smart Images

Figure CN114706600B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of front-end technology, and more specifically, to a method for updating a business page, a device for updating a business page, an electronic device, and a computer-readable storage medium. Background Technology
[0002] As front-end technologies develop, front-end interaction logic becomes increasingly complex, leading to a surge in front-end code size. To facilitate front-end code management, the interaction logic is often encapsulated into multiple front-end software development kits (SDKs) and provided to front-end business services.
[0003] Currently, when upgrading front-end business services, the process often involves manually integrating the front-end business services after the SDK is upgraded, which makes the upgrade process quite cumbersome. Summary of the Invention
[0004] This disclosure provides at least one method, apparatus, electronic device, and storage medium for updating a business page, which can simplify the upgrade process, reduce system overhead, improve the efficiency of business service upgrades, and update the page while upgrading the business service.
[0005] This disclosure provides a method for updating a business page, including:
[0006] Establish a connection between the target business service and the management platform, wherein the management platform is used to store at least one software development kit;
[0007] In response to a trigger event for a target page of the target business service, obtain configuration information related to the target business service;
[0008] Based on the configuration information, a target software development kit matching the target business service is determined from the at least one software development kit, and a target network address corresponding to the target software development kit is determined;
[0009] Based on the target network address and the script file corresponding to the target service, the target service is upgraded and the target page is displayed.
[0010] This embodiment of the disclosure realizes real-time upgrade of the front-end target business service based on the target network address corresponding to the target software development kit that matches the target business service. The target business service can be upgraded without manual access, which simplifies the upgrade process, reduces system overhead, and improves the efficiency of target business service upgrade. The page is also automatically updated while the business service is being upgraded.
[0011] In one optional implementation, establishing the connection between the target business service and the management platform includes:
[0012] Based on the target API call interface, establish a connection between the target business service and the management platform;
[0013] The step of obtaining configuration information related to the target business service includes:
[0014] Based on the target call interface, obtain the configuration information.
[0015] In this embodiment of the disclosure, by calling the target interface to obtain configuration information, it can be ensured that when updating or accessing business services, only the first access is required, thereby simplifying the process of obtaining configuration information and improving the efficiency of target business service upgrades.
[0016] In one optional implementation, the step of determining a target software development kit (SDK) matching the target business service from the at least one SSD based on the configuration information, and determining the target network address corresponding to the target SSD, includes:
[0017] Based on the configuration information, the type of the target business service is determined;
[0018] The target software development kit is determined from the at least one software development kit based on the type of the target business service.
[0019] The target network address is determined based on the target software development kit.
[0020] In this embodiment of the disclosure, the target network address of the target software development kit that matches the type of the target service can be determined according to the different needs of different services, thereby enabling the target software development kit to access the network dynamically and autonomously, thus improving the upgrade efficiency of the target service.
[0021] In one optional implementation, the target software development kit has identification information, and determining the target network address based on the target software development kit includes:
[0022] The target network address is determined based on the identification information and the configuration information.
[0023] In this embodiment of the disclosure, since each target software development kit has unique identification information, the accuracy of determining the target network address can be improved based on the identification information and the configuration information.
[0024] In one optional implementation, upgrading the target service based on the target network address and the script file of the target service includes:
[0025] Add the target network address to the script file;
[0026] Execute the script file to upgrade the target business service.
[0027] In this embodiment of the disclosure, the target network address is added to the script file, so that when the target business service is upgraded, it can be upgraded in real time, thereby improving the efficiency of updating the target business page.
[0028] In an optional implementation, before obtaining configuration information related to the target business service in response to a trigger event on the target page of the target business service, the method further includes:
[0029] In response to the release operation for multiple software development kits, the configuration file is updated, the configuration file being used to characterize the matching relationship between the multiple software development kits and multiple network addresses;
[0030] The step of determining, based on the configuration information, a target software development kit matching the target business service from the at least one software development kit, and determining the target network address corresponding to the target software development kit, includes:
[0031] The target network address is determined based on the matching relationships between multiple software development kits and multiple network addresses represented in the latest updated configuration file, as well as the configuration information.
[0032] In this embodiment of the disclosure, the matching relationship between the multiple software development kits and multiple network addresses can be updated in real time, thereby enabling the target business service to be updated based on the latest version of the software development kit, thus improving the timeliness of the target business service update.
[0033] This disclosure also provides a device for updating a business page, the device comprising:
[0034] A module is established to establish a connection between the target business service and the management platform, wherein the management platform is used to store at least one software development kit;
[0035] The acquisition module is used to acquire configuration information related to the target business service in response to a trigger event on the target page of the target business service.
[0036] The determining module is configured to, based on the configuration information, determine a target software development kit that matches the target business service from the at least one software development kit, and determine a target network address corresponding to the target software development kit;
[0037] The upgrade module is used to upgrade the target service based on the target network address and the script file of the target service, so as to display the target page.
[0038] In one optional implementation, the establishment module is specifically used for:
[0039] Based on the target API call interface, establish a connection between the target business service and the management platform;
[0040] The acquisition module is specifically used for:
[0041] Based on the target call interface, obtain the configuration information.
[0042] In one optional implementation, the determining module is specifically used for:
[0043] Based on the configuration information, the type of the target business service is determined;
[0044] The target software development kit is determined from the at least one software development kit based on the type of the target business service.
[0045] The target network address is determined based on the target software development kit.
[0046] In one optional implementation, the determining module is specifically used for:
[0047] The target network address is determined based on the identification information and the configuration information.
[0048] In one optional implementation, the upgrade module is specifically used for:
[0049] Add the target network address to the script file;
[0050] Execute the script file to upgrade the target business service.
[0051] In one optional embodiment, the apparatus further includes an update module, the update module being used to:
[0052] In response to the release operation for multiple software development kits, the configuration file is updated, the configuration file being used to characterize the matching relationship between the multiple software development kits and multiple network addresses;
[0053] The determining module is specifically used for:
[0054] The target network address is determined based on the matching relationships between multiple software development kits and multiple network addresses represented in the latest updated configuration file, as well as the configuration information.
[0055] This disclosure also provides an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the above-mentioned method for updating the business page is performed.
[0056] This disclosure also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the aforementioned method for updating the business page.
[0057] For a description of the effects of the updating device, electronic device, and computer-readable storage medium for the aforementioned business page, please refer to the description of the updating method for the aforementioned business page; it will not be repeated here.
[0058] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0059] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. These drawings are incorporated in and constitute a part of this specification. They illustrate embodiments conforming to this disclosure and, together with the specification, serve to explain the technical solutions of this disclosure. It should be understood that the following drawings only show some embodiments of this disclosure and should not be considered as limiting the scope. Those skilled in the art can obtain other related drawings based on these drawings without creative effort.
[0060] Figure 1 A flowchart illustrating a method for updating a business page as provided in an embodiment of this disclosure;
[0061] Figure 2 A flowchart illustrating a method for determining a target network address provided in an embodiment of this disclosure;
[0062] Figure 3 This is a logical schematic diagram of determining a target network address provided in an embodiment of the present disclosure;
[0063] Figure 4 A flowchart illustrating a method for upgrading a target service provided in an embodiment of this disclosure;
[0064] Figure 5 A schematic diagram of the structure of a business page updating device provided in an embodiment of this disclosure;
[0065] Figure 6 A schematic diagram of another business page updating device provided in an embodiment of this disclosure;
[0066] Figure 7 This is a schematic diagram of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation
[0067] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. The components of the embodiments of this disclosure described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0068] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0069] In this document, the term "and / or" merely describes a mapping relationship, indicating that three relationships can exist. For example, A and / or B can represent three cases: A exists alone, A and B exist simultaneously, and B exists alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more of a plurality of elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0070] As front-end technologies have developed, front-end interaction logic has become increasingly complex, leading to a larger and larger amount of front-end code. To facilitate the management of front-end code, the front-end interaction logic is often encapsulated into several Software Development Kits (SDKs) and provided to front-end business services.
[0071] Currently, when upgrading front-end business services, the process often involves manually integrating the front-end business services after the SDK is upgraded, which makes the upgrade process quite cumbersome.
[0072] Based on the above research, this disclosure provides a method for updating a business page, comprising: establishing a connection between a target business service and a management platform, wherein the management platform is used to store at least one software development kit (SDK); in response to a trigger event for a target page of the target business service, obtaining configuration information related to the target business service; based on the configuration information, determining a target SSD matching the target business service from the at least one SSD, and determining a target network address corresponding to the target SSD; upgrading the target business service based on the target network address and a script file corresponding to the target business service, and displaying the target page.
[0073] This embodiment of the disclosure realizes real-time upgrade of the front-end target business service based on the target network address corresponding to the target software development kit that matches the target business service. The target business service can be upgraded without manual access, which simplifies the upgrade process, reduces system overhead, and improves the efficiency of target business service upgrade. The page is also automatically updated while the business service is being upgraded.
[0074] To facilitate understanding of this embodiment, a method for updating a business page disclosed in this disclosure will first be described in detail. The execution subject of the method for updating a business page provided in this disclosure is generally an electronic device with a certain computing power. This electronic device includes, for example, a terminal device or other processing device. The terminal device may include mobile phones, tablet computers, in-vehicle devices, and wearable devices, etc. Other processing devices may be devices including processors and memory, and are not limited here.
[0075] Please see Figure 1 , Figure 1 This is a flowchart illustrating a method for updating a business page as provided in an embodiment of this disclosure. Figure 1 As shown, the method for updating a business page provided in this embodiment includes the following steps S101 to S104:
[0076] S101, Establish a connection between the target business service and the management platform, wherein the management platform is used to store at least one software development kit.
[0077] The management platform can be understood as a platform that provides software development kits to target business services. For example, the management platform can refer to a cloud with storage functions.
[0078] Specifically, when establishing the connection between the target business service and the management platform, it can be based on the target call interface. The target call interface can be a kind of encapsulated interface used to establish the connection between the management platform and the target business service. That is, any target business service can establish a connection with the management platform through the target call interface, so that the target business service can obtain the software development kits it needs according to its own requirements.
[0079] It should be noted that for each target business service, the target call interface only needs to be loaded during the initial access, that is, when a new business is accessed. When updating the target business page, there is no need to access or load it again. In this way, the efficiency of business service upgrades can be greatly improved.
[0080] S102, in response to a target trigger event for the target page of the target business service, obtain configuration information related to the target business service.
[0081] The target business service refers to different business service roles in front-end technology, such as short video business service, news business service, or game business service, etc., and is not limited here.
[0082] The target page refers to any page of the target business service. For example, it could be the "check-in" page in the short video business service, or the "do tasks" page, etc. There is no limitation here.
[0083] The target trigger event refers to a startup event for a target business service, such as the event of starting a short video business service, i.e., opening the application for the short video business service. It can also refer to an operation event that navigates from the current page to another page for an already opened business service; for example, after starting the news business service, navigating from the "Do Tasks" page to the "Check-in" page.
[0084] The configuration information includes the type information of the target business service, the current version information of the target business service, and the SDK information that the target business service needs to be updated.
[0085] In some implementations, when obtaining configuration information related to the target service, the configuration information can be obtained based on the target API call interface. That is, since the target API call interface is the communication medium between the target service and the management platform, the management platform can obtain the configuration information of the target service through this target API call interface.
[0086] In some embodiments, prior to step S102, the method may further include:
[0087] In response to the release operation for multiple software development kits, a configuration file is updated, the configuration file being used to characterize the matching relationship between the multiple software development kits and multiple network addresses.
[0088] It should be noted that in front-end technology, the SDKs required by various businesses are developed and tested by a public platform. In this embodiment of the disclosure, the SDKs that have been developed and tested are published to a remote cloud, such as a Content Delivery Network (CDN). For each software development kit in the CDN, there will be a corresponding network address. Based on the matching relationship between each software development kit and its corresponding network address, the configuration file can be updated.
[0089] In some implementations, to save network requests, the functions of multiple SDKs can be packaged into the same content delivery network for loading and distribution. Specifically, at least one software development kit corresponding to the type of the target business service can be packaged and published to the content delivery network, and then the content delivery network loads and distributes multiple software development kits.
[0090] It should be noted that in existing technologies, the SDK self-testing environment only tests the target SDK, while the business service testing environment includes the testing environment for the entire business service page corresponding to the business service (including the target SDK and other SDKs). This leads to inconsistencies between the SDK self-testing environment and the business service testing environment. However, in this embodiment, by publishing the developed and tested SDK to a remote cloud (CDN), it is possible to ensure that the SDK self-testing environment is consistent with the testing environment after the business service is integrated.
[0091] If the above steps are executed after step S101 and before step S102, they are used to indicate the update of the service. If the above steps are executed before step S101, they can be used to indicate the access of the service.
[0092] S103, based on the configuration information, determine the target software development kit that matches the target business service from the at least one software development kit, and determine the target network address corresponding to the target software development kit.
[0093] In a broad sense, a software development kit (SDK) refers to a collection of related documents, examples, and tools that assist in the development of a certain type of software.
[0094] The number of target software development kits can be one or more, and there is no limitation here.
[0095] The target software development kit (SDK) is a software development kit for upgrading business services that matches the target business service. In this embodiment, the target SSD is a front-end software development kit. It is understood that each target business service has at least one corresponding target SSD.
[0096] The target network address is the address of the target software development kit in a Content Delivery Network (CDN). The CDN is used for faster and more stable transmission of service data.
[0097] For example, if the configuration information includes: news service, news service version information V1.1, and news service SDK information V1.1 that needs to be updated, then based on the configuration information, the target network address corresponding to at least one target software development kit that matches the news service can be determined.
[0098] In some implementations, since the configuration file may be updated before step S102, the target network address can be determined based on the matching relationship between multiple software development kits and multiple network addresses represented in the latest updated configuration file, as well as the configuration information.
[0099] It is understood that the configuration file includes matching relationships between multiple software development kits and multiple network addresses. Since the configuration information contains the information required for updating the target business page, the target network address can be determined based on the matching relationships between multiple software development kits and multiple network addresses indicated in the configuration file and the configuration information.
[0100] For example, the matching relationship indicated in the configuration file includes: the network address corresponding to the "Red Packet" SDK with version information V1.3 is CDN3 and the network address corresponding to the "Red Packet" SDK with version information V1.4 is CDN4. The configuration information includes that the SDK that the target business service needs to upgrade is "Red Packet SDK with version information V1.4". Based on the above matching relationship and configuration information, the target network address CDN4 corresponding to "Red Packet SDK with version information V1.4" can be determined.
[0101] S104, based on the target network address and the script file corresponding to the target service, upgrade the target service and display the target page.
[0102] The script file is the code file corresponding to the target page of the target business service, wherein the code file can be a JavaScript code file.
[0103] Specifically, by embedding the target network address into the script file, the target software development kit matching the target business service can be upgraded, thereby upgrading the target business service. In this way, the updated target page can be displayed based on the upgraded target business service.
[0104] This embodiment of the disclosure realizes real-time upgrade of the front-end target business service based on the target network address corresponding to the target software development kit that matches the target business service. The target business service can be upgraded without manual access, which simplifies the upgrade process, reduces system overhead, and improves the efficiency of target business service upgrade. The page is also automatically updated while the business service is being upgraded.
[0105] In some implementations, please refer to Figure 2 Regarding step S102 above, when determining the target software development kit matching the target business service from the at least one software development kit based on the configuration information, and determining the target network address corresponding to the target software development kit, the following steps S1021 to S1023 may be included:
[0106] S1021, Based on the configuration information, determine the type of the target service.
[0107] For example, since the configuration information contains the various parameters described above, the type of the target service can be determined based on this configuration information. For instance, in some implementations, the type of the current target service can be determined to be a short video service based on the configuration information; or, for example, the type of the current target service can be determined to be a news service based on the configuration information.
[0108] S1022, Based on the type of the target business service, determine the target software development kit from the at least one software development kit.
[0109] It is understandable that since different versions and types of SDKs are stored on the CDN, the CDN will indicate multiple SDKs. However, in actual use, the type of target business service is different, and the SDK that matches the target business service is also different. Therefore, it is necessary to determine the target SDK from the multiple SDKs indicated in the CDN.
[0110] For example, please refer to Figure 3 , Figure 3This is a schematic diagram illustrating how to determine a target network address according to an embodiment of this disclosure. Figure 3 As shown, the CDN stores the "Red Envelope" SDK, "Daily Task" SDK, "Cash Guardian" SDK, and "Check-in" SDK. If the current target business service 1 is a short video business service, the "Red Envelope" SDK, "Daily Task" SDK, and "Check-in" SDK can be selected as the target SDK from the aforementioned SDKs. If the current target business service 2 is a short video business service, the "Red Envelope" SDK, "Daily Task" SDK, and "Cash Guardian" SDK can be selected as the target SDK from the aforementioned SDKs.
[0111] S1023, Based on the target software development kit, determine the target network address.
[0112] Please refer to it again. Figure 3 For target business service 1, namely the multiple target software development kits corresponding to the short video business service, the target network address 1 (CDN1) corresponding to the "Red Envelope" SDK, "Daily Task" SDK and "Check-in" SDK can be determined; and for target business service 2, namely the multiple target software development kits corresponding to the short video business service, the target network address 2 (CDN2) corresponding to the "Red Envelope" SDK, "Daily Task" SDK and "Guardian Cash" SDK can be determined.
[0113] In some implementations, each target software development kit has unique identification information. When determining the target network address based on the at least one target software development kit, the target network address can be determined based on the identification information and the configuration information.
[0114] For example, the identification information of the V1.0 version of the "Red Packet" SDK is H-V1.0, and the identification information of the V1.1 version of the "Red Packet" SDK is H-V1.1. If the configuration information shows that the version information of the news service is V1.1, and the version of the "Red Packet" SDK that needs to be updated is V1.1, then the target network address of the V1.1 version of the "Red Packet" SDK can be determined based on the identification information H-V1.1 and the configuration information.
[0115] In some implementations, please refer to Figure 4 Based on the target network address and the script file of the target service, the target service is upgraded, including the following steps S1031 to S1032:
[0116] S1031, Add the target network address to the script file.
[0117] In order for the script file to load the target software development kit, the target network address can be added to the script file. Specifically, the target network address can be added to the corresponding Script tag in the script file.
[0118] S1032, Execute the script file to upgrade the target business service.
[0119] By executing the script file, the script file loads the code of the target software development kit corresponding to the target network address, thereby upgrading the target business service.
[0120] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0121] Based on the same inventive concept, this disclosure also provides a business page updating device corresponding to the business page updating method. Since the principle of the device in this disclosure for solving the problem is similar to the business page updating method described above, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0122] Please see Figure 5 This is a schematic diagram of the structure of a business page updating device 700 provided in an embodiment of this disclosure. The business page updating device 700 includes: an establishment module 710, an acquisition module 720, a determination module 730, and an upgrade module 740, wherein...
[0123] Module 710 is established to establish a connection between the target business service and the management platform, wherein the management platform is used to store at least one software development kit.
[0124] The acquisition module 720 is used to acquire configuration information related to the target business service in response to a trigger event for the target page of the target business service.
[0125] The determining module 730 is configured to, based on the configuration information, determine a target software development kit that matches the target business service from the at least one software development kit, and determine a target network address corresponding to the target software development kit;
[0126] The upgrade module 740 is used to upgrade the target service based on the target network address and the script file corresponding to the target service, so as to display the target page.
[0127] In one optional implementation, the establishment module 710 is specifically used for:
[0128] Based on the target API call interface, establish a connection between the target business service and the management platform;
[0129] The acquisition module 720 is specifically used for:
[0130] Based on the target call interface, obtain the configuration information.
[0131] In one optional implementation, the determining module 730 is specifically used for:
[0132] Based on the configuration information, the type of the target business service is determined;
[0133] Based on the type of the target business service, the at least one target software development kit is determined from the at least one software development kit;
[0134] The target network address is determined based on the target software development kit.
[0135] In one optional implementation, the determining module 730 is specifically used for:
[0136] The target network address is determined based on the identification information and the configuration information.
[0137] In one optional implementation, the upgrade module 740 is specifically used for:
[0138] Add the target network address to the script file;
[0139] Execute the script file to upgrade the target business service.
[0140] Please see Figure 6 This is a schematic diagram of another business page update device provided in this embodiment of the present disclosure. The device further includes: an update module 750, which is used for:
[0141] In response to the release operation for multiple software development kits, the configuration file is updated, the configuration file being used to characterize the matching relationship between the multiple software development kits and multiple network addresses;
[0142] The determining module 730 is specifically used for:
[0143] The target network address is determined based on the matching relationships between multiple software development kits and multiple network addresses represented in the latest updated configuration file, as well as the configuration information.
[0144] The processing flow of each module in the device and the interaction flow between each module can be referred to the relevant descriptions in the above method embodiments, and will not be detailed here.
[0145] Based on the same technical concept, this disclosure also provides an electronic device. (See also...) Figure 7 The diagram shown is a structural schematic of an electronic device 800 provided in an embodiment of this disclosure, including a processor 801, a memory 802, and a bus 803. The memory 802 is used to store execution instructions and includes a main memory 8021 and an external memory 8022. The main memory 8021, also called internal memory, is used to temporarily store computational data in the processor 801, as well as data exchanged with external memory 8022 such as a hard disk. The processor 801 exchanges data with the external memory 8022 through the main memory 8021.
[0146] In this embodiment, the memory 802 is specifically used to store application code that executes the solution of this application, and its execution is controlled by the processor 801. That is, when the electronic device 800 is running, the processor 801 communicates with the memory 802 through the bus 803, so that the processor 801 executes the application code stored in the memory 802, thereby executing the method in any of the foregoing embodiments.
[0147] Processor 801 may be an integrated circuit chip with signal processing capabilities. The aforementioned processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. The general-purpose processor can be a microprocessor or any conventional processor.
[0148] The memory 802 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.
[0149] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 800. In other embodiments of this application, the electronic device 800 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0150] This disclosure also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the business page update method described in the above method embodiments. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0151] This disclosure also provides a computer program product carrying program code. The program code includes instructions that can be used to execute the business page update method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.
[0152] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied in a computer storage medium; in another optional embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0153] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and terminals described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in this disclosure, it should be understood that the disclosed systems, terminals, and methods can be implemented in other ways. The terminal embodiments described above are merely illustrative. For example, the division of units is only a logical functional division; in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, or indirect coupling or communication connection between units, and may be electrical, mechanical, or other forms.
[0154] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0155] In addition, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0156] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0157] Finally, it should be noted that the above-described embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the protection scope of the claims.
Claims
1. A method for updating a business page, characterized in that, include: Establish a connection between the target business service and the management platform, wherein the management platform is used to store at least one software development kit; In response to the release operation for multiple software development kits, a configuration file is updated. The configuration file is used to characterize the matching relationship between multiple software development kits and multiple network addresses, which are addresses in a content delivery network that stores different versions and types of software development kits. In response to a trigger event for a target page of the target business service, configuration information related to the target business service is obtained, wherein the configuration information includes the type information of the target business service, the current version information of the target business service, and the software development kit information that the target business service needs to be updated; Based on the configuration information, a target software development kit matching the target business service is determined from the at least one software development kit, and a target network address corresponding to the target software development kit is determined; Based on the target network address and the script file corresponding to the target service, the target service is upgraded, and the target page is displayed. The step of determining, based on the configuration information, a target software development kit matching the target business service from the at least one software development kit, and determining the target network address corresponding to the target software development kit, includes: The target network address is determined based on the matching relationship between the plurality of software development kits and the plurality of network addresses as represented in the latest updated configuration file, and the configuration information.
2. The method according to claim 1, characterized in that, The establishment of the connection between the target business service and the management platform includes: Based on the target API call interface, establish a connection between the target business service and the management platform; The step of obtaining configuration information related to the target business service includes: Based on the target call interface, obtain the configuration information.
3. The method according to claim 1, characterized in that, The step of determining, based on the configuration information, a target software development kit (SDK) matching the target business service from the at least one SSD, and determining the target network address corresponding to the target SSD, includes: Based on the configuration information, the type of the target business service is determined; The target software development kit is determined from the at least one software development kit based on the type of the target business service. The target network address is determined based on the target software development kit.
4. The method according to claim 3, characterized in that, The target software development kit has identification information, and determining the target network address based on the target software development kit includes: The target network address is determined based on the identification information and the configuration information.
5. The method according to claim 1, characterized in that, The upgrade of the target service based on the script file of the target network address and the target service includes: Add the target network address to the script file; Execute the script file to upgrade the target business service.
6. A device for updating a business page, characterized in that, include: A module is established to establish a connection between the target business service and the management platform, wherein the management platform is used to store at least one software development kit; An update module is used to update a configuration file in response to a release operation for multiple software development kits. The configuration file is used to characterize the matching relationship between multiple software development kits and multiple network addresses, which are addresses in a content delivery network that stores different versions and types of software development kits. The acquisition module is used to acquire configuration information related to the target business service in response to a trigger event for the target page of the target business service. The configuration information includes the type information of the target business service, the current version information of the target business service, and the software development kit information that the target business service needs to be updated. The determining module is configured to, based on the configuration information, determine a target software development kit that matches the target business service from the at least one software development kit, and determine a target network address corresponding to the target software development kit; The upgrade module is used to upgrade the target service based on the target network address and the script file corresponding to the target service, and then display the target page. The step of determining, based on the configuration information, a target software development kit matching the target business service from the at least one software development kit, and determining the target network address corresponding to the target software development kit, includes: The target network address is determined based on the matching relationship between the plurality of software development kits and the plurality of network addresses as represented in the latest updated configuration file, and the configuration information.
7. The business page updating device according to claim 6, characterized in that, The establishment module is specifically used for: Based on the target API call interface, establish a connection between the target business service and the management platform; The acquisition module is specifically used for: Based on the target call interface, obtain the configuration information.
8. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the method for updating a service page as described in any one of claims 1 to 5 is performed.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the method for updating a business page as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Web front-end item processing method and device, electronic equipment and storage medium
CN113254043A