CN111901180A - Multi-tenant terminal generation method, device, equipment and storage medium of education system - Google Patents

Multi-tenant terminal generation method, device, equipment and storage medium of education system Download PDF

Info

Publication number
CN111901180A
CN111901180A CN202010872368.2A CN202010872368A CN111901180A CN 111901180 A CN111901180 A CN 111901180A CN 202010872368 A CN202010872368 A CN 202010872368A CN 111901180 A CN111901180 A CN 111901180A
Authority
CN
China
Prior art keywords
tenant
terminal
domain name
request
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202010872368.2A
Other languages
Chinese (zh)
Inventor
刘俊锋
赵明辉
杨国志
潘锋
张佰强
贺瑞阳
彭颖悟
陈右峰
刘鹏鹏
朱宇
李超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhuo Zhiyi Education Technology Co ltd
Original Assignee
Shenzhen Zhuo Zhiyi Education Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhuo Zhiyi Education Technology Co ltd filed Critical Shenzhen Zhuo Zhiyi Education Technology Co ltd
Priority to CN202010872368.2A priority Critical patent/CN111901180A/en
Publication of CN111901180A publication Critical patent/CN111901180A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment
    • H04L61/3025Domain name generation or assignment

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for generating a multi-tenant terminal of an education system, which are characterized in that configuration information is acquired according to a terminal configuration request, tenant information corresponding to a tenant sending the terminal configuration request is sent, and the tenant attribute corresponding to the tenant is determined according to the tenant information; determining a functional module to be configured according to the configuration information, and determining a target configuration format of the functional module to be configured according to the tenant attribute; and generating a corresponding tenant terminal for each functional module to be configured according to a target configuration format, configuring a domain name for the tenant terminal so as to associate the domain name with the tenant terminal, and sending the domain name to the tenant terminal, so that the tenant terminal displays corresponding terminal information through the domain name. The invention can provide the user-defined function customized layout for the corresponding terminals by the tenants, and can provide the customized education terminals corresponding to each tenant, thereby improving the user experience.

Description

