Method and device for modifying access state of service, equipment, medium and product

The service device receives query instructions from the user equipment, determines the target domain name and generates control information, the user operates the control to generate modification instructions, and the service device obtains configuration files and updates the access status, solving the cumbersome and security issues of modifying the service access status in the prior art, and achieving efficient and secure access status modification.

CN120474913APending Publication Date: 2025-08-12CHINA MOBILE GROUP ANHUI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510578469.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-06
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

In the prior art, the steps to modify the access status of the service are cumbersome, and remote modification cannot be achieved. The user cannot be notified in time after the configuration file is modified, and there is a risk of incorrect modification of the access status.

Method used

The service device receives query instructions from the user equipment, determines the target domain name based on the correspondence between the device identification and the domain name, generates and sends information including controls, the user equipment operates the control to generate modification instructions, the service device obtains configuration files and updates the access status, and the server device finally updates the access status of the service.

Benefits of technology

Simplifies user operation steps, improves the efficiency of modifying access status, and improves the security of configuration files through auditing of the second user device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120474913A_ABST
    Figure CN120474913A_ABST
Patent Text Reader

Abstract

The invention discloses a method, a device, equipment, a medium and a product for modifying an access state of a service, the method is applied to service equipment, and the method comprises the following steps: receiving a query instruction for querying a domain name sent by first user equipment; determining a target domain name corresponding to the target device identifier; generating first information based on the target domain name, and sending the first information to the first user equipment; receiving a modification instruction sent by the first user equipment, and sending an acquisition instruction to the server equipment, so that the server equipment queries a configuration file including the target domain name based on the target domain name; receiving a configuration file sent by the server equipment, and modifying an access state in the configuration file into a target state to obtain a new configuration file; and sending the new configuration file to the server device, so that the server device updates the access state of the target service to the target state based on the target state in the new configuration file, and the method can simplify the operation step of modifying the access state of the service by a user.
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 method, apparatus, device, medium, and product for modifying the access status of a service. Background Art

[0002] Currently, when the access status of a service needs to be modified, users often rely on calling the configuration file of the domain name corresponding to the service on the server device, and manually modifying the configuration file to modify the access status of the service. This causes the steps for modifying the access status of the service to be cumbersome and inefficient. Summary of the Invention

[0003] Embodiments of the present application provide a method, apparatus, device, medium, and product for modifying the access status of a service, which can improve the efficiency of modifying the access status of a service.

[0004] In a first aspect, an embodiment of the present application provides a method for modifying the access status of a service, applied to a service device, the method comprising:

[0005] receiving a query instruction for querying a domain name sent by a first user device, wherein the query instruction carries a target device identifier of the first user device;

[0006] Determine the target domain name corresponding to the target device identifier based on the pre-stored correspondence between the device identifier and the domain name;

[0007] generating first information based on the target domain name, and sending the first information to the first user device so that the first user device displays the first information, wherein the first information includes the target domain name and the first control;

[0008] Upon receiving the modification instruction sent by the first user device, sending an acquisition instruction to the server device, the acquisition instruction carrying the target domain name, so that the server device queries a configuration file including the target domain name based on the target domain name, wherein the modification instruction is generated based on the user's operation on the first control, the modification instruction carries the target status, and the configuration file includes an access status of a target service corresponding to the target domain name;

[0009] Receive the configuration file sent by the server device, and modify the access state in the configuration file to the target state to obtain a new configuration file;

[0010] The new configuration file is sent to the server device, so that the server device updates the access status of the target service to the target status based on the target status in the new configuration file.

[0011] In a second aspect, an embodiment of the present application provides a method for modifying the access status of a service, which is applied to a server device, and the method includes:

[0012] Receiving an acquisition instruction sent by a service device, the acquisition instruction carrying a target domain name, the acquisition instruction determining a target domain name corresponding to a target device identifier based on a pre-stored correspondence between a device identifier and a domain name when the service device receives a query instruction for querying a domain name sent by a first user device, generating first information based on the target domain name, sending the first information to the first user device, and generating the first information when receiving a modification instruction sent by the first user device, wherein the query instruction carries the target device identifier, the first information includes the target domain name and a first control, the modification instruction is generated based on a user operation on the first control, and the modification instruction carries a target state;

[0013] Based on the target domain name, query a configuration file including the target domain name, and send the configuration file to the service device, where the configuration file includes the access status of the target service corresponding to the target domain name;

[0014] receiving a new configuration file sent by the service device, where the new configuration file is generated based on the service device modifying the access state of the target service in the configuration file to the target state;

[0015] Based on the target status in the new configuration file, set the access status of the target service to the target status.

[0016] In a third aspect, an embodiment of the present application provides an apparatus for modifying the access status of a service, which is applied to a service device, and includes:

[0017] a receiving module, configured to receive a query instruction for querying a domain name sent by a first user device, wherein the query instruction carries a target device identifier of the first user device;

[0018] A determination module, configured to determine a target domain name corresponding to a target device identifier based on a pre-stored correspondence between device identifiers and domain names;

[0019] a sending module, configured to generate first information based on the target domain name, and send the first information to the first user equipment so that the first user equipment displays the first information, wherein the first information includes the target domain name and the first control;

