CN117130596A - Service demand processing method and device based on virtual reality environment - Google Patents

Service demand processing method and device based on virtual reality environment Download PDF

Info

Publication number
CN117130596A
CN117130596A CN202311088607.5A CN202311088607A CN117130596A CN 117130596 A CN117130596 A CN 117130596A CN 202311088607 A CN202311088607 A CN 202311088607A CN 117130596 A CN117130596 A CN 117130596A
Authority
CN
China
Prior art keywords
code
target
running
virtual reality
reality environment
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
CN202311088607.5A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202311088607.5A priority Critical patent/CN117130596A/en
Publication of CN117130596A publication Critical patent/CN117130596A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a service demand processing method and device based on a virtual reality environment. Relates to the field of artificial intelligence. The method comprises the following steps: receiving a service demand sent by a user, determining a program editor according to the service demand, and displaying the program editor in a first display area in a virtual reality environment; responding to a code block selection instruction input by a user in a program editor, and adding a target code block into the program editor according to the code block selection instruction; responding to a code running instruction of a user, running an object code indicated by the code running instruction, and displaying the running state of the object code in a second display area; and storing the target code into a code library and displaying the running result of the target code in a third display area under the condition that the target code is detected to finish running and the running state is normal. The application solves the problems of higher difficulty and lower efficiency of service development in the existing development environment in the related technology.

Description

