Account service matching method, device, electronic device and storage medium
By responding to account service matching instructions on the vnf device, determining the target account and matching service priority, the problem of mismatch between account and service functions is solved, efficient service matching and concise code are achieved, and equipment efficiency is improved.
Patent Information
- Application Number
- CN202211658889.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-22
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2042-12-22
AI Technical Summary
On the same vnf device, the account does not match the service functions it needs, resulting in confusion in service and redundant codes, reducing the efficiency of the device.
By responding to the account service matching instructions of the network device, the target account is determined, and the service priority order of the initial service is obtained according to the preset service matching rules, so as to accurately match the account and the services it needs.
It realizes services that need to be activated according to different accounts matching on the same network device, avoids confusion in service matching, reduces program code redundancy, and improves equipment work efficiency.
Smart Images

Figure CN116033024B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technology, and in particular to an account service matching method, device, electronic device and storage medium. Background Art
[0002] With the development of cloud technology, in order to solve the interoperability between the metropolitan area network and the cloud, the cloud gateway plays the role of a bridge. On this basis, services and functions such as dial-up Internet access, data forwarding, data security, data analysis, and data management have been developed. Based on different business needs, different VNF (virtual network element device, carrying cloud gateway function) network devices are provided to meet the needs, such as vswitch, vcpe and other VNFs.
[0003] However, with the increase of vnf devices, some accounts on the same vnf have some functions enabled, some accounts on the same vnf have some services enabled, and some accounts have not enabled these services. How to match the accounts with the service functions they need is an urgent problem to be solved. Summary of the invention
[0004] In order to overcome the above problems and defects, the present invention provides an account service matching method, device, electronic device and storage medium, which can enable different accounts on the same network device to accurately match the services they need.
[0005] To achieve the above object, the first aspect of the present invention provides an account service matching method, comprising:
[0006] In response to an account service matching instruction of the network device, determining a target account associated with the network device;
[0007] Get multiple initial services corresponding to the network device according to the target account;
[0008] According to the preset service matching rules, the service priority order of the initial service is obtained;
[0009] According to the service priority order, the service to be matched is determined from the initial services, and the service to be matched is matched with the target account to obtain the matched service.
[0010] Optionally, the step of matching the service to be matched with the target account to obtain the matched service includes:
[0011] According to the attribute information of the target account and the service matching rules, determine whether the service to be matched matches the target account;
[0012] If so, the matched service is obtained.
[0013] Optionally, the step of determining whether the service to be matched matches the target account according to the attribute information of the target account and the service matching rule includes:
[0014] According to the service matching rules, the target attribute information set is obtained;
[0015] Whether the target account's attribute information is included in the target attribute information set is determined to determine whether the service to be matched is successfully matched with the target account.
[0016] Optionally, the step of determining whether the service to be matched and the target account are successfully matched according to whether the attribute information of the target account is included in the target attribute information set includes:
[0017] When the target attribute information set is an attribute information blacklist, if the attribute information of the target account is included in the attribute information blacklist, it is determined that the matching service and the target account fail to match, otherwise the matching is successful;
[0018] When the target attribute information set is an attribute information whitelist, if the attribute information of the target account is included in the attribute information whitelist, it is determined that the service to be matched and the target account are matched successfully, otherwise the match fails.
[0019] Optionally, after the step of matching the initial service with the target account to obtain the matched service, the method further includes:
[0020] Obtain the export priority order of each data export of the matched service;
[0021] According to the export priority order, the target export is determined, and the data of the matched service is exported from the target export.
[0022] Optionally, after the step of determining the target exit according to the exit priority order, the method further includes:
[0023] Get the matching execution mode of the matched service;
[0024] When the matching execution mode is the serial mode, the number of services to be matched is determined to be one, and the service priority order of the service to be matched ranks first among the initial services. In the serial mode, the service priority orders of the initial services are different.
[0025] Optionally, after the step of obtaining the matching execution mode of the matched service, the method further includes:
[0026] If the matching execution mode is the parallel mode, the next service to be matched is determined in the initial services according to the service priority order. In the parallel mode, the service priority order of each initial service is the same.
[0027] A second aspect of the present invention provides an account service matching device, comprising:
[0028] a determination module, configured to determine a target account associated with the network device in response to an account service matching instruction of the network device;
[0029] A obtaining module, used for obtaining a plurality of initial services corresponding to the network device according to the target account;
[0030] An acquisition module, used to obtain the service priority order of the initial service according to a preset service matching rule;
[0031] The matching module is used to determine the service to be matched from the initial services according to the service priority order, and match the service to be matched with the target account to obtain the matched service.
[0032] A third aspect of the present invention provides an electronic device, including a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the above-mentioned account service matching method is implemented.
[0033] The fourth invention of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned account service matching method is implemented.
[0034] Compared with the prior art, the beneficial effects of the present invention include: first responding to the account service matching instruction of the network device, determining the target account associated with the network device; secondly obtaining multiple initial services corresponding to the network device according to the target account; then obtaining the service priority order of the initial service according to the preset service matching rules; finally determining the service to be matched from the initial service according to the service priority order, and matching the service to be matched with the target account to obtain the matched service. Through the above steps, the present invention can match the services that need to be activated according to different accounts on the same network device, avoiding the confusion and fragmentation of the services matched by each account when multiple accounts are bound to the same network device, causing redundancy of the program code of the network device, and reducing the working efficiency of the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The drawings herein are incorporated into and constitute a part of the specification, showing embodiments consistent with the present invention, and together with the specification, are used to explain the principles of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0036] Figure 1 Schematic diagram of the process of the account service matching method according to an embodiment of the present invention Figure 1 ;
[0037] Figure 2Schematic diagram of the process of the account service matching method according to an embodiment of the present invention Figure 2 ;
[0038] Figure 3 Schematic diagram of the process of the account service matching method according to an embodiment of the present invention Figure 3 ;
[0039] Figure 4 Schematic diagram of the process of the account service matching method according to an embodiment of the present invention Figure 4 ;
[0040] Figure 5 This is a schematic diagram of the architecture of an account service matching device according to an embodiment of the present invention;
[0041] Figure 6 FIG. 1 is a schematic diagram of the architecture of a computer system of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the present invention will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0043] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present invention. However, those skilled in the art will appreciate that the technical solution of the present invention can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring various aspects of the present invention.
[0044] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0045] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0046] With the increase of vnf devices, the services and functions they support increase. Some services are only needed on some vnfs, but not on other vnfs. In order to expand the applicability of vnf and avoid users purchasing multiple vnfs for different services, resulting in a waste of resources. Current vnf devices generally integrate all services, but some accounts on the same vnf have certain functions enabled, while some accounts do not. In order to keep the code unified, the code needs to distinguish and process each service function. The code is highly complex and inefficient. Especially in the case of subcontracting, which requires high efficiency, scattered and excessive invalid judgments will lead to a serious reduction in efficiency.
[0047] Therefore, an embodiment of the present invention provides an account service matching method, such as Figure 1 As shown, it includes step 100, step 200, step 300 and step 400, which are specifically as follows:
[0048] Step 100, in response to the account service matching instruction of the network device, determine the target account associated with the network device. Wherein, the network device includes a vnf device, and the user account associated with the vnf device may include multiple, such as accountA, accountB, accountC, etc., and the services required by each user account are different. Assume that according to the account service matching instruction, the target account is determined to be accountA.
[0049] Specifically, the target account is searched through vni (vnf interface, i.e. virtual network device interface) and QinQ. Among them, QinQ (802.1Q-in-802.1Q) technology is a technology for expanding VLAN (Virtual Local Area Network) space. By adding another layer of 802.1Q Tag on the basis of 802.1Q tagged messages, the function of expanding VLAN space can be achieved, so that the private network VLAN can be transparently transmitted to the public network. Since the messages transmitted in the backbone network have two layers of 802.1QTag (one layer of public network Tag and one layer of private network Tag), i.e. 802.1Q-in-802.1Q, it is called QinQ protocol.
[0050] Step 200, obtaining multiple initial services corresponding to the network device according to the target account.
[0051] For example, the initial services activated by the target account accountA on the vnf device include serviceA, serviceB, serviceC, and serviceD.
[0052] Step 300, according to the preset service matching rules, obtain the service priority order of the initial service. Among them, the service matching rules set the service priority parameters of each initial service, and the service priority parameters determine the service priority order. The larger the service priority parameter, the higher the priority of the service priority order. For example, if the service priority parameter of serviceA is 100, the service priority parameter of serviceB is 90, the service priority parameter of serviceC is 80, and the service priority parameter of serviceD is 70, then the service priority order of serviceA is the highest, and serviceA is matched first.
[0053] Step 400 , determining a service to be matched from the initial services according to the service priority order, and matching the service to be matched with the target account to obtain a matched service.
[0054] For example, if serviceA has the highest service priority, serviceA is first determined as the service to be matched, and then serviceA is matched with accountA, and accountA activates the matched service serviceA.
[0055] In one embodiment, in step 400, the step of matching the service to be matched with the target account to obtain the matched service includes steps 410 and 420. Figure 2 As shown:
[0056] Step 410: Determine whether the service to be matched matches the target account based on the target account's attribute information and service matching rules. The attribute information may include the IP (Internet Protocol Address) used to log in to the target account.
[0057] Specifically, step 410 includes step 411 and step 412. Figure 3 As shown:
[0058] Step 411, obtaining a target attribute information set according to a service matching rule;
[0059] Step 412, based on whether the attribute information of the target account is included in the target attribute information set, to determine whether the service to be matched and the target account are successfully matched. In the service matching rule, the matching method of the initial service can be set, such as the forward matching (forward_match) method and the reverse matching (reverse_match) method, specifically:
[0060] In the reverse matching method, when the target attribute information set is an attribute information blacklist, if the attribute information of the target account is included in the attribute information blacklist, it is determined that the service to be matched and the target account have failed to match, otherwise the match is successful. For example, assuming that the IP address in the attribute information of the target account accountA is 123.456.7.8, the IP addresses included in the attribute information blacklist are 123.456.1.8, 123.456.2.8, 123.456.3.8, and 123.456.4.8, and the attribute information blacklist does not include 123.456.7.8, so the service to be matched serviceA can be matched with the target account accountA, and it is determined that the service to be matched serviceA and the target account accountA have successfully matched.
[0061] In the forward matching method, when the target attribute information set is an attribute information whitelist, if the attribute information of the target account is included in the attribute information whitelist, it is determined that the service to be matched successfully matches the target account, otherwise the match fails. For example, assuming that the IP address in the attribute information of the target account accountA is 123.456.7.8, the IP addresses included in the attribute information whitelist are 123.456.1.8, 123.456.2.8, 123.456.3.8, and 123.456.7.8, and the attribute information whitelist includes 123.456.7.8, so the service to be matched serviceA can be matched with the target account accountA, and it is determined that the service to be matched serviceA and the target account accountA are matched successfully.
[0062] Step 420: If yes, then the matched service is obtained. For example, according to the above rules, the target account accountA is successfully matched with the service serviceA, and serviceA is the matched service opened by the target account accountA.
[0063] In the example, the implementation code for matching user accounts with services according to the service matching rules is presented in JSON format as follows:
[0064]
[0065]
[0066]
[0067] In the above code, service represents service; rule represents service matching rule.
[0068] mode represents the matching execution mode, serial is serial mode, and parallel is parallel mode.
[0069] pri represents the service priority parameter.
[0070] rule_info represents the service matching rule that this service needs to match. The service matching rule is indexed through this item. There can be multiple service matching rules.
[0071] Hittype represents the rule matching method, including reverse_match (reverse matching method) and forward_match (forward matching method).
[0072] type: The content item of the matching attribute information, such as an IP address. It can also include the URL of the target address.
[0073] value: the value of the attribute information, there can be multiple values.
[0074] In one embodiment, in step 400, after matching the initial service with the target account to obtain the matched service, steps 401 and 402 are also included. Figure 4 As shown:
[0075] Step 401, obtain the export priority order of each data export of the matched service. For example, the data exports of the matched service serviceA include outputA, outputB, and outputC, the export priority parameter of outputA is 100, the export priority parameter of outputB is 90, and the export priority parameter of outputC is 80. The export priority parameter of outputA is the largest, and the export priority order of outputA ranks first.
[0076] The data export may include, for example, an L2tp (an industrial standard Internet tunnel protocol) tunnel export, a speed limiting function export, and the like.
[0077] Step 402, according to the export priority order, determine the target export, and export the data of the matched service from the target export. For example, if the export priority order of outputA ranks first, then the data export outputA is determined as the target export, and the data generated by the matched service serviceA is exported from the data export outputA. In this way, the matching work between the target account accountA and the service serviceA is completed.
[0078] For example, the implementation code for matching the target account accountA with serviceA is presented in json format as follows:
[0079]
[0080] In the above code, account represents the user account name; service represents the service; output represents the data export; and output_pri represents the export priority parameter.
[0081] In one embodiment, after the step of determining the target exit according to the exit priority order, the method further includes steps 403 and 404:
[0082] Step 403: Obtain the matching execution mode of the matched service. The matching execution mode includes a serial mode and a parallel mode.
[0083] Step 404, when the matching execution mode is the serial mode, it is determined that the number of services to be matched is one, and the service priority order of the service to be matched ranks first in the initial services. In the serial mode, the service priority order of each initial service is different. In the serial mode, the target account only needs to match one service. For example, the target account accountA only needs to match one service among the initial services serviceA, serviceB, serviceC, and serviceD. Assuming that only serviceA needs to be matched, in the preset matching rules, the service priority parameter of serviceA is configured higher than serviceB, serviceC, and serviceD, so that the service priority order of serviceA ranks first. In this way, when matching, service serviceA is matched with account accountA with the highest priority. After the match is successful, serviceB, serviceC, and serviceD are directly skipped and no longer matched.
[0084] Furthermore, after the step of obtaining the matching execution mode of the matched service, the method further includes:
[0085] Step 405, if the matching execution mode is the parallel mode, the next service to be matched is determined in the initial services according to the service priority order. In the parallel mode, the service priority order of each initial service is the same. In the parallel mode, the target account needs to match all the initial services. For example, the target account accountA needs to match the initial services serviceA, serviceB, serviceC, and serviceD. In the service matching rule, the service priority parameters of serviceA, serviceB, serviceC, and serviceD are configured to be the same parameters, for example, all configured to 100. Then, the target account accountA can be matched with serviceA first, and then matched with serviceB after the match is successful, and so on, until all the initial services are matched.
[0086] In one implementation of this embodiment, the matching execution mode can also be a hybrid mode of serial mode and parallel mode. For example, among serviceA, serviceB, and serviceC, the target account needs accountA to match a service, and serviceD, serviceE, and serviceF must also match. Then serviceA, serviceB, and serviceC can be set to serial mode, and serviceD, serviceE, and serviceF can be set to parallel mode. Assuming that serviceA needs to be matched among serviceA, serviceB, and serviceC, the service priority parameter of serviceA is set to 100, and the priority parameters of serviceB and serviceC are set to 90. The service priority parameters of serviceD, serviceE, and serviceF are all set to 100.
[0087] The account service matching method of this embodiment adopts the above steps to match the services that need to be activated according to different accounts on the same network device, so as to avoid the situation where when multiple accounts are bound to the same network device, the services matched by each account are chaotic and scattered, resulting in redundant program code of the network device and reduced working efficiency of the device.
[0088] In addition, the code of this embodiment is concise and efficient. Especially in the case of subcontracting, which has a relatively high efficiency requirement, there are fewer logical judgment processes when matching accounts and services, which improves the matching efficiency of accounts and services.
[0089] The first embodiment of the present invention provides an account service matching device, such as Figure 5 As shown, it includes a determination module 601, an acquisition module 602, an acquisition module 603 and a matching module 604.
[0090] A determination module 601, configured to determine a target account associated with the network device in response to an account service matching instruction of the network device;
[0091] Obtaining module 602, for obtaining a plurality of initial services corresponding to the network device according to the target account;
[0092] An acquisition module 603 is used to obtain a service priority order of the initial service according to a preset service matching rule;
[0093] The matching module 604 is used to determine the to-be-matched service from the initial services according to the service priority order, and match the to-be-matched service with the target account to obtain the matched service.
[0094] The account service matching device of this embodiment applies the account service matching method provided in the above embodiment, and can match the services that need to be activated according to different accounts on the same network device, so as to avoid the situation where the services matched by each account are chaotic and scattered when multiple accounts are bound to the same network device, resulting in redundant program code of the network device and reduced working efficiency of the device.
[0095] In addition, the code of this embodiment is concise and efficient. Especially in the case of subcontracting, which has a relatively high efficiency requirement, there are fewer logical judgment processes when matching accounts and services, which improves the matching efficiency of accounts and services.
[0096] Figure 6 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present invention is shown.
[0097] It should be noted that Figure 6 The computer system of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0098] like Figure 6 As shown, the computer system includes a central processing unit (CPU) 1801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1802 or the program loaded from the storage part 1808 to the random access memory (RAM) 1803, such as executing the method described in the above embodiment. In RAM 1803, various programs and data required for system operation are also stored. CPU 1801, ROM 1802 and RAM 1803 are connected to each other through bus 1804. Input / output (I / O) interface 1805 is also connected to bus 1804.
[0099] The following components are connected to the I / O interface 1805: an input section 1806 including a keyboard, a mouse, etc.; an output section 1807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1808 including a hard disk, etc.; and a communication section 1809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1809 performs communication processing via a network such as the Internet. A drive 1810 is also connected to the I / O interface 1805 as needed. A removable medium 1811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1810 as needed so that a computer program read therefrom is installed into the storage section 1808 as needed.
[0100] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1809, and / or installed from a removable medium 1811. When the computer program is executed by a central processing unit (CPU) 1801, various functions defined in the system of the present invention are executed.
[0101] It should be noted that the computer-readable medium shown in the embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0102] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0103] The units involved in the embodiments of the present invention may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, limit the units themselves.
[0104] Specifically, through the electronic device of this embodiment, first responds to the account service matching instruction of the network device to determine the target account associated with the network device; secondly, obtains multiple initial services corresponding to the network device according to the target account; then obtains the service priority order of the initial service according to the preset service matching rules; finally, according to the service priority order, determines the service to be matched from the initial service, and matches the service to be matched with the target account to obtain the matched service. Through the above steps, the present invention can match the services that need to be activated according to different accounts on the same network device, avoiding the confusion and fragmentation of the services matched by each account when multiple accounts are bound to the same network device, causing network device program code redundancy and reducing device work efficiency.
[0105] As another aspect, the present invention further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above storage medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method provided in the above embodiment.
[0106] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0107] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation of the present invention.
[0108] Specifically, through the storage medium of this embodiment, first respond to the account service matching instruction of the network device to determine the target account associated with the network device; secondly, obtain multiple initial services corresponding to the network device according to the target account; then obtain the service priority order of the initial service according to the preset service matching rules; finally, determine the service to be matched from the initial service according to the service priority order, and match the service to be matched with the target account to obtain the matched service. Through the above steps, the present invention can match the services that need to be opened according to different accounts on the same network device, avoiding the confusion and fragmentation of the services matched by each account when multiple accounts are bound to the same network device, causing redundancy of the program code of the network device and reducing the working efficiency of the device.
[0109] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the embodiments disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary technical means in the art that are not disclosed in the present invention.
[0110] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. An account service matching method, characterized in that: include: In response to an account service matching instruction of a network device, determining a target account associated with the network device; Obtaining a plurality of initial services corresponding to the network device according to the target account; According to a preset service matching rule, obtaining a service priority order of the initial service; According to the service priority order, a service to be matched is determined from the initial services, and the service to be matched is matched with the target account to obtain a matched service.
2. The account service matching method according to claim 1, characterized in that: The step of matching the service to be matched with the target account to obtain a matched service includes: Determining whether the service to be matched matches the target account according to the attribute information of the target account and the service matching rule; If so, the matched service is obtained.
3. The account service matching method according to claim 2, characterized in that: The step of determining whether the service to be matched matches the target account according to the attribute information of the target account and the service matching rule comprises: According to the service matching rule, a target attribute information set is obtained; Whether the service to be matched is successfully matched with the target account is determined according to whether the attribute information of the target account is included in the target attribute information set.
4. The account service matching method according to claim 3, characterized in that: The step of judging whether the service to be matched is successfully matched with the target account according to whether the attribute information of the target account is included in the target attribute information set comprises: When the target attribute information set is an attribute information blacklist, if the attribute information of the target account is included in the attribute information blacklist, it is determined that the to-be-matched service fails to match the target account, otherwise it is determined that the match is successful; When the target attribute information set is an attribute information whitelist, if the attribute information of the target account is included in the attribute information whitelist, it is determined that the to-be-matched service matches the target account successfully, otherwise the match fails.
5. The account service matching method according to claim 1, characterized in that: After the step of matching the initial service with the target account to obtain a matched service, the method further includes: Obtaining the export priority order of each data export of the matched service; A target outlet is determined according to the outlet priority order, and the data of the matched service is exported from the target outlet.
6. An account service matching device, characterized in that: include: a determination module, configured to determine a target account associated with the network device in response to an account service matching instruction of the network device; An obtaining module, used for obtaining a plurality of initial services corresponding to the network device according to the target account; An obtaining module, used for obtaining a service priority order of the initial service according to a preset service matching rule; The matching module is used to determine the to-be-matched service from the initial services according to the service priority order, and match the to-be-matched service with the target account to obtain a matched service.
7. An electronic device, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the account service matching method according to any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the account service matching method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Service opening method and device for terminal equipment
CN105656649A
Data processing method, device and system based on voiceprint recognition and server
CN110688640A