patents.google.com

CN111340587A - Virtual commodity management method and related device - Google Patents

  • ️Fri Jun 26 2020
一种虚拟商品管理方法以及相关装置A virtual commodity management method and related device

技术领域technical field

本申请涉及互联网技术领域,尤其涉及一种虚拟商品管理方法以及相关装置。The present application relates to the field of Internet technologies, and in particular, to a virtual commodity management method and related devices.

背景技术Background technique

随着互联网的发展,许多虚拟商品出现在用户与网络的交互过程中,例如游戏中为了保持互联网用户的活跃,会推出各式各样的游戏道具,当遇到用户支付后无法发货,或者发错物品等问题的时候,会伤害到用户的游戏体验。With the development of the Internet, many virtual goods appear in the interaction between users and the network. For example, in order to keep Internet users active in games, various game props will be launched, which cannot be delivered after payment by users, or When the wrong item is sent, it will hurt the user's game experience.

一般,在用户购买完商品发货的时候,会根据当前平台或者游戏内固定的商品标识(例如商品ID)进行查验;当系统收到支付成功回调的时候,调用平台或者游戏的内部发货接口给用户完成发货。Generally, when the user has purchased the product and shipped it, it will check according to the product identifier (such as the product ID) fixed on the current platform or in the game; when the system receives a successful payment callback, it will call the platform or the game's internal delivery interface. Complete the delivery to the user.

但是,由于不同平台或者游戏之间接口不同,发给用户的商品发货协议种类繁多,在大量交易数据的场景中,不同程序或平台的交易协议不同,容易造成交易接口调用的混乱,出现虚拟商品交易过程的故障,影响虚拟商品交易过程的稳定性。However, due to the different interfaces between different platforms or games, there are many kinds of commodity delivery agreements issued to users. In the scenario of a large amount of transaction data, the transaction protocols of different programs or platforms are different, which may easily cause confusion in the invocation of the transaction interface, and virtual The failure of the commodity trading process affects the stability of the virtual commodity trading process.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请提供一种虚拟商品管理的方法,可以有效避免由于不同程序或平台的交易协议不同而造成的交易接口调用的混乱,提高虚拟商品过程的稳定性。In view of this, the present application provides a method for virtual commodity management, which can effectively avoid confusion of transaction interface calls caused by different transaction protocols of different programs or platforms, and improve the stability of the virtual commodity process.

本申请第一方面提供一种虚拟商品管理的方法,可以应用于终端设备中包含虚拟商品管理功能的系统或程序中,具体包括:响应于至少一个虚拟商品的交易指令,获取所述交易指令对应的商品信息和用户信息;A first aspect of the present application provides a method for virtual commodity management, which can be applied to a system or program that includes a virtual commodity management function in a terminal device, and specifically includes: in response to a transaction instruction of at least one virtual commodity, obtaining a corresponding transaction instruction corresponding to the transaction instruction. product information and user information;

检测所述商品信息对应的平台标识,所述平台标识用于指示所述虚拟商品应用的目标程序;Detecting the platform identifier corresponding to the commodity information, where the platform identifier is used to indicate the target program of the virtual commodity application;

根据所述平台标识确定目标交易接口;Determine the target transaction interface according to the platform identifier;

通过所述目标交易接口执行发货指令,所述发货指令与所述用户信息相关联。A delivery instruction is executed through the target transaction interface, and the delivery instruction is associated with the user information.

可选的,在本申请一些可能的实现方式中,所述通过所述目标交易接口执行发货指令,包括:Optionally, in some possible implementation manners of the present application, the execution of the delivery instruction through the target transaction interface includes:

获取所述商品信息中的发货类型标识;Obtain the delivery type identifier in the product information;

确定具有与所述发货类型标识相同的虚拟商品;determine to have the same virtual item as the shipment type identifier;

通过所述目标交易接口执行具有与所述发货类型标识相同的虚拟商品的发货指令。A delivery instruction having the same virtual commodity as the delivery type identifier is executed through the target transaction interface.

可选的,在本申请一些可能的实现方式中,所述检测所述商品信息对应的平台标识,包括:Optionally, in some possible implementation manners of the present application, the detection of the platform identifier corresponding to the commodity information includes:

检测所述商品信息中的目标字段,以确定商品标识;Detecting the target field in the commodity information to determine the commodity identification;

确定所述商品标识的托管情况;determine the escrow status of the product identification;

若所述商品标识已托管,则确定所述商品标识对应的平台标识。If the commodity identifier has been escrowed, the platform identifier corresponding to the commodity identifier is determined.

可选的,在本申请一些可能的实现方式中,所述方法还包括:Optionally, in some possible implementations of the present application, the method further includes:

若所述商品标识未托管,则生成第一订单标识,所述第一订单标识与所述目标程序中的第二订单标识相对应,所述第二订单标识基于所述交易指令生成;If the commodity identifier is not escrow, a first order identifier is generated, the first order identifier corresponds to the second order identifier in the target program, and the second order identifier is generated based on the transaction instruction;

所述根据所述平台标识确定目标交易接口,包括:The determining of the target transaction interface according to the platform identifier includes:

根据所述第一订单标识确定外部交易接口,所述外部交易接口为所述目标程序的交易接口;Determine an external transaction interface according to the first order identifier, and the external transaction interface is the transaction interface of the target program;

所述通过所述目标交易接口执行发货指令,包括:The execution of the delivery instruction through the target transaction interface includes:

通过所述外部交易接口执行所述发货指令。The shipping instruction is executed through the external transaction interface.

可选的,在本申请一些可能的实现方式中,所述通过所述外部交易接口执行所述发货指令之后,所述方法还包括:Optionally, in some possible implementation manners of the present application, after the delivery instruction is executed through the external transaction interface, the method further includes:

校验所述发货指令的执行情况;verifying the execution of the delivery order;

若所述执行情况满足预设条件,则调用所述外部交易接口再次执行所述发货指令并设置到账提醒。If the execution condition satisfies the preset condition, the external transaction interface is invoked to execute the delivery instruction again and set an account receipt reminder.

可选的,在本申请一些可能的实现方式中,所述预设条件基于所述发货指令的执行时间设定,所述若所述执行情况满足预设条件,则调用所述外部交易接口再次执行所述发货指令,包括:Optionally, in some possible implementations of the present application, the preset condition is set based on the execution time of the delivery instruction, and the external transaction interface is called if the execution condition satisfies the preset condition. Execute the shipping instruction again, including:

若所述执行时间达到预设时长,则调用所述外部交易接口再次执行所述发货指令。If the execution time reaches the preset time length, the external transaction interface is invoked to execute the delivery instruction again.

可选的,在本申请一些可能的实现方式中,所述校验所述发货指令的执行情况,包括:Optionally, in some possible implementation manners of the present application, the verifying the execution of the delivery instruction includes:

遍历所述发货指令的执行记录;Traverse the execution record of the delivery instruction;

确定所述执行记录中所述发货指令的执行次数。Determine the execution times of the delivery instruction in the execution record.

可选的,在本申请一些可能的实现方式中,所述方法还包括:Optionally, in some possible implementations of the present application, the method further includes:

周期性通过检测接口向所述目标程序发送所述商品标识;Periodically send the commodity identifier to the target program through the detection interface;

识别所述目标程序发送的反馈信息。Identify the feedback information sent by the target program.

可选的,在本申请一些可能的实现方式中,所述通过所述目标交易接口执行发货指令之后,所述方法还包括:Optionally, in some possible implementation manners of the present application, after the delivery instruction is executed through the target transaction interface, the method further includes:

遍历所述平台标识与所述商品标识的对应关系,以确定匹配结果;Traverse the correspondence between the platform identifier and the commodity identifier to determine a matching result;

根据所述匹配结果控制所述目标交易接口的连通。The connection of the target transaction interface is controlled according to the matching result.

可选的,在本申请一些可能的实现方式中,其特征在于,所述响应于至少一个虚拟商品的交易指令,获取所述交易指令对应的商品信息和用户信息之前,所述方法还包括:Optionally, in some possible implementations of the present application, it is characterized in that, before obtaining the commodity information and user information corresponding to the transaction instruction in response to the transaction instruction of at least one virtual commodity, the method further includes:

确定所述目标程序中的虚拟商品;determine the virtual goods in the target program;

根据所述目标程序中的虚拟商品生成商品信息并储存。Commodity information is generated and stored according to the virtual commodities in the target program.

可选的,在本申请一些可能的实现方式中,所述方法还包括:Optionally, in some possible implementations of the present application, the method further includes:

确定所述目标程序的托管情况;determine the hosting situation of the target program;

若所述目标程序未托管,则为所述目标程序中的虚拟商品生成协议接口,所述协议接口用于所述商品信息的交互。If the target program is not managed, a protocol interface is generated for the virtual commodity in the target program, and the protocol interface is used for the interaction of the commodity information.

可选的,在本申请一些可能的实现方式中,所述目标程序为游戏,所述虚拟商品为游戏币、游戏道具或游戏权限。Optionally, in some possible implementation manners of the present application, the target program is a game, and the virtual commodity is game currency, game props or game rights.

