CN113160010A - Method and device for acquiring virtual resources and electronic equipment - Google Patents

Method and device for acquiring virtual resources and electronic equipment Download PDF

Info

Publication number
CN113160010A
CN113160010A CN202110439102.3A CN202110439102A CN113160010A CN 113160010 A CN113160010 A CN 113160010A CN 202110439102 A CN202110439102 A CN 202110439102A CN 113160010 A CN113160010 A CN 113160010A
Authority
CN
China
Prior art keywords
virtual resource
terminal
information
storage node
teaching terminal
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.)
Pending
Application number
CN202110439102.3A
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.)
Beijing Rainier Network Technology Co ltd
Original Assignee
Beijing Rainier Network 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 Beijing Rainier Network Technology Co ltd filed Critical Beijing Rainier Network Technology Co ltd
Priority to CN202110439102.3A priority Critical patent/CN113160010A/en
Publication of CN113160010A publication Critical patent/CN113160010A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/20Education
    • G06Q50/205Education administration or guidance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/02Reservations, e.g. for tickets, services or events
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B5/00Electrically-operated educational appliances
    • G09B5/08Electrically-operated educational appliances providing for individual presentation of information to a plurality of student stations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Educational Technology (AREA)
  • Educational Administration (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Quality & Reliability (AREA)
  • Development Economics (AREA)
  • Operations Research (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a method, a device and electronic equipment for acquiring virtual resources, wherein when an application request of the virtual resources sent by a teaching terminal is received, a virtual resource identifier corresponding to the virtual resources carried in the application request and a protocol address corresponding to the teaching terminal are acquired; determining a target storage node closest to the teaching terminal from the plurality of storage nodes based on the terminal coordinate information of the position of the teaching terminal determined by the protocol address; and determining a target virtual resource corresponding to the virtual resource identification from a plurality of specific virtual resources stored in the target storage node. According to the method, the target storage node with the shortest distance to the teaching terminal can be calculated according to the region where the teaching terminal is located, and the required virtual resource content is downloaded at the target storage node, so that the problem of network congestion is solved, the response speed of the virtual resource is further improved, and good teaching experience of virtual application is brought to users.

Description

Method and device for acquiring virtual resources and electronic equipment
Technical Field
The present invention relates to the field of information technology, and in particular, to a method and an apparatus for acquiring virtual resources, and an electronic device.
Background
Simulation (simulation) is a technique that uses one system to simulate another real system. Virtual Reality (Virtual Reality) is a computer system that creates and experiences a Virtual World (Virtual World).
Virtual simulation technology is increasingly applied to teaching applications, for example, various virtual simulation teaching software is virtual simulation teaching application software developed by means of technologies such as virtual reality, multimedia, artificial intelligence, network communication, computers and the like.
At present, when a user obtains and loads virtual resources for application, the response speed of the virtual resources is slowed down due to network congestion, and the teaching experience of the virtual application is further influenced.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus and an electronic device for virtual resource acquisition, so as to alleviate the above technical problem.
In a first aspect, an embodiment of the present invention provides a method for acquiring virtual resources, where the method is applied to a support server, the support server is in communication connection with a teaching terminal, and a plurality of storage nodes, and each storage node stores a plurality of specific virtual resources; the method comprises the following steps: receiving a virtual resource application request sent by a teaching terminal; acquiring a virtual resource identifier corresponding to a virtual resource carried in the application request and a protocol address corresponding to the teaching terminal; determining terminal coordinate information of the position of the teaching terminal based on the protocol address; the terminal coordinate information refers to longitude and latitude of the position where the teaching terminal is located in a world coordinate system; determining a target storage node closest to the teaching terminal from the plurality of storage nodes according to the terminal coordinate information; and determining a target virtual resource corresponding to the virtual resource identification from a plurality of specific virtual resources stored in the target storage node.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where after receiving a request for application of a virtual resource sent by a teaching terminal, the method further includes: extracting audit information carried in the application request; the auditing information comprises user information corresponding to a user applying for the virtual resource, identification information corresponding to the virtual resource and reservation information applying for the virtual resource; if the verification information passes, executing a step of extracting a virtual resource identifier corresponding to the virtual resource carried in the application request and a protocol address corresponding to the teaching terminal; if the verification of the audit information fails, generating error information; wherein, the error information carries the information that the verification fails; and error information is returned to the teaching terminal.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where a storage node table is stored in advance in a support server, and coordinate information corresponding to each storage node is stored in the storage node table; the method comprises the following steps of determining a target storage node closest to a teaching terminal from a plurality of storage nodes according to terminal coordinate information, wherein the steps comprise: calculating the path distance between the teaching terminal and each storage node based on the terminal coordinate information and the coordinate information; and determining the storage node with the shortest calculated path distance as a target storage node.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where a specific virtual resource identifier corresponding to each specific virtual resource is further stored in the storage node; the step of determining a target virtual resource corresponding to the virtual resource identifier from a plurality of specific virtual resources stored in the target storage node includes: searching a target specific virtual resource identifier matched with the virtual resource identifier from the plurality of specific virtual resource identifiers; and determining the target virtual resource corresponding to the virtual resource identifier according to the specific virtual resource corresponding to the target specific virtual resource identifier.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the method further includes: and returning the target virtual resource to the teaching terminal.
In a second aspect, an embodiment of the present invention further provides a device for acquiring virtual resources, where the device is applied to a support server, the support server is in communication connection with a teaching terminal, and a plurality of storage nodes, and each storage node stores a plurality of specific virtual resources; the device includes: the receiving module is used for receiving a virtual resource application request sent by the teaching terminal; the acquisition module is used for acquiring a virtual resource identifier corresponding to the virtual resource carried in the application request and a protocol address corresponding to the teaching terminal; the first determining module is used for determining terminal coordinate information of the position of the teaching terminal based on the protocol address; the terminal coordinate information refers to longitude and latitude of the position where the teaching terminal is located in a world coordinate system; the second determining module is used for determining a target storage node closest to the teaching terminal from the plurality of storage nodes according to the terminal coordinate information; and the third determining module is used for determining a target virtual resource corresponding to the virtual resource identifier from a plurality of specific virtual resources stored in the target storage node.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where after the receiving module, the apparatus further includes: the extraction module is used for extracting the audit information carried in the application request; the auditing information comprises user information corresponding to a user applying for the virtual resource, identification information corresponding to the virtual resource and reservation information applying for the virtual resource; the execution module is used for executing the steps of extracting the virtual resource identifier corresponding to the virtual resource carried in the application request and the protocol address corresponding to the teaching terminal if the verification information passes; the generating module is used for generating error information if the verification of the audit information fails; wherein, the error information carries the information that the verification fails; and the first sending module is used for returning the error information to the teaching terminal.
With reference to the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, where the apparatus further includes: and the second sending module is used for returning the target virtual resource to the teaching terminal.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above method for acquiring virtual resources.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the above method for virtual resource acquisition.
The embodiment of the invention has the following beneficial effects:
the embodiment of the application provides a method, a device and electronic equipment for acquiring virtual resources, wherein the method is applied to a support server, the support server is in communication connection with a teaching terminal and a plurality of storage nodes, and each storage node stores a plurality of specific virtual resources; when an application request of virtual resources sent by a teaching terminal is received, acquiring a virtual resource identifier corresponding to the virtual resources carried in the application request and a protocol address corresponding to the teaching terminal; determining terminal coordinate information of the position of the teaching terminal based on the protocol address; determining a target storage node closest to the teaching terminal from the plurality of storage nodes according to the terminal coordinate information; and determining a target virtual resource corresponding to the virtual resource identification from a plurality of specific virtual resources stored in the target storage node. According to the method, the target storage node with the shortest distance to the teaching terminal can be calculated according to the region where the teaching terminal is located, and a user can directly download the needed virtual resource content at the target storage node, so that the problem of network congestion is solved, the response speed of the virtual resource is improved, and good teaching experience of virtual application is brought to the user.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for acquiring virtual resources according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for acquiring virtual resources according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for acquiring virtual resources according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. 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.
At present, when a user obtains and loads virtual resources for application, the response speed of the virtual resources is slowed down due to network congestion, and the teaching experience of the virtual application is further influenced. In order to improve the response speed of the virtual resource, embodiments of the present invention provide a method, an apparatus, and an electronic device for acquiring a virtual resource, so as to alleviate the above technical problem.
For facilitating understanding of the present embodiment, a detailed description is first given to a method for acquiring virtual resources disclosed in the present embodiment.
The embodiment provides a method for acquiring virtual resources, wherein the method is applied to a support server, the support server is in communication connection with a teaching terminal and a plurality of storage nodes, and each storage node stores a plurality of specific virtual resources;
in this embodiment, the support server is pre-deployed with a VR (Virtual Reality) application running support platform and a Virtual simulation experiment teaching management platform, where the VR application running support platform can support running of a specific Virtual resource, and the Virtual simulation experiment teaching management platform enables a user to log on the platform through a teaching terminal, so that the user can use the Virtual simulation experiment teaching management platform to call the corresponding specific Virtual resource for teaching application.
The storage node is a storage server, and in general, in order to satisfy diversification of user teaching simulation, a plurality of different specific virtual resources may be stored in each storage node, where the specific virtual resource may be understood as a virtual simulation program for performing corresponding simulation operation.
Referring to a flowchart of a method for acquiring virtual resources shown in fig. 1, the method specifically includes the following steps:
step S102, receiving a request for applying for virtual resources sent by a teaching terminal;
generally, before sending an application request, a user needs to log in a virtual simulation experiment teaching management platform through a login interface of a teaching terminal, and then, the user sends the application request of virtual resources to a VR application operation support platform of a support server through an application interface on the virtual simulation experiment teaching management platform, wherein the virtual resources are resources that the user needs to use for teaching.
Step S104, acquiring a virtual resource identifier corresponding to the virtual resource carried in the application request and a protocol address corresponding to the teaching terminal;
the virtual resource identifier is a unique identifier corresponding to the virtual resource, and can be represented by characters such as numbers or letters, and the like, without limitation; the protocol Address is abbreviated as IP Address (IP Address), which is a uniform Address format provided by the IP protocol and allocates a logical Address to each network and each host on the internet, so as to mask the difference of physical addresses.
Step S106, determining terminal coordinate information of the position of the teaching terminal based on the protocol address; the terminal coordinate information refers to longitude and latitude of the position where the teaching terminal is located in a world coordinate system;
the method for determining the terminal coordinate information of the teaching terminal based on the protocol address of the teaching terminal is the same as the existing method for determining the terminal coordinate information, and is not repeated herein.
Step S108, determining a target storage node closest to the teaching terminal from the plurality of storage nodes according to the terminal coordinate information;
step S110 is to determine a target virtual resource corresponding to the virtual resource identifier from a plurality of specific virtual resources stored in the target storage node.
In step S108, the target storage node closest to the teaching terminal is determined based on the terminal coordinate information, and the specific virtual resource in the closest target storage node is provided to the teaching terminal of the virtual resource application request, so that the user can obtain the required virtual resource nearby, the network congestion is solved, the response speed of user access is increased, and the VR application teaching experience is improved.
The embodiment of the application provides a method for acquiring virtual resources, wherein the method is applied to a support server, the support server is in communication connection with a teaching terminal and a plurality of storage nodes, and each storage node stores a plurality of specific virtual resources; when an application request of virtual resources sent by a teaching terminal is received, acquiring a virtual resource identifier corresponding to the virtual resources carried in the application request and a protocol address corresponding to the teaching terminal; determining terminal coordinate information of the position of the teaching terminal based on the protocol address; determining a target storage node closest to the teaching terminal from the plurality of storage nodes according to the terminal coordinate information; and determining a target virtual resource corresponding to the virtual resource identification from a plurality of specific virtual resources stored in the target storage node. According to the method, the target storage node with the shortest distance to the teaching terminal can be calculated according to the region where the teaching terminal is located, and a user can directly download the needed virtual resource content at the target storage node, so that the problem of network congestion is solved, the response speed of the virtual resource is improved, and good teaching experience of virtual application is brought to the user.
The present embodiment provides another method for acquiring virtual resources, which is implemented on the basis of the foregoing embodiments; this embodiment mainly describes a specific implementation manner of performing audit on audit information carried in a virtual resource request. As shown in fig. 2, another flow chart of a virtual resource obtaining method, the virtual resource obtaining method in this embodiment includes the following steps:
step S202, receiving a request for applying virtual resources sent by a teaching terminal;
step S204, extracting the audit information carried in the application request; the auditing information comprises user information corresponding to a user applying for the virtual resource, identification information corresponding to the virtual resource and reservation information applying for the virtual resource;
the user information may be information such as a learning number, an identification card number, a name and the like of the user, and is not limited herein; the identification information corresponding to the virtual resources comprises virtual resource identifications and authorized resource keys corresponding to the virtual resources, generally, the virtual simulation experiment teaching management platform applies for virtual resource authorization to the VR application operation support platform, and after authorization, the virtual resource identifications and authorized resource keys corresponding to all the virtual resources are sent to the virtual simulation experiment teaching management platform; the reservation information is a teaching reservation record, and may be information such as a reservation time and a reservation course, which is not limited herein.
If the verification of the audit information is passed, i.e. the audit information is correct, the steps S206 to S214 are executed, and if the verification of the audit information is not passed, the steps S216 to S218 are executed.
Step S206, extracting the virtual resource identifier corresponding to the virtual resource carried in the application request and the protocol address corresponding to the teaching terminal;
step S208, determining terminal coordinate information of the position of the teaching terminal based on the protocol address; the terminal coordinate information refers to longitude and latitude of the position where the teaching terminal is located in a world coordinate system;
step S210, determining a target storage node closest to the teaching terminal from a plurality of storage nodes according to the terminal coordinate information;
generally, a support server stores a storage node table in advance, and coordinate information corresponding to each storage node is stored in the storage node table; the coordinate information is the longitude and latitude of the position of the storage node in a world coordinate system; the step S210 can be realized by the steps a1 to a 2:
step A1, calculating the path distance between the teaching terminal and each storage node based on the terminal coordinate information and the coordinate information;
in this embodiment, the terminal coordinate information of the tutorial terminal and the coordinate information of each storage node are known, and therefore, the path distance can be calculated by the following equation:
Figure BDA0003033787110000081
where d denotes the path distance, x1,y1Representing terminal coordinate information, x2,y2Coordinate information representing the storage node.
In step a2, the storage node with the shortest calculated path distance is determined as the target storage node.
Based on the formula, the path distance between the teaching terminal and each storage node can be calculated, and in this embodiment, a depth or breadth first search algorithm can be applied to search the storage node with the shortest path to the teaching terminal from the plurality of path distances to determine the storage node as a target storage node, so that the virtual resource can be obtained from the target storage node for teaching. The method for searching for the shortest path from the multiple path distances is not limited to the depth-first search algorithm or the breadth-first search algorithm.
Step S212, determining a target virtual resource corresponding to the virtual resource identifier from a plurality of specific virtual resources stored in the target storage node;
in general, a specific virtual resource identifier corresponding to each specific virtual resource is also stored in the storage node; the identification form of the specific virtual resource identification is the same as the identification form of the virtual resource identification carried by the application request. The step S212 can be realized by the steps B1 to B2:
step B1, searching a target specific virtual resource identifier matched with the virtual resource identifier from the plurality of specific virtual resource identifiers;
for example, the plurality of specific virtual resource identifiers are 1, 2, 3, and 4, respectively, where if the virtual resource identifier is 2, the specific virtual resource identifier that is the same as the virtual resource identifier is determined as the target specific virtual resource identifier.
And step B2, determining the target virtual resource corresponding to the virtual resource identification from the specific virtual resource corresponding to the target specific virtual resource identification.
And determining the specific virtual resource corresponding to the target specific virtual resource identifier as the target virtual resource required by the application request, and realizing the virtual simulation experiment of the user by using the target virtual resource.
Step S214, returning the target virtual resource to the teaching terminal;
after the target virtual resource corresponding to the virtual resource identifier is determined from the target storage node through the step S212, the target virtual resource may be returned to the teaching terminal so that the user may complete the virtual experiment according to the target virtual resource.
Step S216, generating error information; wherein, the error information carries the information that the verification fails;
step S218, error information is returned to the teaching terminal;
if at least one information verification in the audit information fails (namely the information is incorrect), error information containing unsuccessful verification is generated and returned to a display interface of the teaching terminal, so that a user can input correct audit information to apply for virtual resources again according to the prompt of the error information.
Corresponding to the method embodiment, the embodiment of the invention provides a device for acquiring virtual resources, wherein the device is applied to a support server, the support server is in communication connection with a teaching terminal and a plurality of storage nodes, and each storage node stores a plurality of specific virtual resources; fig. 3 is a schematic structural diagram of an apparatus for virtual resource acquisition, and as shown in fig. 3, the apparatus includes:
a receiving module 302, configured to receive an application request of a virtual resource sent by a teaching terminal;
an obtaining module 304, configured to obtain a virtual resource identifier corresponding to a virtual resource carried in the application request, and a protocol address corresponding to the teaching terminal;
the first determining module 306 is configured to determine terminal coordinate information of a position where the teaching terminal is located based on the protocol address; the terminal coordinate information refers to longitude and latitude of the position where the teaching terminal is located in a world coordinate system;
the second determining module 308 is configured to determine, according to the terminal coordinate information, a target storage node closest to the teaching terminal from the plurality of storage nodes;
a third determining module 310, configured to determine a target virtual resource corresponding to the virtual resource identifier from the plurality of specific virtual resources stored in the target storage node.
The embodiment of the application provides a device for acquiring virtual resources, wherein the method is applied to a support server, the support server is in communication connection with a teaching terminal and a plurality of storage nodes, and each storage node stores a plurality of specific virtual resources; when an application request of virtual resources sent by a teaching terminal is received, acquiring a virtual resource identifier corresponding to the virtual resources carried in the application request and a protocol address corresponding to the teaching terminal; determining terminal coordinate information of the position of the teaching terminal based on the protocol address; determining a target storage node closest to the teaching terminal from the plurality of storage nodes according to the terminal coordinate information; and determining a target virtual resource corresponding to the virtual resource identification from a plurality of specific virtual resources stored in the target storage node. According to the method, the target storage node with the shortest distance to the teaching terminal can be calculated according to the region where the teaching terminal is located, and a user can directly download the needed virtual resource content at the target storage node, so that the problem of network congestion is solved, the response speed of the virtual resource is improved, and good teaching experience of virtual application is brought to the user.
The virtual resource acquisition device provided by the embodiment of the invention has the same technical characteristics as the virtual resource acquisition method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
An electronic device is further provided in the embodiment of the present application, as shown in fig. 4, which is a schematic structural diagram of the electronic device, where the electronic device includes a processor 121 and a memory 120, where the memory 120 stores computer-executable instructions that can be executed by the processor 121, and the processor 121 executes the computer-executable instructions to implement the method for acquiring virtual resources.
In the embodiment shown in fig. 4, the electronic device further comprises a bus 122 and a communication interface 123, wherein the processor 121, the communication interface 123 and the memory 120 are connected by the bus 122.
The memory 120 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 123 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like may be used. The bus 122 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 122 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
The processor 121 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 121. The Processor 121 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and the processor 121 reads information in the memory, and completes the steps of the method for acquiring virtual resources of the foregoing embodiment in combination with hardware thereof.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the method for acquiring virtual resources, where specific implementation may refer to the foregoing method embodiment, and details are not described herein again.
The method and apparatus for acquiring virtual resources and the computer program product of the electronic device provided in the embodiments of the present application include a computer-readable storage medium storing program codes, where instructions included in the program codes may be used to execute the method described in the foregoing method embodiments, and specific implementations may refer to the method embodiments and are not described herein again.
Unless specifically stated otherwise, the relative steps, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present application. Furthermore, the terms "first," "second," and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. The method for acquiring the virtual resources is characterized by being applied to a supporting server, wherein the supporting server is in communication connection with a teaching terminal and a plurality of storage nodes, and each storage node stores a plurality of specific virtual resources; the method comprises the following steps:
receiving a virtual resource application request sent by the teaching terminal;
acquiring a virtual resource identifier corresponding to the virtual resource carried in the application request and a protocol address corresponding to the teaching terminal;
determining terminal coordinate information of the position of the teaching terminal based on the protocol address; the terminal coordinate information refers to the longitude and latitude of the position of the teaching terminal in a world coordinate system;
determining a target storage node closest to the teaching terminal from a plurality of storage nodes according to the terminal coordinate information;
determining a target virtual resource corresponding to the virtual resource identification from a plurality of specific virtual resources stored by the target storage node.
2. The method of claim 1, wherein after receiving the request for application of the virtual resource sent by the tutorial terminal, the method further comprises:
extracting audit information carried in the application request; the auditing information comprises user information corresponding to a user applying for the virtual resource, identification information corresponding to the virtual resource and reservation information applying for the virtual resource;
if the verification information passes, executing a step of extracting the virtual resource identifier corresponding to the virtual resource and the protocol address corresponding to the teaching terminal, wherein the virtual resource identifier is carried in the application request;
if the verification of the audit information fails, generating error information; wherein, the error information carries the information that the verification fails;
and returning the error information to the teaching terminal.
3. The method according to claim 1, wherein the support server stores a storage node table in advance, and the storage node table stores therein coordinate information corresponding to each of the storage nodes;
the step of determining a target storage node closest to the teaching terminal from a plurality of storage nodes according to the terminal coordinate information includes:
calculating the path distance between the teaching terminal and each storage node based on the terminal coordinate information and the coordinate information;
and determining the storage node with the shortest calculated path distance as a target storage node.
4. The method according to claim 1, wherein the storage node further stores therein a specific virtual resource identifier corresponding to each of the specific virtual resources;
the step of determining a target virtual resource corresponding to the virtual resource identifier from a plurality of specific virtual resources stored by the target storage node includes:
searching a target specific virtual resource identifier matched with the virtual resource identifier from a plurality of specific virtual resource identifiers;
and determining the target virtual resource corresponding to the virtual resource identifier for the specific virtual resource corresponding to the target specific virtual resource identifier.
5. The method of claim 1, further comprising:
and returning the target virtual resource to the teaching terminal.
6. The device for acquiring the virtual resources is characterized in that the device is applied to a supporting server, the supporting server is in communication connection with a teaching terminal and a plurality of storage nodes, and a plurality of specific virtual resources are stored in each storage node; the device comprises:
the receiving module is used for receiving the application request of the virtual resources sent by the teaching terminal;
the acquisition module is used for acquiring the virtual resource identifier corresponding to the virtual resource carried in the application request and the protocol address corresponding to the teaching terminal;
the first determining module is used for determining terminal coordinate information of the position where the teaching terminal is located based on the protocol address; the terminal coordinate information refers to the longitude and latitude of the position of the teaching terminal in a world coordinate system;
the second determining module is used for determining a target storage node closest to the teaching terminal from the plurality of storage nodes according to the terminal coordinate information;
a third determining module, configured to determine, from the plurality of specific virtual resources stored in the target storage node, a target virtual resource corresponding to the virtual resource identifier.
7. The apparatus of claim 6, wherein after receiving the module, the apparatus further comprises:
the extraction module is used for extracting the audit information carried in the application request; the auditing information comprises user information corresponding to a user applying for the virtual resource, identification information corresponding to the virtual resource and reservation information applying for the virtual resource;
the execution module is used for executing the step of extracting the virtual resource identifier corresponding to the virtual resource carried in the application request and the protocol address corresponding to the teaching terminal if the verification information passes the verification;
the generating module is used for generating error information if the verification of the auditing information fails; wherein, the error information carries the information that the verification fails;
and the first sending module is used for returning the error information to the teaching terminal.
8. The apparatus of claim 6, further comprising:
and the second sending module is used for returning the target virtual resource to the teaching terminal.
9. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of virtual resource acquisition of any of claims 1 to 5.
10. A computer-readable storage medium having stored thereon computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the method of virtual resource acquisition of any of claims 1 to 5.
CN202110439102.3A 2021-04-22 2021-04-22 Method and device for acquiring virtual resources and electronic equipment Pending CN113160010A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110439102.3A CN113160010A (en) 2021-04-22 2021-04-22 Method and device for acquiring virtual resources and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110439102.3A CN113160010A (en) 2021-04-22 2021-04-22 Method and device for acquiring virtual resources and electronic equipment

Publications (1)

Publication Number Publication Date
CN113160010A true CN113160010A (en) 2021-07-23

Family

ID=76869635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110439102.3A Pending CN113160010A (en) 2021-04-22 2021-04-22 Method and device for acquiring virtual resources and electronic equipment

Country Status (1)

Country Link
CN (1) CN113160010A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873546A (en) * 2012-12-17 2014-06-18 国际商业机器公司 Method and Apparatus for Controlling Data Storage Among Storage Centers
CN105450753A (en) * 2015-11-27 2016-03-30 浪潮(北京)电子信息产业有限公司 Data acquisition method, directory server and distributed file system
CN110188546A (en) * 2019-04-26 2019-08-30 特斯联(北京)科技有限公司 A kind of teaching resource management method based on information bank platform
CN110727499A (en) * 2019-09-18 2020-01-24 平安科技(深圳)有限公司 Resource data acquisition method and device, computer equipment and storage medium
CN112364268A (en) * 2020-11-13 2021-02-12 微医云(杭州)控股有限公司 Resource acquisition method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873546A (en) * 2012-12-17 2014-06-18 国际商业机器公司 Method and Apparatus for Controlling Data Storage Among Storage Centers
CN105450753A (en) * 2015-11-27 2016-03-30 浪潮(北京)电子信息产业有限公司 Data acquisition method, directory server and distributed file system
CN110188546A (en) * 2019-04-26 2019-08-30 特斯联(北京)科技有限公司 A kind of teaching resource management method based on information bank platform
CN110727499A (en) * 2019-09-18 2020-01-24 平安科技(深圳)有限公司 Resource data acquisition method and device, computer equipment and storage medium
CN112364268A (en) * 2020-11-13 2021-02-12 微医云(杭州)控股有限公司 Resource acquisition method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110311902B (en) Abnormal behavior identification method and device and electronic equipment
CN109639740B (en) Login state sharing method and device based on equipment ID
CN108156237B (en) Product information pushing method and device, storage medium and computer equipment
CN108427731B (en) Page code processing method and device, terminal equipment and medium
CN108494799B (en) Data sharing method and system
CN112306881B (en) Analog data generation method, device, equipment and storage medium
CN107451819B (en) Identity verification method and device based on user operation behavior characteristics
CN111163072B (en) Method and device for determining characteristic value in machine learning model and electronic equipment
CN107026832A (en) Account logon method, equipment and server
CN113268336B (en) Service acquisition method, device, equipment and readable medium
CN110955409B (en) Method and device for creating resources on cloud platform
CN110602056A (en) Service parameter transmission method and device
CN110222790B (en) User identity identification method and device and server
CN110781153B (en) Cross-application information sharing method and system based on block chain
CN113032580A (en) Associated file recommendation method and system and electronic equipment
CN110688319A (en) Application keep-alive capability test method and related device
CN114356747A (en) Display content testing method, device, equipment, storage medium and program product
CN113923144A (en) Service test system, method, electronic device and storage medium
CN113360300A (en) Interface calling link generation method, device, equipment and readable storage medium
CN112052157A (en) Test message construction method, device and system
CN113160010A (en) Method and device for acquiring virtual resources and electronic equipment
CN112181482A (en) Version verification method and device, electronic equipment and storage medium
CN108804889B (en) Website registration method and device
CN110807185A (en) System access method, device and server
CN110177096A (en) Client certificate method, apparatus, medium and calculating equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210723