Resource exchange method and device based on cloud application, equipment, medium and product

By generating a second resource identifier associated with cloud application resource identifiers in the cloud gaming platform, the resource redemption problem caused by the strict in-app payment specifications of the cloud gaming platform is solved, and efficient resource redemption and improved user experience are achieved.

CN120022608APending Publication Date: 2025-05-23TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311563509.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-21
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

In the prior art, due to strict in-app payment specifications, cloud gaming platforms have caused players to be unable to effectively redeemed the game resources stored in the cloud, reducing the gaming experience and human-computer interaction efficiency.

Method used

By generating a second resource identifier associated with the cloud application resource identifier in the cloud server and generating corresponding resource redemption conditions in the terminal's resource redemption program, the coordinated operation of resource redemption operations is realized.

Benefits of technology

It solves the problem that different functional programs are deployed in different environments, improves the resource redemption efficiency of the terminal, and expands the resource redemption process to cloud application scenarios, improving user experience and interaction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120022608A_ABST
    Figure CN120022608A_ABST
Patent Text Reader

Abstract

The invention discloses a resource exchange method, device and equipment based on a cloud application, a medium and a product, and relates to the technical field of computers. The method comprises the following steps: acquiring a first resource identifier; generating a second resource identifier having an identifier association relationship with the first resource identifier; receiving exchange operation information sent by the terminal; and in response to the condition that the exchange operation information indicates that the resource exchange operation meets the resource exchange condition, sending the application resource corresponding to the first resource identifier to the terminal based on the identifier association relationship. Through the mode, the problem that the resource exchange cannot be performed due to the fact that programs with different functions are deployed in different environments can be overcome by means of the establishment process of the identification association relationship, and the terminal can perform resource exchange more efficiently through the resource exchange program of the terminal while following the exchange specification, so that the resource exchange efficiency is improved. And a resource exchange process is expanded to a cloud application scene. The method can be applied to various scenes such as cloud technology, artificial intelligence and intelligent transportation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a resource exchange method, device, equipment, medium and product based on cloud applications. Background Art

[0002] With the improvement of cultural and entertainment living standards, people's life experience and requirements for virtual scenes are getting higher and higher. Games, as a way of expressing virtual scenes, have become a channel for many people to relieve stress. Cloud games are a type of online gaming based on cloud computing. Since the game's storage, calculation, and screen rendering are all performed on cloud servers, it is free from the constraints of hardware performance and has a wider range of application scenarios, gaining more and more attention.

[0003] In the related art, when players play games through cloud gaming platforms, they sometimes want to exchange the game resources provided therein. In some operating systems, based on the player's resource exchange operation on a certain game resource displayed on the cloud gaming screen, an application with an exchange function can be called to perform a resource exchange process, thereby achieving the purpose of exchanging the game resource.

[0004] However, there are other operating systems that have strict in-app payment specifications. Even if the application running in the cloud and the application running on the terminal are the same application, due to differences in functions and operating entities, the operating system will determine that they are different applications. Based on this process, players cannot effectively exchange game resources stored in the cloud based on resource exchange operations on the cloud game screen, which not only reduces the gaming experience and player convenience, but also greatly affects the efficiency of human-computer interaction. Summary of the invention

[0005] The embodiments of the present application provide a resource exchange method, device, equipment, medium and product based on cloud applications, which can overcome the problem that programs with different functions are deployed in different environments and cannot exchange resources by means of the process of establishing an identification association relationship. While following the exchange specification, it not only enables the terminal to exchange resources more efficiently through the resource exchange program on the local side, but also extends the resource exchange process to cloud application scenarios. The technical solution is as follows.

[0006] In one aspect, a cloud application-based resource exchange method is provided, the method comprising:

[0007] Obtaining a first resource identifier, where the first resource identifier is used to represent an application resource in the cloud application;

[0008] generating a second resource identifier that has an identifier association relationship with the first resource identifier, the second resource identifier being used to generate a resource exchange condition corresponding to the application resource in a resource exchange program of the terminal, the terminal and the cloud server collaboratively running the cloud application;

[0009] receiving exchange operation information sent by the terminal, the exchange operation information being used to request exchange of the application resource, the exchange operation information being information generated after the terminal calls the resource exchange program to perform a resource exchange operation based on the second resource identifier, and the exchange operation information including the second resource identifier;

[0010] In response to the exchange operation information indicating that the resource exchange operation meets the resource exchange condition, the application resource corresponding to the first resource identifier is sent to the terminal based on the identifier association relationship.

[0011] In another aspect, a cloud application-based resource exchange device is provided, the device comprising:

[0012] An identification acquisition module, used to acquire a first resource identification, where the first resource identification is used to represent an application resource in the cloud application;

[0013] an identification generation module, configured to generate a second resource identification having an identification association relationship with the first resource identification, wherein the second resource identification is used to generate a resource exchange condition corresponding to an application resource in a resource exchange program of a terminal, wherein the terminal and the cloud server cooperate to run the cloud application;

[0014] an information receiving module, configured to receive exchange operation information sent by the terminal, the exchange operation information being used to request exchange of the application resource, the exchange operation information being information generated after the terminal calls the resource exchange program to perform a resource exchange operation based on the second resource identifier, and the exchange operation information including the second resource identifier;

[0015] A resource sending module is used to send the application resource corresponding to the first resource identifier to the terminal based on the identifier association relationship in response to the exchange operation information indicating that the resource exchange operation meets the resource exchange condition.

[0016] On the other hand, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement a cloud application-based resource exchange method as described in any of the above-mentioned embodiments of the present application.

[0017] On the other hand, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement a cloud application-based resource exchange method as described in any of the above-mentioned embodiments of the present application.

[0018] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the resource exchange method based on cloud applications described in any of the above embodiments.

[0019] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0020] In the cloud server, a second resource identifier that has an identification association relationship with the first resource identifier is generated based on the first resource identifier, and the second resource identifier is used to generate resource exchange conditions for application resources in the resource exchange program of the terminal; afterwards, when it is determined that the exchange operation information sent by the terminal meets the resource exchange conditions, the application resource corresponding to the first resource identifier can be sent to the terminal according to the identification association relationship. With the help of the above method, the terminal can generate and register resource exchange conditions in the resource exchange program according to the second resource identifier that has an identification association relationship with the first resource identifier, overcoming the problem that resource exchange cannot be performed due to the need for cloud applications to be run in collaboration by different environments, so that the terminal can perform the resource exchange process with the help of the resource exchange program deployed on this end, bringing a more efficient exchange experience to the user, while improving the resource exchange efficiency while following the exchange specifications, and greatly enriching the use scenarios of resource exchange by extending the resource exchange process to cloud application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 It is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;

[0023] Figure 2 is a flow chart of a resource exchange method based on cloud applications provided by an exemplary embodiment of the present application;

[0024] Figure 3 is a flowchart of determining a first resource identifier provided by an exemplary embodiment of the present application;

[0025] Figure 4 is a flow chart of a resource exchange method based on cloud applications provided by another exemplary embodiment of the present application;

[0026] Figure 5 It is a schematic diagram of an interface for generating resource exchange conditions provided by an exemplary embodiment of the present application;

[0027] Figure 6 is a flow chart of a method for exchanging resources based on cloud applications performed by a terminal according to an exemplary embodiment of the present application;

[0028] Figure 7 is a schematic diagram of a resource exchange interface provided by an exemplary embodiment of the present application;

[0029] Figure 8 It is a schematic diagram of an interface for executing a resource exchange operation provided by an exemplary embodiment of the present application;

[0030] Fig. 9 This is a cloud gaming architecture diagram provided by an exemplary embodiment of the present application;

[0031] Fig.10 is an architectural diagram of a resource exchange method based on cloud applications provided by an exemplary embodiment of the present application;

[0032] Fig.11 This is a schematic diagram of a game screen of a cloud game provided by an exemplary embodiment of the present application;

[0033] Fig.12 is a schematic diagram of a game item screen provided by an exemplary embodiment of the present application;

[0034] Fig.13 is an interactive schematic diagram of resource exchange provided by an exemplary embodiment of the present application;

[0035] Fig.14 is an interactive flow chart of resource exchange provided by an exemplary embodiment of the present application;

[0036] Fig.15 is a structural block diagram of a resource exchange device based on cloud applications provided by an exemplary embodiment of the present application;

[0037] Fig.16 is a structural block diagram of a resource exchange device based on cloud applications provided by another exemplary embodiment of the present application;

[0038] Fig.17 It is a structural block diagram of a server provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0040] First, a brief introduction is given to the terms involved in the embodiments of the present application.

[0041] Cloud gaming: Also known as gaming on demand, it is an online gaming technology based on cloud computing technology. Cloud gaming technology enables thin clients with relatively limited graphics processing and data computing capabilities to run high-quality games. In a cloud gaming scenario, the game is not played on the player's game terminal, but on a cloud server, which renders the game scene into a video and audio stream and transmits it to the player's game terminal over the network. The player's game terminal does not need to have powerful graphics computing and data processing capabilities, but only needs to have basic streaming media playback capabilities and the ability to obtain player input commands and send them to the cloud server.

[0042] Artificial Intelligence (AI) cloud service: also generally referred to as "AI as a Service" (AIaaS). This is a mainstream service mode of artificial intelligence platform. Specifically, AIaaS platform will split several common AI services and provide independent or packaged services in the cloud. This service model is similar to opening an AI theme mall: all developers can access and use one or more artificial intelligence services provided by the platform through API interfaces. Some senior developers can also use the AI ​​framework and AI infrastructure provided by the platform to deploy and operate their own cloud artificial intelligence services.

[0043] In the related art, when players play games through cloud gaming platforms, they sometimes want to exchange the game resources provided therein. In some operating systems, based on the player's resource exchange operation on a certain game resource on the displayed cloud gaming screen, an application with an exchange function can be called to perform a resource exchange process, thereby achieving the purpose of exchanging the game resource. However, there are other operating systems with strict in-app payment specifications. Even if the application running in the cloud and the application running on the terminal belong to the same application, due to differences in functions and operating entities, the operating system will determine that they belong to different applications. Based on this process, players cannot achieve the purpose of effectively exchanging game resources stored in the cloud based on the resource exchange operation on the cloud gaming screen, which not only reduces the game experience and player convenience, but also greatly affects the efficiency of human-computer interaction.

[0044] In the embodiment of the present application, a resource exchange method based on cloud applications is introduced, which can overcome the problem that programs with different functions are deployed in different environments and cannot exchange resources by means of the process of establishing identification association relationships. While following the exchange specifications, it not only enables the terminal to exchange resources more efficiently through the resource exchange program on the local side, but also extends the resource exchange process to cloud application scenarios. The above-mentioned resource exchange method based on cloud applications can be applied to various cloud application scenarios, such as: cloud game scenarios, cloud shopping scenarios, etc., and the embodiments of the present application do not limit this.

[0045] It should be noted that before collecting relevant data of users and during the process of collecting relevant data of users, this application can display a prompt interface, pop-up window or output voice prompt information, and the prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining relevant data of users after obtaining the confirmation operation issued by the user to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the user to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining relevant data of users are terminated, that is, the relevant data of users are not obtained. In other words, all user data collected by this application are collected with the consent and authorization of the user, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of the relevant regions.

[0046] Next, the implementation environment involved in the embodiment of the present application is described. The resource exchange method based on cloud application provided in the embodiment of the present application is interactively executed by the terminal and the cloud server. Figure 1 The implementation environment involves a terminal 110 and a cloud server 120. The terminal 110 and the cloud server 120 are connected via a communication network 130. The following description is made with the cloud server 120 as the executor.

[0047] In some embodiments, the terminal 110 and the cloud server 120 jointly run the cloud application, and the cloud server 120 processes the operation data received from the terminal 110 and generates a screen data packet. The cloud server 120 then sends the screen data packet to the terminal 110 through the communication network 130, so that the terminal 110 renders and displays the screen data packet.

[0048] In the above process, considering that the terminal 110 has the ability to render images but not the ability to process data, when the player needs to redeem application resources based on the terminal 110, the cloud server must be used to perform the corresponding data processing process. Considering that two programs in different environments may not be recognized by the system corresponding to the terminal 110, the resource identifier corresponding to the application resource is adjusted accordingly, so that the application resource redemption process can be performed based on the player's operation on the terminal 110.

[0049] In some embodiments, the cloud server 120 obtains a first resource identifier. The first resource identifier is used to represent an application resource in a cloud application. In addition, the cloud server 120 also generates a second resource identifier that has an identifier association relationship with the first resource identifier, and the second resource identifier is used to register a resource exchange condition corresponding to the application resource in a resource exchange program of the terminal.

[0050] Illustratively, the resource exchange condition is a condition that the terminal needs to meet when exchanging application resources. Optionally, the resource exchange condition is implemented as at least one of the following situations: the resource identifier of the application resource matches, the number of exchange resources used to exchange the application resource meets the requirements, the type of exchange resources used to exchange the application resource meets the requirements, etc.

[0051] Illustratively, the resource exchange program is an application program for executing a resource exchange process, for example: the resource exchange program is an application store installed in the terminal 110; or, the resource exchange program is an exchange program deployed by default in the terminal 110, etc.

[0052] In some embodiments, the cloud server 120 receives the exchange operation information sent by the terminal 110. The exchange operation information is used to request the exchange of application resources, and the exchange operation information is information generated after the terminal calls the resource exchange program based on the second resource identifier to perform the resource exchange operation, and the exchange operation information includes the second resource identifier.