本申请第二方面提供一种虚拟商品管理的装置,包括:获取单元,用于响应于至少一个虚拟商品的交易指令,获取所述交易指令对应的商品信息和用户信息;A second aspect of the present application provides an apparatus for virtual commodity management, comprising: an acquisition unit, configured to, in response to a transaction instruction of at least one virtual commodity, acquire commodity information and user information corresponding to the transaction instruction;

检测单元,用于检测所述商品信息对应的平台标识,所述平台标识用于指示所述虚拟商品应用的目标程序;a detection unit, configured to detect a platform identification corresponding to the commodity information, where the platform identification is used to indicate a target program of the virtual commodity application;

确定单元,用于根据所述平台标识确定目标交易接口;a determining unit, configured to determine a target transaction interface according to the platform identifier;

管理单元,用于通过所述目标交易接口执行发货指令,所述发货指令与所述用户信息相关联。A management unit, configured to execute a delivery instruction through the target transaction interface, where the delivery instruction is associated with the user information.

可选的,在本申请一些可能的实现方式中,所述管理单元,具体用于获取所述商品信息中的发货类型标识;Optionally, in some possible implementation manners of the present application, the management unit is specifically configured to acquire the delivery type identifier in the commodity information;

所述管理单元,具体用于确定具有与所述发货类型标识相同的虚拟商品;The management unit is specifically configured to determine a virtual commodity with the same identification as the delivery type;

所述管理单元,具体用于通过所述目标交易接口执行具有与所述发货类型标识相同的虚拟商品的发货指令。The management unit is specifically configured to execute, through the target transaction interface, a delivery instruction having the same virtual commodity as the delivery type identifier.

可选的,在本申请一些可能的实现方式中,所述检测单元,具体用于检测所述商品信息中的目标字段,以确定商品标识;Optionally, in some possible implementation manners of the present application, the detection unit is specifically configured to detect a target field in the commodity information to determine the commodity identifier;

所述检测单元,具体用于确定所述商品标识的托管情况;The detection unit is specifically configured to determine the custody situation of the commodity identifier;

所述检测单元,具体用于若所述商品标识已托管,则确定所述商品标识对应的平台标识。The detection unit is specifically configured to determine the platform identification corresponding to the commodity identification if the commodity identification has been managed.

可选的,在本申请一些可能的实现方式中,所述管理单元,还用于若所述商品标识未托管,则生成第一订单标识,所述第一订单标识与所述目标程序中的第二订单标识相对应,所述第二订单标识基于所述交易指令生成;Optionally, in some possible implementations of the present application, the management unit is further configured to generate a first order identifier if the commodity identifier is not managed, and the first order identifier is the same as the one in the target program. corresponding to a second order identifier, and the second order identifier is generated based on the transaction instruction;

所述确定单元,还用于根据所述第一订单标识确定外部交易接口,所述外部交易接口为所述目标程序的交易接口;The determining unit is further configured to determine an external transaction interface according to the first order identifier, where the external transaction interface is a transaction interface of the target program;

所述管理单元,具体用于通过所述外部交易接口执行所述发货指令。The management unit is specifically configured to execute the delivery instruction through the external transaction interface.

可选的,在本申请一些可能的实现方式中,所述管理单元,还用于校验所述发货指令的执行情况;Optionally, in some possible implementation manners of the present application, the management unit is further configured to verify the execution of the delivery instruction;

所述管理单元,还用于若所述执行情况满足预设条件,则调用所述外部交易接口再次执行所述发货指令并设置到账提醒。The management unit is further configured to call the external transaction interface to execute the delivery instruction again and set an account receipt reminder if the execution situation satisfies a preset condition.

可选的,在本申请一些可能的实现方式中,所述预设条件基于所述发货指令的执行时间设定,所述管理单元,具体用于若所述执行时间达到预设时长,则调用所述外部交易接口再次执行所述发货指令。Optionally, in some possible implementation manners of the present application, the preset condition is set based on the execution time of the delivery instruction, and the management unit is specifically configured to: The external transaction interface is invoked to execute the delivery instruction again.

可选的,在本申请一些可能的实现方式中,所述管理单元,具体用于遍历所述发货指令的执行记录;Optionally, in some possible implementations of the present application, the management unit is specifically configured to traverse the execution record of the delivery instruction;

所述管理单元,具体用于确定所述执行记录中所述发货指令的执行次数。The management unit is specifically configured to determine the execution times of the delivery instruction in the execution record.

可选的,在本申请一些可能的实现方式中,所述管理单元,还用于周期性通过检测接口向所述目标程序发送所述商品标识;Optionally, in some possible implementations of the present application, the management unit is further configured to periodically send the commodity identifier to the target program through a detection interface;

所述管理单元,还用于识别所述目标程序发送的反馈信息。The management unit is further configured to identify the feedback information sent by the target program.

可选的,在本申请一些可能的实现方式中,所述管理单元,还用于遍历所述平台标识与所述商品标识的对应关系,以确定匹配结果;Optionally, in some possible implementations of the present application, the management unit is further configured to traverse the correspondence between the platform identifier and the commodity identifier to determine a matching result;

所述管理单元,还用于根据所述匹配结果控制所述目标交易接口的连通。The management unit is further configured to control the connection of the target transaction interface according to the matching result.

可选的,在本申请一些可能的实现方式中,其特征在于,所述管理单元,还用于确定所述目标程序中的虚拟商品;Optionally, in some possible implementation manners of the present application, the management unit is further configured to determine a virtual commodity in the target program;

所述管理单元,还用于根据所述目标程序中的虚拟商品生成商品信息并储存。The management unit is further configured to generate and store commodity information according to the virtual commodity in the target program.

可选的,在本申请一些可能的实现方式中,所述管理单元,还用于确定所述目标程序的托管情况;Optionally, in some possible implementations of the present application, the management unit is further configured to determine the hosting situation of the target program;

所述管理单元,还用于若所述目标程序未托管,则为所述目标程序中的虚拟商品生成协议接口,所述协议接口用于所述商品信息的交互。The management unit is further configured to generate a protocol interface for the virtual commodity in the target program if the target program is not managed, and the protocol interface is used for the interaction of the commodity information.

本申请第三方面提供一种计算机设备,包括:存储器、处理器以及总线系统;所述存储器用于存储程序代码;所述处理器用于根据所述程序代码中的指令执行上述第一方面或第一方面任一项所述的虚拟商品管理的方法。A third aspect of the present application provides a computer device, including: a memory, a processor, and a bus system; the memory is used for storing program codes; the processor is used for executing the above-mentioned first aspect or the first aspect according to instructions in the program codes The method for virtual commodity management according to any one of the aspects.

本申请第四方面提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面或第一方面任一项所述的虚拟商品管理的方法。A fourth aspect of the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer causes the computer to execute the first aspect or any one of the first aspects. method of virtual goods management.

从以上技术方案可以看出,本申请实施例具有以下优点:As can be seen from the above technical solutions, the embodiments of the present application have the following advantages:

通过响应于至少一个虚拟商品的交易指令,获取交易指令对应的商品信息和用户信息;然后检测商品信息对应的平台标识,平台标识用于指示虚拟商品应用的目标程序;并根据平台标识确定目标交易接口;进而通过目标交易接口执行发货指令。从而实现了不同程序的虚拟商品的统一管理,由于不同程序的目标交易接口均通过平台标识关联,并进行统一管理,避免了由于交易协议不同而造成的交易接口调用的混乱,提高了虚拟商品交易过程的稳定性。Obtain commodity information and user information corresponding to the transaction instruction by responding to the transaction instruction of at least one virtual commodity; then detect the platform identifier corresponding to the commodity information, and the platform identifier is used to indicate the target program of the virtual commodity application; and determine the target transaction according to the platform identifier interface; and then execute the delivery instruction through the target transaction interface. In this way, the unified management of virtual commodities of different programs is realized. Since the target transaction interfaces of different programs are associated with platform identifiers and managed in a unified manner, the confusion of transaction interface calls caused by different transaction protocols is avoided, and virtual commodity transactions are improved. process stability.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only It is an embodiment of the present application. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without any creative effort.

图1为虚拟商品管理系统运行的网络架构图;Fig. 1 is the network architecture diagram of virtual commodity management system operation;

图2为本申请实施例提供的一种虚拟商品管理的流程架构图;FIG. 2 is a flowchart structure diagram of a virtual commodity management provided by an embodiment of the present application;

图3为本申请实施例提供的一种虚拟商品管理的方法的流程图;3 is a flowchart of a method for virtual commodity management provided by an embodiment of the present application;

图4为本申请实施例提供的一种虚拟商品管理的场景示意图;FIG. 4 is a schematic diagram of a virtual commodity management scenario provided by an embodiment of the present application;

图5为本申请实施例提供的另一种虚拟商品管理的场景示意图;FIG. 5 is a schematic diagram of another virtual commodity management scenario provided by an embodiment of the present application;

图6为本申请实施例提供的另一种虚拟商品管理的场景示意图;FIG. 6 is a schematic diagram of another virtual commodity management scenario provided by an embodiment of the present application;