[0020] The sending module is further configured to, upon receiving a modification instruction sent by the first user device, send an acquisition instruction to the server device, the acquisition instruction carrying a target domain name, so that the server device queries a configuration file including the target domain name based on the target domain name, wherein the modification instruction is generated based on a user operation on the first control, the modification instruction carries a target status, and the configuration file includes an access status of a target service corresponding to the target domain name;

[0021] The receiving module is further used to receive the configuration file sent by the server device and modify the access state in the configuration file to the target state to obtain a new configuration file;

[0022] The sending module is further configured to send a new configuration file to the server device, so that the server device updates the access status of the target service to the target status based on the target status in the new configuration file.

[0023] In a fourth aspect, an embodiment of the present application provides an apparatus for modifying the access status of a service, which is applied to a server device, and the apparatus includes:

[0024] a receiving module, configured to receive an acquisition instruction sent by a service device, the acquisition instruction carrying a target domain name, the acquisition instruction being based on the service device determining a target domain name corresponding to a target device identifier based on a pre-stored correspondence between device identifiers and domain names when the service device receives a query instruction for querying a domain name sent by a first user device, generating first information based on the target domain name, sending the first information to the first user device, and generating a modification instruction upon receiving a modification instruction sent by the first user device, wherein the query instruction carries the target device identifier, the first information includes the target domain name and a first control, the modification instruction is generated based on a user operation on the first control, and the modification instruction carries a target state;

[0025] A query module is used to query a configuration file including the target domain name based on the target domain name, and send the configuration file to the service device, where the configuration file includes the access status of the target service corresponding to the target domain name;

[0026] A receiving module, configured to receive a new configuration file sent by a service device, wherein the new configuration file is generated based on the service device modifying the access state of a target service in the configuration file to a target state;

[0027] The update module is used to update the access status of the target service to the target status based on the target status in the new configuration file.

[0028] In a fifth aspect, an embodiment of the present application provides an electronic device, the device comprising:

[0029] a processor and a memory storing computer program instructions;

[0030] When the processor executes the computer program instructions, it is used to perform the method for modifying the access status of a service according to the first aspect or the second aspect.

[0031] In a sixth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the method for modifying the access status of a service according to the first or second aspect above.

[0032] In a seventh aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when processed by a processor, implements the method for modifying the access status of a service according to the first or second aspect above.

[0033] The embodiments of the present application provide a method, apparatus, device, medium, and product for modifying the access status of a service. The service device receives a query instruction for querying a domain name sent by a first user device, determines a target domain name corresponding to the target device identifier based on the correspondence between the device identifier and the domain name, and sends first information including the target domain name and a first control to the first user device so that the user can perform operations on the first control. Upon receiving the modification instruction sent by the first user device, an acquisition instruction for acquiring a configuration file can be sent to the server device. Upon receiving the configuration file sent by the server device, the access status of the target service corresponding to the target domain name in the configuration file is updated to the target status, a new configuration file is obtained, and the new configuration file is sent to the server device so that the server device updates the access status of the target service corresponding to the target domain name to the target status based on the target status in the new configuration file. The above method can realize "one-click modification" of the access status of the service based on the user device, reduces the tedious steps for the user to modify the access status, and improves the efficiency of modifying the access status. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0035] Figure 1 A flowchart of a system for modifying the access status of a service provided in some embodiments of the present application.

[0036] Figure 2 A flowchart of a method for modifying the access status of a service provided in some embodiments of the present application.

[0037] Figure 3 A schematic diagram of a display interface provided in some embodiments of the present application.

[0038] Figure 4 A schematic diagram of another display interface provided for some embodiments of the present application.

[0039] Figure 5 A flowchart of another method for modifying the access status of a service provided in some embodiments of the present application.

[0040] Figure 6 A schematic diagram of another display interface provided for some embodiments of the present application.

[0041] Figure 7 A flowchart of another method for modifying the access status of a service provided in some embodiments of the present application.

[0042] Figure 8 A flowchart of another method for modifying the access status of a service provided in some embodiments of the present application.

[0043] Figure 9 A schematic diagram of an apparatus for modifying the access status of a service provided in some embodiments of the present application.

[0044] Figure 10 A schematic diagram of another device for modifying the access status of a service provided in some embodiments of the present application.

[0045] Figure 11 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present application by illustrating the examples of the present application.

[0047] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0048] Before describing the technical solutions provided by the embodiments of the present application, in order to facilitate understanding of the embodiments of the present application, the present application first specifically describes the problems existing in the related art:

[0049] Currently, users can only modify the access status of a service by calling a configuration file in the server device and modifying the access status of the service corresponding to the domain name in the configuration file. However, this modification method has the following problems:

[0050] 1. The operation steps are cumbersome and managers cannot make remote modifications;

[0051] 2. Failure to promptly notify users after configuration files are modified;

[0052] 3. The configuration file does not set modification restrictions, resulting in accidental modification of the access status.

[0053] Based on this, the embodiments of the present application provide a method, apparatus, device, medium, and product for modifying the access status of a service, which can solve the above-mentioned problems.