[0053] Illustratively, after the player triggers the application resource in the screen displayed by the terminal 110, based on the application resource corresponding to the second resource identifier, the terminal 110 will call the resource exchange program registered with the resource exchange condition to perform the resource exchange operation and generate exchange operation information.

[0054] In some embodiments, in response to the redemption operation information indicating that the resource redemption operation meets the resource redemption condition, the cloud server 120 sends the application resource corresponding to the first resource identifier to the terminal based on the identifier association relationship.

[0055] Illustratively, if the exchange operation information meets the resource exchange conditions deployed on the terminal 110 , the cloud server 120 sends the application resource corresponding to the first resource identifier to the terminal 110 based on the identifier association relationship after receiving the exchange operation information.

[0056] Optionally, after receiving the application resource, the terminal 110 displays a prompt message to inform the player that the application resource is obtained; or displays a resource rendering animation to inform the player that the application resource is obtained, etc.

[0057] It is worth noting that the above-mentioned terminals include but are not limited to mobile terminals such as mobile phones, tablet computers, portable laptop computers, smart speakers, smart watches, intelligent voice interaction devices, smart home appliances, and vehicle-mounted terminals, and can also be implemented as desktop computers, etc.; the above-mentioned servers can be independent physical servers, or server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application is not limited here.

[0058] Among them, cloud technology refers to a hosting technology that unifies a series of resources such as hardware, application programs, and networks within a wide area network or a local area network to achieve data computing, storage, processing, and sharing. Cloud technology is the general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, be used on demand, and is flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites, and more portal websites. With the highly developed application of the Internet industry, in the future, each item may have its own identification mark and needs to be transmitted to the background system for logical processing. Data at different levels will be processed separately, and various industry data requires the support of a powerful system background, which can only be achieved through cloud computing.

[0059] In some embodiments, the above server can also be implemented as a node in a blockchain system.

[0060] Combined with the above noun introduction and application scenarios, the resource exchange method based on cloud applications provided in this application will be described. Taking this method applied to a cloud server as an example, as Figure 2 shown, this method includes the following steps 210 to step 240.

[0061] Step 210, obtain a first resource identifier.

[0062] Among them, the first resource identifier is used to represent the application resources within the cloud application.

[0063] Schematically, the cloud application includes at least one application resource, and each application resource corresponds to a resource identifier. Optionally, the application resource is implemented as a virtual resource, such as: virtual coupons, video memberships, virtual props, virtual skins, etc.

[0064] Optionally, taking the cloud application as a cloud game as an example, at least one application resource included in the cloud game is implemented as virtual props, virtual skins, etc. These application resources such as virtual props and virtual skins are resources that can be assembled and used during the game process.

[0065] Step 220, generate a second resource identifier that has an identification association relationship with the first resource identifier.

[0066] Among them, the second resource identifier is used to register the resource exchange conditions corresponding to the application resources in the resource exchange program of the terminal.

[0067] In some embodiments, the terminal and the cloud server cooperate to run the cloud application.

[0068] Schematically, there is a communication connection relationship between the cloud server and the terminal, and the cloud application is regarded as a whole, and the cloud application is collaboratively operated through the communication relationship between the terminal and the cloud server.

[0069] Optionally, the data processing program of the cloud application is deployed on the cloud server, and the screen display program of the cloud application is deployed on the terminal.

[0070] Schematically, the data processing program is used to represent the program for processing the data generated during the operation of the cloud application; the terminal runs a screen display program of the cloud application, and the screen display program is used to render and display the application screen sent by the cloud server after the screen data is processed by the data processing program.

[0071] Based on the fact that a cloud application runs through two environments that have no physical entity association relationship, the terminal will regard the two parts (data processing program and screen display program) as different applications; based on the terminal's judgment result, and the terminal's corresponding resource management restriction conditions indicating that application resources within one application are not allowed to appear in another application, therefore, under the condition that the terminal judges the data processing program and screen display program within a cloud application as different applications, the resource identifier corresponding to the application resource can be adjusted to carry out the resource exchange process while meeting the resource management restriction conditions.

[0072] In some embodiments, a cloud application is a cloud-based implementation of a single application.

[0073] Optionally, cloud application A represents the cloud implementation solution corresponding to application a. During the deployment of cloud application A, the data processing program of cloud application A is deployed in the cloud server (that is, the program for performing data processing in application a is deployed in the cloud server), and the screen display program for displaying the running results of cloud application A is deployed on the terminal (that is, the program for performing screen display in application a is deployed in the terminal), such as deploying the screen display program corresponding to cloud application A on the terminal in the form of an installation package.

[0074] In some embodiments, a cloud application is a cloud-based implementation of multiple applications.

[0075] Optionally, cloud application A is used as an integrated expression of multiple applications in the cloud to provide an entry to multiple applications. For example, if multiple applications include application a1 and application a2, cloud application A is a cloud implementation solution corresponding to both application a1 and application a2. When deploying the data processing program of cloud application A in the cloud server, the programs for executing data processing in application a1 and application a2 are deployed in the cloud server; when deploying the screen display program for displaying the running results of cloud application A on the terminal, the screen display program in cloud application A can be deployed in the terminal based on its universality.

[0076] That is, the data processing program of the cloud application runs in the cloud server.

[0077] In some embodiments, when the cloud application is implemented as a cloud-side implementation solution corresponding to a single application, the application resources within the cloud application are implemented as resources registered within the application.

[0078] In some embodiments, when a cloud application is implemented as a cloud implementation solution corresponding to multiple applications, the application resources within the cloud application include resources registered in multiple applications, such as: the application resources within the cloud application include resource 1 registered in application a1, and also include resource 2 registered in application a2, etc.

[0079] Illustratively, one of the multiple application resources in the cloud application is labeled with a first resource identifier, which means that the application resource is represented by the first resource identifier. For example, the application resource is virtual item 1, and the first resource identifier is implemented as "com.t.daoju1" to represent virtual item 1.

[0080] Illustratively, the identifier association relationship is the relationship between the first resource identifier and the second resource identifier. Optionally, the identifier association relationship represents that the second resource identifier is content obtained based on the first resource identifier; or, the identifier association relationship indicates that the first resource identifier and the second resource identifier jointly indicate the application resource corresponding to the first resource identifier.

[0081] In some embodiments, after the cloud server obtains the first resource identifier, the first resource identifier is edited to generate a second resource identifier having an identifier association relationship.

[0082] Illustratively, the identifier editing process is used to establish an identifier association relationship between a first resource identifier and a second resource identifier. Optionally, the first resource identifier is identifier edited based on a preset editing rule to generate a second resource identifier with an identifier association relationship.

[0083] Among them, the preset editing rule is a pre-set identification editing rule. For example: the preset editing rule indicates to add the prefix "st" at the preset position of the first resource identifier; if the first resource identifier is implemented as "com.t.daoju1", and the application resource used to indicate is "virtual prop 1", then based on the preset editing rule, the prefix "st" is added to the preset position of the first resource identifier, and the second resource identifier "com.t.st.daoju1" is generated. Among them, the first resource identifier "com.t.daoju1" and the second resource identifier "com.t.st.daoju1" are both used to indicate "virtual prop 1".

[0084] In some embodiments, after the cloud server obtains the first resource identifier, it sends the first resource identifier and preset editing rules to the terminal, and the terminal edits the first resource identifier based on the preset editing rules to generate a second resource identifier; thereafter, the cloud server receives the second resource identifier sent by the terminal, thereby obtaining the second resource identifier.

[0085] In some embodiments, after the cloud server obtains the first resource identifier, it sends the first resource identifier and preset editing rules to a third party. The third party edits the first resource identifier based on the preset editing rules to generate a second resource identifier. Thereafter, the cloud server receives the second resource identifier sent by the third party, thereby obtaining the second resource identifier.

[0086] In some embodiments, after the cloud server obtains the first resource identifier, it sends the first resource identifier to a third party. The third party edits the first resource identifier based on the server identifier of the cloud server to generate a second resource identifier. Thereafter, the cloud server receives the second resource identifier sent by the third party, thereby obtaining the second resource identifier, etc.

[0087] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0088] In an optional embodiment, in order to enable a terminal in communication with a cloud server to obtain application resources that do not exist on the local terminal under the condition of complying with resource management restrictions, the cloud server sends a second resource identifier to the terminal to register the resource exchange conditions corresponding to the application resources in the resource exchange program of the terminal.

[0089] Illustratively, the resource exchange condition is the condition that needs to be met when exchanging application resources. The resource exchange program is a program configured in the terminal, which is used to execute the resource exchange process of exchanging application resources. For example: the resource exchange program is a system program built into the terminal; or, the resource exchange program is a program deployed based on the application installation process of the terminal, such as the resource exchange program is an application store installed in the terminal, or the resource exchange program is other programs installed in the terminal, etc. In this case, the resource exchange program can also be called a resource exchange program, etc., which is not limited here.

[0090] Optionally, based on the second resource identifier, a resource exchange condition corresponding to the application resource is generated in the resource exchange program of the terminal. Schematically, the cloud server sends the second resource identifier to the resource exchange program of the terminal, and the resource exchange program obtains the resource exchange condition corresponding to the application resource when the second resource identifier represents the application resource, and registers the resource exchange condition in the resource exchange program.

[0091] Illustratively, the resource exchange conditions include at least one of the following conditions: (1) application resource type; (2) application resource name; (3) the number of exchanged resources when exchanging application resources; (4) the type of exchanged resources when exchanging application resources; (5) the exchange duration when exchanging application resources, etc.

[0092] Optionally, the resource exchange condition is used to provide a limitation in the process of exchanging application resources. In an illustrative manner, the terminal can obtain the application resource only when the resource exchange process meets the above resource exchange condition.

[0093] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0094] Step 230, receiving the redemption operation information sent by the terminal.

[0095] The exchange operation information is used to request the exchange of application resources; the exchange operation information is information generated after the terminal calls the resource exchange program based on the second resource identifier to perform a resource exchange operation, and the exchange operation information includes the second resource identifier.

[0096] Illustratively, after the terminal receives a trigger operation based on an application resource, the terminal is made aware of a second resource identifier corresponding to the application resource based on the above registration process. The second resource identifier and the first resource identifier in the above cloud server are used to indicate the same application resource under different programs.

[0097] Optionally, the cloud application runs collaboratively between the cloud server and the terminal through a data processing program and a screen display program, wherein the data processing program of the cloud application runs in the cloud server, and the screen display program of the cloud application runs in the terminal.

[0098] Illustratively, the first resource identifier is used to indicate the application resource under the data processing program of the cloud application, and the second resource identifier is used to indicate the application resource under the screen display program of the cloud application, thereby avoiding the problem that the terminal judges the two parts of the same cloud application as two applications and makes it impossible to exchange application resources.

[0099] The terminal, under the condition of knowing the second resource identifier, calls the resource exchange program based on the triggering operation of the application resource; in addition, the terminal also receives a resource exchange operation, which is used to represent an operation based on the resource exchange program. Schematically, the resource exchange operation is implemented in various operation forms such as an exchange password input operation and an exchange resource payment operation.

[0100] Optionally, after the resource exchange operation, the terminal generates exchange operation information, for example, the operation of inputting the exchange password is regarded as the resource exchange operation; or the operation of clicking the payment control is regarded as the resource exchange operation.

[0101] Illustratively, the exchange operation information includes a second resource identifier corresponding to the application resource, so as to provide feedback to the cloud server that the resource exchange process is a process performed on the application resource.

[0102] Step 240: In response to the exchange operation information indicating that the resource exchange operation meets the resource exchange condition, the application resource corresponding to the first resource identifier is sent to the terminal based on the identifier association relationship.

[0103] Illustratively, after receiving the exchange operation information, the cloud server analyzes the exchange operation information to determine whether the exchange operation information is generated in accordance with the resource exchange conditions.

[0104] Optionally, the exchange operation information is implemented as two types, and different types correspond to different processing methods.

[0105] Illustratively, if the redemption operation information is of the first type, representing that the redemption operation information is information generated when the resource redemption conditions are met, then when it is determined that the received redemption operation information is of the first type, the cloud server determines the first resource identifier that has an identifier association relationship with the second resource identifier based on the identifier association relationship between the first resource identifier and the second resource identifier, and sends the application resource marked with the first resource identifier to the terminal.

[0106] Illustratively, if the redemption operation information is of the second type, representing that the redemption operation information is information generated when the resource redemption conditions are not met, then when it is determined that the received redemption operation information is of the second type, the cloud server determines that the resource redemption process is not implemented, and does not send application resources to the terminal.

[0107] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0108] In summary, in the cloud server, a second resource identifier that has an identification association relationship with the first resource identifier is generated based on the first resource identifier, and the second resource identifier is used to generate a resource exchange condition for the application resource in the resource exchange program of the terminal; afterwards, when it is determined that the exchange operation information sent by the terminal meets the resource exchange condition, the application resource corresponding to the first resource identifier can be sent to the terminal according to the identification association relationship. With the help of the above method, the terminal can generate and register the resource exchange condition in the resource exchange program according to the second resource identifier that has an identification association relationship with the first resource identifier, which overcomes the problem that resource exchange cannot be performed due to the collaborative operation of the cloud application in different environments through the terminal and the cloud server, so that the terminal can perform the resource exchange process with the help of the resource exchange program deployed on this end, bringing a more efficient exchange experience to the user, improving the resource exchange efficiency while complying with the exchange specifications, and greatly enriching the use scenario of resource exchange by extending the resource exchange process to the cloud application scenario.