图7为本申请实施例提供的另一种虚拟商品管理的场景示意图;FIG. 7 is a schematic diagram of another virtual commodity management scenario provided by an embodiment of the present application;

图8为本申请实施例提供的另一种虚拟商品管理的场景示意图;FIG. 8 is a schematic diagram of another virtual commodity management scenario provided by an embodiment of the present application;

图9为本申请实施例提供的另一种虚拟商品管理的方法的流程图;FIG. 9 is a flowchart of another virtual commodity management method provided by an embodiment of the present application;

图10为本申请实施例提供的另一种虚拟商品管理的方法的流程图;10 is a flowchart of another virtual commodity management method provided by an embodiment of the present application;

图11为本申请实施例提供的另一种虚拟商品管理的方法的流程图;11 is a flowchart of another virtual commodity management method provided by an embodiment of the present application;

图12为本申请实施例提供的一种虚拟商品管理装置的结构示意图;FIG. 12 is a schematic structural diagram of a virtual commodity management apparatus provided by an embodiment of the present application;

图13为本申请实施例提供的一种终端设备的结构示意图。FIG. 13 is a schematic structural diagram of a terminal device according to an embodiment of the present application.

具体实施方式Detailed ways

本申请实施例提供了一种虚拟商品管理的方法以及相关装置,可以应用于终端设备中包含虚拟商品管理功能的系统或程序中,通过响应于至少一个虚拟商品的交易指令,获取交易指令对应的商品信息和用户信息;然后检测商品信息对应的平台标识,平台标识用于指示虚拟商品应用的目标程序;并根据平台标识确定目标交易接口;进而通过目标交易接口执行发货指令。从而实现了不同程序的虚拟商品的统一管理,由于不同程序的目标交易接口均通过平台标识关联,并进行统一管理,避免了由于交易协议不同而造成的交易接口调用的混乱,提高了虚拟商品交易过程的稳定性。The embodiments of the present application provide a virtual commodity management method and a related device, which can be applied to a system or program including a virtual commodity management function in a terminal device, by responding to a transaction instruction of at least one virtual commodity, obtaining the corresponding transaction instruction. Commodity information and user information; then detect the platform identification corresponding to the commodity information, the platform identification is used to indicate the target program of the virtual commodity application; and determine the target transaction interface according to the platform identification; and then execute the delivery instruction through the target transaction interface. In this way, the unified management of virtual commodities of different programs is realized. Since the target transaction interfaces of different programs are associated with platform identifiers and managed in a unified manner, the confusion of transaction interface calls caused by different transaction protocols is avoided, and virtual commodity transactions are improved. process stability.

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“对应于”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the application described herein can, for example, be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "corresponding to", and any variations thereof, are intended to cover non-exclusive inclusion, eg, a process, method, system, product or device comprising a series of steps or units not necessarily limited to those expressly listed but may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

首先,对本申请实施例中可能出现的一些名词进行解释。First, some terms that may appear in the embodiments of the present application are explained.

虚拟商品:在互联网中的商品,例如Q币、腾讯视频VIP、游戏币、游戏道具等。Virtual goods: goods on the Internet, such as Q coins, Tencent Video VIP, game coins, game props, etc.

商品管理:商品的管理分为注册和托管两种场景,商品注册是指商品按照标准化协议保存在系统中;商品托管是指在注册的基础上,系统还要保存商品和用户的订购关系。Commodity management: Commodity management is divided into two scenarios: registration and custody. Commodity registration means that commodities are stored in the system according to a standardized protocol; commodity custody means that on the basis of registration, the system also saves the ordering relationship between commodities and users.

发货:把商品发给用户。Shipping: Send the product to the user.

应理解,本申请提供的虚拟商品管理方法可以应用于终端设备中包含虚拟商品管理功能的系统或程序中,具体的,虚拟商品管理系统可以运行于如图1所示的网络架构中,如图1所示,是虚拟商品管理系统运行的网络架构图,如图可知,虚拟商品管理系统可以对多个信息源中的虚拟商品进行管理,终端通过网络建立与服务器1的连接,而服务器1则获取对应于不同业务的服务器2、服务器3的虚拟商品信息,并对虚拟商品信息进行管理;进而根据用户需求进行相关虚拟商品的发货过程;可以理解的是,图1中示出了多种终端设备,在实际场景中可以有更多或更少种类的终端设备参与到虚拟商品管理的过程中,具体数量和种类因实际场景而定,此处不做限定,另外,图1中示出了一个用于管理虚拟商品信息的服务器1,但在实际场景中,也可以有多个服务器的参与,特别是在不同交易平台交互的场景中;对应的,用于指示虚拟商品对应的业务服务器的服务器2和服务器3也可以是更多个,此处为示例,具体服务器数量因实际场景而定。It should be understood that the virtual commodity management method provided in this application can be applied to a system or program that includes a virtual commodity management function in a terminal device. Specifically, the virtual commodity management system can run in the network architecture shown in FIG. 1 , as shown in FIG. Figure 1 shows the network architecture diagram of the virtual commodity management system. As can be seen from the figure, the virtual commodity management system can manage virtual commodities in multiple information sources. The terminal establishes a connection with the server 1 through the network, and the server 1 Obtain the virtual commodity information of the servers 2 and 3 corresponding to different services, and manage the virtual commodity information; and then carry out the delivery process of the relevant virtual commodities according to the user's needs; it can be understood that Fig. 1 shows a variety of Terminal devices. In actual scenarios, there may be more or less types of terminal devices participating in the process of virtual commodity management. The specific number and types depend on the actual scenario and are not limited here. In addition, as shown in Figure 1 There is a server 1 for managing virtual commodity information, but in actual scenarios, multiple servers can also participate, especially in scenarios where different trading platforms interact; correspondingly, it is used to indicate the business server corresponding to the virtual commodity The number of servers 2 and 3 may also be more, this is an example, and the specific number of servers depends on the actual scenario.

应当注意的是,本实施例提供的虚拟商品管理方法也可以离线进行,即不需要服务器的参与,此时终端在本地与其他终端进行连接,进而进行终端之间的虚拟商品管理的过程。It should be noted that the virtual commodity management method provided in this embodiment can also be performed offline, that is, without the participation of the server, and the terminal is connected to other terminals locally to perform the process of virtual commodity management between terminals.

可以理解的是,上述虚拟商品管理系统可以运行于个人移动终端,例如:作为游戏平台这样的应用,也可以运行于服务器,还可以作为运行于第三方设备以提供虚拟商品管理,以得到信息源的虚拟商品管理处理结果;具体的虚拟商品管理系统可以是以一种程序的形式在上述设备中运行,也可以作为上述设备中的系统部件进行运行,还可以作为云端服务程序的一种,具体运作模式因实际场景而定,此处不做限定。It can be understood that the above-mentioned virtual commodity management system can run on personal mobile terminals, for example: as an application such as a game platform, it can also run on a server, and it can also run on a third-party device to provide virtual commodity management to obtain information sources. The specific virtual commodity management system can run in the above-mentioned device in the form of a program, can also be run as a system component in the above-mentioned device, and can also be used as a kind of cloud service program. The operation mode depends on the actual scene and is not limited here.

随着互联网的发展,许多虚拟商品出现在用户与网络的交互过程中,例如游戏中为了保持互联网用户的活跃,会推出各式各样的游戏道具,当遇到用户支付后无法发货,或者发错物品等问题的时候,会伤害到用户的游戏体验。With the development of the Internet, many virtual goods appear in the interaction between users and the network. For example, in order to keep Internet users active in games, various game props will be launched, which cannot be delivered after payment by users, or When the wrong item is sent, it will hurt the user's game experience.

一般,在用户购买完商品发货的时候,会根据当前平台或者游戏内固定的商品标识(例如商品ID)进行查验;当系统收到支付成功回调的时候,调用平台或者游戏的内部发货接口给用户完成发货。Generally, when the user has purchased the product and shipped it, it will check according to the product identifier (such as the product ID) fixed on the current platform or in the game; when the system receives a successful payment callback, it will call the platform or the game's internal delivery interface. Complete the delivery to the user.

但是,由于不同平台或者游戏之间接口不同,发给用户的商品发货协议种类繁多,在大量交易数据的场景中,不同程序或平台的交易协议不同,容易造成交易接口调用的混乱,出现虚拟商品交易过程的故障,影响虚拟商品交易过程的稳定性。However, due to the different interfaces between different platforms or games, there are many kinds of commodity delivery agreements issued to users. In the scenario of a large amount of transaction data, the transaction protocols of different programs or platforms are different, which may easily cause confusion in the invocation of the transaction interface, and virtual The failure of the commodity trading process affects the stability of the virtual commodity trading process.