[0054] like Figure 1 As shown, an embodiment of the present application provides a system for modifying the access status of a service, which may include:

[0055] First user equipment 101, service equipment 102 and server equipment 103;

[0056] The first user device 101 is configured to receive a first input from a user, the first input including query information, generate a query instruction based on the query information, and send the query instruction to the service device 102, wherein the first input includes a target device identifier of the user device;

[0057] The service device 102 is configured to, in response to the query instruction sent by the first user device 101, determine a target domain name corresponding to the target device identifier based on a pre-stored correspondence between the device identifier and the domain name, generate first information based on the target domain name, and send the first information to the first user device 101, wherein the first information includes the target domain name and the first control;

[0058] The first user device 101 is further configured to display the first information and receive a modification instruction generated by a user's operation on the first control, wherein the modification instruction carries a target state;

[0059] The service device 102 is further configured to receive the modification instruction sent by the first user device 101 and send an acquisition instruction to the server device 103, where the acquisition instruction carries the target domain name;

[0060] The server device 103 is configured to query a configuration file including the target domain name based on the target domain name, the configuration file including the access status of the target service corresponding to the target domain name, and send the configuration file to the service device 102;

[0061] The service device 102 is configured to modify the access state in the configuration file to the target state, obtain a new configuration file, and send the new configuration file to the server device 103;

[0062] The server device 103 is further configured to update the access status of the target service to the target status based on the target status in the new configuration file.

[0063] Through the above-mentioned system for modifying the access status of the service, the user can modify the configuration file of the server based on simple operations only on the first user device, and then modify the access status of the service, which simplifies the user's operation steps, improves the user experience, and improves the efficiency of modifying the access status.

[0064] In some embodiments, as Figure 1 As shown, the above system may further include a second user device 104. After receiving the modification instruction sent by the first user device 101, the service device 102 is further configured to send second information to the second user device 104, wherein the second information includes the target access status and the second control;

[0065] The second user device 104 is configured to display the second information, generate a confirmation modification instruction based on the user's operation on the second control, and send the confirmation modification instruction to the service device;

[0066] The service device 102 is configured to send an acquisition instruction to the server device 103 based on the confirmation modification instruction.

[0067] The service device sends the second information to the second user device, and after receiving the confirmation modification instruction sent by the second user device, sends the acquisition instruction to the server device 103. The second user device can confirm the above modification instruction, thereby improving the security of the configuration file.

[0068] In some embodiments, as Figure 1 As shown, the service device may include an information processing unit 1021 and an information sending unit 1022. The information processing unit may receive the query quality sent by the first user device 101, determine a target domain name corresponding to the target device identifier based on a pre-stored correspondence between the device identifier and the domain name, determine a target information template corresponding to the query instruction based on a pre-stored correspondence between the instruction and the template, and send the target domain name and the target information template to the information sending unit 1022.

[0069] The information sending unit 1022 is configured to generate first information based on the target domain name and the target information, and send the first information to the first user equipment 101 .

[0070] Here, the above-mentioned information sending unit only has the function of generating information based on the template and sending information to the user device at the same time. Through the above-mentioned two units, it can realize the function of receiving the query instructions of the user device and sending information including controls to the user device, which is convenient for subsequent operation of the controls and modification of the access status of the service.

[0071] In some embodiments, as Figure 2 As shown, the embodiment of the present application provides a method for modifying the access status of a service, which may include the following steps S210-S280:

[0072] S210: The first user equipment sends a query instruction for querying a domain name to the service device, where the query instruction carries a target device identifier of the first user equipment.

[0073] The user may send a query instruction to the service device based on the first user device, for example, by sending a text message including the query instruction to the service device. The query instruction may carry the target device identifier of the first user device.

[0074] In some examples, the target device identifier may include a Subscriber Identity Module (SIM) card number corresponding to the first user device.

[0075] S220: The service device determines a target domain name corresponding to the target device identifier based on a pre-stored correspondence between the device identifier and the domain name.

[0076] Here, after receiving the query instruction sent by the first user device, the service device can determine whether the query instruction is included in the instruction library to verify the query instruction. At the same time, the service device can check whether the target device identifier is included in the device identifier library to verify the target device identifier. If both verifications are successful, that is, if the query instruction is included in the instruction library and the target device identifier is included in the device identifier library, the service device will proceed to the next step.

[0077] The service device may pre-store the correspondence between the device identifier and the domain name, and determine the target domain name corresponding to the target device identifier based on the correspondence.

[0078] A domain name is an identifier for a device or device group consisting of a string of names separated by dots. It is used to locate the device during data transmission and can be mapped to an Internet Protocol (IP) address to facilitate users to access corresponding services based on the IP address.

[0079] S230: The service device generates first information based on the target domain name, and sends the first information to the first user equipment, where the first information includes the target domain name and a first control.

[0080] The service device may generate first information based on the target domain name, and the first information may be fifth generation mobile communication technology (5G) information.

[0081] S240: The first user device displays the first information, generates a modification instruction based on the user's operation on the first control, and sends the modification instruction to the service device, wherein the modification instruction carries the target state.