[0109] In an optional embodiment, the process of generating and registering the resource exchange condition in the resource exchange program of the terminal based on the second resource identifier can be performed in real time during the application running process, or can be pre-configured before the application runs. Figure 3 As shown, when the registration process of the second resource identifier is performed in real time during the application operation, the above Figure 2 The step 210 shown can also be implemented as the following steps 311 to 313; when the registration process of the second resource identifier is a pre-configured process before the application is run, the above Figure 2 The illustrated step 210 may also be implemented as the following steps 321 to 323 .

[0110] Step 311: Receive resource triggering information sent by the terminal.

[0111] The resource trigger information is information generated after the terminal performs a trigger operation on the first screen.

[0112] Optionally, during the operation of the cloud application, the terminal receives multiple application screens sent by the cloud server in real time and renders and displays them on the terminal screen. The first screen is implemented as any one of the multiple application screens. When the terminal receives a trigger operation for the first screen, resource trigger information is generated.

[0113] Illustratively, the resource triggering information is used to trigger the application resources in the first screen, for example: exchanging the application resources in the first screen; or moving the application resources in the first screen.

[0114] In some embodiments, after generating the resource trigger information, the terminal sends the resource trigger information to the cloud server so that the cloud server receives the resource trigger information.

[0115] Step 312: In response to the resource trigger information, character recognition is performed on the first picture to obtain a character recognition result.

[0116] Illustratively, after receiving the resource trigger information, the cloud server performs character recognition on the first screen targeted by the resource trigger information to extract various character information expressed in characters from the first screen, i.e., obtain a character recognition result. For example, the character recognition result includes "X prop", "U item", "I control", "X prop is used to realize x function", etc.

[0117] In an optional embodiment, the trigger coordinates in the resource trigger information are obtained.

[0118] The trigger coordinates are used to represent the relative position information of the trigger operation.

[0119] Illustratively, when a trigger operation is performed on the first screen displayed on the terminal, the trigger operation will have relatively fine-grained content, such as: if the trigger operation is performed on point A in the first screen, the coordinates corresponding to point A will be used as the trigger coordinates corresponding to the trigger operation.

[0120] Optionally, the trigger coordinates corresponding to the trigger operation are determined based on information determined by a reference coordinate system configured in the cloud application. Schematically, a hidden reference coordinate system is pre-configured in the cloud application, which is conducive to flexibly and accurately configuring the configuration area, configuration direction, etc. of different application resources in the cloud application.

[0121] In an optional embodiment, based on the trigger coordinates, the picture recognition area is determined from the first picture.

[0122] Illustratively, after the trigger coordinates are determined, a certain picture area determined based on the trigger coordinates is determined from the first picture as the picture recognition area.

[0123] Optionally, a recognition range is preset, and after the trigger coordinates are determined, a screen area covered by the recognition range is determined to be the screen recognition area with the trigger coordinates as the center.

[0124] In an optional embodiment, character recognition is performed on the picture recognition area to obtain a character recognition result.

[0125] Illustratively, character recognition is performed on the picture recognition area to obtain a character recognition result expressed in characters from the picture recognition area.

[0126] Optionally, optical character recognition (OCR) technology is used to perform the character recognition process. Schematically, the cloud server is deployed with technical codes of OCR technology, and after determining the screen recognition area, the technical codes of OCR technology are run to perform character recognition on the screen recognition area, thereby obtaining the character recognition results included therein.

[0127] By determining the screen recognition area associated with the trigger coordinates, it is helpful to improve the specificity of the character recognition process and the directionality of the character recognition results, thereby obtaining more accurate character recognition results and avoiding the problem of subsequent generation condition errors caused by incorrect recognition of the first resource identifier.

[0128] In an optional embodiment, a plurality of running picture frames constituting the first picture are determined.

[0129] Schematically, a screen is composed of multiple running screen frames. After determining the first screen based on the resource trigger operation, the cloud server takes the running screen frame at the time of the resource trigger operation as the center and obtains multiple running screen frames within a preset number of frames before and after.

[0130] In an optional embodiment, key frame identification is performed on a plurality of running picture frames to obtain at least one key picture frame.

[0131] Illustratively, after obtaining multiple running picture frames, a preset picture frame function is used to determine the picture frame weights corresponding to the multiple running picture frames respectively to implement the key frame identification process. Optionally, at least one running picture frame with the largest picture frame weight is used as at least one key picture frame.

[0132] In an optional embodiment, text region detection is performed on at least one key picture frame to obtain at least one text detection region; and character segmentation is performed on the text detection region to obtain a plurality of character recognition results.

[0133] Illustratively, after obtaining at least one key picture frame, text region detection is performed on the at least one key picture frame, and character segmentation is performed in the obtained text detection region.

[0134] Optionally, after character segmentation, multiple character segmentation results are obtained, and operations such as deduplication and deviation filtering are performed on the multiple character segmentation results to obtain multiple character recognition results.

[0135] In some embodiments, the character recognition result is used to represent resource information of the application resource. Illustratively, the resource information includes at least one of a resource name, a resource type, and a redeemable resource quantity. For example, the character recognition result includes a variety of resource information such as a resource name, a resource type, and a resource function introduction corresponding to the application resource.

[0136] The exchange resource quantity is used to represent the quantity of exchange resources, and the exchange resources are used to exchange application resources.

[0137] For example: if the application resource is "Item A", and "Item A" needs to be exchanged for 5 virtual gold coins, then the corresponding exchange resource for "Item A" is 5 virtual gold coins.

[0138] Step 313: Obtain a first resource identifier based on the resource information of the application resource represented by the character recognition result.

[0139] Illustratively, the character recognition result represents resource information of the application resource. After the character recognition result is obtained, the first resource identifier is acquired according to the resource information of the application resource represented therein.

[0140] Optionally, the cloud server stores the correspondence between resource information and resource identifiers, and the character recognition result includes resource information corresponding to at least one application resource. After obtaining the resource information corresponding to at least one application resource, the at least one resource information is searched based on the correspondence to determine the resource identifiers corresponding to the at least one identified resource information.

[0141] Illustratively, a resource identifier corresponding to at least one piece of resource information is used as the first resource identifier.

[0142] Illustratively, a resource identifier corresponding to any one of the at least one resource information is used as the first resource identifier.

[0143] Schematically, character coordinates of a character group corresponding to at least one resource information are determined, such as any resource information is expressed through a character group composed of at least one character, and the character coordinates are the coordinate positions of the character group, such as the center position of the area where the character group is located; the coordinate distance corresponding to at least one character coordinate and the trigger coordinate is determined, such as the coordinate distance between each character coordinate and the trigger coordinate in the reference coordinate system is determined respectively, so as to obtain at least one coordinate distance, and at least one coordinate distance corresponds one-to-one to at least one character coordinate; the resource information represented by the character coordinate of the nearest coordinate distance is determined, such as comparing at least one coordinate distance and determining the character coordinate corresponding to the nearest coordinate example, and the character group corresponding to the character coordinate is used to represent a resource information; the resource identifier corresponding to the resource information is used as the first resource identifier, etc.

[0144] That is, the above steps 311 to 313 indicate that during the operation of the cloud application, the first resource identifier that needs to be analyzed is determined based on the real-time resource triggering process, and the first resource identifier is used to subsequently obtain the second resource identifier, so that the resource exchange condition can be generated in the resource exchange program of the terminal. Based on the process of obtaining the first resource identifier in real time, it is conducive to more targeted subsequent resource exchange process for the application resources represented by the first resource identifier, thereby improving the accuracy of resource exchange.

[0145] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0146] Step 321, determine multiple application resources within the cloud application.

[0147] Illustratively, when a cloud application is implemented as a cloud implementation solution corresponding to a single application, the multiple application resources within the cloud application are application resources configured within the application.

[0148] In an illustrative manner, when a cloud application is implemented as a cloud implementation solution corresponding to multiple applications, the cloud application can be regarded as a platform integrating multiple sub-applications, and the sub-applications are applications that implement cloud operation functions. For example, the cloud application is a cloud game application S, and the cloud game application S provides entrances to multiple sub-applications (such as cloud game a, cloud game b, etc.). Through the cloud game application S, you can participate in the game of cloud game a through cloud computing, and you can also participate in the game of cloud game b.

[0149] Among them, different application resources are respectively configured in multiple sub-applications, and the multiple application resources in the cloud application are the sum of the application resources respectively configured in the multiple sub-applications.

[0150] Step 322: Obtain resource identifiers corresponding to a plurality of application resources.

[0151] Among them, multiple resource identifiers correspond one-to-one to multiple application resources.

[0152] Illustratively, after a plurality of application resources corresponding to a cloud application are determined, resource identifiers corresponding to the plurality of application resources can be determined based on a binding relationship between the resource identifier and the application resource.

[0153] Optionally, when the cloud application is implemented as a cloud implementation solution corresponding to a single application, the multiple application resources within the cloud application are application resources configured within the cloud application, and based on the determination of the multiple application resources, multiple resource identifiers can be directly obtained.

[0154] Optionally, when a cloud application is implemented as a cloud implementation solution corresponding to multiple applications, multiple application resources in the cloud application can be application resources deployed in different sub-applications, such as: application resources a1 and application resources a2 in sub-application a are deployed in the application background corresponding to sub-application a; application resource b1 in sub-application b is deployed in the application background corresponding to sub-application b; after determining multiple application resources, the cloud server can obtain corresponding resource identifiers from the application backgrounds corresponding to different sub-applications. For example: obtain resource identifier A1 corresponding to application resource a1 and resource identifier A2 corresponding to application resource a2 from the application background corresponding to sub-application a; and obtain resource identifier B1 corresponding to application resource b1 from the application background corresponding to sub-application b, etc.

[0155] Step 323: Use the multiple resource identifiers as first resource identifiers respectively.

[0156] Optionally, the multiple resource identifiers obtained and representing multiple application resources are respectively used as first resource identifiers, so as to determine the corresponding second resource identifiers based on the multiple resource identifiers, and then generate resource exchange conditions corresponding to the multiple resource identifiers in the resource exchange program of the terminal through the multiple resource identifiers.

[0157] Schematically, the multiple resource identifiers include resource identifier A1 corresponding to application resource a1 and resource identifier A2 corresponding to application resource a2; in the subsequent process of generating a second resource identifier, resource identifier A12 is generated based on resource identifier A1, and resource identifier A22 is generated based on resource identifier A2, resource identifier A12 is the second resource identifier generated when the first resource identifier is resource identifier A1, and resource identifier A22 is the second resource identifier generated when the first resource identifier is resource identifier A2.

[0158] Optionally, when a resource exchange condition is generated in a resource exchange program of a terminal based on a second resource identifier, a corresponding relationship exists between the resource exchange condition and the second resource identifier. For example, when a resource exchange condition 1 is generated in a resource exchange program of a terminal based on resource identifier A12, a corresponding relationship exists between the generated resource exchange condition 1 and resource identifier A12; similarly, when a resource exchange condition 2 is generated in a resource exchange program of a terminal based on resource identifier A22, a corresponding relationship exists between the generated resource exchange condition 2 and resource identifier A22, etc.

[0159] That is, the above steps 321 to 323 indicate that, outside the operation of the cloud application, a pre-analysis method can be used to use the resource identifiers corresponding to the multiple application resources in the cloud application as the first resource identifier, and the second resource identifier is subsequently obtained based on the first resource identifier, so that the resource exchange conditions can be generated in advance in the resource exchange program of the terminal. Based on the process of pre-acquiring the first resource identifier, it is conducive to more efficiently performing the subsequent resource exchange process for the application resources represented by the first resource identifier, thereby improving the efficiency of resource exchange.

[0160] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0161] To summarize, based on the identifier association relationship determined by the cloud server, the terminal can generate and register resource exchange conditions in the resource exchange program according to the second resource identifier, overcoming the problem of being unable to exchange resources due to the cloud application running in different environments through the terminal and the cloud server. The terminal can use the resource exchange program deployed on the local side to perform the resource exchange process, bringing a more efficient exchange experience to the user, while complying with the exchange specifications. While improving the resource exchange efficiency, by extending the resource exchange process to the cloud application scenario, it greatly enriches the use scenarios of resource exchange.

[0162] In the embodiment of the present application, the content of registering the resource exchange condition in real time or pre-registering the resource exchange condition according to the cloud application running process is introduced. In the process of cloud application running, the first screen can be character recognized based on the resource trigger information, so as to determine the first resource identifier according to the character recognition result, so as to register the resource exchange condition corresponding to the second resource identifier in real time in the resource exchange program of the terminal. With the help of the real-time registration of the terminal and the real-time analysis process of the cloud server, the data processing amount can be reduced, and the resource exchange process can be carried out more targeted based on the character recognition result, reducing the possibility of resource exchange errors and improving the accuracy of resource exchange; in addition, before the cloud application runs, the resource identifiers corresponding to the multiple application resources in the cloud application can be used as the first resource identifier, so as to register the resource exchange conditions corresponding to the multiple second resource identifiers in real time in the resource exchange program of the terminal according to the multiple second resource identifiers. With the help of the pre-registration of the terminal and the pre-analysis process of the cloud server, the resource exchange conditions corresponding to a large number of application resources can be managed in a coordinated manner, so as to more quickly determine the application resources that need to be exchanged in the resource exchange process and improve the efficiency of resource exchange.