Service demand processing method and device based on virtual reality environment
Technical Field
The application relates to the field of artificial intelligence, in particular to a method and a device for processing business requirements based on a virtual reality environment.
Background
With the increasing number of services in financial institutions, the services that need to be developed are also increasing, and the functions and application scenarios that the services need to have are also gradually complex. When the service development is carried out, the traditional development environment is usually a text editor or a code editor, a programmer is required to manually write the service related development codes, meanwhile, only a simple code editing and debugging tool is provided in the development environment, and the debugging result cannot be intuitively displayed, so that the development difficulty of a developer on complex services is improved, and the service development efficiency is reduced.
Aiming at the problems of higher difficulty and lower efficiency of service development in the existing development environment in the related technology, no effective solution is proposed at present.
Disclosure of Invention
The application provides a method and a device for processing service demands based on a virtual reality environment, which are used for solving the problems of higher difficulty and lower efficiency in service development under the existing development environment in the related technology.
According to one aspect of the application, a method for processing business requirements based on a virtual reality environment is provided. The method comprises the following steps: receiving a service demand sent by a user, determining a program editor according to the service demand, and displaying the program editor in a first display area in a virtual reality environment; responding to a code block selection instruction input by a user in a program editor, and adding a target code block into the program editor according to the code block selection instruction; responding to a code running instruction of a user, running an object code indicated by the code running instruction, and displaying the running state of the object code in a second display area in the virtual reality environment; and when the running of the target code is detected to be completed and the running state is normal, displaying the running result of the target code in a third display area in the virtual reality environment, and storing the target code into a code library when the running result is correct.
Optionally, after the second display area in the virtual reality environment displays the running state of the object code, the method further comprises: and identifying the running state, detecting the running flow of the target code under the condition that the running state is in an abnormal state, obtaining the abnormal reason of the target code, and displaying the abnormal reason in the second display area.
Optionally, after adding the target code block to the program editor according to the code block selection instruction, the method further comprises: identifying an association relationship between a plurality of code blocks located in a program editor; acquiring programming logic between the code blocks according to the association relation, generating prompt information according to the programming logic, and displaying the prompt information in a first display area in the virtual reality environment, wherein the prompt information is used for indicating programming operation required by a user; and under the condition that a modification instruction of the code block input by a user is received, identifying modification content corresponding to the modification instruction, and displaying code information associated with the modification content in a first display area in the virtual reality environment.
Optionally, displaying the running result of the object code in the third display area in the virtual reality environment includes: generating a target scene in a third display area according to the application scene of the target code, and displaying an operation result in the target scene in a virtual reality display mode to obtain a code operation effect; after the third display area in the virtual reality environment displays the running result of the object code, the method further includes: judging whether the code running effect of the target code is correct according to the service requirement; in the case that the code running effect of the target code is wrong, identifying the error reason of the target code, and displaying the error reason in the third display area, wherein the error reason at least comprises one of the following: the target scene generates an error and the target code writes an error.
Optionally, after receiving the service requirement sent by the user and determining the program editor according to the service requirement, the method further includes: judging whether a target historical code associated with the business requirement exists in a code library or not; in the case where the target history code exists in the code library, the version number of the target history code is acquired, and the target history code is displayed in the program editor.
Optionally, storing the object code in the code library includes: updating the version number to obtain an updated version number, and adding the updated version number into the target code to obtain an updated target code; identifying a target historical code associated with the business requirement in a code library, and determining whether the version number of the target historical code is changed; displaying alarm information in a first display area under the condition that the version number of the target history code is changed, wherein the alarm information represents that the target history code is modified; and under the condition that the version number of the target history code is not changed, replacing the target history code in the code library by the updated target code.
Optionally, in the case that the version number of the target history code is changed, the method further includes: acquiring an update history code in a code library, and comparing the update history code with a target history code acquired by a user to obtain a first change code; comparing the updated target code with a target history code acquired by a user to obtain a second change code; judging whether an association relation exists between the first change code and the second change code; when there is no association between the first change code and the second change code, the second change code is added to the update history code in the code base, and the version number of the update history code is updated.
According to another aspect of the present application, a processing apparatus for service requirements based on a virtual reality environment is provided. The device comprises: the receiving unit is used for receiving the service requirement sent by the user, determining a program editor according to the service requirement, and displaying the program editor in a first display area in the virtual reality environment; the first response unit is used for responding to a code block selection instruction input by a user in the program editor and adding the target code block into the program editor according to the code block selection instruction; the second response unit is used for responding to the code running instruction of the user, running the target code indicated by the code running instruction and displaying the running state of the target code in a second display area in the virtual reality environment; and the display unit is used for displaying the running result of the target code in a third display area in the virtual reality environment when the running of the target code is detected to be completed and the running state is normal, and storing the target code into a code library when the running result is correct.
According to another aspect of the present application, there is further provided a computer storage medium, where the computer storage medium is configured to store a program, and when the program runs, control a device in which the computer storage medium is located to execute a method for processing a service requirement based on a virtual reality environment.
According to another aspect of the present application, there is also provided an electronic device comprising one or more processors and a memory; the memory stores computer readable instructions, and the processor is configured to execute the computer readable instructions, where the computer readable instructions execute a method for processing a business requirement based on a virtual reality environment.
According to the application, the following steps are adopted: receiving a service demand sent by a user, determining a program editor according to the service demand, and displaying the program editor in a first display area in a virtual reality environment; responding to a code block selection instruction input by a user in a program editor, and adding a target code block into the program editor according to the code block selection instruction; responding to a code running instruction of a user, running an object code indicated by the code running instruction, and displaying the running state of the object code in a second display area in the virtual reality environment; and when the running of the target code is detected to be completed and the running state is normal, displaying the running result of the target code in a third display area in the virtual reality environment, and storing the target code into a code library when the running result is correct. The problems of higher difficulty and lower efficiency in service development under the existing development environment in the related technology are solved. The program editor arranged in the virtual reality environment provides a programming environment for a user, and when the program editor in the virtual reality environment receives programming related instructions of the user, the code blocks in the program editor assist the user to complete programming operation, and meanwhile, the running state of the target code can be displayed in a second display area in the virtual reality environment, so that the code running condition can be displayed more clearly under the condition of complex service scene, and meanwhile, the running result, namely the service running style, can be displayed visually through a third display area, and the effects of reducing the code programming difficulty and improving the code programming efficiency and accuracy are achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
fig. 1 is a flowchart of a processing method for service requirements based on a virtual reality environment according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative code altering method provided in accordance with an embodiment of the present application;
FIG. 3 is a schematic diagram of a processing device based on business requirements of a virtual reality environment according to an embodiment of the application;
fig. 4 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, related information (including, but not limited to, user equipment information, user personal information, etc.) and data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present disclosure are information and data authorized by a user or sufficiently authorized by each party. For example, an interface is provided between the system and the relevant user or institution, before acquiring the relevant information, the system needs to send an acquisition request to the user or institution through the interface, and acquire the relevant information after receiving the consent information fed back by the user or institution.
It should be noted that, the method and the device for processing the service requirement based on the virtual reality environment determined by the present disclosure may be used in the field of artificial intelligence, and may also be used in any field other than the field of artificial intelligence, and the application field of the method and the device for processing the service requirement based on the virtual reality environment determined by the present disclosure is not limited.
For convenience of description, the following will describe some terms or terminology involved in the embodiments of the present application:
virtual reality technology: a computer simulation technique simulates a real world experience by creating a simulated virtual environment. Such techniques may be used to create computer simulation-based environments, including 3D models, scenes, characters, etc., with which a user may interact through a particular device, such as a head-mounted display, a handle, etc.
According to the embodiment of the application, a processing method of business requirements based on a virtual reality environment is provided.
Fig. 1 is a flowchart of a processing method for service requirements based on a virtual reality environment according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S101, receiving a service requirement sent by a user, determining a program editor according to the service requirement, and displaying the program editor in a first display area in a virtual reality environment.
Specifically, the program editor is located in the virtual reality environment, after a user logs in the virtual display device, a requirement of a service to be developed can be input in the virtual display environment, for example, a user needs to develop a virtual human interaction service for introducing a financial product, at this time, the requirement of the service can be input in an input box in the virtual reality environment, so that a first display area can be generated in the virtual reality environment, a program editor available for developing the service is determined, and the program editor is displayed in the first display area, so that the user can control the program editor in the first display area, and further, the development of the service program is completed.
Step S102, responding to a code block selection instruction input by a user in the program editor, and adding the target code block into the program editor according to the code block selection instruction.
Specifically, after receiving a code block selection instruction input by a user in a program editor, the code block selection instruction needs to be responded, an object code block required by the user is determined according to the code block selection instruction, the object code block is input into the program editor, wherein the object code block is stored in a code library in a virtual reality environment, and when the program editor used by the user receives the code block selection instruction input by the user, the code block corresponding to the code library is searched, and the code block is displayed in a first display area, so that the user is assisted in code development.
It should be noted that, a large number of code blocks are stored in the code library, each code block is an existing code frame or a general code, a user can call the code block and further develop the code on the code block, so as to improve the code development efficiency, and meanwhile, historical codes, that is, service codes which are developed by other users, are stored, and when the service needs to be upgraded, the user can directly perform optimized development on the basis of the historical codes, so that the code development cost is reduced.
Step S103, responding to the code running instruction of the user, running the target code indicated by the code running instruction, and displaying the running state of the target code in a second display area in the virtual reality environment.
Specifically, after the user finishes the development of the code or the user needs to test and run the code which is completely written in the code development process, so that whether the code which is completely written is abnormal or not is determined, therefore, after the code running instruction of the user is received, the code running state is detected while the code running instruction is required to be run, the running state of the target code is displayed in a second display area in the virtual reality environment, a visual debugging interface can be provided in the virtual reality environment, the user can use the virtual reality technology to check the information of the running state, the breakpoint, the variable and the like of the code, and the user is assisted to know the running state of the target code in a visual mode, so that problems can be found timely under the condition that the running state is abnormal, and the target code is repaired.
In addition, since a new display area can be generated at any position in the virtual reality environment, the running state can be displayed in the second display area, and at this time, code information is still displayed in the first display area, so that a user can more conveniently complete the operations of observing and running the code.
Step S104, when the fact that the target code is operated is detected, and the operation state is normal is detected, the operation result of the target code is displayed in a third display area in the virtual reality environment, and when the operation result is correct, the target code is stored in a code library.
It should be noted that, because a virtual reality physical engine is provided in the virtual reality environment, effects such as interaction, collision, gravity and the like between objects can be simulated, so that a virtual reality scene can be created in the virtual reality environment, physical characteristics of the real world can be simulated, and the display of code running results can be completed in the virtual display scene.
Specifically, when it is detected that the object code is completed and the running state is normal, the running result of the object code may be displayed in the third display area, so that the running result of the code may be observed in the third display area. For example, in the case that the service requirement is that a user needs to develop a virtual person for introducing a financial product, the running result can be the image of the virtual person, and when the virtual person interacts with the virtual person, whether the virtual person can normally perform accurate output of the financial product information, so that the user can observe the code running result in a visual mode in a virtual reality environment.
Furthermore, under the condition that the code normally operates and the operation result is correct, the target code can be stored in the code library, and further, when the target code needs to be updated and upgraded, the target code can be directly obtained and updated on the target code, so that the effects of code retention and code change efficiency are achieved.
According to the processing method based on the service requirements of the virtual reality environment, the service requirements sent by the user are received, the program editor is determined according to the service requirements, and the program editor is displayed in the first display area in the virtual reality environment; responding to a code block selection instruction input by a user in a program editor, and adding a target code block into the program editor according to the code block selection instruction; responding to a code running instruction of a user, running an object code indicated by the code running instruction, and displaying the running state of the object code in a second display area in the virtual reality environment; and when the running of the target code is detected to be completed and the running state is normal, displaying the running result of the target code in a third display area in the virtual reality environment, and storing the target code into a code library when the running result is correct. The problems of higher difficulty and lower efficiency in service development under the existing development environment in the related technology are solved. The program editor arranged in the virtual reality environment provides a programming environment for a user, and when the program editor in the virtual reality environment receives programming related instructions of the user, the code blocks in the program editor assist the user to complete programming operation, and meanwhile, the running state of the target code can be displayed in a second display area in the virtual reality environment, so that the code running condition can be displayed more clearly under the condition of complex service scene, and meanwhile, the running result, namely the service running style, can be displayed visually through a third display area, and the effects of reducing the code programming difficulty and improving the code programming efficiency and accuracy are achieved.
Optionally, in the method for processing a service requirement based on a virtual reality environment according to the embodiment of the present application, after the running state of the object code is displayed in the second display area in the virtual reality environment, the method further includes: and identifying the running state, detecting the running flow of the target code under the condition that the running state is in an abnormal state, obtaining the abnormal reason of the target code, and displaying the abnormal reason in the second display area.
Specifically, after the running state is displayed in the second display area, the running state of the object code needs to be identified in real time, where the object code may run in a compiler in a program editor or may run in a code debugger.
Further, when the running state is identified in real time, under the condition that the running state has an abnormal state, the running flow of the target code needs to be detected, so that the abnormal reason of the abnormal running state of the target code is determined, and the abnormal reason is displayed in the second display area, so that a user can be assisted in modifying the target code, and the writing efficiency of the target code is improved.
In order to better assist a user to complete service development, thereby improving development efficiency, optionally, in the method for processing service requirements based on a virtual reality environment provided by the embodiment of the application, after adding an object code block into a program editor according to a code block selection instruction, the method further includes: identifying an association relationship between a plurality of code blocks located in a program editor; acquiring programming logic between the code blocks according to the association relation, generating prompt information according to the programming logic, and displaying the prompt information in a first display area in the virtual reality environment, wherein the prompt information is used for indicating programming operation required by a user; and under the condition that a modification instruction of the code block input by a user is received, identifying modification content corresponding to the modification instruction, and displaying code information associated with the modification content in a first display area in the virtual reality environment.
Specifically, after the user selects a code block, two or more code blocks may exist in the program editor, at this time, because the user obtains the code block, the user needs to develop a service by using the code block, so that the association relationship between the code blocks can be identified, so that the association relationship between the code blocks is determined, and the programming logic between the code blocks is determined according to the association relationship between the code blocks.
After determining the programming logic, the prompt message corresponding to the programming logic can be generated, wherein the prompt message is used for assisting a user in programming, so that the user can complete the programming operation of combining the two code blocks according to the prompt message.
For example, the code block a and the code block B have an association relationship, and when the C service effect is completed, the code block a and the code block B need to be combined, and at this time, related codes for combining the code block a and the code block B can be displayed in the hint information, so that the method can assist in completing the programming operation.
Further, in the process of code development by the user, under the condition that a modification instruction of the code block input by the user is received, the modification instruction can be parsed to obtain modification contents corresponding to the modification instruction, wherein the modification contents comprise the code block needing to be modified and a certain line of codes needing to be modified, and at the moment, relevant code information can be displayed in a first display area according to the modification contents, so that the code development of the user is further assisted.
Optionally, in the method for processing a service requirement based on a virtual reality environment provided by the embodiment of the present application, displaying, in a third display area in the virtual reality environment, an operation result of an object code includes: generating a target scene in a third display area according to the application scene of the target code, and displaying an operation result in the target scene in a virtual reality display mode to obtain a code operation effect; after the third display area in the virtual reality environment displays the running result of the object code, the method further includes: judging whether the code running effect of the target code is correct according to the service requirement; in the case that the code running effect of the target code is wrong, identifying the error reason of the target code, and displaying the error reason in the third display area, wherein the error reason at least comprises one of the following: the target scene generates an error and the target code writes an error.
Specifically, after the user finishes code writing and the code finishes running, an application scene of the service related to the target code can be generated in the third display area to obtain a target scene, and the running result of the code is displayed in the target scene to obtain a service execution effect formed by combining the target scene and the running result, so that the running result of the code can be tested according to the running result with better running effect, whether the running result can meet the requirement in the service scene or not can be determined, and whether the running result is normal or not can be determined.
For example, in the case that the service requirement is that a user needs to develop a virtual person for introducing a financial product, the application scenario may be a bank, and the code running result may be a virtual person, and then the virtual person may appear in the bank scenario.
Further, after the code operation effect is obtained, because a situation that the code operation effect is wrong may occur, for example, the generated scene is not related to the code operation result, or the code operation result cannot meet the service development requirement, for example, the generated virtual person is set in a restaurant scene, or the generated virtual person occasionally has a clamping condition when performing interactive operation, or the virtual person cannot interact, at this time, although the code operation state is normal, when the code operation result is combined with the application scene, an abnormality is generated when simulating the service scene, the code operation result is wrong, therefore, the error cause of the code operation effect can be identified, and the error cause is displayed in the third display area to inform the user to modify, so that the error in the code operation result can be simultaneously modified.
Optionally, in the method for processing a service requirement based on a virtual reality environment according to the embodiment of the present application, after receiving a service requirement sent by a user and determining a program editor according to the service requirement, the method further includes: judging whether a target historical code associated with the business requirement exists in a code library or not; in the case where the target history code exists in the code library, the version number of the target history code is acquired, and the target history code is displayed in the program editor.
Specifically, when a history code related to a service requirement input by a user exists in the code library, the development requirement is characterized not to be developed for the first time, but the history code exists, and the history code and the corresponding version number can be directly displayed in a first display area where the program editor is located, so that the user can directly use the history code to develop the service.
Optionally, in the method for processing a service requirement based on a virtual reality environment provided by the embodiment of the present application, storing the object code into the code library includes: updating the version number to obtain an updated version number, and adding the updated version number into the target code to obtain an updated target code; identifying a target historical code associated with the business requirement in a code library, and determining whether the version number of the target historical code is changed; displaying alarm information in a first display area under the condition that the version number of the target history code is changed, wherein the alarm information represents that the target history code is modified; and under the condition that the version number of the target history code is not changed, replacing the target history code in the code library by the updated target code.
Specifically, when the user obtains the history code and develops the code based on the history code, after the development of the code is completed, the version number of the code needs to be updated, for example, the version number of the history code is v.10, and the version number of the updated target code may be v.11.
Further, when the object code is stored in the code base, because each user can acquire the history code from the code base and store the object code in the code base, when two users develop the code of a certain history code at the same time, the situation that the user A does not complete development, but the user B completes development, at this time, the object code of the user A is not allowed to be stored in the code base because the user B has updated the code and version information, at this time, because the object history code associated with the service requirement in the code base is identified to be changed, alarm information needs to be displayed to inform the user A, so that the situation that the user B covers the modified code after the user A stores the modified code in the code base, and the modified code of the user B is lost is avoided.
Optionally, fig. 2 is a flowchart of an optional code changing method provided according to an embodiment of the present application, as shown in fig. 2, in the processing method based on a service requirement of a virtual reality environment provided by the embodiment of the present application, in a case that a version number of a target history code is changed, the method further includes:
Step S201, an update history code in a code base is obtained, and the update history code is compared with a target history code obtained by a user, so that a first change code is obtained.
Step S202, comparing the updated target code with the target history code acquired by the user to obtain a second changed code.
Step S203, determining whether there is an association relationship between the first change code and the second change code.
In step S204, when there is no association between the first change code and the second change code, the second change code is added to the update history code in the code base, and the version number of the update history code is updated.
Specifically, under the condition that the version number of the target historical code is changed, two users develop a certain historical code at the same time, one user finishes developing and stores the developed code into a code library, at the moment, after the other user finishes developing the code, the version number of the historical code acquired by the user is different from the version number of the historical code in the current code library, so that the difference between the historical code in the current code library and the historical code acquired by the user needs to be acquired, the difference is the modification content of the first user for modifying the code, meanwhile, the modification content of the current user for modifying the code is also acquired, and the two modification contents are compared to determine whether the association relation exists.
Under the condition that the association relation exists, the codes cannot be automatically modified, a user is required to be informed of manual modification, under the condition that the association relation does not exist, the codes which are changed by the user can be directly added into the history codes in the code base at the current moment by characterization, updated history codes are obtained, the version numbers of the codes are updated, and therefore the updating operation of the codes is directly completed in the code base.
For example, the user a and the user B develop the D history code at the same time, the current version number of the D history code is v.5, after the user B completes development, the first update code is obtained, the version number is v.6, and the version v.6 is substituted for v.5 in the code library, at this time, after the user a completes development, the second update code is obtained, the version number of the D history code in the code library is found to be changed, at this time, the first change code between the first update code and the D history code and the second change code between the second update code and the D history code need to be determined, and whether the association relationship exists between the first change code and the second change code is determined, and under the condition that the association relationship does not exist, the second change code can be directly added to the D history code with the version number of v.6 in the code library at the current moment, and the version number is updated to v.7, so that the two-time updating operation of the D history code is completed.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a processing device for the service requirement based on the virtual reality environment, and it should be noted that the processing device for the service requirement based on the virtual reality environment provided by the embodiment of the application can be used for executing the processing method for the service requirement based on the virtual reality environment provided by the embodiment of the application. The following describes a processing device based on service requirements of a virtual reality environment provided by an embodiment of the present application.
Fig. 3 is a schematic diagram of a processing device based on service requirements of a virtual reality environment according to an embodiment of the present application. As shown in fig. 3, the apparatus includes: a receiving unit 31, a first response unit 32, a second response unit 33, a display unit 34.
The receiving unit 31 is configured to receive a service requirement sent by a user, determine a program editor according to the service requirement, and display the program editor in a first display area in the virtual reality environment.
The first response unit 32 is configured to respond to a code block selection instruction input by a user in the program editor, and add the target code block to the program editor according to the code block selection instruction.
And a second response unit 33 for responding to the code running instruction of the user, running the object code indicated by the code running instruction, and displaying the running state of the object code in a second display area in the virtual reality environment.
And a display unit 34, configured to display an operation result of the object code in a third display area in the virtual reality environment when it is detected that the object code is completed and the operation state is normal, and store the object code in the code library when the operation result is correct.
The processing device based on the service requirement of the virtual reality environment provided by the embodiment of the application receives the service requirement sent by the user through the receiving unit 31, determines the program editor according to the service requirement, and displays the program editor in the first display area in the virtual reality environment; the first response unit 32 responds to a code block selection instruction input by a user in the program editor, and adds an object code block to the program editor according to the code block selection instruction; the second response unit 33 responds to the code running instruction of the user, runs the target code indicated by the code running instruction, and displays the running state of the target code in a second display area in the virtual reality environment; the display unit 34 displays the running result of the object code in the third display area in the virtual reality environment in the case where it is detected that the object code is completed and the running state is normal, and stores the object code in the code library in the case where the running result is correct. The method solves the problems of higher difficulty and lower efficiency of service development in the existing development environment in the related technology, provides a programming environment for a user through the program editor arranged in the virtual reality environment, assists the user to complete programming operation through the code blocks in the program editor when the program editor in the virtual reality environment receives programming related instructions of the user, and simultaneously can display the running state of the target code in the second display area in the virtual reality environment, so that the code running condition can be displayed more clearly under the condition of complex service scene, and meanwhile, the running result, namely the service running style, can be displayed visually through the third display area, and further the effects of reducing the code programming difficulty and improving the code programming efficiency and the accuracy are achieved.
Optionally, in the processing device for service requirements based on a virtual reality environment provided by the embodiment of the present application, the device further includes: the detection unit is used for identifying the running state, detecting the running flow of the target code under the condition that the running state is in an abnormal state, obtaining the abnormal reason of the target code, and displaying the abnormal reason in the second display area.
Optionally, in the processing device for service requirements based on a virtual reality environment provided by the embodiment of the present application, the device further includes: a first identifying unit for identifying an association relationship between a plurality of code blocks located in the program editor; the generating unit is used for acquiring programming logic between the plurality of code blocks according to the association relation, generating prompt information according to the programming logic, and displaying the prompt information in a first display area in the virtual reality environment, wherein the prompt information is used for indicating programming operation required by a user; and the second identification unit is used for identifying the modification content corresponding to the modification instruction and displaying the code information associated with the modification content in a first display area in the virtual reality environment under the condition that the modification instruction of the code block input by the user is received.
Optionally, in the processing device for service requirements based on a virtual reality environment provided by the embodiment of the present application, the display unit 34 includes: the first display module is used for generating a target scene in a third display area according to the application scene of the target code, and displaying an operation result in the target scene in a virtual reality display mode to obtain a code operation effect.
The apparatus further comprises: the first judging unit is used for judging whether the code running effect of the target code is correct or not according to the service requirement; a third identifying unit, configured to identify an error cause of the target code in a case where the code running effect of the target code is incorrect, and display the error cause in the third display area, where the error cause includes at least one of: the target scene generates an error and the target code writes an error.
Optionally, in the processing device for service requirements based on a virtual reality environment provided by the embodiment of the present application, the device further includes: the second judging unit is used for judging whether a target historical code associated with the business requirement exists in the code base or not; and the acquisition unit is used for acquiring the version number of the target history code and displaying the target history code in the program editor when the target history code exists in the code library.
Optionally, in the processing device for service requirements based on a virtual reality environment provided by the embodiment of the present application, the display unit 34 includes: the updating module is used for updating the version number to obtain an updated version number, and adding the updated version number into the target code to obtain an updated target code; the identification module is used for identifying a target historical code associated with the business requirement in the code library and determining whether the version number of the target historical code is changed or not; the second display module is used for displaying alarm information in the first display area under the condition that the version number of the target historical code is changed, wherein the alarm information represents that the target historical code is modified; and the replacing module is used for replacing the target historical codes in the code library by the updated target codes under the condition that the version numbers of the target historical codes are not changed.
Optionally, in the processing device for service requirements based on a virtual reality environment provided by the embodiment of the present application, under the condition that a version number of a target history code is changed, the device further includes: the first comparison unit is used for acquiring the updated history codes in the code library and comparing the updated history codes with target history codes acquired by a user to obtain first changed codes; the second comparison unit is used for comparing the updated target code with the target history code acquired by the user to obtain a second changed code; the third judging unit is used for judging whether the association relation exists between the first change code and the second change code; and the adding unit is used for adding the second change code to the update history code in the code base and updating the version number of the update history code under the condition that the association relation between the first change code and the second change code does not exist.
The processing device based on the service requirement of the virtual reality environment includes a processor and a memory, the receiving unit 31, the first responding unit 32, the second responding unit 33, the display unit 34, and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the problems of higher difficulty and lower efficiency in service development under the existing development environment in the related technology are solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, wherein a program is stored on the computer readable storage medium, and the program is executed by a processor to realize the processing method of the service requirement based on the virtual reality environment.
The embodiment of the invention provides a processor for running a program, wherein the processing method of the service requirement based on the virtual reality environment is executed when the program runs.
Fig. 4 is a schematic diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 4, an embodiment of the present application provides an electronic device, where an electronic device 40 includes a processor, a memory, and a program stored on the memory and capable of running on the processor, and the processor implements the steps of the above-mentioned processing method based on the service requirements of the virtual reality environment when executing the program. The device herein may be a server, PC, PAD, cell phone, etc.
The application also provides a computer program product adapted to perform a program of steps of a processing method initialized with the above-mentioned virtual reality environment based business requirements when executed on a data processing device.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that 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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (10)