[0082] The first user device can receive the first information and display the first information, such as Figure 3 As stated, Figure 3 This is a schematic diagram of an exemplary display interface of a first user device. The first information may include a first control, and the first control may carry the status of the target domain name, such as Figure 3 As shown, the first control may include a first sub-control 301 and a second sub-control 302, wherein the first sub-control carries the first status of the target domain name, and the second sub-control carries the second status of the target domain name. For example, the first sub-control carries the "offline" sub-control. When a user clicks the "offline" sub-control, a first sub-modification instruction may be generated to modify the access status of the target service corresponding to the target domain name to "access not allowed", wherein the first sub-modification instruction includes "access not allowed"; or, the second sub-control carries the "online" sub-control. When a user clicks the "online" sub-control, a second sub-modification instruction may be generated to modify the access status of the target service corresponding to the target domain name to "access allowed", wherein the second sub-modification instruction includes "access allowed".

[0083] In some examples, when the service device generates the first information, it may determine the status of the target domain name based on the historical modification instructions corresponding to the target domain name, and generate the first information based on the status of the target domain name and the target domain name. When the first user device displays the first information, the target domain name and the status of the target domain name may be displayed. At the same time, the first control may carry a status opposite to the status of the target domain name, which may be as follows: Figure 4 As shown, Figure 4 FIG. 1 is a schematic diagram of another exemplary display interface of a first user device. Figure 4 As shown, when the historical modification instruction of the target domain name includes a modification instruction of "allow access", it can be determined that the status of the target domain name is "online", such as Figure 4In the display interface, the target domain name, the "online" status, and the first control including "offline" can be directly displayed. When the user clicks the first "offline" control, a modification instruction can be generated to change the access status of the target service corresponding to the target domain name to "access not allowed".

[0084] S250: The service device sends an acquisition instruction to the server device, where the acquisition instruction carries the target domain name.

[0085] When the service device receives the modification instruction sent by the first user equipment, it may send an acquisition instruction to the server device. The acquisition instruction may carry the target domain name. The acquisition instruction is used to acquire the configuration file.

[0086] S260: The server device queries a configuration file including the target domain name based on the target domain name, where the configuration file includes an access status of a target service corresponding to the target domain name, and sends the configuration file to the sending service device.

[0087] Here, the server device may be an Nginx server device.

[0088] After receiving the acquisition instruction sent by the service device, the server device can query the configuration file including the target domain name based on the target domain name. It can be imagined that the above configuration file may include the status of the target domain name, such as online or offline, and the status of the above target domain name corresponds to the access status of the target service, such as "access allowed" or "access not allowed". It can be imagined that when the status of the target domain name is online, the access status of the target service is access allowed, and the user device can access the above target service based on the IP address including the target domain name; when the status of the target domain name is offline, the access status of the target service is access not allowed, and the user device will not be able to access the target service based on the above IP address.

[0089] S270: The service device modifies the access status in the configuration file to the target status, obtains a new configuration file, and sends the new configuration file to the server device.

[0090] After receiving the configuration file, the service device can modify the access status in the configuration file to the target status by modifying the status of the target domain name in the configuration file. For example, the service device can modify the status of the target domain name in the configuration file to offline, changing the access status of the target service to the target status of not allowing access; or by modifying the status of the target domain name in the configuration file to online, changing the access status of the target service to the target status of allowing access.

[0091] S280: The server device updates the access status of the target service to the target status based on the target status in the new configuration file.

[0092] After receiving the above-mentioned new configuration file, the server device can read the above-mentioned configuration file. When the target status is read in the above-mentioned configuration file, the access status of the above-mentioned target service can be updated to the target status. For example, when the server device reads that the status of the target domain name in the configuration file is offline, it will stop resolving the above-mentioned target domain name and modify the access status of the target service to not allowing access; or when the server device reads that the status of the target domain name in the configuration file is online, it will start resolving the above-mentioned target domain name and modify the access status of the target service to allowing access.

[0093] In an embodiment of the present application, a service device receives a query instruction for querying a domain name sent by a first user device, and the service device determines a target domain name corresponding to the target device identifier based on the correspondence between the device identifier and the domain name. The service device sends first information including the target domain name and a first control to the first user device, so that the user can perform operations on the first control. When the service device receives the modification instruction sent by the first user device, it can send an acquisition instruction for acquiring a configuration file to the server device. When the service device receives the configuration file sent by the server device, it can update the access status of the target service corresponding to the target domain name in the configuration file to the target status, obtain a new configuration file, and send the new configuration file to the server device. The server device can update the access status of the target service corresponding to the target domain name to the target status based on the target status in the new configuration file. In the above manner, the user can modify the access status of the target service by simply operating the user device, thereby improving the user experience and the efficiency of modifying the access status.

[0094] It is conceivable that, in order to ensure the security of the configuration file, the modification instruction may be audited by the second user device. If the audit is passed, the service device sends an acquisition instruction based on the modification instruction.

[0095] In some embodiments, as Figure 5 As shown, when the service device receives the modification instruction sent by the first user equipment, sending the acquisition instruction to the server device may include the following steps:

[0096] S510: Upon receiving the modification instruction sent by the first user device, the service device generates second information based on the target domain name and the target state, and sends the second information to the second user device, where the second information includes the target domain name, the target state, and the second control.

[0097] S520: The second user device displays the second information, receives a confirmation modification instruction generated by the user based on an operation of the second control, and sends the confirmation modification instruction to the service device.

[0098] like Figure 6 As shown, Figure 6 This is a schematic diagram of an exemplary display interface of a second user device, where the second information may include a target domain name, a target status of a target service, and a second control. Figure 6 As shown, a second message "Do you agree to modify the status of the target service corresponding to the target domain name to the target status" can be displayed on the second user device, and a second "Agree" control can be provided. If the user clicks the second "Agree" control, the second user device can send a modification confirmation instruction to the service device. It is conceivable that if the user does not click the "Agree" control within a preset time period, the second user device will send a modification rejection instruction to the service device, and the service device will not send the acquisition instruction to the server device.

[0099] In some examples, the second control may include an "Agree" sub-control and a "Reject" sub-control, and the user may click on the sub-controls. The second user device may generate corresponding confirmation modification instructions and rejection modification instructions based on the user's operations on the different sub-controls.

[0100] S530: When receiving the modification confirmation instruction sent by the second user equipment, the service device sends an acquisition instruction to the server device.

[0101] When the service device receives the confirmation modification instruction sent by the second user device, it indicates that the user agrees to the modification of the access status of the target service. The service device may send an acquisition instruction to the server device.

[0102] It can be imagined that the above-mentioned confirmation and modification instruction may include the device identification of the second user device. When the service device receives the above-mentioned confirmation and modification instruction, it can query whether the device identification of the above-mentioned second user device is included in the device identification library, and query whether the above-mentioned confirmation and modification instruction is included in the instruction library. After the service device queries the device identification of the above-mentioned second user device and the above-mentioned confirmation and modification instruction, it can send an acquisition instruction to the server.

[0103] In an embodiment of the present application, a second information is sent to a second user device through a service device, so that the second user performs an operation based on the second control in the above second information. When the service device receives the confirmation modification instruction sent by the above second user device, it sends an acquisition instruction to the server device. By sending the second information to the second user device, the user can review the above modification instruction through the second user device, which is conducive to ensuring the network security of the configuration file and the service.

[0104] After the access status of the target service is modified, a prompt message may be sent to the user device to prompt the user of the access status of the target service, so as to facilitate subsequent management of the access status of the target service by the user.

[0105] In some embodiments, as Figure 7 As shown, after the service device sends the new configuration file to the server device, the method may further include the following steps S710-S720:

[0106] S710: The service device sends a response message indicating that the access status modification is successful to the service device.

[0107] Here, after the server device modifies the access status of the target service to the target status, it may send a response message indicating that the access status modification is successful to the service device.

[0108] S720: The service device sends a prompt message to the first user device. The prompt message carries the target domain name and the target status. The prompt message is used to prompt the user to update the access status of the target service corresponding to the target domain name to the target status.

[0109] Upon receiving the above-mentioned response information, the service device may send a prompt message to the first user device. The above-mentioned prompt message may carry the target domain name and target status. The first user device may display the above-mentioned prompt message. The above-mentioned prompt message may prompt the user that the update of the access status of the above-mentioned target service has been completed, so that the user can check the access status of the target service in a timely manner.

[0110] In some embodiments, as Figure 8 As shown, the service device includes an information processing unit and an information sending unit. The service device receives a query instruction for querying a domain name sent by the first user equipment, which may include:

[0111] S810: The information processing unit receives a query instruction for querying a domain name sent by the first user equipment. Figure 8 As shown, the information processing unit may receive a query instruction for querying a domain name sent by the first user equipment. It is conceivable that the information processing unit may verify the query instruction and the target device identifier included in the query instruction.

[0112] Determining a target domain name corresponding to a target device identifier based on a pre-stored correspondence between the device identifier and the domain name includes:

[0113] S820: The information processing unit determines a target domain name corresponding to the target device identifier based on a pre-stored correspondence between the device identifier and the domain name.

[0114] The information processing unit may pre-store a correspondence between device identifiers and domain names, and determine a target domain name corresponding to the target device identifier based on the correspondence.

[0115] Generating first information based on the target domain name and sending the first information to the first user equipment includes:

[0116] S830: The information processing unit determines the target information template corresponding to the query instruction based on the pre-stored correspondence between the instruction and the information template, and sends the target domain name and the target information template to the information sending unit.

[0117] The information processing unit can determine the target information template corresponding to the query instruction based on the correspondence between the pre-stored instructions and the information template, and then call the interface to send the above-mentioned target domain name and target information template to the information sending unit. Here, the above-mentioned information template can be generated based on the user's operation in the information processing unit, and the above-mentioned information template can be a 5G information template.

[0118] S840: The information sending unit generates first information based on the target domain name and the target information template, and sends the first information to the first user equipment.

[0119] The information sending unit may generate first information based on the target domain name and the target information template, and send the first information to the first user equipment.