[0163] In an optional embodiment, during the operation of the cloud application, the cloud server integrates the resource trigger information and the exchange operation information sent by the terminal to determine in real time whether to send the application resource, wherein the resource trigger information is not only used to determine the first resource identifier in real time so that the cloud server generates a second resource identifier for generating resource exchange conditions in the resource exchange program, but also used to trigger the terminal to call the resource exchange program to perform the resource exchange process. Schematically, as Figure 4 As shown above Figure 2 The illustrated embodiment may also be implemented as the following steps 410 to 470 .

[0164] Step 410: Receive resource triggering information from a terminal.

[0165] The resource trigger information is information generated after the terminal performs a trigger operation on the first screen.

[0166] Optionally, during the operation of the cloud application, the terminal receives multiple application screens sent by the cloud server in real time and renders and displays them on the terminal screen in sequence. The first screen is any one of the multiple application screens.

[0167] Illustratively, based on a triggering operation on a first screen displayed on a terminal, resource triggering information is generated, and the resource triggering information is used to instruct to exchange application resources in the first screen.

[0168] Optionally, when the terminal displays the first screen, it receives a click operation on the application resources in the first screen as a resource trigger operation and generates resource trigger information; or, when the terminal displays the first screen, it receives a long press operation on the application resources in the first screen as a trigger operation and generates resource trigger information, etc.

[0169] In some embodiments, the terminal sends the resource trigger information to the cloud server while generating the resource trigger information.

[0170] Optionally, the resource trigger information includes trigger coordinates, which are used to represent relative position information of the trigger operation; when the resource trigger information is implemented as redemption information for application resources, the trigger coordinates are implemented as relative position information of the application resources targeted by the trigger operation on the first screen.

[0171] In some embodiments, resource trigger information is information generated based on a resource trigger operation, wherein the resource trigger operation can be implemented as a trigger operation based on a terminal or as a trigger operation based on an external device connected to the terminal, and the connection form includes at least one of a wired connection and a wireless connection.

[0172] In an illustrative manner, a click operation on the terminal screen is used as a resource trigger operation to generate resource trigger information; or, a trigger operation based on an external device connected to the terminal (such as a mouse, keyboard, game controller, remote control), etc. is used as a resource trigger operation to generate resource trigger information, etc.

[0173] Step 420 , in response to the resource triggering information, character recognition is performed on the first picture to obtain a character recognition result.

[0174] Illustratively, after the cloud server receives the resource trigger information, based on the fact that the resource trigger information is information generated for the first screen and the cloud server is a device that sends the running screen to the terminal, the cloud server caches the first screen. The cloud server performs character recognition on the first screen based on the resource trigger information to determine the character recognition result from the screen information represented by the first screen.

[0175] In some embodiments, based on the trigger coordinates in the resource trigger information, a picture recognition area is determined from the first picture; and character recognition is performed on the picture recognition area to obtain a character recognition result.

[0176] Illustratively, the character recognition result is used to represent the resource information of the application resource. For example, the resource information represented by the character recognition result includes at least one of the resource name, resource type, and exchange resource quantity, where the exchange resource quantity represents the quantity of exchange resources, and the exchange resources are used to exchange application resources.

[0177] Step 430: Obtain a first resource identifier based on the resource information of the application resource represented by the character recognition result.

[0178] Illustratively, based on the character recognition result obtained by real-time recognition, resource information of the recognized application resource is determined.

[0179] Optionally, the cloud server stores a correspondence between resource information and resource identifiers, and obtains a resource identifier corresponding to the application resource based on the resource information as the first resource identifier.

[0180] In an optional embodiment, during the operation of the cloud application, character recognition is performed on multiple operation screen frames to obtain character recognition results; based on resource information of the application resources represented by the character recognition results, a first resource identifier is obtained.

[0181] Illustratively, during the interactive operation of a cloud application through a terminal and a cloud server, the cloud server can collect multiple operating screen frames to be displayed on the terminal while generating an operating screen frame to be sent to the terminal. This allows the cloud server to determine the application resources included in the operating screen frame as early as possible before the terminal receives a trigger operation, and determine the corresponding resource identifier as the first resource identifier.

[0182] Step 440: Generate a second resource identifier that has an identifier association relationship with the first resource identifier.

[0183] Illustratively, after obtaining the first resource identifier based on resource trigger information, the first resource identifier is edited based on the resource management restriction conditions that the terminal may have to generate a second resource identifier with an identifier association relationship, so as to avoid the problem of two completely identical resource identifiers located in different programs but expressing the same meaning.

[0184] The second resource identifier is used to generate a resource exchange condition corresponding to the application resource in the resource exchange program of the terminal.

[0185] The terminal and the cloud server cooperate to run the cloud application. Schematically, the terminal runs a screen display program of the cloud application, and the screen display program is used to render and display the application screen sent by the cloud server after the screen data is processed by the data processing program.

[0186] Step 450: Send a second resource identifier to the terminal.

[0187] Illustratively, after generating the second resource identifier, the cloud server sends the second resource identifier to the resource exchange program of the terminal; the resource exchange program performs a condition configuration process based on the second resource identifier, thereby generating a resource exchange condition corresponding to the application resource.

[0188] In some embodiments, after generating the second resource identifier, the cloud server sends the second resource identifier and resource information corresponding to the application resource to the resource exchange program of the terminal; the resource exchange program performs a conditional configuration process based on the second resource identifier and resource information, thereby generating a resource exchange condition corresponding to the application resource.

[0189] The sending of resource information helps the resource exchange program to enrich the content of resource exchange conditions, that is, to generate resource exchange conditions with more comprehensive information content, which in turn helps to improve the accuracy of resource exchange when judging whether to execute the resource exchange process through resource exchange conditions.

[0190] Indicatively, Figure 5 As shown, it is a schematic diagram of generating resource exchange conditions in the condition configuration process in the resource exchange program. The resource type column 510 and the resource name column 520 are determined based on the resource information corresponding to the application resource, such as filling the resource type corresponding to the application resource into the resource type column 510, and filling the resource type corresponding to the application resource into the resource name column 520; in addition, it also includes a resource identification column 530, which is used to fill in the second resource identification that represents the application resource and is different from the first resource identification.

[0191] It is worth noting that Figure 5 It is only a schematic diagram of the interface of the resource exchange condition configuration process, which shows some of the contents that need to be configured. When the resource exchange program in the terminal generates the resource exchange condition, the resource exchange program will automatically execute the following based on the received second resource identifier and resource information: Figure 5 The filling process shown in this interface is only for illustrative purposes and is not limited to this embodiment of the present application.

[0192] Optionally, if the resource identifiers corresponding to multiple application resources are respectively used as the first resource identifiers, second resource identifiers corresponding to the multiple first resource identifiers will be generated accordingly; based on the differences between the multiple first resource identifiers, there are also differences between the multiple second resource identifiers. Therefore, when the resource exchange program of the terminal generates resource exchange conditions based on the second resource identifier, there are also differences in the resource exchange conditions corresponding to the multiple second resource identifiers. There is a one-to-one exchange relationship between the multiple resource exchange conditions and the multiple application resources.

[0193] The exchange relationship is used to indicate the resource exchange conditions that need to be met in order to exchange application resources.

[0194] Illustratively, the resource identifier corresponding to application resource 1 is "com.t.daoju1", and the corresponding generated second resource identifier is "com.t.st.daoju1". The resource exchange condition C1 generated based on the second resource identifier includes the second resource identifier "com.t.st.daoju1", and there is an exchange relationship between the resource exchange condition C1 and application resource 1, that is, if application resource 1 needs to be exchanged, the resource exchange condition C1 needs to be met; similarly, if the resource identifier corresponding to application resource 2 is "com.t.daoju2", the corresponding generated second resource identifier is "com.t.st.daoju2", the resource exchange condition C2 generated based on the second resource identifier includes the second resource identifier "com.t.st.daoju2", and there is an exchange relationship between the resource exchange condition C2 and application resource 2, that is, if application resource 2 needs to be exchanged, the resource exchange condition C2 needs to be met, etc.

[0195] Optionally, the resource exchange condition may also include multiple conditions such as the exchange resource quantity condition, the exchange resource type condition, etc. For example, the resource exchange condition C1 indicates that if application resource 1 needs to be exchanged, 10 virtual gold coins need to be paid; the resource exchange condition C2 indicates that if application resource 2 needs to be exchanged, 5 virtual gold coins need to be paid, etc.

[0196] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0197] In an optional embodiment, after the resource exchange program of the terminal generates the application resource exchange condition based on the second resource identifier, it is deemed that the resource exchange condition is successfully registered in the resource exchange program, so the terminal can perform the resource exchange process based on the second resource identifier.

[0198] Optionally, for the terminal, in response to generating a resource exchange condition in the resource exchange program, the resource exchange program is called based on a trigger operation to perform a resource exchange process.

[0199] Illustratively, based on the fact that the triggering operation is an operation performed on an application resource, and the second resource identifier corresponding to the application resource has been registered in the resource exchange program in the form of a resource exchange condition, the terminal can call the resource exchange program after the condition is registered.

[0200] Illustratively, at least one operation step required to be performed to meet the resource exchange condition is displayed on the terminal, and then the terminal receives a resource exchange operation performed after calling the resource exchange program, and the resource exchange operation is the operation content performed to meet the resource exchange condition.

[0201] Illustratively, the resource exchange operation includes at least one of multiple operations such as information confirmation operation, payment operation, password filling operation, etc.

[0202] Among them, the information confirmation operation is used to confirm the exchange information generated in the process of exchanging application resources, such as the exchange information includes resource information corresponding to the application resources, process information generated in the exchange process, etc.; the payment operation is used to obtain application resources by paying for the exchange resources; the password filling operation is used to obtain application resources by filling in the password related to the exchange process, etc.

[0203] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0204] Step 460, receiving the exchange operation information sent by the terminal.

[0205] In an illustrative manner, the exchange operation information is information generated based on the resource exchange operation. Optionally, if the information confirmation operation is used as the resource exchange operation, the terminal generates the exchange operation information after receiving the confirmation of the exchange information generated in the process of exchanging the application resources, and sends it to the cloud server; or, if the payment operation is used as the resource exchange operation, the terminal generates the exchange operation information after receiving the operation of paying to exchange resources, and sends it to the cloud server; or, if the password filling is used as the resource exchange operation, the terminal generates the exchange operation information after receiving the password filling operation performed in the password filling area, and sends it to the cloud server, etc.

[0206] Since the exchange operation information is information generated based on the resource exchange operation, the exchange operation information can reflect the operation status of the resource exchange operation.

[0207] In some embodiments, the resource exchange operation can be implemented as a trigger operation based on the terminal, and can also be implemented as a trigger operation based on an external device connected to the terminal. The connection form includes at least one of a wired connection and a wireless connection, which is not limited here.

[0208] Step 470: In response to the exchange operation information indicating that the resource exchange operation meets the resource exchange condition, the application resource corresponding to the first resource identifier is sent to the terminal based on the identifier association relationship.

[0209] In an optional embodiment, an application account is logged in on the screen display program corresponding to the terminal, and in response to the redemption operation information indicating that the resource redemption operation meets the resource redemption conditions, the application resource corresponding to the first resource identifier is sent to the application account based on the identifier association relationship.

[0210] Indicatively, the application resources are transferred to the resource library corresponding to the application account.

[0211] Optionally, the exchange operation information includes at least the following two situations: (1) the exchange operation information indicates that the resource exchange operation meets the resource exchange conditions; (2) the exchange operation information indicates that the resource exchange operation does not meet the resource exchange conditions.

[0212] In some embodiments, the matching status between the resource exchange operation and the resource exchange condition is determined based on the existence of the exchange identifier in the exchange operation information.

[0213] In an illustrative manner, the exchange identifier is an identifier generated after the resource exchange operation meets the resource exchange condition; the matching situation includes any one of the following: the resource exchange operation meets the resource exchange condition, and the resource exchange operation does not meet the resource exchange condition. That is, when the exchange operation information includes the exchange identifier in addition to the second resource identifier, the exchange operation information is deemed to indicate that the resource exchange operation meets the resource exchange condition; when the exchange operation information includes the second resource identifier but does not include the exchange identifier, the exchange operation information is deemed to indicate that the resource exchange operation does not meet the resource exchange condition.

[0214] Optionally, the exchange operation information indicating that the resource exchange operation meets the resource exchange condition is taken as an example for description.

[0215] Illustratively, when the terminal generates redemption operation information, when the resource redemption operation performed after calling the resource redemption program meets the resource redemption conditions, redemption operation information including a redemption identifier and a second resource identifier is generated, that is: in addition to the second resource identifier, the redemption operation information also includes a redemption identifier, which is an identifier generated after the resource redemption operation meets the resource redemption conditions.

[0216] For example: the resource exchange operation performed after the terminal calls the resource exchange program is a password filling operation. When the password is filled in correctly, the resource exchange operation is deemed to meet the resource exchange conditions. Therefore, exchange operation information including an exchange identifier and a second resource identifier is generated, wherein the exchange identifier is an identifier that represents that the resource exchange operation meets the resource exchange conditions; or, the resource exchange operation performed after the terminal calls the resource exchange program is a payment operation. When the payment operation is successfully performed within a preset time period, the resource exchange operation is deemed to meet the resource exchange conditions. Therefore, exchange operation information including an exchange identifier and a second resource identifier is generated, wherein the exchange identifier is an identifier that represents that the resource exchange operation meets the resource exchange conditions, etc.