为了解决上述问题,本申请提出了一种虚拟商品管理的方法,该方法应用于图2所示的虚拟商品管理的流程框架中,如图2所示,为本申请实施例提供的一种虚拟商品管理的流程架构图,首先客户端进行虚拟商品信息的采集注册,即将虚拟商品信息进行统一的管理,然后根据发货的请求为虚拟商品信息分配相应的接口,且对虚拟商品信息进行数据的有效性检测,保证发货过程的顺利进行。In order to solve the above problems, the present application proposes a method for virtual commodity management, which is applied to the process framework of virtual commodity management shown in FIG. 2 . As shown in FIG. The flow chart of commodity management. First, the client collects and registers virtual commodity information, that is, manages the virtual commodity information in a unified manner, and then allocates corresponding interfaces to the virtual commodity information according to the delivery request, and performs data data storage on the virtual commodity information. Validity testing to ensure the smooth delivery process.

可以理解的是,本申请所提供的方法可以为一种程序的写入,以作为硬件系统中的一种处理逻辑,也可以作为一种虚拟商品管理装置,采用集成或外接的方式实现上述处理逻辑。作为一种实现方式,该虚拟商品管理装置通过响应于至少一个虚拟商品的交易指令,获取交易指令对应的商品信息和用户信息;然后检测商品信息对应的平台标识,平台标识用于指示虚拟商品应用的目标程序;并根据平台标识确定目标交易接口;进而通过目标交易接口执行发货指令。从而实现了不同程序的虚拟商品的统一管理,由于不同程序的目标交易接口均通过平台标识关联,并进行统一管理,避免了由于交易协议不同而造成的交易接口调用的混乱,提高了虚拟商品交易过程的稳定性。It can be understood that the method provided by this application can be written as a program as a processing logic in a hardware system, or can be used as a virtual commodity management device to implement the above processing in an integrated or external manner. logic. As an implementation manner, the virtual commodity management device obtains commodity information and user information corresponding to the transaction instruction by responding to at least one virtual commodity transaction instruction; and then detects the platform identifier corresponding to the commodity information, and the platform identifier is used to indicate the virtual commodity application. and determine the target transaction interface according to the platform identification; and then execute the delivery instruction through the target transaction interface. In this way, the unified management of virtual commodities of different programs is realized. Since the target transaction interfaces of different programs are associated with platform identifiers and managed in a unified manner, the confusion of transaction interface calls caused by different transaction protocols is avoided, and virtual commodity transactions are improved. process stability.

结合上述流程架构,下面将对本申请中虚拟商品管理的方法进行介绍,请参阅图3,图3为本申请实施例提供的一种虚拟商品管理的方法的流程图,应用于虚拟商品管理系统中,本申请实施例至少包括以下步骤:In combination with the above process structure, the method for virtual commodity management in the present application will be introduced below. Please refer to FIG. 3. FIG. 3 is a flowchart of a method for virtual commodity management provided by an embodiment of the present application, which is applied in a virtual commodity management system. , the embodiment of the present application at least includes the following steps:

301、虚拟商品管理系统响应于至少一个虚拟商品的交易指令,获取交易指令对应的商品信息和用户信息。301. The virtual commodity management system, in response to a transaction instruction of at least one virtual commodity, acquires commodity information and user information corresponding to the transaction instruction.

本实施例中,响应交易指令的过程,相当于收集了多个应用程序的虚拟商品信息后的整合过程,如图4所示,是本申请实施例提供的一种虚拟商品管理的场景示意图,图中包括交易触发元素A1和虚拟商品栏A2,可见交易指示可以是图4中交易触发元素的触发过程产生,而虚拟商品栏A2包含了至少一个虚拟商品的信息,这些虚拟商品可以来源于不同的应用程序,例如:来源于QQ的Q币,来源于腾讯视频的VIP权限等,通过将这些交易协议不同的虚拟商品统一到本申请实施例中的虚拟商品管理系统中,实现不同虚拟商品的统一管理及交易接口的分配。In this embodiment, the process of responding to a transaction instruction is equivalent to an integration process after collecting virtual commodity information of multiple applications. As shown in FIG. 4 , it is a schematic diagram of a virtual commodity management scenario provided by the embodiment of the present application. The figure includes a transaction trigger element A1 and a virtual commodity column A2. It can be seen that the transaction indication can be generated by the triggering process of the transaction trigger element in FIG. 4, and the virtual commodity column A2 contains the information of at least one virtual commodity. These virtual commodities can come from different sources. application programs, such as: Q coins from QQ, VIP rights from Tencent Video, etc., by unifying these virtual goods with different transaction protocols into the virtual goods management system in the embodiment of this application, the realization of different virtual goods Unified management and allocation of transaction interfaces.

可以理解的是,交易指令对应于商品信息以及用户信息,即将商品发送到目标的用户,其中,商品信息可以通过图4中的虚拟商品栏A2进行显示,而用户信息可以是用户的唯一标识,也可以是用户的账号集合等。It can be understood that the transaction instruction corresponds to the commodity information and the user information, that is, the commodity is sent to the target user, wherein the commodity information can be displayed through the virtual commodity column A2 in FIG. 4, and the user information can be the unique identifier of the user, It can also be a collection of user accounts, etc.

由于上述过程需要将不同的程序中的虚拟商品进行收集,故可以采用事先收集目标程序中的虚拟商品的方式进行;即首先确定目标程序中的虚拟商品;然后根据目标程序中的虚拟商品生成商品信息并储存。从而实现虚拟商品对应的商品信息的即时调取过程。Since the above process needs to collect virtual goods in different programs, it can be done by collecting virtual goods in the target program in advance; that is, first determine the virtual goods in the target program; then generate goods according to the virtual goods in the target program. information and store. Thereby, the process of real-time retrieval of commodity information corresponding to the virtual commodity is realized.

具体的,首先遍历相关的目标程序,然后定义目标程序中商品的目标字段,可以包括虚拟商品所属的平台标识、商品标识、商品类型、发货类型、扩展字段。故不同平台的虚拟商品都按照这一组字段要求完善商品信息,完成商品信息在发货系统的注册。Specifically, first traverse the relevant target program, and then define the target field of the commodity in the target program, which may include the platform identification, commodity identification, commodity type, delivery type, and extension fields to which the virtual commodity belongs. Therefore, the virtual products of different platforms should complete the product information according to the requirements of this group of fields, and complete the registration of the product information in the delivery system.

其中,平台标识是指系统分配给每个平台的接入应用ID;商品标识是指注册或者托管在系统上的商品唯一ID;商品类型是指决定了同一类商品会具的基础属性;发货类型是指同一类的发货商品调用外部发货接口和发货协议;扩展字段是指商品的一些其他和平台相关的信息。Among them, the platform identifier refers to the access application ID assigned by the system to each platform; the product identifier refers to the unique ID of the product registered or hosted on the system; the product type refers to the basic attributes that determine the same type of product; delivery Type refers to the same category of shipped products calling the external shipping interface and shipping protocol; extension fields refer to some other platform-related information about the product.

通过按照上述标准化协议统一各个虚拟商品,系统可以通过不断丰富商品类型和发货类型可以完整覆盖所有平台或者游戏的商品信息注册,实现统一的商品管理。By unifying each virtual commodity according to the above-mentioned standardized protocol, the system can completely cover commodity information registration of all platforms or games by continuously enriching commodity types and delivery types, and realize unified commodity management.

302、虚拟商品管理系统检测商品信息对应的平台标识。302. The virtual commodity management system detects the platform identifier corresponding to the commodity information.

本实施例中,由于不同的程序具有不同的交易协议,故可以对应的为商品信息平台设置标识,从而对应的规划交易接口。In this embodiment, since different programs have different transaction protocols, an identifier can be set for the commodity information platform correspondingly, so that a transaction interface can be planned accordingly.

具体的,检测商品信息对应的平台标识的过程可以是检测商品信息中的目标字段,以确定商品标识;然后确定商品标识的托管情况;若商品标识已托管,则确定商品标识对应的平台标识。Specifically, the process of detecting the platform identification corresponding to the commodity information may be to detect the target field in the commodity information to determine the commodity identification; then determine the custody status of the commodity identification; if the commodity identification has been escrowed, determine the platform identification corresponding to the commodity identification.

其中,商品的托管是用于指示只在虚拟商品管理系统中注册了商品信息,却不经过虚拟商品管理系统中的目标交易接口进行发货的场景。对于商品的托管情况,如图5所示,是本申请实施例提供的另一种虚拟商品管理的场景示意图,图中包括进行虚拟商品相关信息查看的特征元素B1,即通过触发特征元素B1,可以显示每个虚拟商品的来源信息和托管状态,来源信息主要用于指示虚拟商品应用的程序。The custody of commodities is used to indicate a scenario where commodity information is only registered in the virtual commodity management system, but delivery is not performed through the target transaction interface in the virtual commodity management system. Regarding the custody situation of commodities, as shown in FIG. 5 , it is a schematic diagram of another virtual commodity management scenario provided by the embodiment of the present application. The source information and hosting status of each virtual commodity can be displayed, and the source information is mainly used to indicate the program of the virtual commodity application.