[0120] In the embodiment of the present application, an information processing unit receives a query instruction sent by a first user device, queries the target domain name and the target information template, sends the above-mentioned target domain name and the target information template to the information sending unit, and sends the first information to the first user device through the information sending unit. This can facilitate the user device to modify the access status of the target service based on the first information, simplify the user's operation steps, and improve the user experience.

[0121] In some embodiments, as Figure 8 As shown, in the case where the above service device includes an information processing unit and an information sending unit, the access status of the target service can be modified based on the following steps:

[0122] S850: The information processing unit receives the modification instruction sent by the first user equipment, and determines a first target template corresponding to the modification instruction based on a preset correspondence between the instruction and the information template.

[0123] S860: The information processing unit sends the target domain name, target status and first target template to the information sending unit.

[0124] S870: The information sending unit generates second information based on the target domain name, the target state, and the first target template, and sends the second information to the second user equipment.

[0125] S880: The second user device receives the user's operation on the second control, generates a modification instruction, and sends a confirmation modification instruction to the information processing unit.

[0126] S890: The information processing unit sends an acquisition instruction to the server device.

[0127] S900: The server device queries a configuration file including the target domain name based on the target domain name, and sends the configuration file to the information processing.

[0128] S910: The information processing unit modifies the access status in the configuration file to the target status, obtains a new configuration file, and sends the new configuration file to the server device.

[0129] S920: The server device updates the access status of the target service to the target status based on the target status in the new configuration file.

[0130] S930: The server device sends a response message indicating that the access status modification is successful to the information processing unit.

[0131] S940: The information processing unit sends response information to the information sending unit.

[0132] S950: The information sending unit generates prompt information based on the response information, and sends the prompt information to the second user equipment.

[0133] By sending the prompt information to the second user equipment, the user can be notified that the access status of the target service has been updated, which facilitates the user to check the access status of the target service in a timely manner.

[0134] In some embodiments, as Figure 9 As shown, an embodiment of the present application provides an apparatus for modifying the access status of a service, which is applied to a service device, and the apparatus includes:

[0135] The receiving module 901 is configured to receive a query instruction for querying a domain name sent by a first user equipment, wherein the query instruction carries a target device identifier of the first user equipment;

[0136] Determining module 902, configured to determine a target domain name corresponding to a target device identifier based on a pre-stored correspondence between device identifiers and domain names;

[0137] A sending module 903 is configured to generate first information based on the target domain name and send the first information to the first user equipment so that the first user equipment displays the first information, wherein the first information includes the target domain name and the first control;

[0138] The sending module 903 is further configured to, upon receiving the modification instruction sent by the first user device, send an acquisition instruction to the server device, where the acquisition instruction carries the target domain name, so that the server device can query a configuration file including the target domain name based on the target domain name, wherein the modification instruction is generated based on a user operation on the first control, the modification instruction carries the target status, and the configuration file includes an access status of a target service corresponding to the target domain name;

[0139] The receiving module 901 is further configured to receive a configuration file sent by the server device, and modify the access state in the configuration file to the target state to obtain a new configuration file;

[0140] The sending module 903 is further configured to send a new configuration file to the server device, so that the server device updates the access status of the target service to the target status based on the target status in the new configuration file.

[0141] In some embodiments, the sending module is further configured to:

[0142] Upon receiving the modification instruction sent by the first user equipment, generating second information based on the target domain name and the target state, and sending the second information to a second user equipment so that the second user equipment displays the second information, wherein the second information includes the target domain name, the target state, and a second control;

[0143] In case of receiving the confirmation modification instruction sent by the second user equipment, the acquisition instruction is sent to the server equipment, wherein the confirmation modification instruction is generated based on the user's operation on the second control.

[0144] In some embodiments, the sending module is further configured to:

[0145] Upon receiving a response message indicating a successful access status update from the server device, a prompt message is sent to the first user device, the prompt message carrying the target domain name and target status. The prompt message is used to prompt the user that the access status of the target service corresponding to the target domain name is updated to the target status.

[0146] In some embodiments, the service device includes an information processing unit and an information sending unit, and the receiving module is used to:

[0147] receiving, through the information processing unit, a query instruction for querying a domain name sent by the first user equipment;

[0148] Identify modules for:

[0149] Determining, by an information processing unit, a target domain name corresponding to the target device identifier based on a pre-stored correspondence between device identifiers and domain names;

[0150] Sending module, used for:

[0151] The information processing unit determines the target information template corresponding to the query instruction based on the pre-stored correspondence between the instruction and the information template, and sends the target domain name and the target information template to the information sending unit;

[0152] The information sending unit generates first information based on the target domain name and the target information template, and sends the first information to the first user equipment.

[0153] In some embodiments, as Figure 10 As shown, an embodiment of the present application provides a device for modifying the access status of a service, which is applied to a server device, and the device includes:

[0154] Receiving module 1001, configured to receive an acquisition instruction sent by a service device, the acquisition instruction carrying a target domain name, the acquisition instruction being based on the service device determining, upon receiving a query instruction for querying a domain name sent by a first user device, a target domain name corresponding to a target device identifier based on a pre-stored correspondence between a device identifier and a domain name, generating first information based on the target domain name, sending the first information to the first user device, and generating upon receiving a modification instruction sent by the first user device, wherein the query instruction carries the target device identifier, the first information includes the target domain name and a first control, the modification instruction is generated based on a user operation on the first control, and the modification instruction carries a target state;