[0217] Optionally, the exchange operation information indicating that the resource exchange operation does not meet the resource exchange condition is taken as an example for description.

[0218] Illustratively, when the terminal generates the exchange operation information, if the resource exchange operation performed after the resource exchange program is called does not meet the resource exchange condition, the terminal generates the exchange operation information including the second resource identifier.

[0219] For example: the resource exchange operation performed after the terminal calls the resource exchange program is a password filling operation. When the password is filled in correctly, the resource exchange operation is deemed to meet the resource exchange conditions. Therefore, exchange operation information including an exchange identifier and a second resource identifier is generated, wherein the exchange identifier is an identifier that represents that the resource exchange operation meets the resource exchange conditions; or, the resource exchange operation performed after the terminal calls the resource exchange program is a payment operation. When the payment operation is successfully performed within a preset time period, the resource exchange operation is deemed to meet the resource exchange conditions. Therefore, exchange operation information including an exchange identifier and a second resource identifier is generated, wherein the exchange identifier is an identifier that represents that the resource exchange operation meets the resource exchange conditions, etc.

[0220] In an optional embodiment, in response to reading the second resource identifier and the exchange identifier from the resource exchange information, the application resource corresponding to the first resource identifier is sent to the terminal based on the identifier association relationship.

[0221] The exchange identifier is identification information generated when the resource exchange operation meets the resource exchange conditions.

[0222] Illustratively, taking the case where the redemption operation information includes a redemption identifier to indicate that the resource redemption operation meets the resource redemption conditions as an example, if the cloud server determines that the redemption operation information includes a redemption identifier after receiving the redemption operation information, it means that the resource redemption operation meets the resource redemption conditions. Therefore, the cloud server can determine the first resource identifier based on the identifier association relationship between the first resource identifier and the second resource identifier, according to the second resource identifier in the redemption operation information, and send the application resource corresponding to the first resource identifier to the terminal.

[0223] By means of the judgment process of whether there is an exchange identifier in the resource exchange message, it is possible to more quickly determine whether the resource exchange operation meets the resource exchange conditions, which is conducive to more efficiently determining whether to send application resources to the terminal, thereby improving the judgment efficiency and resource exchange efficiency of the resource exchange process.

[0224] In an optional embodiment, in response to the exchange identifier read from the resource exchange information being a first value, the application resource corresponding to the first resource identifier is sent to the terminal based on the identifier association relationship.

[0225] Among them, the first value is used to indicate that the resource exchange operation meets the resource exchange conditions.

[0226] Indicatively, regardless of whether the resource exchange operation meets the resource exchange conditions, resource exchange information including an exchange identifier and a second resource identifier will be generated. However, based on the difference in the value of the exchange identifier, it will be determined whether the exchange identifier indicates that the resource exchange operation meets the resource exchange conditions, or whether the exchange identifier indicates that the resource exchange operation does not meet the resource exchange conditions.

[0227] For example: when the redemption identifier value is the first value (such as 1), it is determined that the redemption identifier represents that the resource redemption operation meets the resource redemption conditions, then based on the second resource identifier and the identifier association relationship in the resource redemption information, the application resource corresponding to the first resource identifier is sent to the terminal.

[0228] In an optional embodiment, in response to the exchange identifier read from the resource exchange information being the second value, exchange failure information is sent to the terminal.

[0229] The second value is used to indicate that the resource exchange operation does not meet the resource exchange conditions, and the first value is different from the second value.

[0230] For example, when the exchange identifier value is the second value (such as 0), it is determined that the exchange identifier represents that the resource exchange operation does not meet the resource exchange conditions, then based on the second resource identifier and the identifier association relationship in the resource exchange information, the application resource corresponding to the first resource identifier is sent to the terminal, etc. The above first value and second value are only illustrative examples and are not limited here.

[0231] The above content can determine the compliance of resource exchange conditions in a more targeted manner by determining the value of the exchange identifier in the resource exchange message, such as whether the resource exchange operation meets the resource exchange conditions or the resource exchange operation does not meet the resource exchange conditions, thereby facilitating more efficient determination of whether to send application resources to the terminal and improving resource exchange efficiency.

[0232] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0233] To summarize, based on the identifier association relationship determined by the cloud server, the terminal can generate and register resource exchange conditions in the resource exchange program according to the second resource identifier, overcoming the problem of being unable to exchange resources due to the cloud application running in different environments through the terminal and the cloud server. The terminal can use the resource exchange program deployed on the local side to perform the resource exchange process, bringing a more efficient exchange experience to the user, while complying with the exchange specifications. While improving the resource exchange efficiency, by extending the resource exchange process to the cloud application scenario, it greatly enriches the use scenarios of resource exchange.

[0234] In the embodiment of the present application, the content of determining the sending status of application resources in real time according to resource trigger information and exchange operation information is introduced. Among them, based on the resource trigger information, the terminal can realize the purpose of calling the resource exchange program for real-time registration, and it is also beneficial to receive the corresponding resource exchange operation more quickly with the help of the called resource exchange program; the exchange operation information is the information generated by the terminal according to the resource exchange operation, which can reflect the matching situation between the resource exchange operation and the resource exchange condition, which is beneficial for the cloud server to understand more intuitively and clearly whether the resource exchange operation meets the resource exchange condition, so as to facilitate the cloud server to send the application resource to the terminal based on the identification association relationship when the resource exchange operation meets the resource exchange condition, thereby improving the pertinence and efficiency of the resource exchange process.

[0235] In an optional embodiment, the resource exchange program is a program deployed on the terminal. The cloud server generates a resource exchange condition corresponding to the application resource in the resource exchange program of the terminal by sending the second resource identifier to the terminal. The terminal registers the resource exchange condition generated based on the second resource identifier in the resource exchange program, so that the terminal can exchange the application resource on the terminal by calling the resource exchange program, thereby overcoming the problem that the terminal cannot exchange resources based on cloud applications. The resource exchange method based on cloud applications provided in this application is described by taking the method applied to a terminal as an example. Figure 6 As shown, the method includes the following steps 610 to 660.

[0236] Step 610: Obtain a second resource identifier sent by the cloud server.

[0237] In some embodiments, the second resource identifier is an identifier generated and sent by the cloud server and has an identifier association relationship with the first resource identifier; the first resource identifier is used to represent application resources within the cloud application, and the terminal and the cloud server collaborate to run the cloud application.

[0238] Schematically, the data processing program of the cloud application runs in the cloud server, and the terminal runs the screen display program of the cloud application. The screen display program is used to render and display the application screen sent by the cloud server after the screen data is processed by the data processing program.

[0239] Illustratively, the cloud server obtains the first resource identifier and generates the second resource identifier based on the first resource identifier, which has been described in the above embodiment and will not be repeated here.

[0240] In some embodiments, the second resource identifier is an identifier generated by the terminal based on the first resource identifier sent by the cloud server, and there is an identifier association relationship between the first resource identifier and the second resource identifier.

[0241] Illustratively, after acquiring a first resource identifier for representing an application resource in a cloud application, the cloud server sends the first resource identifier and a preset editing rule to the terminal, and the terminal can perform identifier editing on the first resource identifier based on the identifier editing method represented by the preset editing rule, thereby obtaining a second resource identifier. The terminal can send the generated second resource identifier to the cloud server, so that the cloud server can store the identifier association relationship between the first resource identifier and the second resource identifier.

[0242] Step 620: Based on the second resource identifier, call the resource exchange program to generate a resource exchange condition corresponding to the application resource in the resource exchange program.

[0243] Illustratively, the resource exchange program is a program configured on the terminal. Optionally, the resource exchange program is a program configured on the terminal by default; or, the resource exchange program is an application program installed on the terminal (such as an application store, etc.).

[0244] In some embodiments, after the terminal obtains the second resource identifier, the terminal calls the resource exchange program to generate the resource exchange condition with the help of the resource exchange program.

[0245] Optionally, the resource exchange program uses the second resource identifier as the resource identifier when generating resource exchange conditions. There is a corresponding relationship between the second resource identifier and the generated resource exchange conditions. The corresponding relationship is used to indicate that when exchanging the application resource corresponding to the second resource identifier, the resource exchange conditions generated based on the second resource identifier must be met. Among them, there is a corresponding relationship between the first resource identifier and the application resource, and there is also a corresponding relationship between the second resource identifier generated based on the first resource identifier and the application resource. The second resource identifier is used to enable the terminal to exchange the application resource during the operation of the cloud application. Therefore, the corresponding relationship between the second resource identifier and the application resource can also be called a relationship for executing the resource exchange process.

[0246] Optionally, in addition to being identified by the second resource identifier, the resource exchange conditions also include other resource information related to the application resources, such as resource type and resource name; in addition, the resource exchange conditions may also include the number of exchange resources required to exchange the application resources, the type of exchange resources, and other information related to the exchange resources, which are not limited here.

[0247] The resource exchange program in the terminal registers the generated resource exchange conditions, which enables the resource exchange program to know the resource exchange conditions that need to be met when exchanging application resources, so that the resource exchange program can assist in continuing the resource exchange process when the resource exchange conditions are met.

[0248] In some embodiments, after the resource exchange condition is successfully registered in the resource exchange program, the terminal displays a registration success message. The registration success message is used to prompt that the resource exchange condition corresponding to the second resource identifier is successfully registered in the resource exchange program.

[0249] In some embodiments, after the resource exchange condition is successfully registered in the resource exchange program, the terminal displays a resource exchange interface corresponding to the resource exchange program. The resource exchange interface is used to prompt the exchange process of the application resource of the second resource identifier.

[0250] Illustratively, the terminal executes the process of calling a resource exchange program in the background, generating resource exchange conditions in the resource exchange program based on a second resource identifier, and registering the resource exchange conditions in the resource exchange program; after successful registration, the terminal can display the resource exchange interface corresponding to the resource exchange program on the terminal interface, so that the terminal can receive operations performed on the resource exchange interface.

[0251] Step 630: receiving a resource exchange operation for application resources in a resource exchange program.

[0252] Illustratively, after generating and registering a resource exchange condition corresponding to an application resource in a resource exchange program based on the second resource identifier, the terminal can receive a resource exchange operation for exchanging the application resource.

[0253] Optionally, after the resource exchange condition is successfully registered in the resource exchange program, the terminal displays a resource exchange interface corresponding to the resource exchange program; and receives a resource exchange operation on the resource exchange interface.

[0254] Indicatively, Figure 7 As shown, it is a schematic diagram of the interface of the resource exchange interface corresponding to the resource exchange program. Among them, taking the cloud application as a cloud game as an example, there are multiple application resources corresponding to the cloud game. If the resource trigger operation is performed on the application resource 710 displayed on the terminal, the cloud server can determine the first resource identifier corresponding to the application resource 710, and obtain the second resource identifier through the first resource identifier while complying with the resource management restriction conditions caused by the difference between the terminal and the cloud server deployment program, so that the resource exchange program in the terminal generates and registers the resource exchange conditions based on the second resource identifier; after the resource exchange program of the terminal successfully registers the resource exchange conditions, the resource exchange interface 720 is displayed, in which the resource exchange control "Purchase 721" is displayed, and the trigger operation for "Purchase 721" in the resource exchange interface 720 can be used as a resource exchange operation; the password filling operation after the trigger operation for "Purchase 721" in the resource exchange interface 720 can also be used as a resource exchange operation, etc.

[0255] Step 640: Generate exchange operation information based on the resource exchange operation.

[0256] Illustratively, after receiving the resource exchange operation, the terminal generates exchange operation information, and the exchange operation information is used to match the resource exchange operation with the resource exchange condition.

[0257] Illustratively, the matching situations represented by the redemption operation information include at least two of the following: (1) the redemption operation information indicates that the resource redemption operation meets the resource redemption conditions, that is, the resource redemption operation and the resource redemption conditions match each other; (2) the redemption operation information indicates that the resource redemption operation does not meet the resource redemption conditions, that is, the resource redemption operation and the resource redemption conditions do not match each other.

[0258] In an optional embodiment, in response to the resource exchange operation meeting the resource exchange condition, first operation information is generated as the exchange operation information.

[0259] Illustratively, when the resource exchange operation received by the terminal meets the resource exchange condition, that is, the application resource can be successfully exchanged through the resource exchange operation, the generated first operation information is used as the exchange operation information.

[0260] Optionally, when the resource exchange operation received by the terminal meets the resource exchange condition, first operation information including the second resource identifier and the exchange identifier is generated, and the first operation information is used as the exchange operation information.

[0261] The exchange identifier is an identifier generated after the resource exchange operation meets the resource exchange conditions.

[0262] In an optional embodiment, in response to the resource exchange operation not meeting the resource exchange condition, second operation information is generated as the exchange operation information.

[0263] Illustratively, when the resource exchange operation received by the terminal does not meet the resource exchange condition, that is, the resource exchange operation cannot be successfully exchanged for the application resource, the generated second operation information is used as the exchange operation information.

[0264] Optionally, when the resource exchange operation received by the terminal does not meet the resource exchange condition, second operation information including the second resource identifier but not including the exchange identifier is generated, and the second operation information is used as the exchange operation information.

[0265] Step 650, sending redemption operation information to the cloud server.