1. A method for processing a business requirement based on a virtual reality environment, comprising:
receiving a service demand sent by a user, determining a program editor according to the service demand, and displaying the program editor in a first display area in the virtual reality environment;
Responding to a code block selection instruction input by the user in the program editor, and adding an object code block into the program editor according to the code block selection instruction;
responding to the code running instruction of the user, running the target code indicated by the code running instruction, and displaying the running state of the target code in a second display area in the virtual reality environment;
and when the running of the target code is detected to be completed and the running state is normal, displaying a running result of the target code in a third display area in the virtual reality environment, and storing the target code in a code library when the running result is correct.
2. The method of claim 1, wherein after the second display area in the virtual reality environment displays the running state of the object code, the method further comprises:
and identifying the running state, detecting the running flow of the target code under the condition that the running state is in an abnormal state, obtaining the abnormal reason of the target code, and displaying the abnormal reason in the second display area.
3. The method of claim 1, wherein after adding an object code block to the program editor in accordance with the code block selection instruction, the method further comprises:
identifying associations between a plurality of code blocks located in the program editor;
acquiring programming logic between the plurality of code blocks according to the association relation, generating prompt information according to the programming logic, and displaying the prompt information in a first display area in the virtual reality environment, wherein the prompt information is used for indicating programming operation required by the user;
and under the condition that a modification instruction input by the user to the code block is received, identifying modification content corresponding to the modification instruction, and displaying code information associated with the modification content in a first display area in the virtual reality environment.
4. The method of claim 1, wherein displaying the result of the execution of the object code in a third display area in the virtual reality environment comprises:
generating a target scene in the third display area according to the application scene of the target code, and displaying the operation result in the target scene in a virtual reality display mode to obtain a code operation effect;
After the third display area in the virtual reality environment displays the running result of the object code, the method further includes:
judging whether the code running effect of the target code is correct or not according to the service demand;
identifying an error cause of the object code in the case that the code running effect of the object code is wrong, and displaying the error cause in the third display area, wherein the error cause at least comprises one of the following: the target scene generates an error and the target code writes an error.
5. The method of claim 1, wherein after receiving a service requirement sent by a user and determining a program editor based on the service requirement, the method further comprises:
judging whether a target historical code associated with the service requirement exists in the code library or not;
and under the condition that the target history code exists in the code library, acquiring the version number of the target history code, and displaying the target history code in the program editor.
6. The method of claim 5, wherein storing the object code into a code library comprises:
Updating the version number to obtain an updated version number, and adding the updated version number to the target code to obtain an updated target code;
identifying a target historical code associated with the business requirement in the code library, and determining whether the version number of the target historical code is changed;
displaying alarm information in the first display area under the condition that the version number of the target history code is changed, wherein the alarm information represents that the target history code is modified;
and under the condition that the version number of the target history code is not changed, replacing the target history code in the code library by using the updated target code.
7. The method of claim 6, wherein in the event of a change in the version number of the target history code, the method further comprises:
acquiring an update history code in the code library, and comparing the update history code with a target history code acquired by the user to obtain a first change code;
comparing the updated target code with the target history code acquired by the user to obtain a second change code;
Judging whether an association relation exists between the first change code and the second change code;
and adding the second change code to the update history code in the code base and updating the version number of the update history code under the condition that the association relation between the first change code and the second change code does not exist.
8. A processing apparatus for service requirements based on a virtual reality environment, comprising:
the receiving unit is used for receiving the service requirement sent by a user, determining a program editor according to the service requirement, and displaying the program editor in a first display area in the virtual reality environment;
the first response unit is used for responding to a code block selection instruction input by the user in the program editor and adding an object code block into the program editor according to the code block selection instruction;
the second response unit is used for responding to the code running instruction of the user, running the target code indicated by the code running instruction and displaying the running state of the target code in a second display area in the virtual reality environment;
And the display unit is used for displaying the running result of the target code in a third display area in the virtual reality environment when the running of the target code is detected to be completed and the running state is normal, and storing the target code into a code library when the running result is correct.
9. A computer storage medium for storing a program, wherein the program when executed controls a device in which the computer storage medium is located to perform the method for processing business requirements based on a virtual reality environment according to any one of claims 1 to 7.
10. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of virtual reality environment based business requirement processing of any of claims 1-7.
CN202311088607.5A 2023-08-25 2023-08-25 Service demand processing method and device based on virtual reality environment Pending CN117130596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311088607.5A CN117130596A (en) 2023-08-25 2023-08-25 Service demand processing method and device based on virtual reality environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311088607.5A CN117130596A (en) 2023-08-25 2023-08-25 Service demand processing method and device based on virtual reality environment