[0155] A query module 1002 is configured to query a configuration file including the target domain name based on the target domain name, and send the configuration file to the service device, where the configuration file includes an access status of the target service corresponding to the target domain name;

[0156] Receiving module 1001, configured to receive a new configuration file sent by a service device, where the new configuration file is generated based on the service device modifying the access status of a target service in the configuration file to a target status;

[0157] The updating module 1003 is configured to update the access status of the target service to the target status based on the target status in the new configuration file.

[0158] In some embodiments, the apparatus further comprises a sending module configured to:

[0159] A response message indicating successful access status modification is sent to the service device, so that the service device can send a prompt message to the first user device. The prompt message carries the target domain name and target status. The prompt message is used to prompt the user that the access status of the target service corresponding to the target domain name is updated to the target status.

[0160] The apparatus of the above embodiment is used to implement the corresponding method for modifying the access status of a service in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0161] Figure 11 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the application.

[0162] The electronic device 1100 may include a processor 1101 and a memory 1102 storing computer program instructions.

[0163] Specifically, the processor 1101 may include a central processing unit (CPU) or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0164] Memory 1102 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 1102 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 1102 may include removable or non-removable (or fixed) media. Where appropriate, memory 1102 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, memory 1102 is a non-volatile solid-state memory.

[0165] In certain embodiments, memory 602 includes read-only memory (ROM). Where appropriate, the ROM may be mask-programmable ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM), flash memory, or a combination of two or more of these.

[0166] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect of the present application.

[0167] The processor 1101 reads and executes computer program instructions stored in the memory 1102 to implement any one of the methods for modifying the access status of a service in the above embodiments.

[0168] In one example, the electronic device may further include a communication interface 1103 and a bus 1104. Figure 11 The processor 1101, the memory 1102, and the communication interface 1103 are connected via a bus 1104 and communicate with each other.

[0169] The communication interface 1103 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0170] The bus 604 includes hardware, software, or both, and couples the components of the online data traffic metering device to each other. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronic Standard Association (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, the bus 1104 may include one or more buses. Although embodiments herein describe and illustrate a particular bus, this application contemplates any suitable bus or interconnect.

[0171] The electronic device of the above embodiment is used to implement the corresponding method of modifying the access status of a service in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0172] In addition, in conjunction with the method for modifying the access status of a service in the above embodiments, embodiments of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any of the methods for modifying the access status of a service in the above embodiments is implemented.

[0173] In addition, in combination with the method for modifying the access status of a service in the above embodiments, the present application can provide a computer program product to implement the method. When the computer program product instructions are executed by a processor of an electronic device, any of the methods for modifying the access status of a service in the above embodiments is implemented.

[0174] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. Within the scope of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0175] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (Erasable ROM, EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0176] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or devices based on a series of steps or devices. However, this application is not limited to the order of the above steps. In other words, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0177] The present invention has been described above with reference to the flowchart and / or block diagram of the method, device (device) and computer program product according to the embodiments of the present application.It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed via the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more boxes of the flowchart and / or block diagram.Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It is also understood that each box in the block diagram and / or the flowchart and the combination of the boxes in the block diagram and / or the flowchart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0178] The above description is only a specific embodiment of the present application. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the devices, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the scope of protection of the present application.

Claims

1. A method for modifying the access status of a service, characterized in that: Applied to a service device, the method includes: receiving a query instruction for querying a domain name sent by a first user equipment, wherein the query instruction carries a target device identifier of the first user equipment; Determining a target domain name corresponding to the target device identifier based on a pre-stored correspondence between device identifiers and domain names; generating first information based on the target domain name, and sending the first information to the first user equipment so that the first user equipment displays the first information, wherein the first information includes the target domain name and a first control; Upon receiving the modification instruction sent by the first user device, sending an acquisition instruction to the server device, the acquisition instruction carrying the target domain name, so that the server device queries the configuration file including the target domain name based on the target domain name, wherein the modification instruction is generated based on the user's operation on the first control, the modification instruction carries a target status, and the configuration file includes an access status of a target service corresponding to the target domain name; receiving a configuration file sent by the server device, and modifying the access state in the configuration file to the target state to obtain a new configuration file; The new configuration file is sent to the server device, so that the server device updates the access status of the target service to the target status based on the target status in the new configuration file.

2. The method for modifying the access status of a service according to claim 1, characterized in that: The sending an acquisition instruction to the server device when the modification instruction sent by the first user equipment is received includes: Upon receiving the modification instruction sent by the first user equipment, generating second information based on the target domain name and the target state, and sending the second information to a second user equipment so that the second user equipment displays the second information, wherein the second information includes the target domain name, the target state, and a second control; In case of receiving the confirmation modification instruction sent by the second user equipment, the acquisition instruction is sent to the server equipment, wherein the confirmation modification instruction is generated based on the user's operation on the second control.