[0266] Illustratively, after the terminal generates the exchange operation information, the exchange operation information is sent to the cloud server so that the cloud server performs a subsequent resource exchange process based on the exchange operation information.

[0267] Step 660: When the exchange operation information indicates that the resource exchange operation meets the resource exchange condition, receive the application resources sent by the cloud server.

[0268] Illustratively, after receiving the exchange operation information, the cloud server determines whether the resource exchange operation meets the resource exchange condition based on the exchange operation information. Optionally, the cloud server determines whether the resource exchange operation meets the resource exchange condition based on whether there is an exchange identifier in the resource exchange information.

[0269] Illustratively, when there is an exchange identifier in the resource exchange information, it is determined that the resource exchange information is information generated when the resource exchange operation meets the resource exchange conditions; when there is no exchange identifier in the resource exchange information, it is determined that the resource exchange information is information generated when the resource exchange operation does not meet the resource exchange conditions.

[0270] Optionally, when the cloud server determines that the exchange operation information indicates that the resource exchange operation meets the resource exchange conditions, it determines the first resource identifier that has an identifier association relationship with the second resource identifier based on the exchange operation information, and sends the application resource corresponding to the first resource identifier to the terminal.

[0271] In some embodiments, the cloud application is the entrance to multiple sub-applications. When the cloud server determines that the redemption operation information indicates that the resource redemption operation meets the resource redemption conditions, the sub-application with the application resources is determined from multiple sub-applications, and the redemption operation information is sent to the application background corresponding to the sub-application, so that the application background sends the application resources to the cloud server based on the redemption operation information, and the cloud server forwards the application resources to the terminal; alternatively, the application background sends the application resources directly to the terminal based on the redemption operation information, etc.

[0272] Illustratively, the cloud application is a cloud gaming platform, which provides entrances to cloud game A, cloud game B, and cloud game C; the cloud server stores a large number of ownership relationships between application resources and corresponding cloud games. When the cloud server determines that the redemption operation information indicates that the resource redemption operation meets the resource redemption conditions, based on the second resource identifier in the redemption operation information, the cloud game with the application resource a is determined from multiple cloud games, such as cloud game A; based on the ownership relationship that the application resource a belongs to cloud game A, the redemption operation information is sent to the application background of cloud game A, so that the application background sends the application resource a to the cloud server based on the redemption operation information, and the cloud server forwards the application resource a to the terminal, etc.

[0273] Schematically, based on the process of sending application resources from the cloud server, the terminal receives the application resources.

[0274] Optionally, the terminal renders the application resource and displays it on the terminal screen. In some embodiments, an application account corresponding to the cloud application is logged in on the terminal, and based on the application resource sending process of the cloud server, the application account logged in on the terminal obtains the application resource, that is, the above resource exchange process is performed based on the application account to obtain the application resource.

[0275] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0276] To summarize, based on the identifier association relationship determined by the cloud server, the terminal can generate and register resource exchange conditions in the resource exchange program according to the second resource identifier, overcoming the problem of being unable to exchange resources due to the cloud application running in different environments through the terminal and the cloud server. The terminal can use the resource exchange program deployed on the local side to perform the resource exchange process, bringing a more efficient exchange experience to the user, while complying with the exchange specifications. While improving the resource exchange efficiency, by extending the resource exchange process to the cloud application scenario, it greatly enriches the use scenarios of resource exchange.

[0277] In an embodiment of the present application, a resource exchange method based on a cloud application is explained by taking a terminal as an example. The terminal calls a resource exchange program to generate a resource exchange condition based on a second resource identifier, and then generates resource exchange information that expresses the matching situation between the resource exchange operation and the resource exchange condition. The cloud server can more quickly and accurately know whether the resource exchange operation can exchange application resources based on the existence of the exchange identifier in the resource exchange information. The terminal can also obtain the application resources that need to be exchanged by sending resource exchange information that meets the resource exchange conditions, thereby overcoming the problem that application resources cannot be obtained across terminals within the cloud application, and also improving the exchange efficiency of application resources to a certain extent.

[0278] In an optional embodiment, the terminal performs terminal operation based on the operating system used in the development process, such as the terminal's operating system is the Android system, or the terminal's operating system is the iOS system (iPhone OS, where OS stands for Operating System), etc.; application operation needs to follow the operating rules of the operating system.

[0279] In the related art, the operating rules based on the Android system indicate that it is allowed to call other network payment software development kits (Software development kit, Sdk) for in-app payment, such as calling the Sdk corresponding to the W application installed on the terminal to redeem the application resources in the cloud application. That is: there is no restriction in the Android system that the sold items (the items represented by the application resources that need to be redeemed) cannot appear in different APPs (the two programs based on the cloud application are deployed in two environments respectively, so the terminal will be regarded as two APPs). Figure 8 As shown, the cloud application is implemented as a cloud game, in which based on the resource exchange operation on the game interface 810, the Sdk of the W application with a payment function on the terminal is called to display the exchange interface 820 to exchange the application resources targeted by the resource exchange operation.

[0280] However, based on the operating rules of the iOS system, terminals running the iOS system cannot execute cloud application payment solutions (such as being unable to redeem virtual items in cloud games during operation). That is: there is a strict set of in-application (In Application Programming, IAP) payment specifications on the iOS system. When exchanging resources based on cloud games, the iOS system will determine the two parts of the cloud game deployed in different environments as two APPs. Therefore, it is impossible to exchange resources based on the same resource identifier, and it is impossible to meet the requirements of the in-application payment specifications, resulting in the inability to execute the resource exchange process. That is: the exchange process that can be implemented by the Android system cannot be implemented on the iOS system. Therefore, it is necessary to design a payment mechanism unique to cloud applications to reasonably deal with the limitations of the iOS system. Among them, the IAP payment specifications are also outlined as resource management restrictions in the above content.

[0281] In an optional embodiment, the above-mentioned resource exchange method based on cloud applications is applied to the resource exchange process of cloud games, that is, the cloud application is implemented as a cloud game.

[0282] Indicatively, Fig. 9 , which is a schematic diagram of the architecture corresponding to the cloud game. It includes a game server 910 and a game client 920, and the purpose of collaboratively running the cloud game is achieved through the game server 910 and the game client 920. Optionally, the game server 910 is regarded as a cloud server; the game client 920 is regarded as the screen display program deployed on the terminal.

[0283] The game server 910 is used to run the selected game, that is, to run the data content related to the selected game during the running process. For example, the game server 910 is regarded as a cloud server, and the process of running the selected game is realized through the above data processing program. In the agent thread (Agent Process / Thread) corresponding to the game server 910, five parts are involved, including "replaying the input of the object (such as input through the keyboard, mouse, etc.)", "decoding input events (customized solution)", "audio and video capturer", "audio and video encoder" and three protocol contents, namely "Real Time Streaming Protocol (RTSP)", Real-time Transport Protocol (RTP) and Real-time Transport Control Protocol (RTCP).

[0284] Schematically, the RTSP protocol is responsible for the request and response between the server and the terminal; the RTP protocol is responsible for transmitting multimedia content; and the RTCP protocol is responsible for providing transmission information during the RTP transmission process.

[0285] Among them, the game client 920 is deployed on the game host (such as a terminal used by the user object, such as a mobile terminal, a computer terminal, etc.); it involves five parts corresponding to the proxy thread of the game server 920, including "the input of the user object (such as input through keyboard, mouse, etc.)" corresponding to "replay the input of the user object"; "encoding input event (customized solution)" corresponding to "decoding input event (customized solution)", "audio and video player" corresponding to "audio and video capturer", "audio and video decoder" corresponding to "audio and video encoder" and the above three protocol contents (RTSP / RTP / RTCP).

[0286] That is, when the user interacts with the cloud server through the selected game, a large amount of data will be transmitted, which involves two types of flows, namely, the control flow 931 from the "game host" to the "running the selected game" (which can be regarded as the above-mentioned data processing program), and the data flow 932 from the "running the selected game" to the "game host".

[0287] Among them, the control flow 931 passes through "using the object's input (keyboard, mouse...)" and "encoding input events" on the game client 920 side in sequence, which is used to indicate that when the object uses devices such as keyboard, mouse, joystick, etc. to perform input through the game console, the game client 920 will generate an input event (such as: clicking on point A on the screen), and then encode the input event through the encoding process, so as to add the encoded input event to the sending list (the sending list is used to indicate a list for data transmission, which may include at least one input event), and then generate a control signal based on the sending list, and send the control signal to the game server 910 through the Internet; the control flow 931 passes through "decoding input events" and "replaying the object's input (keyboard, mouse...)" on the game server 910 side in sequence, which means that the game server 910 decodes the control signal through the decoding process to obtain the input event, and then replays the input content of the object through devices such as keyboard, mouse, joystick, etc., that is, the process of the game server 910 running the selected game is realized.

[0288] Among them, the data stream 932 passes through the "audio and video capturer", "audio and video decoder" and three protocols in sequence on the game server 910 side, which is used to indicate that the game server 920 will capture the game screen, game audio and other multimedia content generated during the operation process through the audio and video capturer based on the input of the replay usage object, and then encode the captured multimedia content through the audio and video encoder, and finally transmit the multimedia content according to at least one of the three protocols, so as to transmit the encoded multimedia data to the game console through the Internet; the data stream 932 passes through the three protocols, "audio and video encoder" and "audio and video player" in sequence on the game client 920 side, which means that the game client 920 on the game console receives the transmitted content through the corresponding protocol used in the data transmission process, and then decodes the encoded multimedia content through the "audio and video decoder" to obtain the multimedia content, and then plays the multimedia content through the "audio and video player", so as to display the game screen represented by the multimedia content on the game console.

[0289] In some embodiments, Fig. 9 As shown, the game server 910 generates a second resource identifier that has an identifier association relationship with the first resource identifier, and then sends the second resource identifier to the game host to generate a resource exchange condition for the application resource corresponding to the first resource identifier in the resource exchange program of the game host.

[0290] In addition, on the game client 920 side, the game host determines the input event corresponding to the redemption operation (i.e., the redemption operation information mentioned above) based on the redemption operation of the usage object requesting the redemption of application resources, wherein the redemption operation is implemented through devices such as a keyboard and a mouse, and then encodes the input event, adds the encoded input event to the sending list, and sends it.

[0291] On the game server 920 side, firstly, by decoding the input event and playing the input, the input situation corresponding to the exchange operation is determined, that is, the meaning represented by the exchange operation information is determined. If the exchange operation information indicates that the resource exchange operation meets the resource exchange conditions, the application resource corresponding to the first resource identifier can be determined according to the identifier association relationship between the first resource identifier and the second resource identifier, and then the application resource can be sent to the terminal to instruct the user to obtain the application resource. Among them, a redemption screen for sending the application resource to the user can be generated, and the redemption screen can be sent through the audio and video capturer, the audio and video encoder, and the above three protocols.

[0292] On the game client 920 side, the game host can play the redemption screen, etc. through the corresponding protocol, audio and video decoder, and audio and video player.

[0293] It is worth noting that the above Fig. 9 The cloud gaming architecture diagram shown is only a schematic example. Other cloud applications can also be deployed and run with reference to the above cloud gaming architecture diagram, which is not limited here.

[0294] In an optional embodiment, based on this method for reasonably dealing with the resource exchange restrictions of the iOS system in the cloud application environment, the above-mentioned resource exchange method based on cloud applications can also be called "the method of in-application exchange of cloud games iOS end". Fig.10 The architecture diagram shown is implemented.

[0295] In such Fig.10 The architecture diagram shown includes a terminal running the iOS system, referred to as iOS terminal 1010, wherein the iOS terminal 1010 runs a screen display program for a cloud game; the architecture diagram also includes a cloud server 1020 (i.e., the cloud), and the cloud server 1020 runs a data processing program for a cloud game, such as an Android or x86 Windows version of a game.

[0296] First, the basic interaction between the iOS terminal 1010 and the cloud server 1020 is introduced. The iOS terminal 1010 corresponds to a terminal screen that displays the game screen, and can also generate game events (such as the above-mentioned resource trigger information, resource exchange information, etc.) based on the player's triggering of the terminal screen. The game event sends the game event to the cloud server 1020 through the Transmission Control Protocol (TCP) long connection channel 1030, and the cloud server 1020 can perform data processing based on the game event; in addition, the cloud server 1020 generates a data packet representing the game screen after data processing based on the game event, and sends the data packet that can represent the game screen to the iOS terminal 1010 through the TCP long connection channel 1030. The iOS terminal 1010 receives the data packet from the cloud server 1020 and performs video decoding, thereby rendering the corresponding game screen and displaying it on the terminal screen.

[0297] Next, the resource exchange interaction between the iOS terminal 1010 and the cloud server 1020 is introduced. The resource interaction process is realized by the interaction between the terminal payment processing part 1011 deployed on the iOS terminal 1010 and the cloud payment processing part 1021 deployed on the cloud server 1020. Schematically, the terminal payment processing part 1011 and the cloud payment processing part 1021 are respectively described as follows.

[0298] Cloud payment processing part 1021 (also called cloud payment SDK)

[0299] (1) A long link communication is established between the terminal payment processing part 1011 and the cloud payment processing part 1021, and the long link communication can transmit the item information in the game (resource information of the application resources) to the iOS terminal 1010.