另外,对于虚拟商品托管情况的查询方式还可以采用图6所示的方式,如图6所示,是本申请实施例提供的另一种虚拟商品管理的场景示意图,图中用于指示托管情况查询的特征元素C1位于虚拟商品栏内,即用户直接点击想要知晓的相关虚拟商品就可以显示出其对应的来源信息以及托管状态。相较于全部托管信息的显示,该过程更具有针对性。In addition, the method shown in FIG. 6 can also be used for querying the custody situation of virtual goods. As shown in FIG. 6 , it is a schematic diagram of another virtual commodity management scenario provided by the embodiment of the present application, and the figure is used to indicate the custody situation. The characteristic element C1 of the query is located in the virtual commodity column, that is, the user can display the corresponding source information and hosting status by directly clicking on the relevant virtual commodity they want to know. This process is more targeted than the display of all hosting information.

303、虚拟商品管理系统根据平台标识确定目标交易接口。303. The virtual commodity management system determines the target transaction interface according to the platform identifier.

本实施例中,对于步骤302中托管在虚拟商品管理系统的虚拟商品,根据商品信息与用户信息的关联关系,直接分配目标交易接口即可进行发货的过程。In this embodiment, for the virtual commodities hosted in the virtual commodity management system in step 302, according to the association relationship between commodity information and user information, the delivery process can be performed by directly assigning a target transaction interface.

而对于商品标识指示的虚拟商品未托管的情况,则生成第一订单标识,第一订单标识与目标程序中的第二订单标识相对应,第二订单标识基于交易指令生成;根据第一订单标识确定外部交易接口,外部交易接口为目标程序的交易接口;然后通过外部交易接口执行发货指令。由于第一订单标识与目标程序中的第二订单标识的对应性,从而实现了对目标程序发货过程的监控,保证了接口易被索引到,便于后续的发货管理。In the case where the virtual commodity indicated by the commodity identifier is not managed, a first order identifier is generated, the first order identifier corresponds to the second order identifier in the target program, and the second order identifier is generated based on the transaction instruction; according to the first order identifier Determine the external transaction interface, which is the transaction interface of the target program; and then execute the delivery instruction through the external transaction interface. Due to the correspondence between the first order identifier and the second order identifier in the target program, the monitoring of the delivery process of the target program is realized, the interface is easily indexed, and subsequent delivery management is facilitated.

可选的,在一些场景中,可能由于网络故障造成发货故障,故需要校验发货指令的执行情况;若执行情况满足预设条件,则调用外部交易接口再次执行发货指令。具体的,对于预设条件的设定,可以是判断执行发货指令是否超时,若超时,则调用外部交易接口再次执行发货指令,从而保证发货过程的完整性。Optionally, in some scenarios, the delivery failure may be caused by a network failure, so it is necessary to verify the execution of the delivery order; if the execution meets the preset conditions, call the external transaction interface to execute the delivery order again. Specifically, for the setting of the preset conditions, it may be judged whether the execution of the delivery instruction times out, and if it times out, the external transaction interface is invoked to execute the delivery instruction again, thereby ensuring the integrity of the delivery process.

可选的,在执行发货指令过程中,还可以遍历发货指令的执行记录;确定执行记录中发货指令的执行次数。从而排除重复发送的情况,保证了发货的准确性。Optionally, in the process of executing the delivery instruction, the execution record of the delivery instruction may also be traversed; and the number of execution times of the delivery instruction in the execution record is determined. Thereby eliminating the situation of repeated sending and ensuring the accuracy of delivery.

在一种可能的场景中,对于未托管的虚拟商品的发货过程的监控可以通过图7进行,如图7所示,是本申请实施例提供的另一种虚拟商品管理的场景示意图,图中通过点击虚拟商品的托管状态的信息栏D1,可以出发具体的发货参数,图中显示该道具还未发货,且预设的发货接口为第三接口,进一步的,可以通过点击有效性检查D2进行第三接口的有效性检查,即确定该接口是否可用;另外,可以通过点击校验发货D3确定发货过程中发货是否成功,从而避免了重发或误发的情况。In a possible scenario, the monitoring of the delivery process of the unmanaged virtual goods can be performed through FIG. 7 . As shown in FIG. 7 , it is a schematic diagram of another virtual goods management scenario provided by the embodiment of the present application. By clicking on the information bar D1 of the hosting status of the virtual product, the specific delivery parameters can be started. The figure shows that the item has not been delivered yet, and the preset delivery interface is the third interface. Further, it can be activated by clicking Validity check D2 is used to check the validity of the third interface, that is, to determine whether the interface is available; in addition, you can click Verify Shipment D3 to determine whether the delivery is successful during the delivery process, thereby avoiding re-sending or mis-sending.

可以理解的是,在校验发货发货之后还可以进行到账检测的过程,即每次进行发货操作后向目标用户发送到账校验指令,该到账校验指令用于指示虚拟商品是否已经在目标用户的账户中到账,例如:检测Q币是否已充值、检测用户权限是否更新等;然后通过目标用户终端反馈的到账校验响应,对本次发货的流程进行判定若未到账,则进行记录并调取发货记录以进行分析其中,对于托管商品,由于商品存储在系统内部,验证到账的时候只需要内部查询核对用户对应的商品和数量即可。而对于注册商品,由于商品并没有托管,因此需要第三方系统(例如代理的游戏业务)注册查询接口到统一发货系统平台,验证到账的时候,统一发货系统平台调用第三方接口完成用户对应商品和数量的核验。具体的可以通过图7中到账情况一栏进行显示,相较于一般的人工查验到账,本申请自动对到账过程进行了校验,提升了虚拟商品发货流程的准确性以及严谨性,并提升了校验效率。It can be understood that after verifying the delivery and delivery, the process of check-in check can also be carried out, that is, after each delivery operation is performed, a check-in instruction is sent to the target user, and the check-in instruction is used to indicate the virtual Whether the goods have been received in the account of the target user, for example: check whether the Q coin has been recharged, check whether the user authority has been updated, etc.; and then determine the process of this delivery through the check response of the target user's terminal. If the account is not received, it will record and retrieve the delivery record for analysis. For the managed commodities, since the commodities are stored in the system, when verifying the arrival of the account, it is only necessary to internally query and check the corresponding commodities and quantities of the user. For registered goods, since the goods are not hosted, a third-party system (such as an agent's game business) needs to register the query interface to the unified delivery system platform. When the verification arrives, the unified delivery system platform calls the third-party interface to complete the user Verification of the corresponding product and quantity. Specifically, it can be displayed in the column of account arrival status in Figure 7. Compared with the general manual check of account arrival, this application automatically verifies the account arrival process, which improves the accuracy and rigor of the virtual commodity delivery process. , and improve the verification efficiency.

另外,用户还可以进一步的通过图8所示的场景进行未托管的虚拟商品的相关信息的提取,如图8所示,是本申请实施例提供的另一种虚拟商品管理的场景示意图,图中通过点击未托管的虚拟商品对应的来源栏E1,可以得到该虚拟商品对应的平台ID、商品标识、商品类型、发货类型以及扩展字段,从而对该虚拟商品进行对比判断,还可以通过点击更改E2,对未托管的虚拟商品的发货类型进行选择,并选择对应的协议接口,提高了发货过程的灵活性。In addition, the user can further extract the relevant information of the unmanaged virtual goods through the scene shown in FIG. 8 . As shown in FIG. 8 , it is a schematic diagram of another virtual goods management scenario provided by the embodiment of the present application. By clicking the source column E1 corresponding to the unmanaged virtual product, the platform ID, product identifier, product type, delivery type and extension fields corresponding to the virtual product can be obtained, so that the virtual product can be compared and judged. Change E2, select the delivery type of unmanaged virtual goods, and select the corresponding protocol interface, which improves the flexibility of the delivery process.

304、虚拟商品管理系统通过目标交易接口执行发货指令。304. The virtual commodity management system executes the delivery instruction through the target transaction interface.

本实施例中,发货指令与用户信息相关联,从而保证发货过程的准确性。In this embodiment, the delivery instruction is associated with the user information, so as to ensure the accuracy of the delivery process.

可选的,在发货过程中,由于不同的虚拟商品所用的目标交易接口不同,但是也存在目标字段中指示为同一发货类型的虚拟商品,例如:多个虚拟商品均为同一游戏中的装备。具体的,首先获取商品信息中的发货类型标识;然后确定具有与发货类型标识相同的虚拟商品;进而通过目标交易接口执行具有与发货类型标识相同的虚拟商品的发货指令。由于多个虚拟商品复用统一接口,减少了系统的运算量,节约了系统资源。Optionally, during the delivery process, due to the different target transaction interfaces used by different virtual goods, there are also virtual goods with the same delivery type indicated in the target field. For example, multiple virtual goods are in the same game. equipment. Specifically, first obtain the delivery type identifier in the commodity information; then determine the virtual commodity with the same delivery type identifier; and then execute the delivery instruction with the same virtual commodity as the delivery type identifier through the target transaction interface. Since multiple virtual commodities reuse a unified interface, the computational complexity of the system is reduced and system resources are saved.

可选的,在执行发货之后,可以对库存的商品进行盘点,即遍历平台标识与商品标识的对应关系,以确定匹配结果,从而保证商品不会由于库存的改变而发生关联关系的变动;然后根据匹配结果控制目标交易接口的连通。Optionally, after the delivery is performed, the inventory of the goods in stock can be carried out, that is, the corresponding relationship between the platform identification and the commodity identification can be traversed to determine the matching result, so as to ensure that the commodity will not change the association relationship due to the change of the stock; Then, the connection of the target transaction interface is controlled according to the matching result.