Multi-tenant terminal generation method, device, equipment and storage medium of education system
Technical Field
The invention relates to the technical field of cloud computing, in particular to a method and a device for generating a multi-tenant terminal of an education system and a computer-readable storage medium.
Background
The traditional education system can only meet the use of one management mechanism, the function structure of an education terminal is fixed, the pattern configuration is single for a long time, and the individual requirements of a plurality of sub-mechanisms cannot be met.
Disclosure of Invention
The invention mainly aims to provide a method and a device for generating a multi-tenant terminal of an education system and a computer readable storage medium, and aims to solve the problems that the function structure of the education terminal is fixed and the style configuration is single for a long time.
In order to achieve the above object, the present invention provides a method for generating a multi-tenant terminal of an education system, including the steps of:
when a terminal configuration request triggered by a tenant is received, acquiring configuration information according to the terminal configuration request and tenant information corresponding to the tenant sending the terminal configuration request, and determining the attribute of the tenant corresponding to the tenant according to the tenant information;
determining a functional module to be configured according to the configuration information, and determining a target configuration format of the functional module to be configured according to the tenant attribute;
and generating a corresponding tenant terminal for each functional module to be configured according to a target configuration format, configuring a domain name for the tenant terminal so as to associate the domain name with the tenant terminal, and sending the domain name to the tenant terminal, so that the tenant terminal displays corresponding terminal information through the domain name.
Optionally, after the step of generating a corresponding tenant terminal for each functional module to be configured according to a target configuration format, configuring a domain name for the tenant, associating the domain name with the tenant terminal, and sending the domain name to the tenant terminal, so that the tenant terminal displays corresponding terminal information through the domain name, the method further includes:
when a domain name request sent by the tenant terminal is received, acquiring a request domain name in the domain name request, and comparing the request domain name with a prestored domain name to verify the identity of the tenant terminal;
when the request domain name is matched with the prestored domain name, the tenant terminal is judged to be a legal tenant terminal, and the domain name request is forwarded to a target server;
and receiving the tenant unique code fed back by the target server, and acquiring and displaying the configuration information corresponding to the tenant terminal based on the tenant unique code.
Optionally, when the requested domain name is matched with the prestored domain name, the step of determining that the tenant terminal is a valid tenant terminal and forwarding the domain name request to the server specifically includes:
when the request domain name is matched with the prestored domain name, the tenant terminal is judged to be a legal tenant terminal, and the domain name request is forwarded to a routing responsible module;
performing algorithm modulus on the number of application servers in the SAAS platform and the number of domain names in the domain name request through the routing responsible module, and acquiring a modulus remainder after the algorithm modulus as a target server ID;
and determining a target server in the application server according to the target server ID, and forwarding the domain name request to the target server.
Optionally, after the step of determining a target server in the application server according to the target server ID, the method further includes:
judging whether the target server works abnormally or not;
and if the target server works abnormally, selecting one server from the servers which work normally as a candidate server, and forwarding the domain name request to the candidate server.
Optionally, the step of generating a corresponding tenant terminal by each to-be-configured functional module according to the target configuration format includes:
determining a third party application according to the configuration information;
and adding each functional module to be configured to a preset terminal interface according to the target configuration format, and adding the jump entry of each third-party application to the preset interface to obtain the tenant terminal.
Optionally, before the step of obtaining the configuration information according to the terminal configuration request, the method further includes:
extracting log information corresponding to the tenant attributes, wherein the log information is a log generated by running an application function by a terminal corresponding to each tenant belonging to the same tenant attribute;
determining an application function meeting a preset use frequency according to the log information, and determining the use requirement of the tenant according to the tenant information;
and acquiring a target application function matched with the use requirement from each application function, and generating the configuration information according to the target application function.
Optionally, the step of configuring a domain name for the tenant terminal includes:
determining the position of the tenant terminal according to the tenant information;
determining a server closest to the tenant terminal in each server according to the position;
and configuring the domain name of the server closest to the tenant terminal as the domain name corresponding to the tenant.
To achieve the above object, the present invention further provides a multi-tenant terminal generation apparatus of an education system, including a memory, a processor, and a generation program stored in the memory and executable on the processor, the generation program, when executed by the processor, implementing the steps of the multi-tenant terminal generation method of the education system as described above.
To achieve the above object, the present invention further provides a multi-tenant terminal generation device of an education system, including a memory, a processor, and a generation program stored in the memory and executable on the processor, wherein the generation program, when executed by the processor, implements the steps of the multi-tenant terminal generation method of the education system as described above.
To achieve the above object, the present invention also provides a readable storage medium storing a generating program which, when executed by a processor, implements the steps of the multi-tenant terminal generating method of the education system as described above.
According to the multi-tenant terminal generation method, device, equipment and readable storage medium of the education system, when a terminal configuration request triggered by a tenant is received, configuration information is obtained according to the terminal configuration request, tenant information corresponding to the tenant sending the terminal configuration request is sent, and the tenant attribute corresponding to the tenant is determined according to the tenant information; determining a functional module to be configured according to the configuration information, and determining a target configuration format of the functional module to be configured according to the tenant attribute; and generating a corresponding tenant terminal for each functional module to be configured according to a target configuration format, configuring a domain name for the tenant terminal so as to associate the domain name with the tenant terminal, and sending the domain name to the tenant terminal, so that the tenant terminal displays corresponding terminal information through the domain name. Through the mode, the invention can be used for the tenants to perform customized function layout on the corresponding terminals, and can provide customized education terminals corresponding to the tenants, thereby improving the user experience and solving the problems of fixed functional structure and single style configuration for a long time of the education terminals.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a multi-tenant terminal generation apparatus of an education system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a first embodiment of a multi-tenant terminal generation method of the educational system of the present invention;
fig. 3 is a flowchart illustrating a method for generating a multi-tenant terminal according to a second embodiment of the educational system of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The main solution of the embodiment of the invention is as follows: when a terminal configuration request triggered by a tenant is received, acquiring configuration information according to the terminal configuration request and tenant information corresponding to the tenant sending the terminal configuration request, and determining the attribute of the tenant corresponding to the tenant according to the tenant information; determining a functional module to be configured according to the configuration information, and determining a target configuration format of the functional module to be configured according to the tenant attribute; and generating a corresponding tenant terminal for each functional module to be configured according to a target configuration format, configuring a domain name for the tenant terminal so as to associate the domain name with the tenant terminal, and sending the domain name to the tenant terminal, so that the tenant terminal displays corresponding terminal information through the domain name. Through the mode, the invention can be used for the tenants to perform customized function layout on the corresponding terminals, and can provide customized education terminals corresponding to the tenants, thereby improving the user experience and solving the problems of fixed functional structure and single style configuration for a long time of the education terminals.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware structure of a multi-tenant terminal generation apparatus of an education system according to an embodiment of the present invention.
As shown in fig. 1, an embodiment of the present invention relates to a multi-tenant terminal generation apparatus that is an education system, and the multi-tenant terminal generation apparatus of the education system may include: a processor 1001, such as a CPU, a communication bus 1002, and a memory 1003. Wherein a communication bus 1002 is used to enable connective communication between these components. The memory 1003 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1003 may alternatively be a storage device separate from the processor 1001. Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the multi-tenant terminal generation apparatus of the educational system, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, the memory 1003, which is a kind of computer storage medium, may include therein the generation program.
In the apparatus shown in fig. 1, the processor 1001 may be configured to call a generation program stored in the memory 1003, and perform the following operations:
when a terminal configuration request triggered by a tenant is received, acquiring configuration information according to the terminal configuration request and tenant information corresponding to the tenant sending the terminal configuration request, and determining the attribute of the tenant corresponding to the tenant according to the tenant information;
determining a functional module to be configured according to the configuration information, and determining a target configuration format of the functional module to be configured according to the tenant attribute;
and generating a corresponding tenant terminal for each functional module to be configured according to a target configuration format, configuring a domain name for the tenant terminal so as to associate the domain name with the tenant terminal, and sending the domain name to the tenant terminal, so that the tenant terminal displays corresponding terminal information through the domain name.
In one embodiment, the processor 1001 may call the generation program stored in the memory 1003, and further perform the following operations:
when a domain name request sent by the tenant terminal is received, acquiring a request domain name in the domain name request, and comparing the request domain name with a prestored domain name to verify the identity of the tenant terminal;
when the request domain name is matched with the prestored domain name, the tenant terminal is judged to be a legal tenant terminal, and the domain name request is forwarded to a target server;
and receiving the tenant unique code fed back by the target server, and acquiring and displaying the configuration information corresponding to the tenant terminal based on the tenant unique code.
In one embodiment, the processor 1001 may call the generation program stored in the memory 1003, and further perform the following operations:
when the request domain name is matched with the prestored domain name, the tenant terminal is judged to be a legal tenant terminal, and the domain name request is forwarded to a routing responsible module;
performing algorithm modulus on the number of application servers in the SAAS platform and the number of domain names in the domain name request through the routing responsible module, and acquiring a modulus remainder after the algorithm modulus as a target server ID;
and determining a target server in the application server according to the target server ID, and forwarding the domain name request to the target server.
In one embodiment, the processor 1001 may call the generation program stored in the memory 1003, and further perform the following operations:
judging whether the target server works abnormally or not;
and if the target server works abnormally, selecting one server from the servers which work normally as a candidate server, and forwarding the domain name request to the candidate server.
In one embodiment, the processor 1001 may call the generation program stored in the memory 1003, and further perform the following operations:
determining a third party application according to the configuration information;
and adding each functional module to be configured to a preset terminal interface according to the target configuration format, and adding the jump entry of each third-party application to the preset interface to obtain the tenant terminal.
In one embodiment, the processor 1001 may call the generation program stored in the memory 1003, and further perform the following operations:
extracting log information corresponding to the tenant attributes, wherein the log information is a log generated by running an application function by a terminal corresponding to each tenant belonging to the same tenant attribute;
determining an application function meeting a preset use frequency according to the log information, and determining the use requirement of the tenant according to the tenant information;
and acquiring a target application function matched with the use requirement from each application function, and generating the configuration information according to the target application function.
In one embodiment, the processor 1001 may call the generation program stored in the memory 1003, and further perform the following operations:
determining the position of the tenant terminal according to the tenant information;
determining a server closest to the tenant terminal in each server according to the position;
and configuring the domain name of the server closest to the tenant terminal as the domain name corresponding to the tenant.
According to the scheme, when a terminal configuration request triggered by a tenant is received, configuration information is acquired according to the terminal configuration request, tenant information corresponding to the tenant sending the terminal configuration request is sent, and a tenant attribute corresponding to the tenant is determined according to the tenant information; determining a functional module to be configured according to the configuration information, and determining a target configuration format of the functional module to be configured according to the tenant attribute; and generating a corresponding tenant terminal for each functional module to be configured according to a target configuration format, configuring a domain name for the tenant terminal so as to associate the domain name with the tenant terminal, and sending the domain name to the tenant terminal, so that the tenant terminal displays corresponding terminal information through the domain name. Through the mode, the invention can be used for the tenants to perform customized function layout on the corresponding terminals, and can provide customized education terminals corresponding to the tenants, thereby improving the user experience and solving the problems of fixed functional structure and single style configuration for a long time of the education terminals.
Based on the hardware architecture of the multi-tenant terminal generation device of the education system, the embodiment of the multi-tenant terminal generation method of the education system is provided.
Referring to fig. 2, fig. 2 is a first embodiment of a multi-tenant terminal generation method of an education system according to the present invention, including the steps of:
step S10, when receiving a terminal configuration request triggered by a tenant, acquiring configuration information according to the terminal configuration request and tenant information corresponding to the tenant sending the terminal configuration request, and determining a tenant attribute corresponding to the tenant according to the tenant information;
in the present embodiment, the execution subject is a multi-tenant terminal generation apparatus of the education system. For convenience of description, the device is hereinafter referred to as a multi-tenant terminal generation device of the education system. The device can be regarded as a background server of the multi-tenant service platform. The terminal of the tenant can be loaded with an APP, and the APP is in communication connection with the device. The tenant accessible APP registers on the device to set off terminal configuration request to the background server, after accomplishing the registration and generating corresponding tenant terminal, the tenant can open the APP and show tenant login interface. When registering, the tenant may input tenant information, which includes the enterprise to which the tenant belongs, the nature of the enterprise, the requirements of the enterprise, and so on. The nature of an enterprise may refer to an industry in which the enterprise operates, e.g., an educational institution, and an educational industry. After the tenant finishes registering, the device can be the application required by the tenant. These applications may be added to a default application interface. In fact, the tenant has its own requirement for the application interface, for example, the application interface needs to have a watermark representing the tenant characteristics or the characteristics of the enterprise to which the tenant belongs, and the watermark may be the enterprise culture, logo, and the like of the enterprise. Of course, the tenant may also require a background, a screen saver, etc. on the application interface as required by the tenant.
The tenant may send a terminal configuration request to the device based on a default terminal module. Specifically, the tenant may input configuration information on a default module configuration interface, where the configuration information includes a required function module name, a function module type, or a function requirement. And the terminal generates page configuration information according to the configuration information and sends the configuration information to the device.
Step S20, determining a function module to be configured according to the configuration information, and determining a target configuration format of the function module to be configured according to the tenant attribute;
in this embodiment, the configuration information includes page configuration information such as pictures and texts uploaded by the tenant and function requirements, where the pictures and the texts may be regarded as elements embedded in a terminal application interface required by the tenant, that is, defined as first page elements. The first page elements are multiple, for example, the configuration information includes pictures, texts and voices, and the first page elements include at least three. The function requirements comprise payment support, visitor access support, WeChat login payment, a personalized terminal page layout template and the like. The device analyzes the terminal configuration request after receiving the terminal configuration request, thereby obtaining the configuration information. And the terminal arrangement format corresponding to the tenant attribute is used as the target configuration format. In a specific embodiment, the corresponding tenant terminal may be associated in the tenant information, and after the corresponding terminal is configured and generated, the apparatus may determine, according to the terminal, the tenant information corresponding to the tenant that sends the instruction.
Step S30, generating a corresponding tenant terminal for each functional module to be configured according to a target configuration format, configuring a domain name for the tenant terminal, so as to associate the domain name with the tenant terminal, and sending the domain name to the tenant terminal, so that the tenant terminal displays corresponding terminal information through the domain name.
In this embodiment, the apparatus may determine, according to the tenant information, the tenant attribute corresponding to the tenant. The tenant attribute refers to an industry in which the tenant or an enterprise to which the tenant belongs is engaged. For example, the tenant type may be an education domain, a network security domain, and the like. The device may determine the tenant attribute according to the enterprise property corresponding to the enterprise to which the tenant in the tenant information belongs, or the device may determine the tenant attribute corresponding to the tenant according to the tenant feature in the tenant information. The first page element does not exist in an original form in the education application interface, and the device modifies the first page element, so that the modified first page element is added into the interface to construct the education application interface. The device modifies the first page element to determine the target format of the first page element. The target format may be considered a location, shape, color, size, etc. of the first page element on the educational application interface.
The apparatus may determine a corresponding target configuration format according to the tenant attributes. The tenant attribute real rule represents the same type of tenant, namely the device takes the configuration format favored by the type of tenant as a target configuration format, and the configuration format favored by a certain type of tenant can be obtained by performing big data analysis according to the configuration format which is stored in the device and is configured by the type of tenant. For example, tenants in the education industry prefer to put the background picture (first page element) in the upper left corner of the page, i.e., the upper left corner, and clarify as the target format for the background picture. And after the target configuration format is determined, the device adds the functional module element to be configured to the preset interface according to the corresponding target configuration format to obtain the tenant terminal. The default interface may be considered a blank interface.
In a specific embodiment, a plurality of tenants on the multi-tenant service platform complete the configuration of the application interface, and the configuration information of the application interface is stored in the device. The configuration information of the application interface comprises configuration information of the application interface corresponding to the tenant currently rented and configuration information of the application interface corresponding to the tenant who does not renew the fee and automatically terminates the renting. The device can extract page elements and page elements in each configuration information, and the extracted page elements are second page elements. The device classifies each page element and the format corresponding to the page element according to the tenant attribute, that is, the tenant attribute corresponds to the format of a plurality of second page elements, and the tenant attributes corresponding to the tenants to which the second page elements belong are the same. The device stores the tenant attribute, the second page element corresponding to the tenant attribute and the format corresponding to the second page element in an associated manner.
When an education application interface needs to be configured for the tenant, the device acquires each second page element related to the tenant attribute corresponding to the tenant and the format corresponding to the second page element. And each second page element associated with the tenant attribute has the same second page element, the device counts the number of the second page elements corresponding to the same format, and then determines the format with the maximum number as the heat format corresponding to the second page element. For example, the tenant attribute is the education industry, the education industry associates 500 second page elements, and 5 of the 500 second page elements are the same, that is, 200 same second page elements a, 100 same second page elements B, 150 same second page elements C, 50 same second page elements D, and 100 same second page elements E, and the second page element a has four formats, that is, 85 formats a, 50 formats B, 25 formats C, and 40 formats D, respectively, and then the format a is used as the hot format of the second page element a. The device determines the corresponding hot format of each second page element under the tenant attribute according to the mode.
The device determines a target page element matched with the first page element in each second page element, wherein the type of the second page element is the same as that of the first page element, and the second page element can be determined as the target page element matched with the first page element. The hot format corresponding to the target page element can be determined as the target format of the first page element.
In the technical solution provided in this embodiment, the apparatus obtains each second page element associated with the tenant attribute and the format corresponding to each second page element, determines the number of the same formats corresponding to the second page elements, determines the maximum number of formats as the thermal format corresponding to the second page format, and further determines a target page element matching the first page element in each second page element, so as to determine the thermal format of the target page element as the target format of the first page element, that is, determines the format with the current higher thermal as the target format of the first page element.
Further, after the device configures a new tenant terminal for the tenant, because the tenant terminal is configured differently from the default terminal, the default terminal can be provided for other tenants that do not need to configure the terminal by themselves, and the default terminal cannot be deleted, the device needs to configure a corresponding domain name for the tenant again, so that the domain name is associated with the tenant terminal. Specifically, the device re-determines the server, and then uses the domain name of the server as the domain name of the tenant, thereby completing the domain name configuration of the tenant.
After the domain name of the tenant is configured, the device takes the associated terminal in the tenant information as the terminal corresponding to the tenant, so that the domain name is sent to the terminal, the tenant can log in the terminal through the domain name, and the terminal can display an education application interface. Of course, the device may determine the terminal corresponding to the tenant directly according to the device identifier of the terminal carried by the page configuration request.
The step of generating the corresponding tenant terminal by each functional module to be configured according to the target configuration format includes:
determining a third party application according to the configuration information;
and adding each functional module to be configured to a preset terminal interface according to the target configuration format, and adding the jump entry of each third-party application to the preset interface to obtain the tenant terminal.
In the present embodiment, the third-party application refers to an application that the device does not have, for example, WeChat or the like. The third party applications may include WeChat, Payment, visitor access, and the like applications. The page configuration request carries information of the third-party application required by the tenant, that is, the third-party application information is carried by the configuration information.
The device acquires the jump entry of the third-party application according to the third-party application information, and adds the jump entry of the third-party application to the preset interface.
Wherein the step of configuring the domain name for the tenant terminal comprises:
determining the position of the tenant terminal according to the tenant information;
determining a server closest to the tenant terminal in each server according to the position;
and configuring the domain name of the server closest to the tenant terminal as the domain name corresponding to the tenant.
In an embodiment, the device determines the position of the terminal corresponding to the tenant according to the tenant information. The device obtains the position corresponding to each server, so that the position of the terminal and the position of each server are calculated, the distance between the terminal and each server is determined, the server with the minimum distance is determined as the target server, and the domain name of the target server is configured to be the domain name corresponding to the tenant, so that the flow of the terminal accessing the target server is saved.
In the technical solution provided in this embodiment, when a terminal configuration request triggered by a tenant is received, configuration information is obtained according to the terminal configuration request, tenant information corresponding to the tenant that sends the terminal configuration request is sent, and a tenant attribute corresponding to the tenant is determined according to the tenant information; determining a functional module to be configured according to the configuration information, and determining a target configuration format of the functional module to be configured according to the tenant attribute; and generating a corresponding tenant terminal for each functional module to be configured according to a target configuration format, configuring a domain name for the tenant terminal so as to associate the domain name with the tenant terminal, and sending the domain name to the tenant terminal, so that the tenant terminal displays corresponding terminal information through the domain name. Through the mode, the invention can be used for the tenants to perform customized function layout on the corresponding terminals, and can provide customized education terminals corresponding to the tenants, thereby improving the user experience and solving the problems of fixed functional structure and single style configuration for a long time of the education terminals.
Referring to fig. 3, fig. 3 is a second embodiment of the multi-tenant terminal generation apparatus of the education system according to the present invention, and based on the first embodiment, after step S30, the method further includes:
step S40, when receiving a domain name request sent by the tenant terminal, acquiring a request domain name in the domain name request, and comparing the request domain name with a prestored domain name to verify the identity of the tenant terminal;
step S50, when the request domain name is matched with the pre-stored domain name, the tenant terminal is judged to be a legal tenant terminal, and the domain name request is forwarded to a target server;
step S60, receiving the tenant unique code fed back by the target server, and acquiring and displaying the configuration information corresponding to the tenant terminal based on the tenant unique code.
Wherein, when the requested domain name is matched with the pre-stored domain name, the step of determining that the tenant terminal is a valid tenant terminal and forwarding the domain name request to a server specifically comprises:
when the request domain name is matched with the prestored domain name, the tenant terminal is judged to be a legal tenant terminal, and the domain name request is forwarded to a routing responsible module;
performing algorithm modulus on the number of application servers in the SAAS platform and the number of domain names in the domain name request through the routing responsible module, and acquiring a modulus remainder after the algorithm modulus as a target server ID;
and determining a target server in the application server according to the target server ID, and forwarding the domain name request to the target server.
Further, after the step of determining a target server in the application server according to the target server ID, the method further includes:
judging whether the target server works abnormally or not;
and if the target server works abnormally, selecting one server from the servers which work normally as a candidate server, and forwarding the domain name request to the candidate server.
In this embodiment, when receiving the domain name request sent by the tenant terminal, the request domain name summarized by the domain name request is matched with the domain name in the cache, and if the matching is successful, the request domain name is legal, and if the matching is unsuccessful, the request domain name is illegal. And determining the tenant distributed by the SaaS to which the domain name matching success user belongs, verifying whether the identity of the tenant is logged in, and if so, logging in the tenant. The domain name request is sent to the route load module. And the routing load module performs arithmetic modulus on the request domain name and the number of application servers in the SaaS platform, uses the modulus remainder as the ID of the application server as a target server, and then sends the domain name request to the target server. The domain name configuration mainly depends on a custom page similar to github, jekyl is used for generating a self-service website of a tenant, a system uses jenkins for building the website of the tenant, meanwhile, release management of the page of the tenant is carried out by combining a personalized domain name system of the tenant, a dynamic domain name processing engine is set by means of SaaS, no operation and maintenance personnel are needed to configure the domain name, and the user can configure the domain name in the system by self. The dynamic domain name processing engine combines the responsibilities of the Nginx server and the web server by depending on the request receiving module, the domain name matching module, the user identity verification module and the routing load module, and performs domain name verification, user identity verification and message forwarding to the application server on the dynamic domain name server without the participation of operation and maintenance personnel, so that the dynamic domain name processing engine is convenient to deploy and operate and maintain. The problem of need in the current domain name resolution that need building a Nginx server and web server can accomplish the domain name verification to every new tenant all needs system operation and maintenance personnel to dispose the domain name resolution at Nginx, has improved maintenance cost and arrangement time is solved.
Further, before the step of obtaining the configuration information according to the terminal configuration request, the method further includes:
extracting log information corresponding to the tenant attributes, wherein the log information is a log generated by running an application function by a terminal corresponding to each tenant belonging to the same tenant attribute;
determining an application function meeting a preset use frequency according to the log information, and determining the use requirement of the tenant according to the tenant information;
and acquiring a target application function matched with the use requirement from each application function, and generating the configuration information according to the target application function.
Specifically, when the tenant uses the application function through the terminal, the application function generates log information, and the log information is collected and stored by the device. The log information comprises a log generated by the terminal running application function corresponding to the tenant currently rented, and also comprises a log generated by the terminal running application function corresponding to the tenant which does not renew the fee and automatically terminates the renting.
The device stores a plurality of log information, and the log information is generated by the terminal of the tenant running the application function, so the device can store the log information and the attribute of the tenant to which the tenant belongs in an associated manner. After determining the tenant attribute of the current tenant, the device can acquire each log information associated with the tenant attribute.
After the device obtains each log information under the attribute of the tenant, the use frequency of each application function under the lease type is counted according to each log information. After completing the statistics, the device may delete the log information to preserve the storage space of the device. The usage frequency refers to the number of times of usage or the usage frequency.
The device is provided with a preset use frequency, the device sequentially judges whether the use frequency of each application function is greater than the preset use frequency, if so, the frequency of the application function is higher, namely the application function is a common application function in the field of the tenant, and the application function can be determined as a basic application function, namely the application function is determined as a target application function. The device adds the target application function to the preset interface, and adds the first page element to the preset interface according to the target format to obtain the education application interface.
The device can also determine the use requirement of the tenant according to the tenant information. The usage requirements may be the usage habits of the tenant, or the requirements for functionality. Specifically, the tenant information may include log information of a terminal corresponding to the tenant, the log information includes an operation record of the tenant on the terminal, and the device may determine the operation habit of the tenant according to the operation record, so that the operation habit is used as the use requirement. The device needs to acquire the authorization of the terminal, namely the device sends a request for acquiring the log information to the terminal of the tenant, the tenant can choose to approve or reject based on the terminal, and if the tenant approves, the terminal sends the log information to the device, so that the device stores the log information into the tenant information, and the use requirement of the tenant can be conveniently determined. Of course, the tenant information may directly include the usage requirement, and the usage requirement is filled by the tenant through the terminal and sent to the device for storage.
Each application function determined by the device is an application function with high popularity in the field to which the tenant belongs, but the tenant does not necessarily adopt all application functions. The characteristics of high convenience and good performance of the application function can be embodied due to high popularity, that is, the convenience and the performance of the application function are good, and the application function can be approved by each tenant for use. The device acquires the target application function matched with the use requirement from the application functions, so that the device can configure the application function meeting the use requirement of the tenant for the tenant, and can configure the application function with higher convenience and better performance to the tenant. It should be noted that the device may add the target application function, the third party application, and the first page element on the preset interface at the same time. The target application function is a function of an application owned by the device itself, and the third-party application is not a function of an application owned by the device itself. The third party application may be determined according to the target application function, for example, if the target application function is a positioning function, the third party application may be a Baidu map, a Gade map, or the like. The target application function is payment, and the third party application can be WeChat payment, Payment, etc.
In the technical scheme provided by this embodiment, the device determines the third-party application according to the configuration information, adds the jump entry of the third-party application to the preset interface, and adds the first page element to the preset interface according to the target format, thereby obtaining the education application interface.
In one embodiment, after configuring the domain name for the tenant, the apparatus determines a server corresponding to the domain name, so as to deploy the education application interface on the server, that is, the server is responsible for switching third-party applications on the education application interface, loading target application functions, and the like.
The present invention also provides a multi-tenant terminal generation device of an education system, including a memory, a processor, and a generation program stored in the memory and executable on the processor, wherein the generation program, when executed by the processor, implements the steps of the multi-tenant terminal generation method of the education system according to the above embodiment.
The present invention also provides a multi-tenant terminal generation apparatus of an education system, including a memory, a processor, and a generation program stored in the memory and executable on the processor, the generation program, when executed by the processor, implementing the steps of the multi-tenant terminal generation method of the education system according to the above embodiment.
The present invention also provides a readable storage medium storing a generating program which, when executed by a processor, implements the steps of the multi-tenant terminal generating method of an education system as described in the above embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A multi-tenant terminal generation method of an education system is characterized by comprising the following steps:
when a terminal configuration request triggered by a tenant is received, acquiring configuration information according to the terminal configuration request and tenant information corresponding to the tenant sending the terminal configuration request, and determining the attribute of the tenant corresponding to the tenant according to the tenant information;
determining a functional module to be configured according to the configuration information, and determining a target configuration format of the functional module to be configured according to the tenant attribute;
and generating a corresponding tenant terminal for each functional module to be configured according to a target configuration format, configuring a domain name for the tenant terminal so as to associate the domain name with the tenant terminal, and sending the domain name to the tenant terminal, so that the tenant terminal displays corresponding terminal information through the domain name.
2. The method for generating multi-tenant terminals of an education system according to claim 1, wherein the step of generating a corresponding tenant terminal for each function module to be configured according to a target configuration format, configuring a domain name for the tenant, associating the domain name with the tenant terminal, and sending the domain name to the tenant terminal, so that the tenant terminal displays corresponding terminal information through the domain name further comprises:
when a domain name request sent by the tenant terminal is received, acquiring a request domain name in the domain name request, and comparing the request domain name with a prestored domain name to verify the identity of the tenant terminal;
when the request domain name is matched with the prestored domain name, the tenant terminal is judged to be a legal tenant terminal, and the domain name request is forwarded to a target server;
and receiving the tenant unique code fed back by the target server, and acquiring and displaying the configuration information corresponding to the tenant terminal based on the tenant unique code.
3. The method for generating a multi-tenant terminal in an educational system according to claim 2, wherein the step of determining that the tenant terminal is a valid tenant terminal when the requested domain name matches the pre-stored domain name, and forwarding the domain name request to a server specifically comprises:
when the request domain name is matched with the prestored domain name, the tenant terminal is judged to be a legal tenant terminal, and the domain name request is forwarded to a routing responsible module;
performing algorithm modulus on the number of application servers in the SAAS platform and the number of domain names in the domain name request through the routing responsible module, and acquiring a modulus remainder after the algorithm modulus as a target server ID;
and determining a target server in the application server according to the target server ID, and forwarding the domain name request to the target server.
4. The multi-tenant terminal generation method of the education system as claimed in claim 3, wherein the step of determining a destination server in the application server according to the destination server ID, after, further comprises:
judging whether the target server works abnormally or not;
and if the target server works abnormally, selecting one server from the servers which work normally as a candidate server, and forwarding the domain name request to the candidate server.
5. The method for generating multi-tenant terminals of an educational system according to claim 1, wherein the step of generating each of the functional modules to be configured into a corresponding tenant terminal according to a target configuration format comprises:
determining a third party application according to the configuration information;
and adding each functional module to be configured to a preset terminal interface according to the target configuration format, and adding the jump entry of each third-party application to the preset interface to obtain the tenant terminal.
6. The method for generating a multi-tenant terminal of an educational system of claim 1, wherein the step of obtaining configuration information according to the terminal configuration request is preceded by the step of:
extracting log information corresponding to the tenant attributes, wherein the log information is a log generated by running an application function by a terminal corresponding to each tenant belonging to the same tenant attribute;
determining an application function meeting a preset use frequency according to the log information, and determining the use requirement of the tenant according to the tenant information;
and acquiring a target application function matched with the use requirement from each application function, and generating the configuration information according to the target application function.
7. The method for generating a multi-tenant terminal of an education system as claimed in any one of claims 1 to 6, wherein the step of configuring a domain name for the tenant terminal includes:
determining the position of the tenant terminal according to the tenant information;
determining a server closest to the tenant terminal in each server according to the position;
and configuring the domain name of the server closest to the tenant terminal as the domain name corresponding to the tenant.
8. A multi-tenant terminal generation apparatus of an education system, characterized in that the multi-tenant terminal generation apparatus of the education system comprises a memory, a processor, and a generation program stored in the memory and executable on the processor, the generation program implementing the steps of the multi-tenant terminal generation method of the education system according to any one of claims 1 to 7 when executed by the processor.
9. A multi-tenant terminal generation device of an education system, characterized in that the multi-tenant terminal generation device of the education system comprises a memory, a processor and a generation program stored in the memory and executable on the processor, the generation program, when executed by the processor, implementing the steps of the multi-tenant terminal generation method of the education system according to any one of claims 1 to 7.
10. A storage medium characterized in that the readable storage medium stores a generating program which, when executed by a processor, implements the steps of the multi-tenant terminal generating method of the education system as recited in any one of claims 1 to 7.
CN202010872368.2A 2020-08-26 2020-08-26 Multi-tenant terminal generation method, device, equipment and storage medium of education system Withdrawn CN111901180A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010872368.2A CN111901180A (en) 2020-08-26 2020-08-26 Multi-tenant terminal generation method, device, equipment and storage medium of education system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010872368.2A CN111901180A (en) 2020-08-26 2020-08-26 Multi-tenant terminal generation method, device, equipment and storage medium of education system

