WO2024082565A1 - 游戏商品交易方法、装置、系统、电子设备和存储介质 - Google Patents

游戏商品交易方法、装置、系统、电子设备和存储介质 Download PDF

Info

Publication number
WO2024082565A1
WO2024082565A1 PCT/CN2023/086037 CN2023086037W WO2024082565A1 WO 2024082565 A1 WO2024082565 A1 WO 2024082565A1 CN 2023086037 W CN2023086037 W CN 2023086037W WO 2024082565 A1 WO2024082565 A1 WO 2024082565A1
Authority
WO
WIPO (PCT)
Prior art keywords
commodity
target
transaction
substitute
information
Prior art date
Application number
PCT/CN2023/086037
Other languages
English (en)
French (fr)
Inventor
凃益民
陆桂亮
陈烈冰
Original Assignee
网易(杭州)网络有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 网易(杭州)网络有限公司 filed Critical 网易(杭州)网络有限公司
Publication of WO2024082565A1 publication Critical patent/WO2024082565A1/zh

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories
    • A63F13/792Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories for payment purposes, e.g. monthly subscriptions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Definitions

  • the present disclosure relates to the field of Internet technology, and in particular to a game commodity trading method, device, system, electronic device and storage medium.
  • game users can trade game props and other goods with other users in the game through virtual property such as virtual game currency or virtual game goods.
  • the embodiments of the present disclosure provide a game commodity trading method, device, system, electronic device and storage medium, which can improve the efficiency of user commodity trading and reduce the background load of the game application when the game user wants to trade in the game.
  • an embodiment of the present disclosure provides a game commodity trading method, which is applied to a client and includes:
  • the replacement commodity transaction event information is received and displayed on the commodity transaction system page.
  • the present disclosure also provides a game commodity trading method, which is applied to a server and includes:
  • the commodity purchase request including target identification information of a target commodity to be purchased by operating the client;
  • a transaction is performed with the client based on the substitute commodity.
  • the present disclosure also provides a game commodity trading method, which is applied to a client and includes:
  • the client displays a commodity trading system page of the target game, wherein the commodity trading system page includes a commodity identification of at least one tradable commodity;
  • the client generates a commodity purchase request in response to the purchase operation of the target commodity, and sends the commodity purchase request to the server of the target game, wherein the commodity purchase request includes the target identification information of the target commodity that the client wants to purchase;
  • the server receives the commodity purchase request, obtains the target identification information from the commodity purchase request, and performs transaction validity verification on the target commodity based on the target identification information to determine whether the target commodity is in a tradable state in the commodity transaction system;
  • the server obtains target attribute information of the target commodity, and based on the target attribute information, selects a commodity that meets the purchase intention of the client from commodities in a tradable state in the commodity trading system as a replacement commodity;
  • the server performs a transaction with the client based on the substitute commodity and sends substitute commodity transaction event information to the client;
  • the client receives the substitute commodity transaction event information and displays it on the commodity transaction system page.
  • the present disclosure also provides a game commodity trading device, which is applied to a server and includes:
  • a page display unit used to display a commodity trading system page of a target game, wherein the commodity trading system page includes a commodity identification of at least one tradable commodity;
  • a request generating unit configured to generate a commodity purchase request in response to a purchase operation on a target commodity
  • a request sending unit configured to send the commodity purchase request to a server, trigger the server to respond to the commodity purchase request, select a substitute commodity for trading when the target commodity is in a non-tradable state, and send substitute commodity trading event information;
  • the information receiving unit is used to receive the substitute commodity transaction event information, and based on the substitute commodity transaction event information, display transaction success information in the commodity transaction system page.
  • the present disclosure also provides a game commodity trading device, which is applied to a server and includes:
  • a purchase request receiving unit configured to receive a commodity purchase request triggered by a commodity trading system page of a target game, wherein the commodity purchase request includes target identification information of a target commodity to be purchased by operating the client;
  • a validity verification unit configured to obtain the target identification information from the commodity purchase request, and perform transaction validity verification on the target commodity based on the target identification information to determine whether the target commodity is in a tradable state in the commodity transaction system;
  • an attribute information acquisition unit configured to acquire target attribute information of the target commodity if the target commodity is not in a tradable state
  • a substitute commodity selection unit configured to select, based on the target attribute information, a commodity that meets the purchase intention corresponding to the commodity purchase request from commodities in a tradable state in the commodity trading system as a substitute commodity;
  • a transaction unit is used to conduct a transaction with the client based on the substitute commodity.
  • the embodiments of the present disclosure further provide a game commodity trading system, the game commodity trading system comprising a client and a server;
  • the client is used to display a commodity trading system page of the target game, wherein the commodity trading system page includes a commodity identification of at least one tradable commodity;
  • the client is used to generate a commodity purchase request in response to a purchase operation on a target commodity, and send the commodity purchase request to a server of a target game, wherein the commodity purchase request includes target identification information of the target commodity to be purchased by operating the client;
  • the server is used to receive the commodity purchase request, obtain the target identification information from the commodity purchase request, and perform transaction validity verification on the target commodity based on the target identification information to determine whether the target commodity is in a tradable state in the commodity transaction system;
  • the server is used for, if the target commodity is not in a tradable state, obtaining target attribute information of the target commodity, and selecting, based on the target attribute information, a commodity that meets the purchase intention corresponding to the commodity purchase request from commodities in a tradable state in the commodity trading system as a replacement commodity;
  • the server is used to perform a transaction with the client based on the substitute commodity and send substitute commodity transaction event information to the client;
  • the client receives the replacement commodity transaction event information and displays it on the commodity transaction system page.
  • an embodiment of the present disclosure further provides an electronic device, comprising a memory and a processor; the memory stores an application, and the processor is used to run the application in the memory to execute the steps in any one of the game commodity trading methods provided in the embodiments of the present disclosure.
  • an embodiment of the present disclosure further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for a processor to load to execute the steps in any one of the game commodity trading methods provided in the embodiments of the present disclosure.
  • the embodiments of the present disclosure further provide a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps of any one of the game commodity trading methods provided in the embodiments of the present disclosure.
  • a commodity trading system page of the target game can be displayed, the commodity trading system page includes a commodity identification of at least one tradable commodity, generates a commodity purchase request in response to a purchase operation on the target commodity, sends the commodity purchase request to a server, triggers the server to respond to the commodity purchase request, selects a substitute commodity for trading when the target commodity is in a non-tradable state, sends substitute commodity trading event information, receives the substitute commodity trading event information, and displays it in the commodity trading system page; because in the embodiment of the present disclosure, when the target commodity that the user wants to purchase is not in a tradable state, a substitute commodity can be selected to trade with the user, thereby avoiding the influence of commodity information asynchrony caused by network delays and other reasons, reducing the frequency of transaction failures of game users, and reducing the number of requests for game users to refresh the commodity trading system page and re-select new commodities from the commodity trading system page for trading, which can improve the efficiency
  • FIG1 is a schematic diagram of a scenario of a game commodity trading method provided by one of the embodiments of the present disclosure
  • FIG2 is a flow chart of a game commodity trading method provided by one of the embodiments of the present disclosure.
  • FIG3 is a flow chart of another game commodity trading method provided by one of the embodiments of the present disclosure.
  • FIG4 is a schematic diagram of a game commodity transaction process provided by one of the embodiments of the present disclosure.
  • FIG5 is a flow chart of another game commodity trading method provided by one of the embodiments of the present disclosure.
  • FIG6 is another flow chart of a game commodity trading method provided by one of the embodiments of the present disclosure.
  • FIG7 is a schematic diagram of the structure of a game commodity trading device provided by one of the embodiments of the present disclosure.
  • FIG8 is a schematic diagram of the structure of another game commodity trading device provided by one of the embodiments of the present disclosure.
  • FIG9 is another structural schematic diagram of another game commodity transaction device provided by one of the embodiments of the present disclosure.
  • FIG. 10 is a schematic diagram of the structure of an electronic device provided by one of the embodiments of the present disclosure.
  • the embodiments of the present disclosure provide a game commodity trading method, device, electronic device and computer-readable storage medium. Specifically, the embodiments of the present disclosure provide a game commodity trading method applicable to a game commodity trading device, which can be integrated in an electronic device.
  • the electronic device may include terminals on the client side and other devices, including but not limited to mobile terminals and fixed terminals.
  • mobile terminals include but are not limited to smart phones, smart watches, tablet computers, laptops, smart car terminals, etc.
  • fixed terminals include but are not limited to desktop computers, smart TVs, etc.
  • the electronic device may also include devices such as servers.
  • the server may be an independent physical server, a server cluster or a 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, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms, but is not limited to these.
  • CDN Content Delivery Network
  • the game commodity transaction method of the disclosed embodiment may be implemented by a terminal or a server, or may be implemented by both a terminal and a server.
  • the following takes the method of game commodity trading implemented by the client and the server together as an example to illustrate the method.
  • the game commodity trading system provided by the embodiment of the present disclosure includes a client 10 and a server 20, etc.
  • the client 10 and the server 20 are connected via a network, such as a wired or wireless network connection, etc., wherein the client 10 can exist as a client that can run the target game.
  • the client 10 may be used to display a commodity trading system page of the target game, which includes a commodity identification of at least one tradable commodity.
  • the client 10 may generate a commodity purchase request in response to a purchase operation on the target commodity, and send the commodity purchase request to the server 20.
  • the server 20 may respond to the commodity purchase request, select a substitute commodity for trading when the target commodity is in a non-tradable state, and send substitute commodity trading event information to the client 10 .
  • the client 10 may receive the substitute commodity transaction event information and display it on the commodity transaction system page.
  • the specific process of the game commodity transaction method of this embodiment may be as follows:
  • 201 Display a commodity trading system page of a target game, where the commodity trading system page includes a commodity identification of at least one tradable commodity.
  • the target game is a game type application that provides a commodity trading function. It is understandable that the commodity trading function is only one function in the target game.
  • the target game can be a role-playing game, an action game, an adventure game, a racing game, etc., and the disclosed embodiment does not limit this.
  • the commodity trading system page is a display page of the commodity trading system provided in the target game.
  • Game users of the target game can trade through the commodity trading system in the client, such as exchanging their own props with props of other game users, purchasing props of other game users with virtual currency, etc.
  • game users can also sell their own props and other resources through the commodity trading system.
  • the commodity identification may be the commodity name, commodity price, etc. of the tradable commodity.
  • a commodity purchase request is generated.
  • the commodity purchase request may be generated by the client of the target game in response to a trigger operation in the commodity trading system page.
  • the client may send the commodity purchase request to the server of the target game for processing.
  • the target product is the product that the game user in the product trading system determines to purchase by operating the client.
  • the purchase intention of the game user can be obtained based on the triggering operation of the game user on the product trading system page.
  • the game user can perform a purchase operation on a certain product on the product trading system page of the client, and at this time, the product can be considered as the target product.
  • Send the commodity purchase request to the server trigger the server to respond to the commodity purchase request, select a substitute commodity for trading when the target commodity is in a non-tradable state, and send substitute commodity trading event information.
  • Commodities that have been traded through the commodity trading system can be considered as commodities that are not in a tradable state.
  • the commodity with a lower price can be automatically selected for trading.
  • the server that receives the commodity purchase request sent by the client finds that there is no target substitute commodity whose selling price is not higher than the target selling price among the substitute commodities that can be traded, the server may ask the client whether to increase the price to purchase.
  • the step of "sending the commodity purchase request to the server, triggering the server to respond to the commodity purchase request, selecting a substitute commodity for trading when the target commodity is in a non-tradable state, and sending substitute commodity trading event information" includes:
  • a commodity purchase request is sent to a server, triggering the server to send price increase transaction information when the target commodity is in a non-tradable state and the selling price of the first substitute commodity is higher than that of the target commodity, and the functional attribute value of the first substitute commodity is the same as the target functional attribute value of the target commodity.
  • the price increase transaction information may include the specific price of the first substitute product, the unit price difference between the first substitute product and the target product, and/or the total price difference between the first substitute product and the target product, etc.
  • the client of the target game may display prompt information related to the price increase transaction information.
  • the game commodity transaction method provided by the embodiment of the present disclosure may further include:
  • Receive price increase transaction information and display a price increase transaction control on a commodity trading system page based on the price increase transaction information;
  • a transaction request is sent to the server, triggering the server to conduct a transaction based on the first substitute commodity and send substitute commodity transaction success information.
  • the price increase transaction control may include a sub-control that can be triggered to agree to the transaction and a sub-control that can be triggered to reject the transaction, etc.
  • the client can directly display a prompt message of transaction failure and send a transaction rejection message to the server so that the server can stop the transaction.
  • the server corresponding to the client may prompt relevant information of the successful transaction.
  • the step of "receiving substitute commodity transaction event information and displaying it on the commodity transaction system page" may specifically include:
  • the transaction success information of the substitute commodity may be used to prompt the client that the transaction has been completed, or the transaction success information may also be used to prompt that the first substitute commodity has been selected for transaction.
  • the replacement commodity transaction success information can be directly displayed.
  • the client may generate a successful transaction prompt based on the successful transaction information of the substitute commodity, and the content and form of the successful transaction prompt are not limited.
  • the successful transaction prompt may be in the form of a control, and the successful transaction prompt may also include a detail viewing control so that the transaction time, transaction quantity, commodity sold user and other transaction details can be viewed through operation; or the successful transaction prompt may also include an interface jump control, through which the client interface can jump to the game scene before the game user conducts the transaction, or jump to the game scene where the first substitute commodity can be used, and so on.
  • the server can directly select the target commodity for trading and send a commodity trading success message to prompt the server to complete the transaction based on the target commodity.
  • the client can receive the commodity trading success message and display it on the commodity trading system page.
  • the client by purchasing game prop A on the commodity trading system page of the client, the client generates a commodity purchase request for game prop A and sends the commodity purchase request to the server.
  • the server After receiving the commodity purchase request, the server detects that game prop A is in a tradable state among the tradable commodities, and then the server can directly select game prop A for trading and send on-screen transaction success information for game prop A.
  • the client can receive the commodity transaction success information and display it on the commodity trading system page.
  • the substitute commodity transaction event information may be information related to any event that occurs during the substitute commodity transaction process.
  • the substitute commodity transaction event information may include information for prompting the client that the transaction has been completed.
  • the server may prompt the client whether to use the substitute product for the transaction through the substitute product transaction event information; further, if the client refuses to use the substitute product for the transaction, the substitute product transaction event information may include information for prompting the failure of the transaction, etc.
  • the substitute commodity transaction event information may also include commodity attribute information of the substitute commodity, such as functional attribute value, price, quantity, etc. of the substitute commodity.
  • the step of "sending a product purchase request to the server, triggering the server to respond to the product purchase request, selecting a substitute product for trading when the target product is in a non-tradable state, and sending substitute product trading event information" may specifically include:
  • a commodity purchase request is sent to a server, triggering the server to send transaction selection information when the target commodity is in a non-tradable state and only a second alternative commodity is tradable, and the functional attribute value of the second alternative commodity is different from the target functional attribute value of the target commodity, or the functional attribute value of the second alternative commodity is the same as the target functional attribute value and the selling price is higher than the target commodity.
  • the commodities in a tradable state there may be a second substitute commodity whose target function effect corresponding to the target function attribute value is the same as or better than the target commodity but the selling price is higher; or, a second substitute commodity whose target function effect corresponding to the target function attribute value is worse than the target commodity but the selling price is lower; or, a second substitute commodity whose target function effect is worse than the target commodity but the functional effects in other attributes are better than the target commodity.
  • the functional attribute values of the plurality of second substitute commodities and the difference between the selling prices and the target commodity may be sent to the client for reference by the client.
  • the game commodity transaction method provided by the embodiment of the present disclosure may further include:
  • a transaction request is sent to the server, triggering the server to conduct a transaction based on the second substitute commodity and send substitute commodity transaction success information.
  • the transaction selection information may include relevant information such as attribute values of one or more second substitute commodities, and the transaction selection controls displayed on the client may correspond to respective second substitute commodities.
  • the client can determine a specific second substitute commodity to be traded from a plurality of second substitute commodities to trade with the server.
  • the disclosed embodiment can display the commodity trading system page of the target game, the commodity trading system page includes a commodity identification of at least one tradable commodity, generates a commodity purchase request in response to a purchase operation on the target commodity, sends the commodity purchase request to the server, triggers the server to respond to the commodity purchase request, selects a substitute commodity for trading and sends substitute commodity trading event information when the target commodity is in a non-tradable state, receives the substitute commodity trading event information, and displays transaction success information in the commodity trading system page based on the substitute commodity trading event information; because in the disclosed embodiment, when the target commodity that the user wants to purchase is not in a tradable state, a substitute commodity can be selected to trade with the user, thereby avoiding the influence of commodity information asynchrony caused by network delays and other reasons, reducing the frequency of transaction failures of game users, and reducing the number of requests for game users to refresh the commodity trading system page and re-select new commodities from the commodity trading system page for trading, which can
  • the specific process of the game commodity transaction method of this embodiment may be as follows:
  • 301 Receive a commodity purchase request triggered by a commodity trading system page of a target game, where the commodity purchase request includes target identification information of a target commodity to be purchased by operating a client.
  • the target identification information is information that can distinguish the target commodity from other commodities in the commodity trading system.
  • the target identification information can be a unique number of the target commodity in the commodity trading system, or the target identification information can be a group of information consisting of the commodity name of the target commodity, the user number of the selling user, etc.
  • the commodity trading system page may include commodities that can be triggered by users, and these commodities may be commodities that are listed by commodity sellers through the commodity trading system.
  • the selling user can set the quantity, price, etc. of the goods through the commodity trading system when selling goods.
  • some goods may not be allowed to be sold due to game rules. Therefore, the commodity trading system can verify the validity of the goods listed by the selling user. If the goods pass the validity verification, they will be displayed on the commodity trading system page.
  • Target identification information from the commodity purchase request, and perform transaction validity verification on the target commodity based on the target identification information to determine whether the target commodity is in a tradable state in the commodity trading system.
  • the commodity purchase request may also include other information, such as but not limited to the request generation time, user information of the game user who initiated the request, etc.
  • the technicians can set the information included in the commodity purchase request according to the actual application.
  • the transaction validity verification may be to search for the target commodity corresponding to the target identification information from all commodities that have been listed in the commodity trading system, and then determine the current status of the target commodity.
  • all commodities that have been listed in the commodity trading system may include commodities that are in a tradable state in the commodity trading system, commodities that have completed transactions through the commodity trading system, and commodities that have not completed transactions through the commodity trading system but have been removed from the shelves by the sellers themselves or automatically removed from the shelves by the commodity trading system.
  • the transaction validity verification may be to search for target commodities corresponding to the target identification information among commodities in the commodity trading system that are in a tradable state.
  • the tradable state refers to the state in which the commodity can be purchased, exchanged, etc. by the client in the commodity trading system.
  • the transaction can be directly conducted with the client based on the target product.
  • the target product is not in a tradable state, obtain target attribute information of the target product.
  • the attribute information of the product can be stored in the client device for the user to view. Therefore, when the target game generates a product purchase request, the target attribute information of the target product stored in the product trading system can be directly added to the product purchase request. When obtaining the target attribute information of the target product, the product purchase request can be parsed to obtain the target attribute information.
  • the client device may not store or only store all or part of the attribute information of some products.
  • the target attribute information of the target product in order to ensure the accuracy and reliability of the target attribute information, the target attribute information of the target product can be searched from the game background of the target game according to the target identification information.
  • the target attribute information may be all information related to the target product, including but not limited to the target product's sales user information, type, quantity, sales price, and parameters of the functional effects that the target product can achieve.
  • the target attribute information may be information related only to the target product transaction, such as type, quantity, sales price, and parameters of the functional effects that the target product can achieve.
  • the parameters of the functional effects that the target product can achieve may include, but are not limited to, the parameters of the gain or loss effects that the target product brings to the health, attack power, defense power, etc. of the game character, etc.
  • a commodity that meets the purchase intention corresponding to the commodity purchase request is selected from commodities in a tradable state in the commodity trading system as a replacement commodity.
  • the substitute product is a product that replaces the target product and is traded with the client.
  • the commodity that meets the client's purchasing intention may be other commodities sold by the selling user of the target commodity among the commodities in a tradable state in the commodity trading system, or may be commodities required by the game user automatically determined based on the current game scene of the game character operated by the game user.
  • the target product selected by the game user through operating the client is of the treatment type, it can be predicted that the purchase intention corresponding to the product purchase request is to purchase treatment-type products.
  • the treatment-type products in the tradable state in the product trading system can be used as substitute products.
  • the accuracy of selecting substitute commodities can be improved by matching attribute information.
  • the step of "selecting commodities that meet the purchase intention corresponding to the commodity purchase request from commodities in a tradable state in the commodity trading system as substitute commodities based on the target attribute information" can specifically include:
  • a commodity matching the target attribute information is selected from commodities in a tradable state in the commodity trading system as a replacement commodity.
  • matching with the target attribute information may mean that the attribute information of the commodity is completely identical to the target attribute information, or that the attribute information of the commodity satisfies a matching condition determined based on the target attribute information.
  • the matching condition determined based on the target attribute information may be that the commodity types of the commodity and the target commodity match, and the difference between the attribute values of the commodity and the target commodity does not exceed a preset difference range.
  • the target attribute information may include the target attribute type and the target attribute value
  • the step of "selecting, based on the target attribute information, a commodity matching the target attribute information from commodities in a tradable state as a replacement commodity" may specifically include:
  • the attribute value of the first candidate product is obtained, and the first candidate product whose attribute value difference with the target attribute value is within a preset difference range is used as a replacement product.
  • matching the target attribute type may mean that the attribute type of the commodity is exactly the same as the target attribute type.
  • the target attribute type may include types with different hierarchical relationships, and matching the target attribute type may be matching types at any level in the target attribute type.
  • treatment subtype 1 and treatment subtype 2 may be set under the treatment type, and the target attribute type may be treatment subtype 1 under the treatment type.
  • Matching the target attribute type may mean that the product only needs to belong to the treatment type, or may mean that the attribute type of the product must be treatment subtype 1 under the treatment type.
  • the preset difference range may be 0, that is, there is no difference between the attribute value and the target attribute value, and the attribute value of the substitute product is exactly the same as the target attribute value of the target product.
  • the preset difference range may be an interval range, and there may be a certain difference between the attribute value of the substitute product and the target attribute value of the target product.
  • the preset difference range may be set by a technician, or may be set by the user in the target game by operating the client, and this embodiment of the present disclosure does not limit this.
  • the target attribute value may include parameters describing the target commodity from different dimensions.
  • the target attribute value may include a target quantity and a target associated attribute value
  • the attribute value of the first candidate commodity may include the tradable quantity of the first candidate commodity and the associated attribute value of the first candidate commodity.
  • the target quantity may be a description of the target product from the perspective of transaction quantity, and the target-associated attribute value may be an attribute parameter of other dimensions in the target attribute value except the target quantity, such as product price, product validity period, etc.
  • the tradable quantity can be a description of the first candidate product from the dimension of the tradable quantity
  • the target-associated attribute value can be an attribute parameter of other dimensions in the attribute value of the first candidate product except the tradable quantity, such as the product price, parameters of the functional effects that the first candidate product can achieve, etc.
  • the product transaction can be directly carried out, and the step of "obtaining the attribute value of the first candidate product, and taking the first candidate product whose attribute value difference with the target attribute value is within a preset difference range as a replacement product" can specifically include:
  • the first candidate product is used as a replacement product.
  • the step of "conducting a transaction with a client based on a substitute product” may include:
  • the transaction is conducted with the client based on the tradable quantity of the substitute commodity.
  • the tradable quantity may be the same as or different from the quantity of the target commodity that the client actually wants to purchase, and the disclosed embodiment does not limit this.
  • the quantity of the substitute commodity traded with the client is less than or equal to the quantity of the target commodity.
  • the product trading system can split the selling user's product into the smallest unit. Therefore, the products that the user who buys the product can see through the product trading system can all be in the smallest unit state and the selling price of the target product is the unit price.
  • the commodity purchase request sent by the client may include commodity attribute values, unit price, quantity, etc.
  • the commodity trading system may implement the principle of paying as quickly as possible, that is, the quantity of the traded commodity may be less than or equal to the purchase quantity of the purchase intention corresponding to the commodity purchase request.
  • the number of first candidate products that meet the purchase intention corresponding to the product purchase request may be less than the target number that the client wants to purchase. In this case, the client can choose whether to trade the substitute products with insufficient quantity.
  • the step "if the associated attribute value of the first candidate product is the same as the target associated attribute value, use the first candidate product as a substitute product" may include:
  • the first candidate commodity is used as a replacement commodity.
  • the first candidate product may be a product whose quantity is less than the target quantity but whose other attribute values are the same as those of the target product.
  • the client may be prompted to confirm whether to purchase some of the products.
  • the step of "trading with the client based on the tradable quantity of the alternative product" may specifically include:
  • the transaction quantity difference may be the difference between the tradable quantity and the target quantity.
  • the transaction selection control may also include, but is not limited to, a transaction confirmation control, a transaction rejection control, and/or a quantity selection control for the client to select a specific transaction quantity.
  • the number of target products of the purchase intention corresponding to the product purchase request may be 10, but the number of alternative products is only 8.
  • the client may be prompted that the transaction quantity difference is 2, and the client may choose not to trade, or may choose 1-8 alternative products for trading.
  • substitute goods may be goods sold by the same goods selling user, or may be goods sold by multiple goods selling users, and the embodiments of the present disclosure are not limited to this.
  • the number of target commodities of purchase intention may be 10, and the substitute commodities may include 3 substitute commodities sold by commodity selling user 1, 5 substitute commodities sold by commodity selling user 2, and there are no other substitute commodities among the commodities in the tradable state.
  • the quantity of the target commodity that may be purchased is less than the quantity of the substitute commodities that a commodity seller sells in a package at one time.
  • the commodity seller may be prompted whether to sell the commodity separately. That is, the target attribute value may include the target quantity and the target associated attribute value, and the attribute value of the first candidate commodity may include the packaged transaction quantity of the first candidate commodity and the associated attribute value of the first candidate commodity;
  • the step of “obtaining the attribute value of the first candidate product, and taking the first candidate product whose attribute value difference with the target attribute value is within a preset difference range as a replacement product” includes:
  • the first candidate product is used as a replacement product
  • the first candidate product may be a product whose quantity is greater than the target quantity but whose other attribute values are the same as those of the target product.
  • the product selling user may be prompted to confirm whether to split and sell the products that he originally wanted to sell in one package.
  • the step "trading with the client based on the alternative product" may specifically include:
  • split transaction information Based on the substitute product, sending split transaction information to a client corresponding to the user selling the substitute product, the split transaction information including the target quantity, triggering the client to display a split transaction selection control including the target quantity based on the split transaction information;
  • the split transaction selection control may include, in addition to the target quantity, also include but is not limited to a split transaction confirmation control and/or a split transaction rejection control.
  • the number of substitute commodities that the commodity selling user wants to sell may be 20, but the number of target commodities corresponding to the purchase intention is only 15.
  • the commodity selling user can be prompted that a certain user wants to purchase 15 commodities, and the commodity selling user can choose to make or not make the transaction.
  • substitute goods may be goods sold by the same goods selling user, or may be goods sold by multiple goods selling users, and the embodiments of the present disclosure are not limited to this.
  • the number of target commodities corresponding to the purchase intention may be 15, and the substitute commodities may include 5 substitute commodities sold by commodity selling user 1, 20 substitute commodities sold by commodity selling user 2, and there are no other substitute commodities among the commodities in the tradable state.
  • the client can be asked whether the commodity can be split and sold from the commodity seller 2. If the commodity seller 2 refuses to split and sell, the client can be asked whether it wants to purchase some of the commodities.
  • the transaction can be directly performed with the client based on the first candidate commodity.
  • the target attribute value can include a target selling price and a target functional attribute value
  • the attribute value can include a selling price and a functional attribute value.
  • a transaction is performed with the client based on the target substitute commodity.
  • the functional attribute value is used to describe the parameters of the functional effect that the substitute product can achieve.
  • the functional attribute value may include but is not limited to the health value gain, attack power gain, defense power gain and/or treatment value of each substitute product.
  • the target functional attribute value is used to describe the parameters of the functional effect that the target product can achieve.
  • the target alternative product can be directly used to trade with the client.
  • the client may be asked whether to increase the price to purchase. That is, the game commodity transaction method provided by the embodiment of the present disclosure may further include:
  • a transaction request generated by operating a price increase transaction selection control in the client is received, and a transaction is performed with the client based on the transaction request and the first substitute commodity.
  • the client may be prompted that the transaction has failed.
  • the client may be prompted whether to trade this type of goods. That is, the target attribute value includes the target selling price and the target functional attribute value, the attribute value includes the selling price and the functional attribute value, and the step of "trading with the client based on the alternative goods" may specifically include:
  • a transaction request generated by operating a transaction selection control in the client is received, and a transaction is performed with the client based on the transaction request and the second substitute commodity.
  • the commodities in a tradable state there may be a second substitute commodity whose target function effect corresponding to the target function attribute value is the same as or better than the target commodity but the selling price is higher; or, a second substitute commodity whose target function effect corresponding to the target function attribute value is worse than the target commodity but the selling price is lower; or, a second substitute commodity whose target function effect is worse than the target commodity but the functional effects in other attributes are better than the target commodity.
  • the functional attribute values of the plurality of second substitute commodities and the difference between the selling prices and the target commodity may be sent to the client for reference by the client.
  • the client can select a second alternative commodity to be traded in the transaction selection control.
  • a product that meets certain similarity conditions with the target product can be selected from the substitute products as the second substitute product. For example, it can be limited that the difference between one or some functional attribute values of the second substitute product and the target functional attribute value cannot be higher or lower than a specific value, etc.
  • the commodities in the commodity trading system that are in a tradable state may be refreshed, and the state of the commodities being sold may be updated to be not in a tradable state, etc.
  • the disclosed embodiment can receive a commodity purchase request triggered by a commodity trading system page of a target game, the commodity purchase request includes target identification information of a target commodity to be purchased by operating a client, the target identification information is obtained from the commodity purchase request, and the transaction validity of the target commodity is verified based on the target identification information to determine whether the target commodity is in a tradable state in the commodity trading system.
  • the target attribute information of the target commodity is obtained, and based on the target attribute information, a commodity that meets the purchase intention corresponding to the commodity purchase request is selected from the commodities in the tradable state in the commodity trading system as a substitute commodity, and the transaction is conducted with the client based on the substitute commodity; because in the disclosed embodiment, when the target commodity that the user wants to purchase is not in a tradable state, a commodity that meets the user's purchase intention is selected from the commodities in the tradable state in the commodity trading system to trade with the user, thereby avoiding the influence of asynchronization of commodity information caused by network delays and other reasons, reducing the frequency of transaction failures of game users, and reducing the number of requests for game users to refresh the commodity trading system page and re-select new commodities from the commodity trading system page for trading, which can improve the efficiency of game users in commodity trading and reduce the background load of game applications.
  • the specific process of the game commodity transaction method of this embodiment may be as follows:
  • the client displays a commodity trading system page of the target game, where the commodity trading system page includes a commodity identifier of at least one tradable commodity.
  • the client generates a commodity purchase request in response to the purchase operation of the target commodity, and sends the commodity purchase request to the server of the target game.
  • the commodity purchase request includes target identification information of the target commodity to be purchased by the client.
  • the server receives the commodity purchase request, obtains target identification information from the commodity purchase request, and performs transaction validity verification on the target commodity based on the target identification information to determine whether the target commodity is in a tradable state in the commodity transaction system.
  • the server obtains target attribute information of the target commodity, and based on the target attribute information, selects a commodity that meets the purchase intention corresponding to the commodity purchase request from commodities in a tradable state in the commodity trading system as a replacement commodity.
  • the server conducts a transaction with the client based on the substitute product and sends substitute product transaction event information to the client.
  • the server may refer to the process of selecting the target substitute commodity, the first substitute commodity or the second substitute commodity for transaction in the aforementioned embodiment, which will not be described in detail in the embodiment of the present disclosure.
  • the client receives the replacement commodity transaction event information and displays it on the commodity transaction system page.
  • the embodiments of the present disclosure can avoid the impact of product information asynchrony caused by network delays and other reasons, reduce the frequency of transaction failures of game clients, and reduce the number of requests for game clients to refresh the product trading system page and re-select new products from the product trading system page for trading. This can improve the efficiency of game clients in conducting product transactions and reduce the background load of game applications.
  • the game commodity transaction method of this embodiment may have the following specific process:
  • the client generates a product listing request in response to a product listing operation of a product selling user in a product trading system page of a target game, and sends the product listing request to a server.
  • the server receives a product listing request, and performs product validity verification based on the product listing request. If the product corresponding to the product listing request passes the product validity verification, the product corresponding to the product listing request is added to the product trading system as a tradable product.
  • the user who sells the goods puts the goods on the shelf
  • the server verifies the validity of the goods on the server side. After successful verification, the goods are added to the goods in the tradable state in the commodity trading system.
  • the client generates a product purchase request in response to the purchase operation on the target product, and sends the product purchase request to the server.
  • the server receives a commodity purchase request triggered by a commodity trading system page of a target game, where the commodity purchase request includes target identification information of a target commodity that the client wants to purchase.
  • the user enters the commodity trading system page through the client, selects and purchases the commodity, and can submit the transaction data to the server for validity verification.
  • the server obtains the target identification information from the commodity purchase request, and performs transaction validity verification on the target commodity based on the target identification information to determine whether the target commodity is in a tradable state in the commodity transaction system.
  • the target product is in a tradable state in the product trading system, it can be purchased directly. After the purchase is successful, the products in the tradable state in the product trading system can be updated.
  • the server obtains target attribute information of the target product.
  • the server selects a commodity matching the target attribute information from the commodities in the commodity trading system that are in a tradable state as a replacement commodity.
  • the target commodity is not in a tradable state in the commodity trading system (the commodity has expired)
  • all the attribute information of the commodity purchased by the buyer can be extracted, and a commodity that fully meets the buyer's purchasing intention can be found as a substitute among the tradable commodities in the commodity trading system, and the transaction is completed.
  • the server conducts a transaction with the client based on the substitute goods.
  • the disclosed embodiment can select a commodity that meets the user's purchase intention from the commodities in the commodity trading system that are in a tradable state to trade with the user when the target commodity that the user wants to purchase is not in a tradable state. Therefore, the influence of asynchrony of commodity information caused by network delays and other reasons is avoided, the frequency of transaction failures of game users is reduced, and the number of requests for game users to refresh the commodity trading system page and re-select new commodities from the commodity trading system page for trading is reduced, which can improve the efficiency of game users in commodity trading and reduce the background load of game applications.
  • the embodiment of the present disclosure also provides a game commodity trading device.
  • the device comprises:
  • a page display unit 701 is used to display a commodity trading system page of a target game, wherein the commodity trading system page includes a commodity identification of at least one tradable commodity;
  • the request generating unit 702 is used to generate a commodity purchase request in response to a purchase operation on a target commodity
  • the request sending unit 703 is used to send the commodity purchase request to the server, trigger the server to respond to the commodity purchase request, select a substitute commodity for trading when the target commodity is in a non-tradable state, and send the substitute commodity trading event information;
  • the information receiving unit 704 is used to receive the replacement commodity transaction event information, and display the transaction success information in the commodity transaction system page based on the replacement commodity transaction event information.
  • the request sending unit 703 is used to send a commodity purchase request to the server, triggering the server to send price increase transaction information when the target commodity is in a non-tradable state and the selling price of the first substitute commodity is higher than that of the target commodity, and the functional attribute value of the first substitute commodity is the same as the target functional attribute value of the target commodity;
  • the game commodity transaction device provided by the embodiment of the present disclosure further includes a price increase transaction selection unit, which is used to receive price increase transaction information and display a price increase transaction control in the commodity transaction system page based on the price increase transaction information;
  • the information receiving unit 704 is used to receive the replacement commodity transaction success information, and based on the replacement commodity transaction success information, display the transaction success information in the commodity transaction system page.
  • the request sending unit 703 is used to send a commodity purchase request to the server, triggering the server to send transaction selection information when the target commodity is in a non-tradable state and only a second substitute commodity is tradable, and the functional attribute value of the second substitute commodity is different from the target functional attribute value of the target commodity, or the functional attribute value of the second substitute commodity is the same as the target functional attribute value and the selling price is higher than the target commodity;
  • the game commodity transaction device provided by the embodiment of the present disclosure further includes a transaction selection unit, which is used to receive transaction selection information and display a transaction selection control in the commodity transaction system page based on the transaction selection information;
  • a transaction request is sent to the server, triggering the server to perform a transaction based on the second substitute commodity and send substitute commodity transaction success information;
  • the information receiving unit 704 is used to receive the replacement commodity transaction success information, and based on the replacement commodity transaction success information, display the transaction success information in the commodity transaction system page.
  • the embodiment of the present disclosure also provides a game commodity trading device.
  • the device comprises:
  • the purchase request receiving unit 801 may be used to receive a commodity purchase request triggered by a commodity trading system page of a target game, wherein the commodity purchase request may include target identification information of a target commodity to be purchased by operating the client;
  • the validity verification unit 802 may be used to obtain target identification information from the commodity purchase request, and perform transaction validity verification on the target commodity based on the target identification information to determine whether the target commodity is in a tradable state in the commodity transaction system;
  • the attribute information acquisition unit 803 may be used to acquire target attribute information of the target commodity if the target commodity is not in a tradable state;
  • the substitute commodity selection unit 804 may be configured to select, based on the target attribute information, a commodity that meets the purchase intention corresponding to the commodity purchase request from commodities in a tradable state in the commodity trading system as a substitute commodity;
  • the transaction unit 805 may be used to conduct transactions with the client based on the substitute goods.
  • the substitute commodity selection unit may be configured to select, based on the target attribute information, a commodity matching the target attribute information from commodities in a tradable state in the commodity trading system as a substitute commodity.
  • the target attribute information may include a target attribute type and a target attribute value
  • the alternative commodity selection unit 804 may be used to select, based on the target attribute type, a commodity matching the target attribute type from commodities in a tradable state as a first candidate commodity
  • the attribute value of the first candidate product is obtained, and the first candidate product whose attribute value difference with the target attribute value is within a preset difference range is used as a replacement product.
  • the target attribute value may include a target selling price and a target functional attribute value
  • the attribute value may include a selling price and a functional attribute value
  • the transaction unit 805 may be configured to determine, based on the functional attribute value of the substitute product, a first substitute product having the same functional attribute value as the target functional attribute value from the substitute products;
  • a transaction is performed with the client based on the target substitute commodity.
  • the game commodity transaction device provided by the embodiment of the present disclosure further includes a price increase transaction unit 806, which is used to send price increase transaction information to the client if there is no target substitute commodity whose selling price is not higher than the target selling price in the first substitute commodity, and trigger the client to display a price increase transaction selection control based on the price increase transaction information;
  • a transaction request generated by operating a price increase transaction selection control in the client is received, and a transaction is performed with the client based on the transaction request and the first substitute commodity.
  • the target attribute value may include a target quantity and a target associated attribute value
  • the attribute value of the first candidate commodity may include a tradable quantity of the first candidate commodity and an associated attribute value of the first candidate commodity
  • the substitute commodity selection unit 804 may be used to obtain the tradable quantity of the first candidate commodity and the associated attribute value of the first candidate commodity;
  • the first candidate commodity is used as a substitute commodity
  • the transaction unit 805 may be used to conduct transactions with the client based on the tradable quantity of the substitute commodity.
  • the target attribute value includes a target selling price and a target functional attribute value
  • the attribute value includes a selling price and a functional attribute value
  • the transaction unit 805 is used to determine, based on the functional attribute value of the substitute product, a second substitute product from the substitute product whose functional attribute value is different from the target functional attribute value, or whose functional attribute value is the same as the target functional attribute value and whose selling price is higher than the target selling price;
  • a transaction request generated by operating the transaction selection control in the client is received, and a transaction is performed with the client based on the transaction request and the second substitute commodity.
  • a commodity purchase request triggered by the commodity trading system page of the target game can be received, the commodity purchase request includes the target identification information of the target commodity that the client wants to purchase, the target identification information is obtained from the commodity purchase request, and the transaction validity of the target commodity is verified based on the target identification information to determine whether the target commodity is in a tradable state in the commodity trading system.
  • the target attribute information of the target commodity is obtained, and based on the target attribute information, a commodity that meets the client's purchase intention is selected from the commodities in the tradable state in the commodity trading system as a substitute commodity, and the transaction is conducted with the client based on the substitute commodity; because in the present embodiment, when the target commodity that the client wants to purchase is not in a tradable state, a commodity that meets the client's purchase intention is selected from the commodities in the tradable state in the commodity trading system to trade with the client, thereby avoiding the influence of the asynchronization of commodity information caused by network delays and other reasons, reducing the frequency of transaction failures of the game client, and reducing the number of requests for the game client to refresh the commodity trading system page and re-select new commodities from the commodity trading system page for trading, which can improve the efficiency of the game client in commodity trading and reduce the background load of the game application.
  • the embodiment of the present disclosure also provides a game commodity trading system.
  • the game commodity trading system includes a client 10 and a server 20;
  • the client 10 is used to display a commodity trading system page of the target game, wherein the commodity trading system page includes a commodity identification of at least one tradable commodity;
  • the client 10 is used to generate a commodity purchase request in response to a purchase operation on a target commodity, and send the commodity purchase request to a server of a target game, wherein the commodity purchase request includes target identification information of the target commodity to be purchased by operating the client;
  • the server 20 is used to receive a commodity purchase request, obtain target identification information from the commodity purchase request, and perform transaction validity verification on the target commodity based on the target identification information to determine whether the target commodity is in a tradable state in the commodity transaction system;
  • the server 20 is used to obtain target attribute information of the target commodity if the target commodity is not in a tradable state, and select a commodity that meets the purchase intention corresponding to the commodity purchase request from commodities in a tradable state in the commodity trading system based on the target attribute information as a replacement commodity;
  • the server 20 is used to trade with the client based on the substitute commodity and send substitute commodity transaction event information to the client;
  • the client 20 receives the substitute commodity transaction event information and displays it on the commodity transaction system page.
  • the client 10 may be provided with a game commodity transaction device applicable to the client 10 ; the server 20 may be provided with a game commodity transaction device applicable to the server 20 .
  • an embodiment of the present application also provides a computer device, which can be a terminal or a server.
  • Figure 10 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application.
  • the computer device 1000 includes a processor 1001 having one or more processing cores, a memory 1002 having one or more computer-readable storage media, and a computer program stored in the memory 1002 and executable on the processor.
  • the processor 1001 is electrically connected to the memory 1002.
  • the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or combine certain components, or arrange different components.
  • Processor 1001 is the control center of computer device 1000. It uses various interfaces and lines to connect various parts of the entire computer device 1000, executes various functions of computer device 1000 and processes data by running or loading software programs and/or modules stored in memory 1002, and calling data stored in memory 1002, thereby monitoring computer device 1000 as a whole.
  • the processor 1001 in the computer device 1000 will load instructions corresponding to the processes of one or more application programs into the memory 1002 according to the following steps, and the processor 1001 will run the application programs stored in the memory 1002 to implement various functions:
  • the commodity trading system page including a commodity identification of at least one tradable commodity
  • sending a commodity purchase request to a server, triggering the server to respond to the commodity purchase request, selecting a substitute commodity for trading when the target commodity is in a non-tradable state, and sending substitute commodity trading event information include:
  • the method further includes:
  • Receive price increase transaction information and display a price increase transaction control on a commodity trading system page based on the price increase transaction information;
  • sending a commodity purchase request to a server, triggering the server to respond to the commodity purchase request, selecting a substitute commodity for trading when the target commodity is in a non-tradable state, and sending substitute commodity trading event information include:
  • the method further includes:
  • a transaction request is sent to the server, triggering the server to conduct a transaction based on the second substitute commodity and send substitute commodity transaction success information.
  • the processor 1001 in the computer device 1000 may load instructions corresponding to one or more application programs into the memory 1002 according to the following steps, and the processor 1001 may run the application programs stored in the memory 1002 to implement various functions:
  • the commodity purchase request including target identification information of a target commodity to be purchased by operating a client;
  • target identification information from a commodity purchase request, and verifying the transaction validity of the target commodity based on the target identification information to determine whether the target commodity is in a tradable state in the commodity trading system;
  • a commodity that meets the purchase intention corresponding to the commodity purchase request is selected from commodities in a tradable state in the commodity trading system as a replacement commodity;
  • selecting a commodity that meets the purchase intention corresponding to the commodity purchase request from commodities in a tradable state in the commodity trading system as a replacement commodity includes:
  • a commodity matching the target attribute information is selected from commodities in a tradable state in the commodity trading system as a replacement commodity.
  • the target attribute information includes a target attribute type and a target attribute value, and based on the target attribute information, selecting a commodity matching the target attribute information from commodities in a tradable state as a replacement commodity includes:
  • the attribute value of the first candidate product is obtained, and the first candidate product whose attribute value difference with the target attribute value is within a preset difference range is used as a replacement product.
  • the target attribute value includes a target selling price and a target functional attribute value
  • the attribute value includes a selling price and a functional attribute value
  • the transaction with the client based on the substitute commodity includes:
  • a transaction is performed with the client based on the target substitute commodity.
  • the game commodity transaction method provided by the embodiment of the present disclosure further includes:
  • a transaction request generated by operating a price increase transaction selection control in the client is received, and a transaction is performed with the client based on the transaction request and the first substitute product.
  • the target attribute value includes a target quantity and a target associated attribute value
  • the attribute value of the first candidate commodity includes a tradable quantity of the first candidate commodity and an associated attribute value of the first candidate commodity
  • the first candidate product is used as a replacement product
  • the target attribute value includes a target selling price and a target functional attribute value
  • the attribute value includes a selling price and a functional attribute value
  • a transaction request generated by operating a transaction selection control in the client is received, and a transaction is performed with the client based on the transaction request and the second substitute commodity.
  • This solution can receive a commodity purchase request triggered by a commodity trading system page of a target game, the commodity purchase request includes target identification information of a target commodity that a client wants to purchase, obtains the target identification information from the commodity purchase request, and performs transaction validity verification on the target commodity based on the target identification information to determine whether the target commodity is in a tradable state in the commodity trading system; if the target commodity is not in a tradable state, obtains target attribute information of the target commodity, selects a commodity that meets the client's purchase intention from commodities in a tradable state in the commodity trading system based on the target attribute information, and conducts transactions with the client based on the substitute commodity; this can reduce the frequency of transaction failures of game clients, improve the efficiency of commodity transactions by game clients, and reduce the background load of game applications.
  • the computer device 1000 further includes: a touch screen 1003, a radio frequency circuit 1004, an audio circuit 1005, an input unit 1006, and a power supply 1007.
  • the processor 1001 is electrically connected to the touch screen 1003, the radio frequency circuit 1004, the audio circuit 1005, the input unit 1006, and the power supply 1007.
  • the computer device structure shown in FIG10 does not limit the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
  • the touch display screen 1003 can be used to display the graphical client interface and receive the operation instructions generated by the client acting on the graphical client interface.
  • the touch display screen 1003 may include a display panel and a touch panel.
  • the display panel can be used to display the information input by the client or the information provided to the client and various graphical client interfaces of the computer device, which can be composed of graphics, text, icons, videos and any combination thereof.
  • the display panel can be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode), etc.
  • the touch panel can be used to collect the touch operations of the client on or near it (for example, the client uses any suitable object or accessory such as a finger, a stylus, etc. on the touch panel or near the touch panel) and generate corresponding operation instructions, and the operation instructions execute the corresponding program.
  • the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch orientation of the client, 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 the touch point coordinates, and then sends it to the processor 1001, and can receive the command sent by the processor 1001 and execute it.
  • the touch panel can cover the display panel.
  • the touch panel When the touch panel detects a touch operation on or near it, it is transmitted to the processor 1001 to determine the type of touch event, and then the processor 1001 provides a corresponding visual output on the display panel according to the type of touch event.
  • the touch panel and the display panel can be integrated into the touch display screen 1003 to realize the input and output functions.
  • the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 1003 can also be used as a part of the input unit 1006 to realize the input function.
  • the radio frequency circuit 1004 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other computer device through wireless communication, and to send and receive signals between the network device or other computer device.
  • the audio circuit 1005 can be used to provide an audio interface between the client and the computer device through a speaker and a microphone.
  • the audio circuit 1005 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1005 and converted into audio data, and then the audio data is output to the processor 1001 for processing, and then sent to another computer device through the radio frequency circuit 1004, or the audio data is output to the memory 1002 for further processing.
  • the audio circuit 1005 may also include an earphone jack to provide communication between an external headset and a computer device.
  • the input unit 1006 may be used to receive input digital, character information or client feature information (such as fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical or trackball signal input related to client settings and function control.
  • client feature information such as fingerprint, iris, facial information, etc.
  • the power supply 1007 is used to supply power to various components of the computer device 1000.
  • the power supply 1007 can be logically connected to the processor 1001 through a power management system, so that the power management system can manage charging, discharging, and power consumption.
  • the power supply 1007 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
  • the computer device 1000 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail herein.
  • the computer device can display the commodity trading system page of the target game, which includes the commodity identification of at least one tradable commodity, generates a commodity purchase request in response to a purchase operation on the target commodity, sends the commodity purchase request to the server, triggers the server to respond to the commodity purchase request, selects a substitute commodity for trading and sends substitute commodity trading event information when the target commodity is in a non-tradable state, receives the substitute commodity trading event information, and displays it in the commodity trading system page; it can reduce the frequency of transaction failures of game users, improve the efficiency of game users in commodity trading, and reduce the background load of game applications.
  • an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any of the game commodity trading methods provided in the embodiments of the present application.
  • the computer program can execute the following steps:
  • the commodity trading system page including a commodity identification of at least one tradable commodity
  • sending a commodity purchase request to a server, triggering the server to respond to the commodity purchase request, selecting a substitute commodity for trading when the target commodity is in a non-tradable state, and sending substitute commodity trading event information include:
  • the method further includes:
  • Receive price increase transaction information and display a price increase transaction control on a commodity trading system page based on the price increase transaction information;
  • sending a commodity purchase request to a server, triggering the server to respond to the commodity purchase request, selecting a substitute commodity for trading when the target commodity is in a non-tradable state, and sending substitute commodity trading event information include:
  • the method further includes:
  • a transaction request is sent to the server, triggering the server to conduct a transaction based on the second substitute commodity and send substitute commodity transaction success information.
  • the processor 1001 in the computer device 1000 may load instructions corresponding to one or more application programs into the memory 1002 according to the following steps, and the processor 1001 may run the application programs stored in the memory 1002 to implement various functions:
  • the commodity purchase request including target identification information of a target commodity to be purchased by operating a client;
  • target identification information from a commodity purchase request, and verifying the transaction validity of the target commodity based on the target identification information to determine whether the target commodity is in a tradable state in the commodity trading system;
  • a commodity that meets the purchase intention corresponding to the commodity purchase request is selected from commodities in a tradable state in the commodity trading system as a replacement commodity;
  • selecting a commodity that meets the purchase intention corresponding to the commodity purchase request from commodities in a tradable state in the commodity trading system as a replacement commodity includes:
  • a commodity matching the target attribute information is selected from commodities in a tradable state in the commodity trading system as a replacement commodity.
  • the target attribute information includes a target attribute type and a target attribute value, and based on the target attribute information, selecting a commodity matching the target attribute information from commodities in a tradable state as a replacement commodity includes:
  • the attribute value of the first candidate product is obtained, and the first candidate product whose attribute value difference with the target attribute value is within a preset difference range is used as a replacement product.
  • the target attribute value includes a target selling price and a target functional attribute value
  • the attribute value includes a selling price and a functional attribute value
  • the transaction with the client based on the substitute commodity includes:
  • a transaction is performed with the client based on the target substitute commodity.
  • the game commodity transaction method provided by the embodiment of the present disclosure further includes:
  • a transaction request generated by operating a price increase transaction selection control in a client is received, and a transaction is performed with the client based on the transaction request and the first substitute product.
  • the target attribute value includes a target quantity and a target associated attribute value
  • the attribute value of the first candidate commodity includes a tradable quantity of the first candidate commodity and an associated attribute value of the first candidate commodity
  • the first candidate commodity is used as a substitute commodity
  • the target attribute value includes a target selling price and a target functional attribute value
  • the attribute value includes a selling price and a functional attribute value
  • a transaction request generated by operating a transaction selection control in the client is received, and a transaction is performed with the client based on the transaction request and the second substitute commodity.
  • This solution can display the commodity trading system page of the target game, which includes the commodity identification of at least one tradable commodity, generates a commodity purchase request in response to a purchase operation on the target commodity, sends the commodity purchase request to a server, triggers the server to respond to the commodity purchase request, selects a substitute commodity for trading and sends substitute commodity trading event information when the target commodity is in a non-tradable state, receives the substitute commodity trading event information, and displays it in the commodity trading system page; it can reduce the frequency of transaction failures of game users, improve the efficiency of game users in commodity trading, and reduce the background load of game applications.
  • the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk etc.
  • the computer program stored in the storage medium can execute the steps in any one of the game commodity trading methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the game commodity trading methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computer Security & Cryptography (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本公开实施例可以显示目标游戏的商品交易系统页面,商品交易系统页面包括至少一件可交易商品的商品标识,响应于对目标商品的购买操作,生成商品购买请求,将商品购买请求发送给服务器,触发服务器响应于商品购买请求,在目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息,接收替代商品交易事件信息,并在所述商品交易系统页面中予以显示;通过本发明实施例可以降低游戏用户交易失败的频次,提升游戏用户进行商品交易的效率,减轻游戏应用的后台负载。

Description

游戏商品交易方法、装置、系统、电子设备和存储介质
本公开要求于2022年10月21日提交中国专利局、申请号为202211295078.1发明名称为“游戏商品交易方法、装置、系统、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及互联网技术领域,具体涉及游戏商品交易方法、装置、系统、电子设备和存储介质。
背景技术
随着游戏产业的快速发展,越来越多的人们通过游戏与其他游戏用户进行互动、享受游戏中的影音内容,放松身心。目前来说,游戏用户可以在游戏中通过虚拟游戏货币或者虚拟游戏商品等虚拟财产,与游戏中的其他用户进行游戏道具等商品的交易。
技术问题
由于游戏内商品信息等交易相关信息的更新存在一定的网络延迟,在交易时可能会发生某游戏用户通过游戏的客户端选择购买的商品虽在该游戏用户看来仍然可以交易、但实际上商品已经下架的情况,此时该游戏用户发起的交易会被判定为失败,该游戏用户需要重新选择商品进行交易。这种需要游戏用户多次发起交易的游戏商品交易方式会影响游戏用户的交易效率,也会加大游戏应用的后台负载。
技术解决方案
本公开实施例提供游戏商品交易方法、装置、系统、电子设备和存储介质,可以在游戏用户想要在游戏中进行交易时,提升用户进行商品交易的效率,减轻游戏应用的后台负载。
第一方面,本公开实施例提供一种游戏商品交易方法,应用于客户端,包括:
显示目标游戏的商品交易系统页面,所述商品交易系统页面包括至少一件可交易商品的商品标识;
响应于对目标商品的购买操作,生成商品购买请求;
将所述商品购买请求发送给服务器,触发所述服务器响应于所述商品购买请求,在所述目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息;
接收所述替代商品交易事件信息,并在所述商品交易系统页面中予以显示。
第二方面,本公开实施例还提供一种游戏商品交易方法,应用于服务器,包括:
接收通过目标游戏的商品交易系统页面触发的商品购买请求,所述商品购买请求包括通过操作所述客户端所要购买的目标商品的目标标识信息;
从所述商品购买请求中获取所述目标标识信息,基于所述目标标识信息对所述目标商品进行交易有效性验证,以确定所述目标商品是否在商品交易系统中处于可交易状态;
若所述目标商品不处于可交易状态,获取所述目标商品的目标属性信息;
基于所述目标属性信息,从所述商品交易系统中处于可交易状态的商品中选择符合所述商品购买请求对应的购买意愿的商品作为替代商品;
基于所述替代商品与所述客户端进行交易。
第三方面,本公开实施例还提供一种游戏商品交易方法,应用于客户端,包括:
客户端显示目标游戏的商品交易系统页面,所述商品交易系统页面包括至少一件可交易商品的商品标识;
客户端响应于对目标商品的购买操作,生成商品购买请求,将所述商品购买请求发送给目标游戏的服务器,所述商品购买请求包括客户端想购买的目标商品的目标标识信息;
服务器接收所述商品购买请求,从所述商品购买请求中获取所述目标标识信息,基于所述目标标识信息对所述目标商品进行交易有效性验证,以确定所述目标商品是否在商品交易系统中处于可交易状态;
若所述目标商品不处于可交易状态,服务器获取所述目标商品的目标属性信息,基于所述目标属性信息,从所述商品交易系统中处于可交易状态的商品中选择符合所述客户端购买意愿的商品作为替代商品;
服务器基于所述替代商品与所述客户端进行交易,向所述客户端发送替代商品交易事件信息;
客户端接收所述替代商品交易事件信息,并在所述商品交易系统页面予以显示。
第三方面,本公开实施例还提供一种游戏商品交易装置,应用于服务器,包括:
页面显示单元,用于显示目标游戏的商品交易系统页面,所述商品交易系统页面包括至少一件可交易商品的商品标识;
请求生成单元,用于响应于对目标商品的购买操作,生成商品购买请求;
请求发送单元,用于将所述商品购买请求发送给服务器,触发所述服务器响应于所述商品购买请求,在所述目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息;
信息接收单元,用于接收所述替代商品交易事件信息,基于所述替代商品交易事件信息,在所述商品交易系统页面中显示交易成功信息。
第四方面,本公开实施例还提供一种游戏商品交易装置,应用于服务器,包括:
购买请求接收单元,用于接收通过目标游戏的商品交易系统页面触发的商品购买请求,所述商品购买请求包括通过操作所述客户端所要购买的目标商品的目标标识信息;
有效性验证单元,用于从所述商品购买请求中获取所述目标标识信息,基于所述目标标识信息对所述目标商品进行交易有效性验证,以确定所述目标商品是否在商品交易系统中处于可交易状态;
属性信息获取单元,用于若所述目标商品不处于可交易状态,获取所述目标商品的目标属性信息;
替代商品选择单元,用于基于所述目标属性信息,从所述商品交易系统中处于可交易状态的商品中选择符合所述商品购买请求对应的购买意愿的商品作为替代商品;
交易单元,用于基于所述替代商品与所述客户端进行交易。
第五方面,本公开实施例还提供一种游戏商品交易系统,所述游戏商品交易系统包括客户端和服务器;
所述客户端用于显示目标游戏的商品交易系统页面,所述商品交易系统页面包括至少一件可交易商品的商品标识;
所述客户端用于响应于对目标商品的购买操作,生成商品购买请求,将所述商品购买请求发送给目标游戏的服务器,所述商品购买请求包括通过操作所述客户端所要购买的目标商品的目标标识信息;
所述服务器用于接收所述商品购买请求,从所述商品购买请求中获取所述目标标识信息,基于所述目标标识信息对所述目标商品进行交易有效性验证,以确定所述目标商品是否在商品交易系统中处于可交易状态;
所述服务器用于若所述目标商品不处于可交易状态,服务器获取所述目标商品的目标属性信息,基于所述目标属性信息,从所述商品交易系统中处于可交易状态的商品中选择符合所述商品购买请求对应的购买意愿的商品作为替代商品;
所述服务器用于基于所述替代商品与所述客户端进行交易,向所述客户端发送替代商品交易事件信息;
所述客户端接收所述替代商品交易事件信息,并在所述商品交易系统页面中予以显示。
第六方面,本公开实施例还提供一种电子设备,包括存储器和处理器;所述存储器存储有应用程序,所述处理器用于运行所述存储器内的应用程序,以执行本公开实施例所提供的任一种游戏商品交易方法中的步骤。
第七方面,本公开实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有多条指令,所述指令适于处理器进行加载,以执行本公开实施例所提供的任一种游戏商品交易方法中的步骤。
第八方面,本公开实施例还提供一种计算机程序产品,包括计算机程序或指令,所述计算机程序或指令被处理器执行时实现本公开实施例所提供的任一种游戏商品交易方法中的步骤。
有益效果
采用本公开实施例的方案,可以显示目标游戏的商品交易系统页面,该商品交易系统页面包括至少一件可交易商品的商品标识,响应于对目标商品的购买操作,生成商品购买请求,将该商品购买请求发送给服务器,触发该服务器响应于该商品购买请求,在该目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息,接收该替代商品交易事件信息,并在所述商品交易系统页面中予以显示;由于在本公开实施例中,在用户想购买的目标商品不处于可交易状态时可以选择替代商品与用户进行交易,因此,避免了网络延迟等原因导致的商品信息不同步的影响,降低了游戏用户交易失败的频次,减少了游戏用户刷新商品交易系统页面、重新从商品交易系统页面中选择新的商品进行交易的请求量,可以提升游戏用户进行商品交易的效率,减轻游戏应用的后台负载。
附图说明
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本公开实施例的其中之一提供的游戏商品交易方法的场景示意图;
图2是本公开实施例的其中之一提供的一种游戏商品交易方法的流程图;
图3是本公开实施例的其中之一提供的另一种游戏商品交易方法的流程图;
图4是本公开实施例的其中之一提供的游戏商品交易过程示意图;
图5是本公开实施例的其中之一提供的又一种游戏商品交易方法的流程图;
图6是本公开实施例的其中之一提供的游戏商品交易方法的另一流程图;
图7是本公开实施例的其中之一提供的游戏商品交易装置的结构示意图;
图8是本公开实施例的其中之一提供的另一游戏商品交易装置的结构示意图;
图9是本公开实施例的其中之一提供的另一游戏商品交易装置的另一结构示意图;
图10是本公开实施例的其中之一提供的电子设备的结构示意图。
本发明的实施方式
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
本公开实施例提供一种游戏商品交易方法、装置、电子设备和计算机可读存储介质。具体地,本公开实施例提供适用于游戏商品交易装置的游戏商品交易方法,该游戏商品交易装置可以集成在电子设备中。
该电子设备可以包括客户侧的终端等设备,包括但不限于移动终端和固定终端,例如移动终端包括但不限于智能手机、智能手表、平板电脑、笔记本电脑、智能车载等,其中,固定终端包括但不限于台式电脑、智能电视等。
该电子设备还可以包括服务器等设备,该服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)、以及大数据和人工智能平台等基础云计算服务的云服务器,但并不局限于此。
本公开实施例的游戏商品交易方法,可以由终端或服务器实现,也可以由终端和服务器共同实现。
下面以客户端和服务器共同实现该游戏商品交易方法为例,对该方法进行说明。
如图1所示,本公开实施例提供的游戏商品交易系统包括客户端10和服务器20等;客户端10与服务器20之间通过网络连接,比如,通过有线或无线网络连接等,其中,客户端10可以作为可以运行目标游戏的客户端存在。
其中,客户端10可以用于显示目标游戏的商品交易系统页面,商品交易系统页面包括至少一件可交易商品的商品标识。客户端10可以响应于对目标商品的购买操作,生成商品购买请求,将商品购买请求发送给服务器20。
服务器20可以响应于商品购买请求,在目标商品处于不可交易状态时选择替代商品进行交易,以及,向客户端10发送替代商品交易事件信息。
客户端10可以接收替代商品交易事件信息,并在所述商品交易系统页面中予以显示。
以下分别进行详细说明。需要说明的是,以下实施例的描述顺序不作为对实施例优选顺序的限定。
本公开实施例将从游戏商品交易装置的角度进行描述,该游戏商品交易装置具体可以集成在客户端中。
如图2所示,本实施例的游戏商品交易方法的具体流程可以如下:
201、显示目标游戏的商品交易系统页面,商品交易系统页面包括至少一件可交易商品的商品标识。
在本公开实施例中,目标游戏是提供了商品交易功能的游戏类型应用程序。可以理解的是,商品交易功能只是目标游戏中的一个功能。目标游戏可以是角色扮演游戏、动作游戏、冒险游戏、竞速游戏等类型,本公开实施例对此不做限定。
其中,商品交易系统页面为目标游戏中提供的商品交易系统的显示页面。目标游戏的游戏用户可以通过客户端中的商品交易系统进行交易,比如用自己拥有的道具与其他游戏用户的道具进行交换、用虚拟货币购买其他游戏用户的道具等等,当然,游戏用户也可以通过商品交易系统出售自己拥有的道具等资源。
具体的,商品标识可以是可交易商品的商品名称、商品价格等等。
202、响应于对目标商品的购买操作,生成商品购买请求。
具体的,商品购买请求可以是目标游戏的客户端响应于在商品交易系统页面中的触发操作生成的。客户端可以将商品购买请求发送给目标游戏的服务器进行处理。
其中,目标商品为商品交易系统中游戏用户通过操作客户端确定所要购买的商品。游戏用户的购买意向可以基于游戏用户在商品交易系统页面的触发操作得到。例如,游戏用户可以在客户端的商品交易系统页面中对某件商品执行购买操作,此时可以将该件商品认为是目标商品。
203、将商品购买请求发送给服务器,触发服务器响应于商品购买请求,在目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息。
对于已经通过商品交易系统被交易的商品、在商品交易系统未被交易但是被游戏用户自行下架、在商品交易系统未被交易但被系统下架的商品等,可以认为是不处于可交易状态的商品。
在一些可选的示例中,在选择进行交易的替代商品时,如果存在多个交个不同但是能实现的功能效果的参数相同的商品,可以自动选择价格更低的商品进行交易。
在另一些可选的示例中,接收到客户端发送的商品购买请求的服务器如果发现可以交易的替代商品中不存在出售价格不高于目标出售价格的目标替代商品,此时可以询问客户端是否要加价购买,步骤“将商品购买请求发送给服务器,触发服务器响应于商品购买请求,在目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息”,包括:
将商品购买请求发送给服务器,触发服务器在目标商品处于不可交易状态且第一替代商品的出售价格高于目标商品时,发送加价交易信息,第一替代商品的功能属性值与目标商品的目标功能属性值相同。
其中,加价交易信息可以包括第一替代商品的具体价格、第一替代商品与目标商品之间的单价价格差和/或第一替代商品与目标商品之间的总价格差,等等。
相应的,目标游戏的客户端可以显示与加价交易信息相关的提示信息,步骤“接收替代商品交易事件信息”之前,本公开实施例提供的游戏商品交易方法还可以包括:
接收加价交易信息,基于加价交易信息在商品交易系统页面中显示加价交易控件;
响应于对加价交易控件的交易进行操作,向服务器发送交易进行请求,触发服务器基于第一替代商品进行交易以及发送替代商品交易成功信息。
可选的,加价交易控件中可以包括通过触发可同意进行交易的子控件以及通过触发可拒绝交易的子控件等。
进一步的,如果游戏用户通过子客户端的操作拒绝加价交易,例如触发用于拒绝交易的子控件,则客户端可以直接显示交易失败的提示信息,以及向服务器发送拒绝交易信息,以使得服务器可以停止交易。
在一些实施例中,如果客户端对应的服务器成功采用第一替代商品进行了替代交易,此时,客户端可以提示交易成功的有关信息,步骤“接收替代商品交易事件信息,并在所述商品交易系统页面中予以显示”,具体可以包括:
接收替代商品交易成功信息,并在所述商品交易系统页面中予以显示。
具体的,替代商品交易成功信息可以用于提示客户端交易已完成,或者,交易成功信息还可以用于提示已选择第一替代商品进行交易。
可选的,客户端在商品交易系统中显示时,可以直接显示替代商品交易成功信息。
或者,客户端可以基于替代商品交易成功信息生成交易成功提示信息,交易成功提示信息的内容和形式不限。比如,交易成功提示信息可以是控件的形式,交易成功提示信息中还可以包括详情查看控件以使得通过操作可以查看交易时间、交易数量、商品售出用户等交易详情信息;或者,交易成功提示信息中还可以包括界面跳转控件,通过操作可以将客户端的界面跳转到游戏用户进行交易前的游戏场景中,或者,跳转到第一替代商品可使用的游戏场景中,等等。
可以理解的是,在目标商品处于可交易状态,服务器可以直接选择目标商品进行交易,并发送商品交易成功信息,以提示服务端以基于目标商品完成交易。客户端可以接收商品交易成功信息,并在商品交易系统页面中显示。
比如,通过对客户端的商品交易系统页面的游戏道具A的购买操作,客户端生成针对游戏道具A的商品购买请求,并将该商品购买请求发送给了服务器。服务器接收该商品购买请求后,检测可交易商品中游戏道具A处于可交易状态,则服务器可以直接选择游戏道具A进行交易以及发送针对游戏道具A的上屏交易成功信息。客户端可以接收商品交易成功信息,并在商品交易系统页面中显示。
204、接收替代商品交易事件信息,并在所述商品交易系统页面中予以显示。
其中,替代商品交易事件信息可以是与替代商品交易过程中发生的任意事件相关的信息。比如,服务器使用替代商品完成交易后,此时,替代商品交易事件信息可以包括用于提示客户端交易已完成的信息。
或者,服务器选择好替代商品后,服务器可以通过替代商品交易事件信息,以提示客户端是否要采用替代商品进行交易等;进一步的,如果客户端拒绝采用替代商品进行交易,此时,替代商品交易事件信息可以包括用于提示交易失败的信息,等等。
可选的,替代商品交易事件信息还可以包括替代商品的商品属性信息等,例如替代商品的功能属性值、价格、数量等等。
可以理解的是,在一些情况下,可能存在价格更低同时功能效果更差的商品、价格更高同时功能效果更好的商品等情况,此时,可以提示客户端是否要交易此类型的商品。步骤“将商品购买请求发送给服务器,触发服务器响应于商品购买请求,在目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息”,具体可以包括:
将商品购买请求发送给服务器,触发服务器在目标商品处于不可交易状态且仅存在第二替代商品可交易时,发送交易选择信息,第二替代商品的功能属性值与目标商品的目标功能属性值不相同,或者,第二替代商品的功能属性值与目标功能属性值相同且出售价格高于目标商品。
也就是说,处于可交易状态的商品中,可能存在目标功能属性值对应的目标功能效果与目标商品相同或者好于目标商品但是出售价格更高的第二替代商品,或者,目标功能属性值对应的目标功能效果差于目标商品但是出售价格更低的第二替代商品,或者,目标功能效果上差于目标商品但在其他属性上的功能效果好于目标商品的第二替代商品。
此时,可以将若干个第二替代商品的各个功能属性值以及出售价格与目标商品之间的差异发送给客户端,供客户端进行参考。
可选的,步骤“接收替代商品交易事件信息”之前,本公开实施例提供的游戏商品交易方法还可以包括:
接收交易选择信息,基于交易选择信息在商品交易系统页面中显示交易选择控件;
响应于对交易选择控件的交易进行操作,向服务器发送交易进行请求,触发服务器基于第二替代商品进行交易以及发送替代商品交易成功信息。
可以理解的是,交易选择信息可以包括一个或者若干个第二替代商品的属性值等相关信息,客户端显示的交易选择控件可以与各个第二替代商品分别对应。
比如,通过对客户端中一个交易选择控件的触发操作,客户端可以从若干个第二替代商品中确定一个具体进行交易的第二替代商品与服务器进行交易。
由上可知,本公开实施例可以显示目标游戏的商品交易系统页面,商品交易系统页面包括至少一件可交易商品的商品标识,响应于对目标商品的购买操作,生成商品购买请求,将商品购买请求发送给服务器,触发服务器响应于商品购买请求,在目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息,接收替代商品交易事件信息,基于替代商品交易事件信息,在商品交易系统页面中显示交易成功信息;由于在本公开实施例中,在用户想购买的目标商品不处于可交易状态时可以选择替代商品与用户进行交易,因此,避免了网络延迟等原因导致的商品信息不同步的影响,降低了游戏用户交易失败的频次,减少了游戏用户刷新商品交易系统页面、重新从商品交易系统页面中选择新的商品进行交易的请求量,可以提升游戏用户进行商品交易的效率,减轻游戏应用的后台负载。
本公开实施例将从游戏商品交易装置的角度进行描述,该游戏商品交易装置具体可以集成在服务器中。
如图3所示,本实施例的游戏商品交易方法的具体流程可以如下:
301、接收通过目标游戏的商品交易系统页面触发的商品购买请求,商品购买请求包括通过操作客户端所要购买的目标商品的目标标识信息。
可选的,目标标识信息是可以将目标商品与商品交易系统中的其他商品进行区分的信息。比如,目标标识信息可以是目标商品在商品交易系统中唯一的编号,或者,目标标识信息可以是由目标商品的商品名称、出售用户的用户编号等组成的一组信息,等等。
如图3所示,商品交易系统页面中可以包括可供用户触发的商品,这些商品可以是商品的出售用户通过商品交易系统上架的商品。
可以理解的是,出售用户在出售商品时可以通过商品交易系统设置商品的数量、价格等。在一些示例中,部分商品可能由于游戏规则限制是不允许出售的,因此,商品交易系统可以对出售用户上架的商品进行商品有效性验证,如果商品通过了商品有效性验证,才会在商品交易系统页面中显示。
302、从商品购买请求中获取目标标识信息,基于目标标识信息对目标商品进行交易有效性验证,以确定目标商品是否在商品交易系统中处于可交易状态。
可以理解的是,商品购买请求中除了目标标识信息,还可以包括其他的信息,比如可以包括但不限于请求生成时间、发起请求的游戏用户的用户信息等等。技术人员可以根据实际应用对商品购买请求中包含的信息进行设置。
在一些实施例中,交易有效性验证可以是从商品交易系统中上架过的所有商品中搜索目标标识信息对应的目标商品,再确定目标商品当前所处的状态。
具体的,商品交易系统中上架过的所有商品可以包括在商品交易系统中处于可交易状态的商品、已经通过商品交易系统完成交易的商品以及未通过商品交易系统完成交易但是被商品的出售用户自行下架或者商品交易系统自动下架的商品。
在另一些实施例中,交易有效性验证可以是从商品交易系统中出于可交易状态的商品中搜索是否有目标标识信息对应的目标商品等。
通过交易有效性验证,可以确定通过操作客户端所要购买的目标商品当前是否可以被正常购买,即是否在商品交易系统中处于可交易状态。
其中,可交易状态指的是商品在商品交易系统中可以被客户端进行购买、交换等交易的状态。
可选的,若目标商品处于可交易状态,可以直接基于目标商品与客户端进行交易。
303、若目标商品不处于可交易状态,获取目标商品的目标属性信息。
在一些示例中,为了便于游戏用户从众多商品中选择自己想购买的目标商品,一般的,商品交易系统页面在显示时可以在客户端的设备中存储有商品的属性信息以供用户查看,因此,目标游戏在生成商品购买请求时,可以直接将商品交易系统中存储的目标商品的目标属性信息添加在商品购买请求中。在获取目标商品的目标属性信息时,可以对商品购买请求进行解析,得到目标属性信息。
在另一些示例中,为了减轻目标游戏的客户端与服务器之间的传输压力,客户端的设备中可能没有存储或者只存储了部分商品的全部或部分属性信息。在获取目标商品的目标属性信息时,为了保证目标属性信息的准确性和可靠性,可以从目标游戏的游戏后台中,根据目标标识信息,搜索得到目标商品的目标属性信息。
具体的,目标属性信息可以是目标商品相关的全部信息,包括但不限于目标商品的出售用户信息、类型、数量、出售价格以及目标商品能实现的功能效果的参数等。或者,目标属性信息可以是只与目标商品交易相关的类型、数量、出售价格以及目标商品能实现的功能效果的参数等信息。
其中,目标商品能实现的功能效果的参数可以包括但不限于目标商品对游戏角色带来的生命值、攻击力、防御力等方面的增益效果或者损耗效果的参数等等。
304、基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择符合商品购买请求对应的购买意愿的商品作为替代商品。
其中,替代商品为替代目标商品与客户端进行交易的商品。
可选的,符合客户端购买意愿的商品可以是商品交易系统中处于可交易状态的商品中目标商品的出售用户出售的其他商品,或者,可以是根据游戏用户所操作的游戏角色当前所处的游戏场景,自动确定出游戏用户所需的商品。
比如,在游戏用户所操作的游戏角色处于战斗场景中且游戏角色的生命值不到原始生命值的50%时,如果游戏用户通过操作客户端所选择的目标商品属于治疗类型,可以预测商品购买请求对应的购买意愿是购买治疗类型的商品,此时,可以将商品交易系统中处于可交易状态的商品中的治疗类型的商品作为替代商品。
在一些实施例中,可以通过属性信息匹配的方式提升在选择替代商品时的准确性,步骤“基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择符合商品购买请求对应的购买意愿的商品作为替代商品”,具体可以包括:
基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择与目标属性信息匹配的商品作为替代商品。
具体的,与目标属性信息匹配可以是商品的属性信息与目标属性信息完全相同,或者,可以是商品的属性信息满足基于目标属性信息确定的匹配条件等。
可选的,基于目标属性信息确定的匹配条件可以是商品与目标商品的商品类型是匹配的,商品与目标商品的属性值之间的差异不超过预设的差异范围。
也就是说,目标属性信息可以包括目标属性类型和目标属性值,步骤“基于目标属性信息,从处于可交易状态的商品中选择与目标属性信息匹配的商品作为替代商品”,具体可以包括:
基于目标属性类型,从处于可交易状态的商品中选择与目标属性类型匹配的商品作为第一候选商品;
获取第一候选商品的属性值,将属性值与目标属性值之间的属性值差异在预设差异范围内的第一候选商品作为替代商品。
在一些示例中,与目标属性类型匹配可以指的是商品的属性类型与目标属性类型完全相同。在另一些示例中,目标属性类型可以包括具有不同层级关系的类型,与目标属性类型匹配可以是与目标属性类型中任意层级的类型匹配。
比如,对于治疗类型,在治疗类型下还可以设置治疗子类型1和治疗子类型2,目标属性类型可以是治疗类型下的治疗子类型1。与目标属性类型匹配可以指的是商品属于治疗类型即可,或者,可以指的是商品的属性类型必须是治疗类型下的治疗子类型1。
具体的,预设差异范围可以为0,也就是说,属性值与目标属性值之间没有属性值差异,替代商品的属性值与目标商品的目标属性值完全相同。或者,预设差异范围可以是一个区间范围,替代商品的属性值与目标商品的目标属性值之间可以存在一定的差异。
其中,预设差异范围可以是技术人员设定的,或者,也可以是用户通过操作客户端在目标游戏中自行设定的,本公开实施例对此不做限定。
可以理解的是,目标属性值可以包括从不同维度对目标商品进行描述的参数。例如,目标属性值可以包括目标数量和目标关联属性值,第一候选商品的属性值可以包括第一候选商品的可交易数量以及第一候选商品的关联属性值。
其中,目标数量可以是从交易数量的角度对目标商品进行描述,目标关联属性值可以是目标属性值中除了目标数量之外的其他维度的属性参数,例如商品价格、商品有效时长等。
相似的,可交易数量可以是从可以交易的数量的维度对第一候选商品进行描述,目标关联属性值可以是第一候选商品的属性值中除了可交易数量之外的其他维度的属性参数,例如商品价格、第一候选商品能实现的功能效果的参数等。
在一些实施例中,如果有除了数量以外的其他属性都可以满足商品购买请求对应的购买意愿的商品,就可以直接进行商品交易,步骤“获取第一候选商品的属性值,将属性值与目标属性值之间的属性值差异在预设差异范围内的第一候选商品作为替代商品”,具体可以包括:
获取第一候选商品的可交易数量以及第一候选商品的关联属性值;
若第一候选商品的关联属性值与目标关联属性值相同,将第一候选商品作为替代商品。
相应的,步骤“基于替代商品与客户端进行交易”,可以包括:
基于所述替代商品的可交易数量,与所述客户端进行交易。
其中,可交易数量与客户端实际想要购买的目标商品的数量可以相同也可以不同,本公开实施例对此不做限定。而与客户端交易的替代商品的数量小于等于目标商品的数量。
具体的,出售用户在将目标商品上架商品交易系统时,商品交易系统可以将出售用户的商品拆分为最小单位。因此,购买商品的用户通过商品交易系统所见商品可以都是最小单位状态且目标商品的售价为单价。
客户端发送的商品购买请求中,可以包含商品属性值、单价、数量等。在进行交易时,商品交易系统可以执行尽付快速原则,即:所交易商品数量可以小于等于商品购买请求对应的购买意愿的购买数量。
在一些可选的实施例中,可能会存在第一候选商品中能够符合商品购买请求对应的购买意愿的商品数量小于客户端想要购买的目标数量,此时,可以通过客户端选择是否仍要交易数量不足的替代商品。步骤“若第一候选商品的关联属性值与目标关联属性值相同,将第一候选商品作为替代商品”可以包括:
若第一候选商品的关联属性值与目标关联属性值相同,且第一候选商品的可交易数量小于目标商品的目标数量,将第一候选商品作为替代商品。
也就是说,第一候选商品可以是数量小于目标数量,但是其他的属性值都与目标商品相同的商品。
相应的,如果第一候选商品的数量不能够满足商品购买请求对应的购买意愿的购买数量,此时可以提示客户端确认是否要购买部分商品。步骤“基于所述替代商品的可交易数量,与所述客户端进行交易”具体可以包括:
基于替代商品的可交易数量,确定替代商品与目标商品之间的交易数量差值;
向客户端发送交易选择信息,交易选择信息中包括交易数量差值,触发客户端基于交易选择信息显示包括交易数量差值的交易选择控件;
接收通过交易选择控件触发的交易进行请求,基于交易进行请求和替代商品与客户端进行交易。
其中,交易数量差值可以是可交易数量与目标数量之间的差值。
具体的,交易选择控件中除了包括交易数量差值,还可以包括但不限于交易确认控件、交易拒绝控件和/或供客户端选择具体交易数量的数量选择控件等。
例如,商品购买请求对应的购买意愿的目标商品的数量可以是10个,但是替代商品的数量只有8个,此时,可以提示客户端交易数量差值为2,客户端可以选择不进行交易,也可以选择1-8个替代商品进行交易。
可以理解的是,替代商品可以是同一个商品出售用户出售的商品,也可以是多个商品出售用户出售的商品,本公开实施例对此不做限定。
例如,购买意愿的目标商品的数量可以是10个,替代商品可以包括商品出售用户1出售的3个替代商品,商品出售用户2出售的5个替代商品,处于可交易状态的商品中也没有其他的替代商品。
在另一些可选的实施例中,可能存在购买意愿的目标商品的数量小于某一商品出售用户一次性打包出售的替代商品的数量。此时,可以提示商品出售用户是否要将商品拆分出售。即,目标属性值可以包括目标数量和目标关联属性值,第一候选商品的属性值可以包括第一候选商品的打包交易数量以及第一候选商品的关联属性值;
步骤“获取第一候选商品的属性值,将属性值与目标属性值之间的属性值差异在预设差异范围内的第一候选商品作为替代商品”,包括:
获取第一候选商品的打包交易数量以及第一候选商品的关联属性值;
若第一候选商品的关联属性值与目标关联属性值相同,且第一候选商品的打包交易数量大于目标数量,将第一候选商品作为替代商品;
也就是说,第一候选商品可以是数量大于目标数量,但是其他的属性值都与目标商品相同的商品。
相应的,如果第一候选商品的数量大于购买意愿对应的目标商品的数量,此时可以提示商品出售用户确认是否将自己本想一次性打包出售的商品拆分出售。步骤“基于替代商品与客户端进行交易”,具体可以包括:
基于替代商品,向替代商品的商品出售用户对应的客户端发送拆分交易信息,拆分交易信息包括目标数量,触发客户端基于拆分交易信息显示包括目标数量的拆分交易选择控件;
接收商品出售用户通过拆分交易选择控件触发的拆分交易进行请求,基于拆分交易进行请求和替代商品与客户端进行交易。
也就是说,商品出售用户可以选择是否要将自己的商品拆分出售。
具体的,拆分交易选择控件中除了包括目标数量,还可以包括但不限于拆分交易确认控件和/或拆分交易拒绝控件。
例如,商品出售用户想要出售的替代商品的数量可以是20个,但是购买意愿对应的目标商品的数量只有15个,此时,可以提示商品出售用户某用户想购买15个商品,商品出售用户可以选择进行或不进行交易。
可以理解的是,替代商品可以是同一个商品出售用户出售的商品,也可以是多个商品出售用户出售的商品,本公开实施例对此不做限定。
例如,购买意愿对应的目标商品的数量可以是15个,替代商品可以包括商品出售用户1出售的5个替代商品,商品出售用户2出售的20个替代商品,处于可交易状态的商品中也没有其他的替代商品。
此时,可以向商品出售商户2询问是否可以进行拆分出售。如果商品出售商户2拒绝拆分出售,可以询问客户端是否要购买部分商品。
可以理解的是,如果第一候选商品的可交易数量与目标数量相同,其他的属性值也都与目标商品相同,可以直接基于第一候选商品与客户端进行交易。
305、基于替代商品与客户端进行交易。
其中,如果替代商品的供应大于客户端的购买需求,在基于替代商品与客户端进行交易时,可以基于替代商品的价格、替代商品能实现的功能效果的参数等,从替代商品中选择部分替代商品与客户端进行交易。
在选择进行交易的替代商品时,在能实现的功能效果的参数相同时,可以自动为客户端选择价格更低的商品进行交易。即,目标属性值可以包括目标出售价格和目标功能属性值,属性值可以包括出售价格和功能属性值,步骤“基于替代商品与客户端进行交易”,包括:
基于替代商品的功能属性值,从替代商品中确定功能属性值与目标功能属性值相同的第一替代商品;
若第一替代商品中存在出售价格不高于目标出售价格的目标替代商品,基于目标替代商品与客户端进行交易。
其中,功能属性值用来描述替代商品能实现的功能效果的参数,例如功能属性值可以包括但不限于各个替代商品的生命值增益、攻击力增益、防御力增益和/或治疗值等。目标功能属性值用来描述目标商品能实现的功能效果的参数。
也就是说,如果有n个能实现的功能效果与目标商品相同的第一替代商品,且第一替代商品中有出售价格低于目标商品的出售价格的目标替代商品,可以直接用目标替代商品与客户端进行交易。
可选的,如果第一替代商品中不存在出售价格不高于目标出售价格的目标替代商品,此时可以询问客户端是否要加价购买,也就是说,本公开实施例提供的游戏商品交易方法还可以包括:
若第一替代商品中不存在出售价格不高于目标出售价格的目标替代商品,向客户端发送加价交易信息,触发客户端基于加价交易信息显示加价交易选择控件;
接收通过操作所述客户端中的加价交易选择控件生成的交易进行请求,基于交易进行请求和第一替代商品与客户端进行交易。
其中,如果客户端拒绝加价交易,则可以提示客户端交易失败。
可以理解的是,在一些情况下,可能存在价格更低同时功能效果更差的商品、价格更高同时功能效果更好的商品等情况,此时,可以提示客户端是否要交易此类型的商品。即,目标属性值包括目标出售价格和目标功能属性值,属性值包括出售价格和功能属性值,步骤“基于替代商品与客户端进行交易”,具体可以包括:
基于替代商品的功能属性值,从替代商品中确定功能属性值与目标功能属性值不相同,或,功能属性值与目标功能属性值相同且出售价格高于目标出售价格的第二替代商品;
根据第二替代商品的出售价格和功能属性值,确定第二替代商品与目标商品之间的商品差异信息;
向客户端发送交易选择信息,交易选择信息中包括商品差异信息,触发客户端基于交易选择信息显示包括商品差异信息的交易选择控件;
接收通过操作所述客户端中的交易选择控件生成的交易进行请求,基于交易进行请求和第二替代商品与客户端进行交易。
也就是说,处于可交易状态的商品中,可能存在目标功能属性值对应的目标功能效果与目标商品相同或者好于目标商品但是出售价格更高的第二替代商品,或者,目标功能属性值对应的目标功能效果差于目标商品但是出售价格更低的第二替代商品,或者,目标功能效果上差于目标商品但在其他属性上的功能效果好于目标商品的第二替代商品。
此时,可以将若干个第二替代商品的各个功能属性值以及出售价格与目标商品之间的差异发送给客户端,供客户端进行参考。
客户端在交易选择控件中,可以选择具体进行交易的第二替代商品进行交易。
在一些可选的示例中,确定第二替代商品时,可以从替代商品中选择与目标商品之间满足一定相似条件的商品作为第二替代商品。比如,可以限定第二替代商品的某一或某些功能属性值与目标功能属性值之间的差值不能高于或者低于特定数值,等等。
可选的,如图4所示,与客户端交易成功后,可以对商品交易系统中处于可交易状态的商品进行刷新,将被出售的商品的状态更新为不处于可交易状态等。
由上可知,本公开实施例可以接收通过目标游戏的商品交易系统页面触发的商品购买请求,商品购买请求包括通过操作客户端所要购买的目标商品的目标标识信息,从商品购买请求中获取目标标识信息,基于目标标识信息对目标商品进行交易有效性验证,以确定目标商品是否在商品交易系统中处于可交易状态,若目标商品不处于可交易状态,获取目标商品的目标属性信息,基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择符合商品购买请求对应的购买意愿的商品作为替代商品,基于替代商品与客户端进行交易;由于在本公开实施例中,在用户想购买的目标商品不处于可交易状态时,从商品交易系统中出于可交易状态的商品中选择符合用户购买意愿的商品与用户进行交易,因此,避免了网络延迟等原因导致的商品信息不同步的影响,降低了游戏用户交易失败的频次,减少了游戏用户刷新商品交易系统页面、重新从商品交易系统页面中选择新的商品进行交易的请求量,可以提升游戏用户进行商品交易的效率,减轻游戏应用的后台负载。
本公开实施例将从游戏商品交易装置的角度进行描述,该游戏商品交易装置具体可以集成在客户端和服务器中。
如图5所示,本实施例的游戏商品交易方法的具体流程可以如下:
501、客户端显示目标游戏的商品交易系统页面,商品交易系统页面包括至少一件可交易商品的商品标识。
在本公开实施例中,各名词解释可参见前述实施例,本公开实施例对此不再赘述。
502、客户端响应于对目标商品的购买操作,生成商品购买请求,将商品购买请求发送给目标游戏的服务器,商品购买请求包括通过操作客户端所要购买的目标商品的目标标识信息。
503、服务器接收商品购买请求,从商品购买请求中获取目标标识信息,基于目标标识信息对目标商品进行交易有效性验证,以确定目标商品是否在商品交易系统中处于可交易状态。
504、若目标商品不处于可交易状态,服务器获取目标商品的目标属性信息,基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择符合商品购买请求对应的购买意愿的商品作为替代商品。
505、服务器基于替代商品与客户端进行交易,向客户端发送替代商品交易事件信息。
具体的,服务器在基于替代商品与客户端进行交易时,可以参见前述实施例选择目标替代商品、第一替代商品或者第二替代商品等进行交易的过程,本公开实施例在此不再赘述。
506、客户端接收替代商品交易事件信息,并在商品交易系统页面中予以显示。
由上可知,本公开实施例可以避免网络延迟等原因导致的商品信息不同步的影响,降低了游戏客户端交易失败的频次,减少了游戏客户端刷新商品交易系统页面、重新从商品交易系统页面中选择新的商品进行交易的请求量,可以提升游戏客户端进行商品交易的效率,减轻游戏应用的后台负载。
根据前面实施例所描述的方法,以下将举例作进一步详细说明。
在本实施例中,将结合图1的系统进行说明。
如图6所示,本实施例的游戏商品交易方法,具体流程可以如下:
601、客户端响应于商品出售用户在目标游戏的商品交易系统页面中的商品上架操作,生成商品上架请求,将商品上架请求发送给服务器。
602、服务器接收商品上架请求,基于商品上架请求进行商品有效性验证,若商品上架请求对应的商品通过商品有效性验证,将商品上架请求对应的商品作为处于可交易状态的商品加入到商品交易系统中。
也就是说,商品出售用户(卖方)上架商品,服务器在服务端进行商品有效性验证,验证成功后将该商品添加到商品交易系统的处于可交易状态的商品中。
603、客户端响应于对目标商品的购买操作,生成商品购买请求,将商品购买请求发送给服务器。
604、服务器接收通过目标游戏的商品交易系统页面触发的商品购买请求,商品购买请求包括客户端想购买的目标商品的目标标识信息。
也就是说,用户(买方)通过客户端进入商品交易系统页面选中并购买商品,可以提交服务器进行交易数据有效性验证。
605、服务器从商品购买请求中获取目标标识信息,基于目标标识信息对目标商品进行交易有效性验证,以确定目标商品是否在商品交易系统中处于可交易状态。
若目标商品在商品交易系统中处于可交易状态,则可以直接进行购买。购买成功后可以对商品交易系统的处于可交易状态的商品进行更新。
606、服务器若目标商品不处于可交易状态,获取目标商品的目标属性信息。
607、服务器基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择与目标属性信息匹配的商品作为替代商品。
若目标商品在商品交易系统中不处于可交易状态(商品已失效),则可以提取买方所购买商品(目标商品)的全部属性信息,在商品交易系统的处于可交易状态的商品中查找完全符合买方购买意愿的商品作为替代品,完全交易给付。
608、服务器基于替代商品与客户端进行交易。
由上可知,本公开实施例可以在用户想购买的目标商品不处于可交易状态时,从商品交易系统中出于可交易状态的商品中选择符合用户购买意愿的商品与用户进行交易,因此,避免了网络延迟等原因导致的商品信息不同步的影响,降低了游戏用户交易失败的频次,减少了游戏用户刷新商品交易系统页面、重新从商品交易系统页面中选择新的商品进行交易的请求量,可以提升游戏用户进行商品交易的效率,减轻游戏应用的后台负载。
为了更好地实施以上方法,相应的,本公开实施例还提供一种游戏商品交易装置。
参考图7,该装置包括:
页面显示单元701,用于显示目标游戏的商品交易系统页面,商品交易系统页面包括至少一件可交易商品的商品标识;
请求生成单元702,用于响应于对目标商品的购买操作,生成商品购买请求;
请求发送单元703,用于将商品购买请求发送给服务器,触发服务器响应于商品购买请求,在目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息;
信息接收单元704,用于接收替代商品交易事件信息,基于替代商品交易事件信息,在商品交易系统页面中显示交易成功信息。
在一些可选的实施例中,请求发送单元703,用于将商品购买请求发送给服务器,触发服务器在目标商品处于不可交易状态且第一替代商品的出售价格高于目标商品时,发送加价交易信息,第一替代商品的功能属性值与目标商品的目标功能属性值相同;
本公开实施例提供的游戏商品交易装置还包括加价交易选择单元,用于接收加价交易信息,基于加价交易信息在商品交易系统页面中显示加价交易控件;
响应于对加价交易控件的交易进行操作,向服务器发送交易进行请求,触发服务器基于第一替代商品进行交易以及发送替代商品交易成功信息;
信息接收单元704,用于接收替代商品交易成功信息,基于替代商品交易成功信息,在商品交易系统页面中显示交易成功信息。
在一些可选的实施例中,请求发送单元703,用于将商品购买请求发送给服务器,触发服务器在目标商品处于不可交易状态且仅存在第二替代商品可交易时,发送交易选择信息,第二替代商品的功能属性值与目标商品的目标功能属性值不相同,或者,第二替代商品的功能属性值与目标功能属性值相同且出售价格高于目标商品;
本公开实施例提供的游戏商品交易装置还包括交易选择单元,用于接收交易选择信息,基于交易选择信息在商品交易系统页面中显示交易选择控件;
响应于对交易选择控件的交易进行操作,向服务器发送交易进行请求,触发服务器基于第二替代商品进行交易以及发送替代商品交易成功信息;
信息接收单元704,用于接收替代商品交易成功信息,基于替代商品交易成功信息,在商品交易系统页面中显示交易成功信息。
由上可知,通过游戏商品交易装置,可以避免网络延迟等原因导致的商品信息不同步的影响,降低了游戏客户端交易失败的频次,减少了游戏客户端刷新商品交易系统页面、重新从商品交易系统页面中选择新的商品进行交易的请求量,可以提升游戏客户端进行商品交易的效率,减轻游戏应用的后台负载。
为了更好地实施以上方法,相应的,本公开实施例还提供一种游戏商品交易装置。
参考图8,该装置包括:
购买请求接收单元801,可以用于接收通过目标游戏的商品交易系统页面触发的商品购买请求,商品购买请求可以包括通过操作所述客户端所要购买的目标商品的目标标识信息;
有效性验证单元802,可以用于从商品购买请求中获取目标标识信息,基于目标标识信息对目标商品进行交易有效性验证,以确定目标商品是否在商品交易系统中处于可交易状态;
属性信息获取单元803,可以用于若目标商品不处于可交易状态,获取目标商品的目标属性信息;
替代商品选择单元804,可以用于基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择符合所述商品购买请求对应的购买意愿的商品作为替代商品;
交易单元805,可以用于基于替代商品与客户端进行交易。
在一些可选的实施例中,替代商品选择单元,可以用于基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择与目标属性信息匹配的商品作为替代商品。
在一些可选的实施例中,目标属性信息可以包括目标属性类型和目标属性值,替代商品选择单元804,可以用于基于目标属性类型,从处于可交易状态的商品中选择与目标属性类型匹配的商品作为第一候选商品;
获取第一候选商品的属性值,将属性值与目标属性值之间的属性值差异在预设差异范围内的第一候选商品作为替代商品。
在一些可选的实施例中,目标属性值可以包括目标出售价格和目标功能属性值,属性值可以包括出售价格和功能属性值;
交易单元805,可以用于基于替代商品的功能属性值,从替代商品中确定功能属性值与目标功能属性值相同的第一替代商品;
若第一替代商品中存在出售价格不高于目标出售价格的目标替代商品,基于目标替代商品与客户端进行交易。
在一些可选的实施例中,如图9所示,本公开实施例提供的游戏商品交易装置,还包括加价交易单元806,用于若第一替代商品中不存在出售价格不高于目标出售价格的目标替代商品,向客户端发送加价交易信息,触发客户端基于加价交易信息显示加价交易选择控件;
接收通过操作所述客户端中的加价交易选择控件生成的交易进行请求,基于交易进行请求和第一替代商品与客户端进行交易。
在一些可选的实施例中,目标属性值可以包括目标数量和目标关联属性值,第一候选商品的属性值可以包括第一候选商品的可交易数量以及第一候选商品的关联属性值;
替代商品选择单元804,可以用于获取第一候选商品的可交易数量以及第一候选商品的关联属性值;
若第一候选商品的关联属性值与目标关联属性值相同,且第一候选商品的可交易数量小于目标商品的目标数量,将第一候选商品作为替代商品;
交易单元805,可以用于基于替代商品的可交易数量,与客户端进行交易。
在一些可选的实施例中,目标属性值包括目标出售价格和目标功能属性值,属性值包括出售价格和功能属性值;
交易单元805,用于基于替代商品的功能属性值,从替代商品中确定功能属性值与目标功能属性值不相同,或,功能属性值与目标功能属性值相同且出售价格高于目标出售价格的第二替代商品;
根据第二替代商品的出售价格和功能属性值,确定第二替代商品与目标商品之间的商品差异信息;
向客户端对应的客户端发送交易选择信息,交易选择信息中包括商品差异信息,触发客户端基于交易选择信息显示包括商品差异信息的交易选择控件;
接收通过操作所述客户端中的所述交易选择控件生成的交易进行请求,基于交易进行请求和第二替代商品与客户端进行交易。
由上可知,通过游戏商品交易装置,可以接收通过目标游戏的商品交易系统页面触发的商品购买请求,商品购买请求包括客户端想购买的目标商品的目标标识信息,从商品购买请求中获取目标标识信息,基于目标标识信息对目标商品进行交易有效性验证,以确定目标商品是否在商品交易系统中处于可交易状态,若目标商品不处于可交易状态,获取目标商品的目标属性信息,基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择符合客户端购买意愿的商品作为替代商品,基于替代商品与客户端进行交易;由于在本公开实施例中,在客户端想购买的目标商品不处于可交易状态时,从商品交易系统中出于可交易状态的商品中选择符合客户端购买意愿的商品与客户端进行交易,因此,避免了网络延迟等原因导致的商品信息不同步的影响,降低了游戏客户端交易失败的频次,减少了游戏客户端刷新商品交易系统页面、重新从商品交易系统页面中选择新的商品进行交易的请求量,可以提升游戏客户端进行商品交易的效率,减轻游戏应用的后台负载。
为了更好地实施以上方法,相应的,本公开实施例还提供一种游戏商品交易系统。
参考图1,游戏商品交易系统包括客户端10和服务器20;
客户端10用于显示目标游戏的商品交易系统页面,商品交易系统页面包括至少一件可交易商品的商品标识;
客户端10用于响应于对目标商品的购买操作,生成商品购买请求,将商品购买请求发送给目标游戏的服务器,商品购买请求包括通过操作客户端所要购买的目标商品的目标标识信息;
服务器20用于接收商品购买请求,从商品购买请求中获取目标标识信息,基于目标标识信息对目标商品进行交易有效性验证,以确定目标商品是否在商品交易系统中处于可交易状态;
服务器20用于若目标商品不处于可交易状态,服务器获取目标商品的目标属性信息,基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择符合商品购买请求对应的购买意愿的商品作为替代商品;
服务器20用于基于替代商品与客户端进行交易,向客户端发送替代商品交易事件信息;
客户端20接收替代商品交易事件信息,并在商品交易系统页面中予以显示。
客户端10中可以设置有可应用于客户端10的游戏商品交易装置;服务器20中可以设置有可应用于服务器20的游戏商品交易装置。
具体的,在本公开实施例中,各名词解释以及客户端10和服务器20的具体操作实现,可参见前述实施例,本公开实施例对此不再赘述。
由上可知,通过游戏商品交易系统,可以避免网络延迟等原因导致的商品信息不同步的影响,降低了游戏客户端交易失败的频次,减少了游戏客户端刷新商品交易系统页面、重新从商品交易系统页面中选择新的商品进行交易的请求量,可以提升游戏客户端进行商品交易的效率,减轻游戏应用的后台负载。
此外,相应的,本申请实施例还提供一种计算机设备,该计算机设备可以为终端或服务器。如图10所示,图10为本申请实施例提供的计算机设备的结构示意图。该计算机设备1000包括有一个或者一个以上处理核心的处理器1001、有一个或一个以上计算机可读存储介质的存储器1002及存储在存储器1002上并可在处理器上运行的计算机程序。其中,处理器1001与存储器1002电性连接。本领域技术人员可以理解,图中示出的计算机设备结构并不构成对计算机设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
处理器1001是计算机设备1000的控制中心,利用各种接口和线路连接整个计算机设备1000的各个部分,通过运行或加载存储在存储器1002内的软件程序和/或模块,以及调用存储在存储器1002内的数据,执行计算机设备1000的各种功能和处理数据,从而对计算机设备1000进行整体监控。
在本申请实施例中,计算机设备1000中的处理器1001会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器1002中,并由处理器1001来运行存储在存储器1002中的应用程序,从而实现各种功能:
显示目标游戏的商品交易系统页面,商品交易系统页面包括至少一件可交易商品的商品标识;
响应于对目标商品的购买操作,生成商品购买请求;
将商品购买请求发送给服务器,触发服务器响应于商品购买请求,在目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息;
接收替代商品交易事件信息,并在商品交易系统页面中予以显示。
在一些可选的实施例中,将商品购买请求发送给服务器,触发服务器响应于商品购买请求,在目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息,包括:
将商品购买请求发送给服务器,触发服务器在目标商品处于不可交易状态且第一替代商品的出售价格高于目标商品时,发送加价交易信息,第一替代商品的功能属性值与目标商品的目标功能属性值相同;
接收替代商品交易事件信息之前,方法还包括:
接收加价交易信息,基于加价交易信息在商品交易系统页面中显示加价交易控件;
响应于对加价交易控件的交易进行操作,向服务器发送交易进行请求,触发服务器基于第一替代商品进行交易以及发送替代商品交易成功信息;
接收替代商品交易事件信息,并在商品交易系统页面中予以显示,包括:
接收替代商品交易成功信息,并在商品交易系统页面中予以显示。
在一些可选的实施例中,将商品购买请求发送给服务器,触发服务器响应于商品购买请求,在目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息,包括:
将商品购买请求发送给服务器,触发服务器在目标商品处于不可交易状态且仅存在第二替代商品可交易时,发送交易选择信息,第二替代商品的功能属性值与目标商品的目标功能属性值不相同,或者,第二替代商品的功能属性值与目标功能属性值相同且出售价格高于目标商品;
接收替代商品交易事件信息之前,方法还包括:
接收交易选择信息,基于交易选择信息在商品交易系统页面中显示交易选择控件;
响应于对交易选择控件的交易进行操作,向服务器发送交易进行请求,触发服务器基于第二替代商品进行交易以及发送替代商品交易成功信息。
或者,计算机设备1000中的处理器1001会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器1002中,并由处理器1001来运行存储在存储器1002中的应用程序,从而实现各种功能:
接收通过目标游戏的商品交易系统页面触发的商品购买请求,商品购买请求包括通过操作客户端所要购买的目标商品的目标标识信息;
从商品购买请求中获取目标标识信息,基于目标标识信息对目标商品进行交易有效性验证,以确定目标商品是否在商品交易系统中处于可交易状态;
若目标商品不处于可交易状态,获取目标商品的目标属性信息;
基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择符合商品购买请求对应的购买意愿的商品作为替代商品;
基于替代商品与客户端进行交易。
在一些可选的实施例中,基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择符合商品购买请求对应的购买意愿的商品作为替代商品,包括:
基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择与目标属性信息匹配的商品作为替代商品。
在一些可选的实施例中,目标属性信息包括目标属性类型和目标属性值,基于目标属性信息,从处于可交易状态的商品中选择与目标属性信息匹配的商品作为替代商品,包括:
基于目标属性类型,从处于可交易状态的商品中选择与目标属性类型匹配的商品作为第一候选商品;
获取第一候选商品的属性值,将属性值与目标属性值之间的属性值差异在预设差异范围内的第一候选商品作为替代商品。
在一些可选的实施例中,目标属性值包括目标出售价格和目标功能属性值,属性值包括出售价格和功能属性值,基于替代商品与客户端进行交易,包括:
基于替代商品的功能属性值,从替代商品中确定功能属性值与目标功能属性值相同的第一替代商品;
若第一替代商品中存在出售价格不高于目标出售价格的目标替代商品,基于目标替代商品与客户端进行交易。
在一些可选的实施例中,本公开实施例提供的游戏商品交易方法还包括:
若第一替代商品中不存在出售价格不高于目标出售价格的目标替代商品,向客户端发送加价交易信息,触发客户端基于加价交易信息显示加价交易选择控件;
接收通过操作客户端中的加价交易选择控件生成的交易进行请求,基于交易进行请求和第一替代商品与客户端进行交易。
在一些可选的实施例中,目标属性值包括目标数量和目标关联属性值,第一候选商品的属性值包括第一候选商品的可交易数量以及第一候选商品的关联属性值;
获取第一候选商品的属性值,将属性值与目标属性值之间的属性值差异在预设差异范围内的第一候选商品作为替代商品,包括:
获取第一候选商品的可交易数量以及第一候选商品的关联属性值;
若第一候选商品的关联属性值与目标关联属性值相同,将第一候选商品作为替代商品;
基于替代商品与客户端进行交易,包括:
基于替代商品的可交易数量,与客户端进行交易。
在一些可选的实施例中,目标属性值包括目标出售价格和目标功能属性值,属性值包括出售价格和功能属性值;
基于替代商品与客户端进行交易,包括:
基于替代商品的功能属性值,从替代商品中确定功能属性值与目标功能属性值不相同,或,功能属性值与目标功能属性值相同且出售价格高于目标出售价格的第二替代商品;
根据第二替代商品的出售价格和功能属性值,确定第二替代商品与目标商品之间的商品差异信息;
向客户端发送交易选择信息,交易选择信息中包括商品差异信息,触发客户端基于交易选择信息显示包括商品差异信息的交易选择控件;
接收通过操作客户端中的交易选择控件生成的交易进行请求,基于交易进行请求和第二替代商品与客户端进行交易。
本方案可以接收通过目标游戏的商品交易系统页面触发的商品购买请求,商品购买请求包括客户端想购买的目标商品的目标标识信息,从商品购买请求中获取目标标识信息,基于目标标识信息对目标商品进行交易有效性验证,以确定目标商品是否在商品交易系统中处于可交易状态,若目标商品不处于可交易状态,获取目标商品的目标属性信息,基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择符合客户端购买意愿的商品作为替代商品,基于替代商品与客户端进行交易;可以降低游戏客户端交易失败的频次,提升游戏客户端进行商品交易的效率,减轻游戏应用的后台负载。
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。
可选的,如图10所示,计算机设备1000还包括:触控显示屏1003、射频电路1004、音频电路1005、输入单元1006以及电源1007。其中,处理器1001分别与触控显示屏1003、射频电路1004、音频电路1005、输入单元1006以及电源1007电性连接。本领域技术人员可以理解,图10中示出的计算机设备结构并不构成对计算机设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
触控显示屏1003可用于显示图形客户端界面以及接收客户端作用于图形客户端界面产生的操作指令。触控显示屏1003可以包括显示面板和触控面板。其中,显示面板可用于显示由客户端输入的信息或提供给客户端的信息以及计算机设备的各种图形客户端接口,这些图形客户端接口可以由图形、文本、图标、视频和其任意组合来构成。可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。触控面板可用于收集客户端在其上或附近的触摸操作(比如客户端使用手指、触笔等任何适合的物体或附件在触控面板上或在触控面板附近的操作),并生成相应的操作指令,且操作指令执行对应程序。可选的,触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测客户端的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1001,并能接收处理器1001发来的命令并加以执行。触控面板可覆盖显示面板,当触控面板检测到在其上或附近的触摸操作后,传送给处理器1001以确定触摸事件的类型,随后处理器1001根据触摸事件的类型在显示面板上提供相应的视觉输出。在本申请实施例中,可以将触控面板与显示面板集成到触控显示屏1003而实现输入和输出功能。但是在某些实施例中,触控面板与触控面板可以作为两个独立的部件来实现输入和输出功能。即触控显示屏1003也可以作为输入单元1006的一部分实现输入功能。
射频电路1004可用于收发射频信号,以通过无线通信与网络设备或其他计算机设备建立无线通讯,与网络设备或其他计算机设备之间收发信号。
音频电路1005可以用于通过扬声器、传声器提供客户端与计算机设备之间的音频接口。音频电路1005可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路1005接收后转换为音频数据,再将音频数据输出处理器1001处理后,经射频电路1004以发送给比如另一计算机设备,或者将音频数据输出至存储器1002以便进一步处理。音频电路1005还可能包括耳塞插孔,以提供外设耳机与计算机设备的通信。
输入单元1006可用于接收输入的数字、字符信息或客户端特征信息(例如指纹、虹膜、面部信息等),以及产生与客户端设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。
电源1007用于给计算机设备1000的各个部件供电。可选的,电源1007可以通过电源管理系统与处理器1001逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源1007还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管图10中未示出,计算机设备1000还可以包括摄像头、传感器、无线保真模块、蓝牙模块等,在此不再赘述。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
由上可知,本实施例提供的计算机设备,可以显示目标游戏的商品交易系统页面,该商品交易系统页面包括至少一件可交易商品的商品标识,响应于对目标商品的购买操作,生成商品购买请求,将该商品购买请求发送给服务器,触发该服务器响应于该商品购买请求,在该目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息,接收该替代商品交易事件信息,并在所述商品交易系统页面中予以显示;可以降低游戏用户交易失败的频次,提升游戏用户进行商品交易的效率,减轻游戏应用的后台负载。
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。
为此,本申请实施例提供一种计算机可读存储介质,其中存储有多条计算机程序,该计算机程序能够被处理器进行加载,以执行本申请实施例所提供的任一种游戏商品交易方法中的步骤。例如,该计算机程序可以执行如下步骤:
显示目标游戏的商品交易系统页面,商品交易系统页面包括至少一件可交易商品的商品标识;
响应于对目标商品的购买操作,生成商品购买请求;
将商品购买请求发送给服务器,触发服务器响应于商品购买请求,在目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息;
接收替代商品交易事件信息,并在商品交易系统页面中予以显示。
在一些可选的实施例中,将商品购买请求发送给服务器,触发服务器响应于商品购买请求,在目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息,包括:
将商品购买请求发送给服务器,触发服务器在目标商品处于不可交易状态且第一替代商品的出售价格高于目标商品时,发送加价交易信息,第一替代商品的功能属性值与目标商品的目标功能属性值相同;
接收替代商品交易事件信息之前,方法还包括:
接收加价交易信息,基于加价交易信息在商品交易系统页面中显示加价交易控件;
响应于对加价交易控件的交易进行操作,向服务器发送交易进行请求,触发服务器基于第一替代商品进行交易以及发送替代商品交易成功信息;
接收替代商品交易事件信息,并在商品交易系统页面中予以显示,包括:
接收替代商品交易成功信息,并在商品交易系统页面中予以显示。
在一些可选的实施例中,将商品购买请求发送给服务器,触发服务器响应于商品购买请求,在目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息,包括:
将商品购买请求发送给服务器,触发服务器在目标商品处于不可交易状态且仅存在第二替代商品可交易时,发送交易选择信息,第二替代商品的功能属性值与目标商品的目标功能属性值不相同,或者,第二替代商品的功能属性值与目标功能属性值相同且出售价格高于目标商品;
接收替代商品交易事件信息之前,方法还包括:
接收交易选择信息,基于交易选择信息在商品交易系统页面中显示交易选择控件;
响应于对交易选择控件的交易进行操作,向服务器发送交易进行请求,触发服务器基于第二替代商品进行交易以及发送替代商品交易成功信息。
或者,计算机设备1000中的处理器1001会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器1002中,并由处理器1001来运行存储在存储器1002中的应用程序,从而实现各种功能:
接收通过目标游戏的商品交易系统页面触发的商品购买请求,商品购买请求包括通过操作客户端所要购买的目标商品的目标标识信息;
从商品购买请求中获取目标标识信息,基于目标标识信息对目标商品进行交易有效性验证,以确定目标商品是否在商品交易系统中处于可交易状态;
若目标商品不处于可交易状态,获取目标商品的目标属性信息;
基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择符合商品购买请求对应的购买意愿的商品作为替代商品;
基于替代商品与客户端进行交易。
在一些可选的实施例中,基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择符合商品购买请求对应的购买意愿的商品作为替代商品,包括:
基于目标属性信息,从商品交易系统中处于可交易状态的商品中选择与目标属性信息匹配的商品作为替代商品。
在一些可选的实施例中,目标属性信息包括目标属性类型和目标属性值,基于目标属性信息,从处于可交易状态的商品中选择与目标属性信息匹配的商品作为替代商品,包括:
基于目标属性类型,从处于可交易状态的商品中选择与目标属性类型匹配的商品作为第一候选商品;
获取第一候选商品的属性值,将属性值与目标属性值之间的属性值差异在预设差异范围内的第一候选商品作为替代商品。
在一些可选的实施例中,目标属性值包括目标出售价格和目标功能属性值,属性值包括出售价格和功能属性值,基于替代商品与客户端进行交易,包括:
基于替代商品的功能属性值,从替代商品中确定功能属性值与目标功能属性值相同的第一替代商品;
若第一替代商品中存在出售价格不高于目标出售价格的目标替代商品,基于目标替代商品与客户端进行交易。
在一些可选的实施例中,本公开实施例提供的游戏商品交易方法还包括:
若第一替代商品中不存在出售价格不高于目标出售价格的目标替代商品,向客户端发送加价交易信息,触发客户端基于加价交易信息显示加价交易选择控件;
接收通过操作客户端中的加价交易选择控件生成的交易进行请求,基于交易进行请求和第一替代商品与客户端进行交易。
在一些可选的实施例中,目标属性值包括目标数量和目标关联属性值,第一候选商品的属性值包括第一候选商品的可交易数量以及第一候选商品的关联属性值;
获取第一候选商品的属性值,将属性值与目标属性值之间的属性值差异在预设差异范围内的第一候选商品作为替代商品,包括:
获取第一候选商品的可交易数量以及第一候选商品的关联属性值;
若第一候选商品的关联属性值与目标关联属性值相同,且第一候选商品的可交易数量小于目标商品的目标数量,将第一候选商品作为替代商品;
基于替代商品与客户端进行交易,包括:
基于替代商品的可交易数量,与客户端进行交易。
在一些可选的实施例中,目标属性值包括目标出售价格和目标功能属性值,属性值包括出售价格和功能属性值;
基于替代商品与客户端进行交易,包括:
基于替代商品的功能属性值,从替代商品中确定功能属性值与目标功能属性值不相同,或,功能属性值与目标功能属性值相同且出售价格高于目标出售价格的第二替代商品;
根据第二替代商品的出售价格和功能属性值,确定第二替代商品与目标商品之间的商品差异信息;
向客户端发送交易选择信息,交易选择信息中包括商品差异信息,触发客户端基于交易选择信息显示包括商品差异信息的交易选择控件;
接收通过操作客户端中的交易选择控件生成的交易进行请求,基于交易进行请求和第二替代商品与客户端进行交易。
本方案可以显示目标游戏的商品交易系统页面,该商品交易系统页面包括至少一件可交易商品的商品标识,响应于对目标商品的购买操作,生成商品购买请求,将该商品购买请求发送给服务器,触发该服务器响应于该商品购买请求,在该目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息,接收该替代商品交易事件信息,并在所述商品交易系统页面中予以显示;可以降低游戏用户交易失败的频次,提升游戏用户进行商品交易的效率,减轻游戏应用的后台负载。
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。
其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
由于该存储介质中所存储的计算机程序,可以执行本申请实施例所提供的任一种游戏商品交易方法中的步骤,因此,可以实现本申请实施例所提供的任一种游戏商品交易方法所能实现的有益效果,详见前面的实施例,在此不再赘述。
以上对本申请实施例所提供的游戏商品交易方法、装置、系统、电子设备和存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (16)

  1. 一种游戏商品交易方法,应用于客户端,包括:
    显示目标游戏的商品交易系统页面,所述商品交易系统页面包括至少一件可交易商品的商品标识;
    响应于对目标商品的购买操作,生成商品购买请求;
    将所述商品购买请求发送给服务器,触发所述服务器响应于所述商品购买请求,在所述目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息;
    接收所述替代商品交易事件信息,并在所述商品交易系统页面中予以显示。
  2. 根据权利要求1所述的游戏商品交易方法,其中,所述将所述商品购买请求发送给服务器,触发所述服务器响应于所述商品购买请求,在所述目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息,包括:
    将所述商品购买请求发送给服务器,触发所述服务器在所述目标商品处于不可交易状态且第一替代商品的出售价格高于所述目标商品时,发送加价交易信息,所述第一替代商品的功能属性值与所述目标商品的目标功能属性值相同;
    所述接收所述替代商品交易事件信息之前,所述方法还包括:
    接收所述加价交易信息,基于所述加价交易信息在所述商品交易系统页面中显示加价交易控件;
    响应于对所述加价交易控件的交易进行操作,向所述服务器发送交易进行请求,触发所述服务器基于所述第一替代商品进行交易以及发送替代商品交易成功信息;
    所述接收所述替代商品交易事件信息,并在所述商品交易系统页面中予以显示,包括:
    接收所述替代商品交易成功信息,并在所述商品交易系统页面中予以显示。
  3. 根据权利要求1所述的游戏商品交易方法,其中,所述将所述商品购买请求发送给服务器,触发所述服务器响应于所述商品购买请求,在所述目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息,包括:
    将所述商品购买请求发送给服务器,触发所述服务器在所述目标商品处于不可交易状态且仅存在第二替代商品可交易时,发送交易选择信息,所述第二替代商品的功能属性值与所述目标商品的目标功能属性值不相同,或者,所述第二替代商品的功能属性值与所述目标功能属性值相同且出售价格高于所述目标商品;
    所述接收所述替代商品交易事件信息之前,所述方法还包括:
    接收所述交易选择信息,基于所述交易选择信息在所述商品交易系统页面中显示交易选择控件;
    响应于对所述交易选择控件的交易进行操作,向所述服务器发送交易进行请求,触发所述服务器基于所述第二替代商品进行交易以及发送替代商品交易成功信息。
  4. 一种游戏商品交易方法,应用于服务器,包括:
    接收通过目标游戏的客户端触发的商品购买请求,所述商品购买请求包括通过操作所述客户端所要购买的目标商品的目标标识信息;
    从所述商品购买请求中获取所述目标标识信息,基于所述目标标识信息对所述目标商品进行交易有效性验证,以确定所述目标商品是否在商品交易系统中处于可交易状态;
    若所述目标商品不处于可交易状态,获取所述目标商品的目标属性信息;
    基于所述目标属性信息,从所述商品交易系统中处于可交易状态的商品中选择符合所述商品购买请求对应的购买意愿的商品作为替代商品;
    基于所述替代商品与所述客户端进行交易。
  5. 根据权利要求4所述的游戏商品交易方法,其中,所述基于所述目标属性信息,从所述商品交易系统中处于可交易状态的商品中选择符合所述商品购买请求对应的购买意愿的商品作为替代商品,包括:
    基于所述目标属性信息,从所述商品交易系统中处于可交易状态的商品中选择与所述目标属性信息匹配的商品作为替代商品。
  6. 根据权利要求5所述的游戏商品交易方法,其中,所述目标属性信息包括目标属性类型和目标属性值;
    所述基于所述目标属性信息,从处于可交易状态的商品中选择与所述目标属性信息匹配的商品作为替代商品,包括:
    基于所述目标属性类型,从处于可交易状态的商品中选择与所述目标属性类型匹配的商品作为第一候选商品;
    获取所述第一候选商品的属性值,将所述属性值与所述目标属性值之间的属性值差异在预设差异范围内的第一候选商品作为替代商品。
  7. 根据权利要求6所述的游戏商品交易方法,其中,所述目标属性值包括目标出售价格和目标功能属性值,所述属性值包括出售价格和功能属性值;
    所述基于所述替代商品与所述客户端进行交易,包括:
    基于所述替代商品的功能属性值,从所述替代商品中确定所述功能属性值与所述目标功能属性值相同的第一替代商品;
    若所述第一替代商品中存在出售价格不高于所述目标出售价格的目标替代商品,基于所述目标替代商品与所述客户端进行交易。
  8. 根据权利要求7所述的游戏商品交易方法,其中,所述方法还包括:
    若所述第一替代商品中不存在出售价格不高于所述目标出售价格的目标替代商品,向所述客户端发送加价交易信息,触发所述客户端基于所述加价交易信息显示加价交易选择控件;
    接收通过操作所述客户端中的所述加价交易选择控件生成的交易进行请求,基于所述交易进行请求和所述第一替代商品与所述客户端进行交易。
  9. 根据权利要求6所述的游戏商品交易方法,其中,所述目标属性值包括目标数量和目标关联属性值,所述第一候选商品的属性值包括所述第一候选商品的可交易数量以及所述第一候选商品的关联属性值;
    所述获取所述第一候选商品的属性值,将所述属性值与所述目标属性值之间的属性值差异在预设差异范围内的第一候选商品作为替代商品,包括:
    获取所述第一候选商品的可交易数量以及所述第一候选商品的关联属性值;
    若所述第一候选商品的关联属性值与所述目标关联属性值相同,将所述第一候选商品作为替代商品;
    所述基于所述替代商品与所述客户端进行交易,包括:
    基于所述替代商品的可交易数量,与所述客户端进行交易。
  10. 根据权利要求6所述的游戏商品交易方法,其中,所述目标属性值包括目标出售价格和目标功能属性值,所述属性值包括出售价格和功能属性值;
    所述基于所述替代商品与所述客户端进行交易,包括:
    基于所述替代商品的功能属性值,从所述替代商品中确定所述功能属性值与所述目标功能属性值不相同,或,所述功能属性值与所述目标功能属性值相同且出售价格高于所述目标出售价格的第二替代商品;
    根据所述第二替代商品的所述出售价格和所述功能属性值,确定所述第二替代商品与所述目标商品之间的商品差异信息;
    向所述客户端发送交易选择信息,所述交易选择信息中包括所述商品差异信息,触发所述客户端基于所述交易选择信息显示包括所述商品差异信息的交易选择控件;
    接收通过操作所述客户端中的所述交易选择控件生成的交易进行请求,基于所述交易进行请求和所述第二替代商品与所述客户端进行交易。
  11. 一种游戏商品交易方法,包括:
    客户端显示目标游戏的商品交易系统页面,所述商品交易系统页面包括至少一件可交易商品的商品标识;
    客户端响应于对目标商品的购买操作,生成商品购买请求,将所述商品购买请求发送给目标游戏的服务器,所述商品购买请求包括通过操作所述客户端所要购买的目标商品的目标标识信息;
    服务器接收所述商品购买请求,从所述商品购买请求中获取所述目标标识信息,基于所述目标标识信息对所述目标商品进行交易有效性验证,以确定所述目标商品是否在商品交易系统中处于可交易状态;
    若所述目标商品不处于可交易状态,服务器获取所述目标商品的目标属性信息,基于所述目标属性信息,从所述商品交易系统中处于可交易状态的商品中选择符合所述商品购买请求对应的购买意愿的商品作为替代商品;
    服务器基于所述替代商品与所述客户端进行交易,向所述客户端发送替代商品交易事件信息;
    客户端接收所述替代商品交易事件信息,并在所述商品交易系统页面中予以显示。
  12. 一种游戏商品交易装置,应用于客户端,包括:
    页面显示单元,用于显示目标游戏的商品交易系统页面,所述商品交易系统页面包括至少一件可交易商品的商品标识;
    请求生成单元,用于响应于对目标商品的购买操作,生成商品购买请求;
    请求发送单元,用于将所述商品购买请求发送给服务器,触发所述服务器响应于所述商品购买请求,在所述目标商品处于不可交易状态时选择替代商品进行交易以及发送替代商品交易事件信息;
    信息接收单元,用于接收所述替代商品交易事件信息,并在所述商品交易系统页面中予以显示。
  13. 一种游戏商品交易装置,应用于服务器,包括:
    购买请求接收单元,用于接收通过目标游戏的客户端触发的商品购买请求,所述商品购买请求包括通过操作所述客户端所要购买的目标商品的目标标识信息;
    有效性验证单元,用于从所述商品购买请求中获取所述目标标识信息,基于所述目标标识信息对所述目标商品进行交易有效性验证,以确定所述目标商品是否在商品交易系统中处于可交易状态;
    属性信息获取单元,用于若所述目标商品不处于可交易状态,获取所述目标商品的目标属性信息;
    替代商品选择单元,用于基于所述目标属性信息,从所述商品交易系统中处于可交易状态的商品中选择符合所述商品购买请求对应的购买意愿的商品作为替代商品;
    交易单元,用于基于所述替代商品与所述客户端进行交易。
  14. 一种游戏商品交易系统,所述游戏商品交易系统包括客户端和服务器;
    所述客户端用于显示目标游戏的商品交易系统页面,所述商品交易系统页面包括至少一件可交易商品的商品标识;
    所述客户端用于响应于对目标商品的购买操作,生成商品购买请求,将所述商品购买请求发送给目标游戏的服务器,所述商品购买请求包括通过操作所述客户端所要购买的目标商品的目标标识信息;
    所述服务器用于接收所述商品购买请求,从所述商品购买请求中获取所述目标标识信息,基于所述目标标识信息对所述目标商品进行交易有效性验证,以确定所述目标商品是否在商品交易系统中处于可交易状态;
    所述服务器用于若所述目标商品不处于可交易状态,服务器获取所述目标商品的目标属性信息,基于所述目标属性信息,从所述商品交易系统中处于可交易状态的商品中选择符合所述商品购买请求对应的购买意愿的商品作为替代商品;
    所述服务器用于基于所述替代商品与所述客户端进行交易,向所述客户端发送替代商品交易事件信息;
    所述客户端接收所述替代商品交易事件信息,并在所述商品交易系统页面中予以显示。
  15. 一种电子设备,包括存储器和处理器;所述存储器存储有应用程序,所述处理器用于运行所述存储器内的应用程序,以执行权利要求1至11任一项所述的游戏商品交易方法中的步骤。
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有多条指令,所述指令适于处理器进行加载,以执行权利要求1至11任一项所述的游戏商品交易方法中的步骤。
PCT/CN2023/086037 2022-10-21 2023-04-03 游戏商品交易方法、装置、系统、电子设备和存储介质 WO2024082565A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211295078.1A CN115660777A (zh) 2022-10-21 2022-10-21 游戏商品交易方法、装置、系统、电子设备和存储介质
CN202211295078.1 2022-10-21

Publications (1)

Publication Number Publication Date
WO2024082565A1 true WO2024082565A1 (zh) 2024-04-25

Family

ID=84989565

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/086037 WO2024082565A1 (zh) 2022-10-21 2023-04-03 游戏商品交易方法、装置、系统、电子设备和存储介质

Country Status (2)

Country Link
CN (1) CN115660777A (zh)
WO (1) WO2024082565A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115660777A (zh) * 2022-10-21 2023-01-31 网易(杭州)网络有限公司 游戏商品交易方法、装置、系统、电子设备和存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200009461A1 (en) * 2018-07-06 2020-01-09 Nexon Korea Corporation Method, apparatus, computer program, and computer program product for providing game
CN110910208A (zh) * 2019-11-12 2020-03-24 清华大学 一种网络交易方法及装置、存储介质和设备
CN111127129A (zh) * 2019-03-27 2020-05-08 杭州拍拍街科技有限公司 一种商品交易系统及方法
CN111815419A (zh) * 2020-07-17 2020-10-23 网易(杭州)网络有限公司 游戏中虚拟商品的推荐方法、装置及电子设备
CN112402948A (zh) * 2020-12-04 2021-02-26 网易(杭州)网络有限公司 虚拟物品处理方法、装置、存储介质及终端
CN114177622A (zh) * 2021-12-10 2022-03-15 腾讯科技(深圳)有限公司 虚拟道具的上架方法、虚拟道具的购买方法、装置及终端
CN115660777A (zh) * 2022-10-21 2023-01-31 网易(杭州)网络有限公司 游戏商品交易方法、装置、系统、电子设备和存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200009461A1 (en) * 2018-07-06 2020-01-09 Nexon Korea Corporation Method, apparatus, computer program, and computer program product for providing game
CN111127129A (zh) * 2019-03-27 2020-05-08 杭州拍拍街科技有限公司 一种商品交易系统及方法
CN110910208A (zh) * 2019-11-12 2020-03-24 清华大学 一种网络交易方法及装置、存储介质和设备
CN111815419A (zh) * 2020-07-17 2020-10-23 网易(杭州)网络有限公司 游戏中虚拟商品的推荐方法、装置及电子设备
CN112402948A (zh) * 2020-12-04 2021-02-26 网易(杭州)网络有限公司 虚拟物品处理方法、装置、存储介质及终端
CN114177622A (zh) * 2021-12-10 2022-03-15 腾讯科技(深圳)有限公司 虚拟道具的上架方法、虚拟道具的购买方法、装置及终端
CN115660777A (zh) * 2022-10-21 2023-01-31 网易(杭州)网络有限公司 游戏商品交易方法、装置、系统、电子设备和存储介质

Also Published As

Publication number Publication date
CN115660777A (zh) 2023-01-31

Similar Documents

Publication Publication Date Title
US20150004932A1 (en) Configurable price matrix for mobile billing at a merchant server
WO2024082565A1 (zh) 游戏商品交易方法、装置、系统、电子设备和存储介质
CN110585698B (zh) 一种虚拟资产交易的方法以及相关装置
US20230097001A1 (en) Microtransaction detection and authorization systems and methods
US11233897B1 (en) Secure call center communications
JP2014178729A (ja) 商品販売装置及び商品販売方法
CN110115836B (zh) 一种虚拟财产交易的方法以及相关装置
US11786825B2 (en) Fraud detection system
CN114581229A (zh) 基于区块链的游戏资产处理方法、装置、介质及设备
US20220086809A1 (en) Communication channel merging system
US20150149349A1 (en) Redeemable code to text
CN106559306B (zh) 基于群视频的信息处理方法和装置
US20180053126A1 (en) Platform and method for transferring business
CN110806864B (zh) 虚拟卡牌的获取、发放方法、装置、设备及可读存储介质
CN110443684A (zh) 组合产品快照式价格信息处理方法及装置
KR20210089562A (ko) 블록체인을 기반으로 현물 자산의 거래를 가능하게 하는 자산 거래 플랫폼 서버 및 그 동작 방법
JP7383744B2 (ja) オブジェクト取引システム、情報処理装置、プログラム及びオブジェクト取引方法
WO2023176120A1 (ja) オブジェクト提供システム、オブジェクト利用システム、情報処理装置、プログラム及びオブジェクト提供方法
US10039987B2 (en) Methods and systems for an input device with an e-commerce button
CN111932272B (zh) 基于vr设备的支付方法及装置
JP6821740B2 (ja) コンピュータプログラム、およびコンピュータ装置
EP4276729A1 (en) Auctions in extended reality environments
CN115967816A (zh) 直播交互方法、装置、存储介质及电子设备
US20220410016A1 (en) Method for game account trading
TWM511071U (zh) 拍賣網站之伺服器及購物系統