[0300] (2) The cloud payment processing part 1021 includes an OCR text extraction sub-part, which is used to use OCR technology to identify item information in the game screen, item name, item price, etc., that is, to obtain resource information corresponding to the application resource, etc. The item price is the amount of exchange resources required to exchange the application resource.

[0301] Schematically, the OCR technology is briefly described.

[0302] Optionally, when using OCR technology to identify item information in the game screen, the pytorch OCR recognition model can be used to extract all text information for each frame of the game screen. The implementation principle is as follows.

[0303] 1. Video frame extraction: Extract key frame images from the game screen as input images for the OCR recognition model. Considering that game text prompts often appear at the bottom or top of the interface, you can give priority to extracting frame images that include the upper and lower parts of the interface. Fig.11 The figure shows a schematic diagram of a game screen of a cloud game, which includes various functional text information 1110 and resource information corresponding to different application resources (such as the prop price of virtual props 1111, etc.).

[0304] 2. Text region detection: Use text detection algorithms such as Connectionist Text Proposal Network (CTPN) and Examination & Analysis System Technology (EAST) to identify text regions in the game screen and determine possible text locations. You can also use color and texture-based text region search algorithms as an aid.

[0305] 3. Text line extraction: Combine and extract text areas belonging to the same line based on the size, direction and other information of the text area. Methods such as projection method and minimum enclosing rectangle can be used.

[0306] 4. Text recognition: For the extracted text line images, use text segmentation and OCR recognition algorithms to obtain text recognition results. For example, algorithms based on deep learning are used, such as Convolutional Recurrent Neural Network (CRNN), Rosetta, etc.

[0307] 5. Recognition optimization: Use dictionaries, grammar tools, etc. to correct and optimize OCR recognition results and improve recognition accuracy. For example, design a dictionary for game-specific vocabulary.

[0308] 6. Information extraction: Use regular expressions or text matching to extract corresponding game data from the OCR recognition results, such as the health value of virtual objects, experience points, etc.

[0309] 7. Result verification: Evaluate the correctness of the results through sampling manual verification, game screen analysis, etc. If necessary, a feedback mechanism can be designed to correct errors.

[0310] In an illustrative manner, by means of the above process combined with on-site video image analysis technology and deep learning-based OCR technology, important text information in the game screen can be effectively identified, the purpose of OCR character recognition can be achieved, and more accurate and targeted character recognition results can be obtained.

[0311] (3) The cloud payment processing part 1021 includes a network request interception sub-part, which is used to capture the resource identifier on the payment page (i.e., the interface where players need to exchange resources for application resources) through the game screen. For example, each item (application resource) has a unique string identifier (Identity, Id). The resource identifier captured by the network request interception sub-part is the first resource identifier corresponding to the application resource. For example, the first resource identifier corresponding to virtual item 1 is com.t.daoju1.

[0312] (4) Register the identified virtual item 1 as a resource identifier for the iOS terminal 910 on the terminal payment processing part 1011. Optionally, under the constraints of the IAP payment specification, a second resource identifier with an identifier difference can be generated based on the first resource identifier, so that the terminal payment processing part 1011 can generate and register the resource redemption conditions corresponding to the virtual item 1 based on the second resource identifier. For example: after knowing that the first resource identifier corresponding to the virtual item 1 is com.t.daoju1, based on the game identifier corresponding to the cloud game, add the prefix "st" before the identifier of the virtual item in the first resource identifier, and the obtained second resource identifier is "com.t.st.daoju1".

[0313] Indicatively, when the terminal payment processing part 1011 generates and registers the resource exchange conditions based on the second resource identifier, the resource exchange conditions can be automatically generated based on the second resource identifier and resource information (resource type, resource name, etc.) sent by the cloud payment processing part 1021. Optionally, the registration process can also be implemented by calling the Application Programming Interface (API) of the iOS terminal 1010. The difficulty of cloud game payment is that in the absence of game source code (data processing program), the payment in the game running in the cloud needs to be moved to the terminal for execution, because the iOS system requires the iOS terminal 1020 to call the IAP interface to complete the payment process. In the implementation process, the in-game item payment page is intercepted based on image recognition technology (OCR technology), and the problem of payment in the cloud application on the iOS side is solved through the cloud payment SDK and the terminal payment SDK.

[0314] (5) The cloud payment processing part 1021 can also send the second resource identifier to the game party background that manages the cloud game, so as to indicate that the item payment comes from the iOS terminal 1010 in the future. That is to say, the game party background is informed that the first resource identifier "com.t.daoju1" and the second resource identifier "com.t.st.daoju1" jointly refer to virtual props 1 (the same application resource), and virtual props 1 is the same item that appears in two apps (such as: the iOS terminal 1010 believes that the screen display program deployed on this end and the data processing program deployed on the cloud server 1020 are two different apps, but they are actually a whole). In the subsequent process, when the payment for virtual props 1 is completed, the game party background needs to query the payment result to ship the item.

[0315] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0316] Terminal payment processing part 1011 (also called terminal payment SDK)

[0317] Illustratively, the terminal payment processing part 1011 is used to represent a resource exchange program deployed on the iOS terminal 1010, such as a terminal program pre-configured on the iOS terminal 1010 or an application installed on the iOS terminal 1010.

[0318] (1) Schematically, a resource exchange method based on cloud application is performed according to a resource trigger operation received in real time by the iOS terminal 1010 as an example; based on the click operation of an item (such as virtual prop 1) in the game item screen received by the iOS terminal 1010 as a resource trigger operation, the clicked item corresponds to an application resource, and the iOS terminal 1010 generates resource trigger information based on the resource trigger operation, including the coordinates of the item in the game screen. Optionally, the resource trigger information is regarded as a game event, and the iOS terminal 1010 can send the resource trigger information to the cloud server 1020; or, the iOS terminal 1010 sends the resource trigger information to the cloud payment processing part 1021 in the cloud server 1020 through long link communication.

[0319] like Fig.12 As shown, it is a schematic diagram of the game item screen. Based on the trigger click of the virtual prop 1210 as the resource trigger operation, the resource trigger information corresponding to the virtual prop 1210 can be generated.

[0320] (2) The cloud payment processing part 1021 can identify the resource name, resource price and second resource identifier of the item (such as com.t.st.daoju1 of virtual item 1) through OCR technology, and send it to the terminal payment processing part 1011 through a long link; after receiving the resource information, the iOS terminal 1020 can call the terminal payment processing part 1011 to display the payment interface. Optionally, the iOS terminal 1020 registers the generated resource exchange conditions in the terminal payment processing part 1011 based on the second resource identifier and resource information, and calls the terminal payment processing part 1011 to display the payment interface after the registration is successful.

[0321] (3) Since the user can perform the resource exchange process by filling in the password in the payment interface, the process complies with the IAP payment specification set by the iOS system. Therefore, the API of the iOS terminal 1010 will notify the payment completion. When the payment is completed, the exchange operation information including the exchange identifier (such as offer ID) and the second resource identifier is generated, so that the iOS terminal 1010 sends the exchange operation information (offer ID, second resource identifier) ​​to the cloud payment SDK through a long link. The cloud payment SDK can transmit the exchange operation information to the game party backend to confirm whether to ship the goods. If the exchange identifier exists or the exchange identifier is the first value (such as the exchange identifier is 1, indicating that the resource exchange operation meets the resource exchange conditions), the goods can be shipped; if the exchange identifier does not exist or the exchange identifier is the second value (such as the exchange identifier is 0, indicating that the resource exchange operation does not meet the resource exchange conditions), the goods will not be shipped.

[0322] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0323] In an optional embodiment, the interaction process of the above-mentioned cloud application-based resource exchange method is described.

[0324] like Fig.13 As shown, it is an interactive schematic diagram of resource exchange, which involves an iOS terminal 1310, in which a cloud game APP is installed for screen rendering; there is communication interaction between the iOS terminal 1310 and the cloud game terminal payment sdk1320; in addition, there is an interactive process of resource exchange information between the cloud game terminal payment sdk1320 and the cloud game cloud payment sdk1330, and the resource exchange information includes a redemption identifier and a second resource identifier; wherein, the cloud game cloud payment sdk1330, as content deployed in the cloud, has communication interaction with the cloud, and can obtain resource information (resource name, resource price, etc.) and the first resource identifier and other contents after OCR recognition based on the game screen 1340 in the cloud.

[0325] In an optional embodiment, after the resource exchange condition corresponding to the application resource is registered in the resource exchange program, the resource exchange interaction process for exchanging the application resource is described, such as Fig.14 This is an interactive flow chart for resource exchange, which involves an iOS terminal 1410, a game backend 1420, an iOS terminal sdk 1430, a cloud (cloud server) 1440, and a resource exchange program 1450.

[0326] 1. The iOS terminal 1410 starts the redemption calling process based on the redemption service by requesting the iOS terminal sdk 1430;

[0327] 2. The iOS terminal sdk 1430 requests the resource exchange program 1450 to exchange the application resource. The application resource has been registered in the resource exchange program in the form of a second resource identifier, and the registration method is to register the resource exchange condition corresponding to the application resource;

[0328] 3. The resource exchange program 1450 returns resource information corresponding to the application resource to the iOS terminal sdk 1430;

[0329] 4. The iOS terminal sdk 1430 can place front-end orders for the cloud 1440 based on resource exchange operations;

[0330] 5. The cloud 1440 feeds back the order status to the iOS terminal sdk 1430;

[0331] 6. The iOS terminal sdk 1430 knows and executes the order process based on the order status, and calls the resource exchange program 1450 to perform IAP payment;

[0332] 7. The resource exchange program 1450 returns the exchange status and exchange ticket to represent the result of the IAP payment, such as payment success or payment failure;

[0333] 8. The iOS terminal sdk 1430 requests the cloud 1440 to deliver the application resources;

[0334] 9. The cloud 1440 will return the queried delivery status to the iOS terminal sdk 1430 based on the delivery request;

[0335] 10. The iOS terminal sdk 1430 feeds back the previously received exchange status to the iOS terminal 1410;

[0336] 11. The iOS terminal 1410 inquires about the delivery status from the game backend 1420. If the game backend 1420 determines that the item type is a prop, the service checks the delivery status by itself; if the game backend 1420 determines that the resource type is a monthly / annual card, the service checks the delivery status by itself according to the transaction flow, or calls the C4B interface to query the status; if the game backend 1420 determines that the resource type is game currency, it requests the cloud 1440 to query the balance, and the cloud 1440 returns the account balance based on the query process;

[0337] 12. The game backend 1420 returns the delivery status to the iOS terminal 1410.

[0338] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0339] To summarize, based on the identifier association relationship determined by the cloud server, the terminal can generate and register resource exchange conditions in the resource exchange program according to the second resource identifier, overcoming the problem of being unable to exchange resources due to the cloud application running in different environments through the terminal and the cloud server. The terminal can use the resource exchange program deployed on the local side to perform the resource exchange process, bringing a more efficient exchange experience to the user, while complying with the exchange specifications. While improving the resource exchange efficiency, by extending the resource exchange process to the cloud application scenario, it greatly enriches the use scenarios of resource exchange.

[0340] Fig.15 A cloud application resource exchange device provided by an exemplary embodiment of the present application is as follows: Fig.15 As shown, the device includes the following parts:

[0341] The identification acquisition module 1510 is used to acquire a first resource identification, where the first resource identification is used to represent an application resource in the cloud application;

[0342] The identification generation module 1520 is used to generate a second resource identification that has an identification association relationship with the first resource identification, and the second resource identification is used to generate a resource exchange condition corresponding to the application resource in the resource exchange program of the terminal, and the terminal and the cloud server cooperate to run the cloud application;

[0343] The information receiving module 1530 is used to receive the exchange operation information sent by the terminal, the exchange operation information is used to request the exchange of the application resource, the exchange operation information is the information generated after the terminal calls the resource exchange program to perform the resource exchange operation based on the second resource identifier, and the exchange operation information includes the second resource identifier;

[0344] The resource sending module 1540 is configured to send the application resource corresponding to the first resource identifier to the terminal based on the identifier association relationship in response to the exchange operation information indicating that the resource exchange operation meets the resource exchange condition.

[0345] In an optional embodiment, the identification acquisition module 1510 is also used to receive resource trigger information sent by the terminal, and the resource trigger information is information generated after the terminal performs a trigger operation on the first screen; in response to the resource trigger information, character recognition is performed on the first screen to obtain a character recognition result, and the character recognition result is used to represent the resource information of the application resource, and the resource information includes at least one of a resource name, a resource type, and a redemption resource quantity, and the redemption resource quantity is used to represent the quantity of redemption resources, and the redemption resources are used to redeem the application resources; based on the resource information of the application resource represented by the character recognition result, the first resource identification is obtained.

[0346] In an optional embodiment, the identification acquisition module 1510 is also used to obtain the trigger coordinates in the resource trigger information, and the trigger coordinates are used to represent the relative position information of the trigger operation; based on the trigger coordinates, determine the screen recognition area from the first screen; perform character recognition on the screen recognition area to obtain the character recognition result.

[0347] In an optional embodiment, the identification acquisition module 1510 is also used to determine multiple application resources within the cloud application; obtain resource identifications corresponding to the multiple application resources respectively; and use the multiple resource identifications as the first resource identifications respectively.

[0348] In an optional embodiment, the identifier generation module 1520 is also used to send the second resource identifier and the resource information corresponding to the application resource to the resource exchange program, the resource information including at least one of a resource name, a resource type and a quantity of exchanged resources; wherein the resource exchange program is used to generate the resource exchange conditions based on the second resource identifier and the resource information.