Publications (1)

Publication Number Publication Date
CN117130596A true CN117130596A (en) 2023-11-28

Family

ID=88852225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311088607.5A Pending CN117130596A (en) 2023-08-25 2023-08-25 Service demand processing method and device based on virtual reality environment

Country Status (1)

Country Link
CN (1) CN117130596A (en)

Similar Documents

Publication Publication Date Title
CN109697060B (en) Video special effect system, generation method, device, equipment and storage medium thereof
JP7220833B2 (en) Automatic generation of machine learning models for software tools that run on source code
US8676723B2 (en) Automated test system based on three-dimensional application software framework and a method thereof
EP3992800B1 (en) Program test method and apparatus, computer device, and storage medium
CN110825651A (en) Webpage compatibility testing method, device, system and storage medium
CN112947969B (en) Page off-screen rendering method, device, equipment and readable medium
KR20090084905A (en) Method and system for graphical user interface testing
CN112580812A (en) Model training method, inventory safety early warning method, device, equipment and medium
US10691582B2 (en) Code coverage
CN113778878A (en) Interface testing method and device, electronic equipment and storage medium
CN112905451A (en) Automatic testing method and device for application program
CN112988586A (en) Control testing method and device, electronic equipment and storage medium
CN111949510B (en) Test processing method, device, electronic equipment and readable storage medium
CN117130596A (en) Service demand processing method and device based on virtual reality environment
CN115292418A (en) Cross-system business process automatic processing method and system
CN112631949B (en) Debugging method and device, computer equipment and storage medium
CN105468527B (en) The test method and device of component in a kind of application
CN114116498A (en) Excel file loading-based test method, system and equipment
CN113986753A (en) Interface test method, device, equipment and storage medium
CN112306838A (en) Page layout compatibility testing method, device and equipment and readable storage medium
Sommer Comparison and evaluation of cross-platform frameworks for the development of mobile business applications
CN115543323B (en) Page development method and device
JPH07219980A (en) Test execution system
US20170083297A1 (en) Online discussing system with compiling program function and method thereof
CN112860224B (en) Function execution environment construction method and device, electronic equipment and 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