Publications (1)

Publication Number Publication Date
CN111901180A true CN111901180A (en) 2020-11-06

Family

ID=73225704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010872368.2A Withdrawn CN111901180A (en) 2020-08-26 2020-08-26 Multi-tenant terminal generation method, device, equipment and storage medium of education system

Country Status (1)

Country Link
CN (1) CN111901180A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112686729A (en) * 2020-12-31 2021-04-20 微医云(杭州)控股有限公司 Product customization method and device, electronic equipment and storage medium
WO2023273059A1 (en) * 2021-06-30 2023-01-05 成都商汤科技有限公司 Device monitoring method, system and apparatus, and computer device and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112686729A (en) * 2020-12-31 2021-04-20 微医云(杭州)控股有限公司 Product customization method and device, electronic equipment and storage medium
CN112686729B (en) * 2020-12-31 2024-02-20 微医云(杭州)控股有限公司 Product customization method, device, electronic equipment and storage medium
WO2023273059A1 (en) * 2021-06-30 2023-01-05 成都商汤科技有限公司 Device monitoring method, system and apparatus, and computer device and storage medium

Similar Documents

Publication Publication Date Title
US10372884B2 (en) Information processing system, information processing apparatus, account registration method, and program
CN109587233B (en) Multi-cloud container management method, device and computer-readable storage medium
CN108335237B (en) Scheme setting method, terminal and computer readable storage medium
US9807272B2 (en) Information processing system, device, and information processing method
CN107104996B (en) User position checking method and device, and controlled equipment access method and device
US10095798B2 (en) Method for displaying website authentication information and browser
CN104158889B (en) Card information querying method and Cloud Server
US20140122349A1 (en) System, information management method, and information processing apparatus
US9311024B2 (en) Output system, output method, and program
US20150169849A1 (en) Information processing system, information processing apparatus, method of administrating license, and program
US9985961B2 (en) Information processing system and authentication method
JP6422583B2 (en) Method, apparatus, system, storage medium, program, and computer apparatus for providing authentication information on a web page
CN110806916B (en) Method and system for realizing personalized login page of each tenant of SAAS platform
CN111901180A (en) Multi-tenant terminal generation method, device, equipment and storage medium of education system
US20210377277A1 (en) Service providing system, information processing system, and use permission assigning method
CN111176963A (en) Service evaluation information processing method and device
JP2007148471A (en) Service notification system
CN111770086A (en) Fishing user simulation collection method, device, system and computer readable storage medium
US20150149919A1 (en) Information processing system and method of processing information
US10200455B2 (en) Information processing system and method
CN112084021A (en) Interface configuration method, device and equipment of education system and readable storage medium
US10542569B2 (en) Community-based communication network services
CN107679871B (en) List management method, device, system and computer readable storage medium
CN111045725A (en) Control method, device and storage medium of code management system
CN112015411B (en) Education application interface configuration method and device based on SAAS and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20201106