可选的,对于未托管的虚拟商品,可以周期性通过检测接口向目标程序发送商品标识;然后识别目标程序发送的反馈信息。从而保证外部交易接口的顺畅运行,保证发货过程的稳定。Optionally, for an unmanaged virtual commodity, the commodity identifier can be periodically sent to the target program through the detection interface; and then the feedback information sent by the target program is identified. This ensures the smooth operation of the external transaction interface and the stability of the delivery process.

结合上述实施例可知,通过响应于至少一个虚拟商品的交易指令,获取交易指令对应的商品信息和用户信息;然后检测商品信息对应的平台标识,平台标识用于指示虚拟商品应用的目标程序;并根据平台标识确定目标交易接口;进而通过目标交易接口执行发货指令。从而实现了不同程序的虚拟商品的统一管理,由于不同程序的目标交易接口均通过平台标识关联,并进行统一管理,避免了由于交易协议不同而造成的交易接口调用的混乱,提高了虚拟商品交易过程的稳定性。Combining the above embodiments, it can be known that by responding to the transaction instruction of at least one virtual commodity, the commodity information and user information corresponding to the transaction instruction are obtained; then the platform identification corresponding to the commodity information is detected, and the platform identification is used to indicate the target program of the virtual commodity application; and Determine the target transaction interface according to the platform identifier; and then execute the delivery instruction through the target transaction interface. In this way, the unified management of virtual commodities of different programs is realized. Since the target transaction interfaces of different programs are associated with platform identifiers and managed in a unified manner, the confusion of transaction interface calls caused by different transaction protocols is avoided, and virtual commodity transactions are improved. process stability.

上述实施例介绍了虚拟商品管理的过程,其中,包括了虚拟商品的注册过程,下面对该场景进行介绍,请参阅图9,图9为本申请实施例提供的另一种虚拟商品管理的方法的流程图,本申请实施例至少包括以下步骤:The above embodiment describes the process of virtual commodity management, which includes the registration process of virtual commodities. The following describes the scenario, please refer to FIG. The flow chart of the method, the embodiment of the present application includes at least the following steps:

901、设置虚拟商品注册或托管。901. Set virtual commodity registration or hosting.

本实施例中,通过收集虚拟商品管理系统关联的多个程序,进行这些程序中对应虚拟程序的统一管理,相应的在管理过程中需要进行商品标识的储存,即注册过程。In this embodiment, by collecting multiple programs associated with the virtual commodity management system, unified management of the corresponding virtual programs in these programs is performed, and correspondingly, the commodity identification needs to be stored during the management process, that is, the registration process.

902、判断是否托管。902. Determine whether to host or not.

903、进行外部交易接口配置和对接。903. Perform external transaction interface configuration and connection.

本实施例中,对于未托管的虚拟商品,配置外部交易接口,即可以将目标程序的交易发货过程通过虚拟商品管理系统进行检测及控制。In this embodiment, an external transaction interface is configured for an unmanaged virtual commodity, that is, the transaction delivery process of the target program can be detected and controlled through the virtual commodity management system.

904、按照目标字段完善商品基础信息。904. Improve basic commodity information according to the target field.

本实施例中,完善商品基础信息即统一商品字段表示方法,目标字段包括商品所属的平台标识、商品标识、商品类型、发货类型、扩展字段。不同平台的虚拟商品或者游戏都按照这一组字段要求完善商品信息,完成商品信息在发货系统的注册。In this embodiment, the basic commodity information is improved, that is, the unified commodity field representation method, and the target fields include the platform identification to which the commodity belongs, commodity identification, commodity type, delivery type, and extension fields. Virtual products or games on different platforms complete the product information according to the requirements of this group of fields, and complete the registration of the product information in the delivery system.

其中,平台标识是指系统分配给每个平台的接入应用ID;商品唯一标识是指注册或者托管在系统上的商品唯一ID;商品类型是指决定了同一类商品会有哪些一样的基础属性;发货类型是指同一类的发货商品调用外部发货接口和发货协议;扩展字段是指商品的一些其他和平台相关的信息。Among them, the platform identifier refers to the access application ID assigned by the system to each platform; the unique product identifier refers to the unique ID of the product registered or hosted on the system; the product type refers to the same basic attributes that determine the same type of product. ;Shipping type refers to the same category of shipped products calling the external shipping interface and shipping agreement; Extended field refers to some other platform-related information of the product.

通过上述标准化协议的设定,虚拟商品管理系统可以通过不断丰富商品类型和发货类型可以完整覆盖所有平台或者游戏的商品信息注册,实现统一的商品管理。Through the setting of the above-mentioned standardized protocol, the virtual commodity management system can completely cover the commodity information registration of all platforms or games by continuously enriching commodity types and delivery types, and realize unified commodity management.

另外,在统一了管理方式之后,下面对具体的发货流程进行介绍,请参阅图10,图10为本申请实施例提供的另一种虚拟商品管理的方法的流程图,本申请实施例至少包括以下步骤:In addition, after the management methods are unified, the specific delivery process will be introduced below. Please refer to FIG. 10. FIG. 10 is a flowchart of another virtual commodity management method provided by an embodiment of the present application. At least the following steps are included:

1001、获取虚拟商品的目标字段。1001. Obtain a target field of the virtual commodity.

本实施例中,通过目标字段的获取判断虚拟商品的注册状态以及托管状态,以及相应的发货接口的选择。In this embodiment, the registration state and the hosting state of the virtual commodity, and the selection of the corresponding delivery interface are determined through the acquisition of the target field.

1002、判断是否托管。1002. Determine whether to host or not.

1003、生成第一订单标识。1003. Generate a first order identifier.

本实施例中,若虚拟商品未托管,则系统提供调用第三方业务的标准化接口,即外部交易接口。In this embodiment, if the virtual commodity is not managed, the system provides a standardized interface for calling third-party services, that is, an external transaction interface.

1004、调用外部发货接口。1004. Call the external delivery interface.

本实施例中,第三方业务按照标准化的协议要求完成业务内部的发货接口和系统的标准化接口的对接,这个时候系统作为发货通道,当系统给用户发货商品的时候,系统在识别商品注册信息中的商品类型和发货类型后,会调用第三方业务注册在系统中的发货接口,然后系统按照标准化协议调用第三方业务内部的发货接口,从而完成发货。In this embodiment, the third-party service completes the connection between the internal delivery interface of the service and the standardized interface of the system according to the standardized protocol requirements. At this time, the system acts as a delivery channel. When the system delivers goods to users, the system is identifying the goods. After the product type and delivery type in the registration information, the delivery interface registered in the system by the third-party business will be called, and then the system will call the internal delivery interface of the third-party business according to the standardized protocol to complete the delivery.

1005、判断是否应答发货成功。1005. Determine whether the response is delivered successfully.

1006、防重或者超时处理。1006. Anti-overload or timeout processing.

本实施例中,对于只注册未托管在系统的虚拟商品,通过生成第一订单标识,做为第三方调用发货系统的外部订单号,这样无论是第三方系统重复调用发货系统,还是第三方系统应答超时,发货系统都可以准确的处理防重或者补发货的场景,从而保证给用商品发货的可靠性。In this embodiment, for the virtual goods that are only registered and not hosted in the system, the first order identifier is generated and used as the third party to call the external order number of the delivery system, so whether the third-party system repeatedly calls the delivery system, or the third-party system calls the delivery system repeatedly. The response time of the three-party system is exceeded, and the delivery system can accurately handle the scenario of anti-overload or re-delivery, thereby ensuring the reliability of the delivery of goods for use.

1007、调用用户和商品的关联关系,进行发货。1007. Invoke the association relationship between the user and the commodity to deliver the goods.

本实施例中,对于托管在系统的商品,虚拟商品管理系统会在内部统一完成给用户的发货,即把用户和商品的订阅关系记录下来。In this embodiment, for commodities hosted in the system, the virtual commodity management system will internally uniformly complete the delivery to the user, that is, record the subscription relationship between the user and the commodity.

通过上述对于发货接口的管理过程,使得未托管的虚拟商品可以通过外部接口进行发货,且虚拟商品管理系统对该过程进行检测,保证了发货过程的稳定性。Through the above management process for the delivery interface, the unmanaged virtual commodities can be delivered through the external interface, and the virtual commodity management system detects the process, ensuring the stability of the delivery process.

由于虚拟商品管理系统中的商品信息处于变化的状态,可以周期性的对商品进行检测,以保证商品信息的有效性,下面对具体的发货流程进行介绍,请参阅图11,图11为本申请实施例提供的另一种虚拟商品管理的方法的流程图,本申请实施例至少包括以下步骤:Since the commodity information in the virtual commodity management system is in a state of change, the commodity can be detected periodically to ensure the validity of the commodity information. The following describes the specific delivery process, please refer to Figure 11, which is a A flowchart of another virtual commodity management method provided by the embodiment of the present application, the embodiment of the present application at least includes the following steps:

1101、周期性检查商品有效性。1101. Periodically check the validity of the commodity.

本实施例中,周期可以是基于用户发货的频率设定,也可以在每次发货操作之后进行,具体设定方式因实际场景而定。In this embodiment, the period may be set based on the frequency of delivery by the user, or may be performed after each delivery operation, and the specific setting method depends on the actual scene.

1102、判断是否托管。1102. Determine whether to host or not.

1103、调用检测接口,进行有效性检查。1103. Call the detection interface to check the validity.

本实施例中,对于只注册未托管在系统的商品,要求平台方或者游戏提供相应的查商品背包和邮箱领取接口,并授权给发货系统查询使用,发货系统会定时检查已注册的商品信息是否可以正确的发送到。In this embodiment, for commodities that are only registered but not hosted in the system, the platform or the game is required to provide the corresponding interface for checking commodity backpacks and mailboxes, and authorize the delivery system to query and use them, and the delivery system will regularly check the registered commodities Whether the information can be sent correctly.

1104、查询用户和商品的关联关系,进行有效性检查。1104. Query the association relationship between the user and the commodity, and perform a validity check.

本实施例中,对于托管在系统的商品,发货系统在系统内部就可以查询到用户和商品的关联信息,从而检查发货的正确性。另外,发货之后还可以进行到账校验的过程,即校验目标用户对应的账户是否收到了该虚拟商品。In this embodiment, for the commodities hosted in the system, the delivery system can query the associated information between the user and the commodities within the system, so as to check the correctness of delivery. In addition, after delivery, the process of checking the account can also be performed, that is, checking whether the account corresponding to the target user has received the virtual product.

通过上述有效性的检测过程,避免了由于数据错误造成的发货故障,提高了虚拟商品发货过程的稳定性;并且基于有效性检查之后还可以自动的进行到账验证并提醒,提高了用户体验。Through the above validity detection process, the delivery failure caused by data errors is avoided, and the stability of the virtual product delivery process is improved; and based on the validity check, it can also automatically verify and remind the account, which improves the user experience. experience.

为了更好的实施本申请实施例的上述方案,下面还提供用于实施上述方案的相关装置。请参阅图12,图12为本申请实施例提供的一种虚拟商品管理装置的结构示意图,虚拟商品管理装置1200包括:In order to better implement the above solutions of the embodiments of the present application, related devices for implementing the above solutions are also provided below. Please refer to FIG. 12. FIG. 12 is a schematic structural diagram of a virtual commodity management apparatus provided by an embodiment of the present application. The virtual commodity management apparatus 1200 includes:

获取单元1201,用于响应于至少一个虚拟商品的交易指令,获取所述交易指令对应的商品信息和用户信息;an obtaining unit 1201, configured to, in response to a transaction instruction of at least one virtual commodity, acquire commodity information and user information corresponding to the transaction instruction;

检测单元1202,用于检测所述商品信息对应的平台标识,所述平台标识用于指示所述虚拟商品应用的目标程序;A detection unit 1202, configured to detect a platform identifier corresponding to the commodity information, where the platform identifier is used to indicate a target program of the virtual commodity application;

确定单元1203,用于根据所述平台标识确定目标交易接口;determining unit 1203, configured to determine the target transaction interface according to the platform identifier;

管理单元1204,用于通过所述目标交易接口执行发货指令,所述发货指令与所述用户信息相关联。The management unit 1204 is configured to execute a delivery instruction through the target transaction interface, where the delivery instruction is associated with the user information.

可选的,在本申请一些可能的实现方式中,所述管理单元1204,具体用于获取所述商品信息中的发货类型标识;Optionally, in some possible implementation manners of the present application, the management unit 1204 is specifically configured to acquire the delivery type identifier in the commodity information;

所述管理单元1204,具体用于确定具有与所述发货类型标识相同的虚拟商品;The management unit 1204 is specifically configured to determine a virtual commodity with the same identification as the delivery type;

所述管理单元1204,具体用于通过所述目标交易接口执行具有与所述发货类型标识相同的虚拟商品的发货指令。The management unit 1204 is specifically configured to execute, through the target transaction interface, a delivery instruction having the same virtual commodity as the delivery type identifier.

可选的,在本申请一些可能的实现方式中,所述检测单元1202,具体用于检测所述商品信息中的目标字段,以确定商品标识;Optionally, in some possible implementation manners of the present application, the detection unit 1202 is specifically configured to detect the target field in the commodity information to determine the commodity identifier;

所述检测单元1202,具体用于确定所述商品标识的托管情况;The detection unit 1202 is specifically configured to determine the custody situation of the commodity identifier;

所述检测单元1202,具体用于若所述商品标识已托管,则确定所述商品标识对应的平台标识。The detection unit 1202 is specifically configured to determine the platform identification corresponding to the commodity identification if the commodity identification has been managed.

可选的,在本申请一些可能的实现方式中,所述管理单元1204,还用于若所述商品标识未托管,则生成第一订单标识,所述第一订单标识与所述目标程序中的第二订单标识相对应,所述第二订单标识基于所述交易指令生成;Optionally, in some possible implementations of the present application, the management unit 1204 is further configured to generate a first order identifier if the commodity identifier is not managed, and the first order identifier is the same as that in the target program. corresponding to the second order identifier, the second order identifier is generated based on the transaction instruction;

所述确定单元1203,还用于根据所述第一订单标识确定外部交易接口,所述外部交易接口为所述目标程序的交易接口;The determining unit 1203 is further configured to determine an external transaction interface according to the first order identifier, where the external transaction interface is the transaction interface of the target program;

所述管理单元1204,具体用于通过所述外部交易接口执行所述发货指令。The management unit 1204 is specifically configured to execute the delivery instruction through the external transaction interface.

可选的,在本申请一些可能的实现方式中,所述管理单元1204,还用于校验所述发货指令的执行情况;Optionally, in some possible implementations of the present application, the management unit 1204 is further configured to verify the execution of the delivery instruction;

所述管理单元1204,还用于若所述执行情况满足预设条件,则调用所述外部交易接口再次执行所述发货指令并设置到账提醒。The management unit 1204 is further configured to call the external transaction interface to execute the delivery instruction again and set an account receipt reminder if the execution situation satisfies a preset condition.

可选的,在本申请一些可能的实现方式中,所述预设条件基于所述发货指令的执行时间设定,所述管理单元1204,具体用于若所述执行时间达到预设时长,则调用所述外部交易接口再次执行所述发货指令。Optionally, in some possible implementation manners of the present application, the preset condition is set based on the execution time of the delivery instruction, and the management unit 1204 is specifically configured to, if the execution time reaches the preset time length, Then, the external transaction interface is invoked to execute the delivery instruction again.

可选的,在本申请一些可能的实现方式中,所述管理单元1204,具体用于遍历所述发货指令的执行记录;Optionally, in some possible implementation manners of the present application, the management unit 1204 is specifically configured to traverse the execution record of the delivery instruction;

所述管理单元1204,具体用于确定所述执行记录中所述发货指令的执行次数。The management unit 1204 is specifically configured to determine the execution times of the delivery instruction in the execution record.

可选的,在本申请一些可能的实现方式中,所述管理单元1204,还用于周期性通过检测接口向所述目标程序发送所述商品标识;Optionally, in some possible implementation manners of the present application, the management unit 1204 is further configured to periodically send the commodity identifier to the target program through a detection interface;

所述管理单元1204,还用于识别所述目标程序发送的反馈信息。The management unit 1204 is further configured to identify the feedback information sent by the target program.

可选的,在本申请一些可能的实现方式中,所述管理单元1204,还用于遍历所述平台标识与所述商品标识的对应关系,以确定匹配结果;Optionally, in some possible implementation manners of the present application, the management unit 1204 is further configured to traverse the corresponding relationship between the platform identifier and the commodity identifier to determine a matching result;

所述管理单元1204,还用于根据所述匹配结果控制所述目标交易接口的连通。The management unit 1204 is further configured to control the connection of the target transaction interface according to the matching result.

可选的,在本申请一些可能的实现方式中,其特征在于,所述管理单元1204,还用于确定所述目标程序中的虚拟商品;Optionally, in some possible implementation manners of the present application, the management unit 1204 is further configured to determine virtual goods in the target program;

所述管理单元1204,还用于根据所述目标程序中的虚拟商品生成商品信息并储存。The management unit 1204 is further configured to generate and store commodity information according to the virtual commodity in the target program.

可选的,在本申请一些可能的实现方式中,所述管理单元1204,还用于确定所述目标程序的托管情况;Optionally, in some possible implementations of the present application, the management unit 1204 is further configured to determine the hosting situation of the target program;

所述管理单元1204,还用于若所述目标程序未托管,则为所述目标程序中的虚拟商品生成协议接口,所述协议接口用于所述商品信息的交互。The management unit 1204 is further configured to generate a protocol interface for the virtual commodity in the target program if the target program is not managed, and the protocol interface is used for the interaction of the commodity information.