3. The method for modifying the access status of a service according to claim 1, characterized in that: After sending the new configuration file to the server device, the method further includes: Upon receiving a response message indicating a successful access status update from the server device, a prompt message is sent to the first user device, wherein the prompt message carries the target domain name and the target status, and the prompt message is used to prompt the user that the access status of the target service corresponding to the target domain name is updated to the target status.

4. The method for modifying the access status of a service according to claim 1, characterized in that: The service device includes an information processing unit and an information sending unit, and the receiving of a query instruction for querying a domain name sent by the first user equipment includes: The information processing unit receives a query instruction for querying a domain name sent by the first user equipment; The determining the target domain name corresponding to the target device identifier based on the pre-stored correspondence between the device identifier and the domain name includes: The information processing unit determines the target domain name corresponding to the target device identifier based on the pre-stored correspondence between the device identifier and the domain name; The generating first information based on the target domain name and sending the first information to the first user equipment includes: The information processing unit determines the target information template corresponding to the query instruction based on the pre-stored correspondence between the instruction and the information template, and sends the target domain name and the target information template to the information sending unit; The information sending unit generates the first information based on the target domain name and the target information template, and sends the first information to the first user equipment.

5. A method for modifying the access status of a service, characterized in that: Applied to a server device, the method includes: Receiving an acquisition instruction sent by a service device, the acquisition instruction carrying a target domain name, the acquisition instruction determining a target domain name corresponding to a target device identifier based on a pre-stored correspondence between device identifiers and domain names when the service device receives a query instruction for querying a domain name sent by a first user device, generating first information based on the target domain name, sending the first information to the first user device, and generating a modification instruction when receiving a modification instruction sent by the first user device, wherein the query instruction carries a target device identifier, the first information includes the target domain name and a first control, the modification instruction is generated based on a user operation on the first control, and the modification instruction carries a target state; Based on the target domain name, query a configuration file including the target domain name, and send the configuration file to the service device, where the configuration file includes an access status of a target service corresponding to the target domain name; receiving a new configuration file sent by the service device, where the new configuration file is generated based on the service device modifying the access state of the target service in the configuration file to the target state; Based on the target state in the new configuration file, the access state of the target service is set to the target state.

6. The method for modifying the access status of a service according to claim 5, characterized in that: After setting the access status of the target service to the target status, the method further includes: A response message indicating successful access status modification is sent to the service device, so that the service device sends a prompt message to the first user device, wherein the prompt message carries the target domain name and the target status, and the prompt message is used to prompt the user that the access status of the target service corresponding to the target domain name is updated to the target status.

7. A device for modifying the access status of a service, characterized in that: Applied to service equipment, the device comprises: a receiving module, configured to receive a query instruction for querying a domain name sent by a first user equipment, wherein the query instruction carries a target device identifier of the first user equipment; a determination module, configured to determine a target domain name corresponding to the target device identifier based on a pre-stored correspondence between device identifiers and domain names; a sending module, configured to generate first information based on the target domain name, and send the first information to the first user equipment, so that the first user equipment displays the first information, wherein the first information includes the target domain name and a first control; The sending module is further configured to, upon receiving the modification instruction sent by the first user device, send an acquisition instruction to the server device, the acquisition instruction carrying the target domain name, so that the server device queries the configuration file including the target domain name based on the target domain name, wherein the modification instruction is generated based on a user operation on the first control, the modification instruction carries a target status, and the configuration file includes an access status of a target service corresponding to the target domain name; The receiving module is further configured to receive the configuration file sent by the server device, and modify the access state in the configuration file to the target state to obtain a new configuration file; The sending module is further configured to send the new configuration file to the server device, so that the server device updates the access status of the target service to the target status based on the target status in the new configuration file.

8. A device for modifying the access status of a service, characterized in that: Applied to a server device, the device comprises: a receiving module, configured to receive an acquisition instruction sent by a service device, the acquisition instruction carrying a target domain name, the acquisition instruction being based on the service device determining a target domain name corresponding to a target device identifier based on a pre-stored correspondence between device identifiers and domain names when the service device receives a query instruction for querying a domain name sent by a first user device, generating first information based on the target domain name, sending the first information to the first user device, and generating the first information upon receiving a modification instruction sent by the first user device, wherein the query instruction carries a target device identifier, the first information includes the target domain name and a first control, the modification instruction is generated based on a user operation on the first control, and the modification instruction carries a target state; a query module, configured to query a configuration file including the target domain name based on the target domain name, and send the configuration file to the service device, wherein the configuration file includes an access status of a target service corresponding to the target domain name; a receiving module, configured to receive a new configuration file sent by the service device, wherein the new configuration file is generated based on the service device modifying the access state of the target service in the configuration file to the target state; An updating module is configured to update the access status of the target service to the target status based on the target status in the new configuration file.

9. An electronic device, characterized in that: The device includes: a processor, and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the method for modifying the access status of a service according to any one of claims 1 to 6.

10. A readable storage medium, characterized in that: The readable storage medium stores computer program instructions, which, when executed by a processor, implement the method for modifying the access status of a service according to any one of claims 1 to 6.

11. A computer program product comprising a computer program, characterized in that When the computer program is processed by a processor, the method for modifying the access status of a service according to any one of claims 1 to 6 is implemented.