[0349] In an optional embodiment, the information receiving module 1530 is also used to, when the resource exchange condition is registered in the resource exchange program, based on a first resource exchange operation received by the terminal when calling the resource exchange program, receive first operation information sent by the terminal as the exchange operation information, the first operation information being information generated when the first resource exchange operation meets the resource exchange condition; when the resource exchange condition is registered in the resource exchange program, based on a second resource exchange operation received by the terminal when calling the resource exchange program, receive first operation information sent by the terminal as the exchange operation information, the second operation information being information generated when the second resource exchange operation does not meet the resource exchange condition.

[0350] In an optional embodiment, the resource sending module 1540 is also used to send the application resource corresponding to the first resource identifier to the terminal based on the identifier association relationship in response to reading the second resource identifier and the exchange identifier from the resource exchange information; wherein the exchange identifier is identification information generated when the resource exchange operation meets the resource exchange conditions.

[0351] In an optional embodiment, the resource exchange information includes a second resource identifier and an exchange identifier;

[0352] The resource sending module 1540 is also used to send the application resource corresponding to the first resource identifier to the terminal based on the identifier association relationship in response to the exchange identifier read from the resource exchange information being a first value; the first value is used to indicate that the resource exchange operation meets the resource exchange conditions; in response to the exchange identifier read from the resource exchange information being a second value, send exchange failure information to the terminal, the second value is used to indicate that the resource exchange operation does not meet the resource exchange conditions, and the first value and the second value are different.

[0353] In an optional embodiment, the data processing program of the cloud application runs in the cloud server; the screen display program of the cloud application runs in the terminal, and the screen display program is used to render the application screen sent by the cloud server after the cloud server processes the screen data based on the data processing program; the cloud application runs collaboratively between the cloud server and the terminal through the data processing program and the screen display program.

[0354] Fig.16 Another exemplary embodiment of the present application provides a cloud application resource exchange device, such as Fig.16 As shown, the device includes the following parts:

[0355] The identification acquisition module 1610 is used to acquire a second resource identification sent by the cloud server, the second resource identification has an identification association relationship with the first resource identification, the first resource identification is used to represent the application resource in the cloud application, and the terminal and the cloud server cooperate to run the cloud application;

[0356] The condition generating module 1620 is used to call a resource exchange program to generate a resource exchange condition corresponding to the application resource based on the second resource identifier;

[0357] An information generation module 1630, configured to generate exchange operation information based on a resource exchange operation for the application resource in the resource exchange program, wherein the exchange operation information includes the second resource identifier, and the exchange operation information is used to request exchange of the application resource;

[0358] The resource receiving module 1640 is used to receive the application resource sent by the cloud server when the exchange operation information indicates that the resource exchange operation meets the resource exchange condition. The cloud server is used to send the application resource corresponding to the first resource identifier to the terminal based on the identifier association relationship.

[0359] In an optional embodiment, the condition generation module 1620 is also used to obtain resource information sent by the cloud server, the resource information including at least one of the resource name, resource type and redemption resource quantity of the application resource; based on the second resource identifier and the resource information, the resource redemption program is called to generate the resource redemption condition corresponding to the application resource.

[0360] To summarize, based on the identifier association relationship determined by the cloud server, the terminal can generate and register resource exchange conditions in the resource exchange program according to the second resource identifier, overcoming the problem of being unable to exchange resources due to the cloud application running in different environments through the terminal and the cloud server. The terminal can use the resource exchange program deployed on the local side to perform the resource exchange process, bringing a more efficient exchange experience to the user, while complying with the exchange specifications. While improving the resource exchange efficiency, by extending the resource exchange process to the cloud application scenario, it greatly enriches the use scenarios of resource exchange.

[0361] It should be noted that the resource exchange device for cloud applications provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the resource exchange device for cloud applications provided in the above embodiment and the resource exchange method embodiment for cloud applications belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0362] Fig.17 The schematic diagram of the structure of a server provided by an exemplary embodiment of the present application is shown. The server 1700 includes a central processing unit (CPU) 1701, a system memory 1704 including a random access memory (RAM) 1702 and a read-only memory (ROM) 1703, and a system bus 1705 connecting the system memory 1704 and the central processing unit 1701. The server 1700 also includes a mass storage device 1706 for storing an operating system 1713, an application program 1714, and other program modules 1715.

[0363] The mass storage device 1706 is connected to the central processing unit 1701 through a mass storage controller (not shown) connected to the system bus 1705. The mass storage device 1706 and its associated computer readable media provide non-volatile storage for the server 1700. That is, the mass storage device 1706 may include a computer readable medium (not shown) such as a hard disk or a compact disc read only memory (CD-ROM) drive.

[0364] Without loss of generality, computer readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer readable instructions, data structures, program modules or other data. The above-mentioned system memory 1704 and mass storage device 1706 can be collectively referred to as memory.

[0365] According to various embodiments of the present application, the server 1700 can also be connected to a remote computer on the network through a network such as the Internet. That is, the server 1700 can be connected to the network 1712 through the network interface unit 1711 connected to the system bus 1705, or the network interface unit 1711 can be used to connect to other types of networks or remote computer systems (not shown).

[0366] The above-mentioned memory also includes one or more programs, and the one or more programs are stored in the memory and configured to be executed by the CPU.

[0367] An embodiment of the present application also provides a computer device, which includes a processor and a memory, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the resource redemption method for cloud applications provided in the above-mentioned method embodiments.

[0368] An embodiment of the present application also provides a computer-readable storage medium, on which is stored at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the resource redemption method for cloud applications provided in the above-mentioned method embodiments.

[0369] The embodiments of the present application also provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the resource exchange method of the cloud application described in any of the above embodiments.

[0370] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A resource exchange method based on cloud application, It is characterized in that The method is performed by a cloud server, and includes: Obtaining a first resource identifier, where the first resource identifier is used to represent an application resource in the cloud application; generating a second resource identifier that has an identifier association relationship with the first resource identifier, the second resource identifier being used to generate a resource exchange condition corresponding to the application resource in a resource exchange program of the terminal, the terminal and the cloud server collaboratively running the cloud application; receiving exchange operation information sent by the terminal, the exchange operation information being used to request exchange of the application resource, the exchange operation information being information generated after the terminal calls the resource exchange program to perform a resource exchange operation based on the second resource identifier, and the exchange operation information including the second resource identifier; In response to the exchange operation information indicating that the resource exchange operation meets the resource exchange condition, the application resource corresponding to the first resource identifier is sent to the terminal based on the identifier association relationship.

2. The method according to claim 1, It is characterized in that The obtaining of the first resource identifier includes: Receiving resource trigger information sent by the terminal, where the resource trigger information is information generated after the terminal performs a trigger operation on the first screen; In response to the resource trigger information, character recognition is performed on the first screen to obtain a character recognition result, wherein the character recognition result is used to represent resource information of the application resource, wherein the resource information includes at least one of a resource name, a resource type, and a redemption resource quantity, wherein the redemption resource quantity is used to represent a quantity of redemption resources, and the redemption resource is used to redeem the application resource; The first resource identifier is obtained based on the resource information of the application resource represented by the character recognition result.

3. The method according to claim 2, It is characterized in that The step of performing character recognition on the first picture in response to the resource trigger information to obtain a character recognition result includes: Acquire the trigger coordinates in the resource trigger information, where the trigger coordinates are used to represent the relative position information of the trigger operation; Based on the trigger coordinates, determining a picture recognition area from the first picture; Character recognition is performed on the image recognition area to obtain the character recognition result.

4. The method according to any one of claims 1 to 3, It is characterized in that The obtaining of the first resource identifier includes: determining a plurality of application resources within the cloud application; Obtain resource identifiers corresponding to the multiple application resources respectively; A plurality of resource identifiers are respectively used as the first resource identifiers.

5. The method according to any one of claims 1 to 3, It is characterized in that After the second resource identifier having an identifier association relationship with the first resource identifier is generated, the method further includes: Sending the second resource identifier and resource information corresponding to the application resource to the resource exchange program, the resource information including at least one of a resource name, a resource type, and a quantity of exchanged resources; The resource exchange program is used to generate the resource exchange condition based on the second resource identifier and the resource information.

6. The method according to any one of claims 1 to 3, It is characterized in that The receiving the exchange operation information sent by the terminal includes: In a case where the resource exchange condition is registered in the resource exchange program, based on a first resource exchange operation received by the terminal when the resource exchange program is called, receiving first operation information sent by the terminal as the exchange operation information, the first operation information being information generated when the first resource exchange operation meets the resource exchange condition; In the case where the resource exchange condition is registered in the resource exchange program, based on the second resource exchange operation received by the terminal when calling the resource exchange program, the first operation information sent by the terminal is received as the exchange operation information, and the second operation information is the information generated when the second resource exchange operation does not meet the resource exchange condition.

7. The method according to any one of claims 1 to 3, It is characterized in that In response to the exchange operation information indicating that the resource exchange operation meets the resource exchange condition, sending the application resource corresponding to the first resource identifier to the terminal based on the identifier association relationship includes: In response to reading the second resource identifier and the exchange identifier from the resource exchange information, sending the application resource corresponding to the first resource identifier to the terminal based on the identifier association relationship; The exchange identifier is identification information generated when the resource exchange operation meets the resource exchange condition.

8. The method according to any one of claims 1 to 3, It is characterized in that The resource exchange information includes a second resource identifier and an exchange identifier; In response to the exchange operation information indicating that the resource exchange operation meets the resource exchange condition, sending the application resource corresponding to the first resource identifier to the terminal based on the identifier association relationship includes: In response to the exchange identifier read from the resource exchange information being a first value, sending the application resource corresponding to the first resource identifier to the terminal based on the identifier association relationship; the first value is used to indicate that the resource exchange operation meets the resource exchange condition; In response to the exchange identifier read from the resource exchange information being a second value, sending exchange failure information to the terminal, the second value being used to indicate that the resource exchange operation does not meet the resource exchange condition, and the first value and the second value are different.

9. The method according to any one of claims 1 to 3, It is characterized in that The data processing program of the cloud application runs in the cloud server; The screen display program of the cloud application runs in the terminal, and the screen display program is used to render the application screen sent by the cloud server after the screen data is processed based on the data processing program; The cloud application runs in collaboration between the cloud server and the terminal through the data processing program and the screen display program.

10. A resource exchange method based on cloud application, It is characterized in that The method is executed by a terminal, and includes: Acquire a second resource identifier sent by the cloud server, where the second resource identifier has an identifier association relationship with the first resource identifier, where the first resource identifier is used to represent an application resource in the cloud application, and the terminal and the cloud server cooperate to run the cloud application; Based on the second resource identifier, calling a resource exchange program to generate a resource exchange condition corresponding to the application resource; generating exchange operation information based on a resource exchange operation for the application resource in the resource exchange program, wherein the exchange operation information includes the second resource identifier and is used to request exchange of the application resource; When the exchange operation information indicates that the resource exchange operation meets the resource exchange condition, the application resource sent by the cloud server is received, and the cloud server is used to send the application resource corresponding to the first resource identifier to the terminal based on the identifier association relationship.

11. A resource exchange device based on cloud application, It is characterized in that The device comprises: An identification acquisition module, used to acquire a first resource identification, where the first resource identification is used to represent an application resource in the cloud application; an identification generation module, configured to generate a second resource identification having an identification association relationship with the first resource identification, wherein the second resource identification is used to generate a resource exchange condition corresponding to an application resource in a resource exchange program of a terminal, wherein the terminal and the cloud server cooperate to run the cloud application; an information receiving module, configured to receive exchange operation information sent by the terminal, the exchange operation information being used to request exchange of the application resource, the exchange operation information being information generated after the terminal calls the resource exchange program to perform a resource exchange operation based on the second resource identifier, and the exchange operation information including the second resource identifier; A resource sending module is used to send the application resource corresponding to the first resource identifier to the terminal based on the identifier association relationship in response to the exchange operation information indicating that the resource exchange operation meets the resource exchange condition.

12. A resource exchange device based on cloud application, It is characterized in that The device comprises: an identification acquisition module, used to acquire a second resource identification sent by the cloud server, the second resource identification having an identification association relationship with the first resource identification, the first resource identification being used to represent an application resource in the cloud application, the terminal and the cloud server jointly running the cloud application; a condition generation module, configured to call a resource exchange program to generate a resource exchange condition corresponding to the application resource based on the second resource identifier; an information generation module, configured to generate exchange operation information based on a resource exchange operation for the application resource in the resource exchange program, wherein the exchange operation information includes the second resource identifier, and the exchange operation information is used to request exchange of the application resource; A resource receiving module is used to receive the application resource sent by the cloud server when the exchange operation information indicates that the resource exchange operation meets the resource exchange condition, and the cloud server is used to send the application resource corresponding to the first resource identifier to the terminal based on the identifier association relationship.

13. A computer device, It is characterized in that The computer device includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the cloud application-based resource exchange method as described in any one of claims 1 to 10.

14. A computer-readable storage medium, It is characterized in that The storage medium stores at least one program, and the at least one program is loaded and executed by the processor to implement the cloud application-based resource exchange method as described in any one of claims 1 to 10.

15. A computer program product, It is characterized in that It comprises computer instructions, which, when executed by a processor, implement the resource exchange method based on cloud application as described in any one of claims 1 to 10.