通过响应于至少一个虚拟商品的交易指令,获取交易指令对应的商品信息和用户信息;然后检测商品信息对应的平台标识,平台标识用于指示虚拟商品应用的目标程序;并根据平台标识确定目标交易接口;进而通过目标交易接口执行发货指令。从而实现了不同程序的虚拟商品的统一管理,由于不同程序的目标交易接口均通过平台标识关联,并进行统一管理,避免了由于交易协议不同而造成的交易接口调用的混乱,提高了虚拟商品交易过程的稳定性。Obtain commodity information and user information corresponding to the transaction instruction by responding to the transaction instruction of at least one virtual commodity; then detect the platform identifier corresponding to the commodity information, and the platform identifier is used to indicate the target program of the virtual commodity application; and determine the target transaction according to the platform identifier interface; and then execute the delivery instruction through the target transaction interface. In this way, the unified management of virtual commodities of different programs is realized. Since the target transaction interfaces of different programs are associated with platform identifiers and managed in a unified manner, the confusion of transaction interface calls caused by different transaction protocols is avoided, and virtual commodity transactions are improved. process stability.

本申请实施例还提供了一种终端设备,如图13所示,是本申请实施例提供的另一种终端设备的结构示意图,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该终端可以为包括手机、平板电脑、个人数字助理(personal digital assistant,PDA)、销售终端(point of sales,POS)、车载电脑等任意终端设备,以终端为手机为例:An embodiment of the present application further provides a terminal device. As shown in FIG. 13 , it is a schematic structural diagram of another terminal device provided by an embodiment of the present application. For the convenience of description, only the part related to the embodiment of the present application is shown. , if the specific technical details are not disclosed, please refer to the method part of the embodiments of the present application. The terminal may be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), a vehicle-mounted computer, etc. The terminal is a mobile phone as an example:

图13示出的是与本申请实施例提供的终端相关的手机的部分结构的框图。参考图13,手机包括:射频(radio frequency,RF)电路1310、存储器1320、输入单元1330、显示单元1340、传感器1350、音频电路1360、无线保真(wireless fidelity,WiFi)模块1370、处理器1380、以及电源1390等部件。本领域技术人员可以理解,图13中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 13 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present application. 13 , the mobile phone includes: a radio frequency (RF) circuit 1310 , a memory 1320 , an input unit 1330 , a display unit 1340 , a sensor 1350 , an audio circuit 1360 , a wireless fidelity (WiFi) module 1370 , and a processor 1380 , and the power supply 1390 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 13 does not constitute a limitation on the mobile phone, and may include more or less components than shown, or combine some components, or arrange different components.

下面结合图13对手机的各个构成部件进行具体的介绍:The following is a detailed introduction to each component of the mobile phone with reference to Figure 13:

RF电路1310可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1380处理;另外,将设计上行的数据发送给基站。通常,RF电路1310包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noiseamplifier,LNA)、双工器等。此外,RF电路1310还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(globalsystem of mobile communication,GSM)、通用分组无线服务(general packet radioservice,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。The RF circuit 1310 can be used for receiving and sending signals during transmission and reception of information or during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 1380; in addition, it sends the designed uplink data to the base station. Typically, the RF circuit 1310 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 1310 may also communicate with networks and other devices via wireless communications. The above wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (code division multiple access) , CDMA), wideband code division multiple access (WCDMA), long term evolution (long term evolution, LTE), email, short message service (short messaging service, SMS) and the like.

存储器1320可用于存储软件程序以及模块,处理器1380通过运行存储在存储器1320的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1320可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1320可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1320 can be used to store software programs and modules, and the processor 1380 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1320 . The memory 1320 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 1320 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

输入单元1330可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元1330可包括触控面板1331以及其他输入设备1332。触控面板1331,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1331上或在触控面板1331附近的操作,以及在触控面板1331上一定范围内的隔空触控操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1331可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1380,并能接收处理器1380发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1331。除了触控面板1331,输入单元1330还可以包括其他输入设备1332。具体地,其他输入设备1332可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 1330 may be used for receiving inputted numerical or character information, and generating key signal input related to user setting and function control of the mobile phone. Specifically, the input unit 1330 may include a touch panel 1331 and other input devices 1332 . The touch panel 1331, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 1331). operation, and air touch operation within a certain range on the touch panel 1331 ), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 1331 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 1380, and can receive the command sent by the processor 1380 and execute it. In addition, the touch panel 1331 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. Besides the touch panel 1331 , the input unit 1330 may also include other input devices 1332 . Specifically, other input devices 1332 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元1340可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1340可包括显示面板1341,可选的,可以采用液晶显示器(liquidcrystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板1341。进一步的,触控面板1331可覆盖显示面板1341,当触控面板1331检测到在其上或附近的触摸操作后,传送给处理器1380以确定触摸事件的类型,随后处理器1380根据触摸事件的类型在显示面板1341上提供相应的视觉输出。虽然在图13中,触控面板1331与显示面板1341是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1331与显示面板1341集成而实现手机的输入和输出功能。The display unit 1340 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1340 may include a display panel 1341, and optionally, the display panel 1341 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 1331 may cover the display panel 1341. When the touch panel 1331 detects a touch operation on or near it, it transmits the touch operation to the processor 1380 to determine the type of the touch event. Then the processor 1380 determines the type of the touch event according to the touch event. Type provides corresponding visual output on display panel 1341. Although in FIG. 13, the touch panel 1331 and the display panel 1341 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 1331 and the display panel 1341 can be integrated to form a Realize the input and output functions of the mobile phone.

手机还可包括至少一种传感器1350,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1341的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1341和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least one sensor 1350, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1341 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1341 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Repeat.

音频电路1360、扬声器1361,传声器1362可提供用户与手机之间的音频接口。音频电路1360可将接收到的音频数据转换后的电信号,传输到扬声器1361,由扬声器1361转换为声音信号输出;另一方面,传声器1362将收集的声音信号转换为电信号,由音频电路1360接收后转换为音频数据,再将音频数据输出处理器1380处理后,经RF电路1310以发送给比如另一手机,或者将音频数据输出至存储器1320以便进一步处理。The audio circuit 1360, the speaker 1361, and the microphone 1362 can provide an audio interface between the user and the mobile phone. The audio circuit 1360 can transmit the received audio data converted electrical signals to the speaker 1361, and the speaker 1361 converts them into sound signals for output; on the other hand, the microphone 1362 converts the collected sound signals into electrical signals, and the audio circuit 1360 converts the collected sound signals into electrical signals. After receiving, it is converted into audio data, and then the audio data is output to the processor 1380 for processing, and then sent to, for example, another mobile phone through the RF circuit 1310, or the audio data is output to the memory 1320 for further processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块1370可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图13示出了WiFi模块1370,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 1370. It provides users with wireless broadband Internet access. Although FIG. 13 shows the WiFi module 1370, it can be understood that it is not a necessary component of the mobile phone, and can be completely omitted as required within the scope of not changing the essence of the invention.

处理器1380是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1320内的软件程序和/或模块,以及调用存储在存储器1320内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1380可包括一个或多个处理单元;可选的,处理器1380可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1380中。The processor 1380 is the control center of the mobile phone, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 1320, and calling the data stored in the memory 1320. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. Optionally, the processor 1380 may include one or more processing units; optionally, the processor 1380 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs etc., the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1380.

手机还包括给各个部件供电的电源1390(比如电池),可选的,电源可以通过电源管理系统与处理器1380逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 1390 (such as a battery) for supplying power to various components. Optionally, the power supply can be logically connected to the processor 1380 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.

尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.

在本申请实施例中,该终端所包括的处理器1380还具有执行如上述页面处理方法的各个步骤的功能。In this embodiment of the present application, the processor 1380 included in the terminal also has the function of executing various steps of the above-mentioned page processing method.

本申请实施例中还提供一种计算机可读存储介质,该计算机可读存储介质中存储有虚拟商品管理指令,当其在计算机上运行时,使得计算机执行如前述图3至图11所示实施例描述的方法中虚拟商品管理装置所执行的步骤。Embodiments of the present application further provide a computer-readable storage medium, where virtual commodity management instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer executes the implementation as shown in the aforementioned FIG. 3 to FIG. 11 . Steps performed by the virtual commodity management device in the method described in the example.

本申请实施例中还提供一种包括虚拟商品管理指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如前述图3至图11所示实施例描述的方法中虚拟商品管理装置所执行的步骤。Embodiments of the present application also provide a computer program product including virtual commodity management instructions, which, when running on a computer, cause the computer to execute the methods described in the foregoing embodiments shown in FIGS. 3 to 11 in the virtual commodity management apparatus. steps to perform.

本申请实施例还提供了一种虚拟商品管理系统,所述虚拟商品管理系统可以包含图12所描述实施例中的虚拟商品管理装置,或者图13所描述的终端设备。An embodiment of the present application further provides a virtual commodity management system, and the virtual commodity management system may include the virtual commodity management apparatus in the embodiment described in FIG. 12 or the terminal device described in FIG. 13 .

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,虚拟商品管理装置,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-onlymemory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , which includes several instructions to make a computer device (which may be a personal computer, a virtual commodity management device, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, removable hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes.

以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions described in the embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the present application.