CN113129101B - Commodity display interface display method, related equipment and readable storage medium - Google Patents

Commodity display interface display method, related equipment and readable storage medium Download PDF

Info

Publication number
CN113129101B
CN113129101B CN202110417593.1A CN202110417593A CN113129101B CN 113129101 B CN113129101 B CN 113129101B CN 202110417593 A CN202110417593 A CN 202110417593A CN 113129101 B CN113129101 B CN 113129101B
Authority
CN
China
Prior art keywords
commodity
server
list
identifications
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110417593.1A
Other languages
Chinese (zh)
Other versions
CN113129101A (en
Inventor
田洪银
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202110417593.1A priority Critical patent/CN113129101B/en
Publication of CN113129101A publication Critical patent/CN113129101A/en
Application granted granted Critical
Publication of CN113129101B publication Critical patent/CN113129101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces
    • G06Q30/0643Graphical representation of items or shoppers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/53Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by executing in a restricted environment, e.g. sandbox or secure virtual machine
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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]
    • G06Q30/0623Item investigation
    • G06Q30/0625Directed, with specific intent or strategy
    • G06Q30/0627Directed, with specific intent or strategy using item specifications
    • 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]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a display method of a commodity display interface, related equipment and a readable storage medium, wherein the method comprises the following steps: under the condition that the starting of the target application is detected, a first commodity list corresponding to the target application is obtained, and K pieces of display information corresponding to K commodities in the first commodity list are obtained; a first request is sent to a first server, wherein the first request is used for requesting to obtain N commodity identifications to be displayed in a commodity display interface from the first server, and N is a positive integer less than or equal to K; receiving N commodity identifications sent by a first server; and displaying a commodity display interface based on commodity detail information corresponding to each commodity identifier in the N commodity identifiers under the condition that the N commodity identifiers are contained in the first commodity list. Therefore, the client can directly display the commodity display interface according to the acquired display information without waiting for a long time to download the display information corresponding to the commodity identification to be displayed, so that the display efficiency of the commodity display interface is improved.

Description

Commodity display interface display method, related equipment and readable storage medium
Technical Field
The application belongs to the technical field of in-application purchase, and particularly relates to a display method of a commodity display interface, related equipment and a readable storage medium.
Background
With the use of an In-app purchase (IAP) technology on an iOS system terminal, when a user needs to purchase a commodity (such as a virtual commodity and a virtual service) In an application program of the iOS system terminal, display information (such as SKProduct data) corresponding to a commodity identifier to be displayed needs to be downloaded from a server of an apple company through an IAP framework, and only the display information corresponding to the commodity identifier to be displayed is obtained, the commodity display interface can be displayed.
In the prior art, generally, when an application program requests to display a commodity display interface, display information corresponding to a commodity identifier to be displayed is downloaded from a server of an apple company through an IAP framework, and because it takes a long time to download the display information corresponding to the commodity identifier to be displayed from the server of the apple company, the user interface is always in a loading state, so that the display efficiency of the commodity display interface is lower.
Disclosure of Invention
The embodiment of the application aims to provide a display method, related equipment and readable storage medium for a commodity display interface, which can solve the problem that in the prior art, when the commodity display interface is displayed, the display information corresponding to a commodity identifier to be displayed is downloaded from a server of an apple company, so that the user interface is always in a loading state, and the display efficiency of the commodity display interface is low.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for displaying a merchandise display interface, which is executed on a client, where the method includes:
under the condition that the starting of a target application is detected, a first commodity list corresponding to the target application is obtained, K showing information corresponding to K commodities in the first commodity list is obtained, wherein the first commodity list comprises K commodity identifications corresponding to K commodities which are allowed to conduct transactions in the target application, one piece of showing information comprises the commodity identifications and commodity detail information corresponding to the commodity identifications, and K is a positive integer;
a first request is sent to a first server, wherein the first request is used for requesting to acquire N commodity identifications to be displayed in a commodity display interface from the first server, and N is a positive integer less than or equal to K;
receiving the N commodity identifications sent by the first server;
and displaying the commodity display interface based on commodity detail information corresponding to each commodity identifier in the N commodity identifiers under the condition that the N commodity identifiers are contained in the first commodity list.
In a second aspect, an embodiment of the present application provides a method for displaying a merchandise display interface, performed on a first server, where the method includes:
receiving a first request sent by a client, wherein the client is used for acquiring a first commodity list corresponding to a target application and acquiring K display information corresponding to K commodities in the first commodity list under the condition that the target application is detected to be started, the first commodity list comprises K commodity identifications corresponding to K commodities which are allowed to be transacted in the target application, one piece of display information comprises the commodity identifications and commodity detail information corresponding to the commodity identifications, and K is a positive integer;
acquiring N commodity identifications to be displayed in a commodity display interface, wherein N is a positive integer less than or equal to K;
and sending the N commodity identifications to the client so that the client displays the commodity display interface based on commodity detail information corresponding to each commodity identification in the N commodity identifications when the N commodity identifications are contained in the first commodity list.
In a third aspect, an embodiment of the present application provides a display device of a merchandise display interface, where the device is a client, and the device includes:
The first acquisition module is used for acquiring a first commodity list corresponding to a target application and acquiring K showing information corresponding to K commodities in the first commodity list under the condition that the target application is detected to be started, wherein the first commodity list comprises K commodity identifications corresponding to K commodities which are allowed to conduct transactions in the target application, one piece of showing information comprises the commodity identifications and commodity detail information corresponding to the commodity identifications, and K is a positive integer;
the first sending module is used for sending a first request to a first server, wherein the first request is used for requesting to obtain N commodity identifications to be displayed in a commodity display interface from the first server, and N is a positive integer less than or equal to K;
the first receiving module is used for receiving the N commodity identifications sent by the first server;
and the display module is used for displaying the commodity display interface based on commodity detail information corresponding to each commodity identifier in the N commodity identifiers when the N commodity identifiers are contained in the first commodity list.
In a fourth aspect, an embodiment of the present application provides a display device of a merchandise display interface, the device being a first server, the device including:
The third receiving module is used for receiving a first request sent by a client, wherein the client is used for acquiring a first commodity list corresponding to a target application and acquiring K showing information corresponding to K commodities in the first commodity list under the condition that the target application is detected to be started, the first commodity list comprises K commodity identifications corresponding to K commodities allowed to be transacted in the target application, one piece of showing information comprises the commodity identifications and commodity detail information corresponding to the commodity identifications, and K is a positive integer;
the second acquisition module is used for acquiring N commodity identifications to be displayed in the commodity display interface, wherein N is a positive integer less than or equal to K;
and the third sending module is used for sending the N commodity identifications to the client so that the client displays the commodity display interface based on commodity detail information corresponding to each commodity identification in the N commodity identifications when the N commodity identifications are contained in the first commodity list.
In a fifth aspect, embodiments of the present application provide an electronic device comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor, or the program or instruction implementing the steps of the method according to the second aspect when executed by the processor.
In a sixth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the method according to the first aspect, or which, when executed by the processor, implement the steps of the method according to the second aspect.
In the embodiment of the application, under the condition that the starting of a target application is detected, a first commodity list corresponding to the target application is obtained, K showing information corresponding to K commodities in the first commodity list is obtained, wherein the first commodity list comprises K commodity identifications corresponding to K commodities which are allowed to conduct transactions in the target application, one piece of showing information comprises the commodity identifications and commodity detail information corresponding to the commodity identifications, and K is a positive integer; a first request is sent to a first server, wherein the first request is used for requesting to acquire N commodity identifications to be displayed in a commodity display interface from the first server, and N is a positive integer less than or equal to K; receiving the N commodity identifications sent by the first server; and displaying the commodity display interface based on commodity detail information corresponding to each commodity identifier in the N commodity identifiers under the condition that the N commodity identifiers are contained in the first commodity list. In this way, the client can acquire the first commodity list and K pieces of display information of the target application after detecting that the target application is started, so that when the target application needs to request to display the commodity display interface, the client can directly display the commodity display interface according to the acquired display information, and the client does not need to wait for a long time to download the display information corresponding to the commodity identifier to be displayed after initiating the commodity display interface request, thereby improving the display efficiency of the commodity display interface.
Drawings
Fig. 1 is one of flowcharts of a method for displaying a merchandise display interface according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of an in-application purchasing system according to an embodiment of the present disclosure;
fig. 3 is a detailed flowchart of a step of obtaining a first commodity list corresponding to the target application provided in the embodiment of the present application;
fig. 4 is a detailed flowchart of a step of obtaining K pieces of display information corresponding to K pieces of commodities in the first commodity list provided in the embodiment of the present application;
fig. 5 is a detailed flowchart of a step of displaying the commodity display interface based on commodity detail information corresponding to each of the N commodity identifications according to the embodiment of the present application;
FIG. 6 is a second flowchart of a method for displaying a merchandise display interface according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a display device of a merchandise display interface according to an embodiment of the present disclosure;
FIG. 8 is a second schematic diagram of a display device of a merchandise display interface according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a client according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a first server according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The method for displaying the commodity display interface provided by the embodiment of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is one of flowcharts of a method for displaying a merchandise display interface according to an embodiment of the present application, and as shown in fig. 1, the method for displaying a merchandise display interface may include the following steps:
step 101, under the condition that the target application is detected to be started, acquiring a first commodity list corresponding to the target application, and acquiring K showing information corresponding to K commodities in the first commodity list, wherein the first commodity list comprises K commodity identifications corresponding to K commodities allowed to conduct transactions in the target application, and one showing information comprises the commodity identifications and commodity detail information corresponding to the commodity identifications, and K is a positive integer.
Specifically, the method for displaying the commodity display interface is applied to an in-application purchasing system. Referring to fig. 2, fig. 2 is a schematic structural diagram of an in-application purchasing system according to an embodiment of the present application. As shown in fig. 2, the in-application purchasing system includes a client, a first server, and a second server. The client may be any electronic device, such as a cell phone, a multimedia playing device, a tablet computer, etc., that has an iOS operating system installed.
One or more application software, and an In-app purchase (IAP) framework, may be deployed on the client. The application software herein refers to an application program that can support the provision of virtual goods and/or virtual services (hereinafter referred to simply as goods) to a user, such as game software, electronic book reading software, video playing software, audio playing software, and the like; the In-app purchase (IAP) framework is used for realizing delivery of the client and the second server, so as to realize the display of commodity display information and the subsequent commodity transaction and other processes In a certain application software.
The first server is a back-end server corresponding to the target application software, and an application developer can manually create a first commodity list corresponding to the application software on the first server, wherein the first commodity list can include commodity identifications of all commodities, such as Identity (ID) of the commodities, and the like.
The second server may be an apple server, such as an iTunesConnect server, or may be another server capable of implementing virtual goods and/or virtual service purchase and verification functions, which is not limited in this application. The application developer can manually create a first commodity list corresponding to the target application software and display information of each commodity in the first commodity list on the second server, wherein the display information comprises a commodity identifier of each commodity in each first commodity list and commodity detail information corresponding to each commodity identifier, such as commodity names, commodity types, commodity prices, commodity descriptions, commodity pictures and the like.
Therefore, in the in-application purchasing system shown in fig. 2, the client may interact with the first server to obtain the first commodity list from the first server, and at the same time, the client may interact with the second server through the IAP framework to obtain the display information corresponding to each commodity in the first commodity list from the second server.
The method for displaying the commodity display interface in this embodiment is applied to the client, and after the client detects that the target application is started, the client needs to acquire a first commodity list corresponding to the target application. The target application may be any application software installed on the client that supports providing goods to the user, such as game software, electronic book reading software, video playing software, audio playing software, and the like. The first merchandise list includes merchandise identifications of all merchandise of the target application.
Specifically, the manner of obtaining the first commodity list corresponding to the target application may be that the client sends a request for obtaining the first commodity list to the first server, and the first server sends the first commodity list to the client after receiving the request; the first server can actively send a first commodity list to the client; the client may also obtain the file from the local storage space, such as a bundle file of the target application, or a sandbox of the target application, which is not specifically limited in this application. After the first commodity list is obtained, the client saves the first commodity list in a local storage space of the client, such as a sandbox, a cache, a memory or other preset storage spaces.
The display information can be understood as SKProduct data preconfigured by the application developer in the second server. The SKProduct data herein is display information, including product identifiers, and product detail information corresponding to each product identifier, where the product detail information may include, but is not limited to: information such as commodity name, commodity type, commodity price, commodity description, commodity picture, etc. The number of the display information corresponds to the number of the commodity identifications one by one. For example, assuming that the application developer needs to configure 5 products at the second server, display information of the 5 products needs to be configured separately, and each display information includes a product identifier and product detail information corresponding to the product.
In the step, when the client acquires K pieces of display information corresponding to K pieces of commodities in the first commodity list, the client can acquire the K pieces of display information from the preset display information in the local storage space of the client; the IAP framework may also be called to obtain the K display information from the second server, and after obtaining the K display information, store the K display information in a local storage space of the client, for example, a sandbox, a cache, a memory, or other preset storage spaces, which is not specifically limited in this application.
Step 102, a first request is sent to a first server, wherein the first request is used for requesting to obtain N commodity identifications to be displayed in a commodity display interface from the first server, and N is a positive integer less than or equal to K.
The commodity display interface is an interface for displaying commodity detail information of N commodities to be displayed, so that a user can refer to and select the commodity detail information. The N products to be displayed herein may be all or part of the products in the first product list.
Step 103, receiving N commodity identifications sent by the first server.
After the client sends the first request to the first server, the first server may recommend the articles in the first article list according to a preset recommendation algorithm, thereby selecting N articles as articles to be displayed in the article display interface, and sending the N articles to the client. It should be noted that, the first commodity list participating in recommendation calculation on the first server may be preconfigured on the first server by a developer, or may be carried in the first request, which is not specifically limited in this application.
And 104, displaying a commodity display interface based on commodity detail information corresponding to each commodity identifier in the N commodity identifiers when the N commodity identifiers are contained in the first commodity list.
After receiving the N commodity identifications, the client matches the N commodity identifications with the first commodity list acquired in the step 101, if the N commodity identifications are included in the first commodity list, the client indicates that the display information acquired in the step 101 already includes display information corresponding to the N commodity identifications, and at this time, the commodity detail information corresponding to the N commodity identifications can be directly displayed on the commodity display interface. The user can thus see the merchandise display interface without waiting for a longer period of time and perform subsequent selection and payment operations based on the merchandise display interface.
In this embodiment, after detecting that the target application is started, the client may acquire the first commodity list of the target application and the display information corresponding to each commodity in the first commodity list, so that when the target application requests to display the commodity display interface, the commodity display interface may be displayed directly through the commodity detail information in the acquired display information acquired by the client, so that the user does not need to wait for a longer time after initiating the first request, and the display efficiency of the commodity display interface is improved.
Further, the step 101 of obtaining the first commodity list corresponding to the target application may include the following steps:
Acquiring a version number corresponding to a second commodity list in a sandbox, wherein the sandbox is a local storage area corresponding to a target application;
a second request is sent to the first server, the second request carries a version number, and the second request is used for requesting the first server to verify the version number so as to judge whether a second commodity list in the sandbox is the latest version or not;
and under the condition that the second commodity list in the sandbox is not the latest version, receiving the first commodity list and the corresponding version number sent by the first server.
In an embodiment, the sandbox stores a second commodity list, and the first server stores a first commodity list, that is, a latest version commodity list. The second commodity list in the sandbox may be the same as the first commodity list or may be different from the first commodity list. When the second commodity list in the sandbox is the same as the first commodity list, the first commodity list on the first server is not updated after the second commodity list is stored in the sandbox; when the second commodity list in the sandbox is different from the first commodity list, the first commodity list on the first server is updated after the second commodity list is stored in the sandbox.
When the client acquires the first commodity list corresponding to the target application, a second request can be sent to the first server, and after the first server receives the second request, the version number corresponding to the second commodity list in the sandbox carried in the second request is compared with the version number of the first commodity list of the first server, so that whether the second commodity list in the sandbox is the latest version or not is judged. If the second commodity list in the sandbox is the latest version, the first server may return an error code, such as ResponseCode304, to the client, and inform the client that the second commodity list in the sandbox is the latest version through the error code; if the second commodity list in the sandbox is not the latest version, the first server may return the first commodity list and the version number corresponding to the first commodity list to the client.
In this embodiment, the client may send a second request to the first server when it detects that the target application is started, where the second request requests the first server to determine a version of the second commodity list in the sandbox, and send the first commodity list of the latest version to the client when the version numbers of the second commodity list in the sandbox and the first commodity list are different, which is favorable for obtaining the latest commodity list after each start of the target application.
Further, after the step of receiving the first commodity list and the corresponding version number sent by the first server, the method further includes the following steps:
updating a second commodity list in the sandbox according to the first commodity list;
and updating the current version number according to the version number corresponding to the first commodity list.
In an embodiment, after the client obtains the first commodity list, the client may update the second commodity list in the sandbox to the first commodity list, and update the version number of the second commodity list in the sandbox, so that the version number is consistent with the version number of the first commodity list. Therefore, when the first commodity list on the first server is updated subsequently, the first server can still determine whether the current commodity list in the sandbox is the latest version according to the current version number in the sandbox, so that the current commodity list in the sandbox can be updated conveniently when the target application is started subsequently.
In the actual application, the client may acquire the first commodity list corresponding to the target application from the first server, and the specific process may refer to fig. 3, where fig. 3 is a detailed flowchart of the step of acquiring the commodity list corresponding to the target application provided in the embodiment of the present application. Specifically, the step may include the steps of:
Step 301, the client obtains a version number corresponding to a second commodity list in the sandbox when detecting that the target application is started.
The sandboxes are corresponding to the local storage spaces of the target application on the client. The sandbox stores a second commodity list and a version number corresponding to the second commodity list.
Step 302, the client sends a second request to the first server.
The second request carries a version number corresponding to the second commodity list in the sandbox, and the second request is used for requesting the first server to verify the version number so as to judge whether the second commodity list in the sandbox is the latest version.
Step 303, the first server determines whether the version number of the second commodity list is consistent with the version number of the first commodity list configured in advance.
After receiving the second request, the first server compares the version number corresponding to the second commodity list in the sandbox carried in the second request with the version number of the first commodity list of the first server. In the case that the version numbers of the second commodity list and the preconfigured first commodity list are inconsistent, executing step 304; in the case where the second product list matches the version number of the preconfigured first product list, step 306 is performed.
Step 304, the server sends the first commodity list and the version number corresponding to the first commodity list to the client.
Step 305, the client side stores the received first commodity list and the version number corresponding to the first commodity list in the sandbox.
Specifically, the client may store the first commodity list in the sandbox, so as to obtain display information corresponding to each commodity in the first commodity list based on the commodity identification in the first commodity list in the sandbox, and update the current version number of the sandbox (i.e. the version number corresponding to the second commodity list) according to the received version number corresponding to the first commodity list, and persist the current version number into the sandbox. In this way, the commodity list in the sandbox can be guaranteed to be the latest version after the target application is started each time.
Step 306, the server sends the error code to the client.
The dislocation code is used for representing that the version number of the second commodity list in the sandbox is consistent with that of the preconfigured first commodity list, and the second commodity list in the sandbox is not required to be updated. The error code may be represented using ResponseCode304 or the like.
In this embodiment, the client may send the second request to the first server, and determine, by using the first server, a version update condition of the commodity list in the sandbox, so that it is beneficial for the target application to obtain the latest commodity list after each start.
Further, based on the embodiment shown in fig. 1, the step 101 of acquiring K pieces of display information corresponding to K pieces of merchandise in the first merchandise list specifically includes the following steps:
calling the in-application purchase IAP framework to send a third request to the second server, wherein the third request carries K commodity identifications in the first commodity list, the third request is used for requesting to acquire K display information corresponding to the K commodity identifications from the second server, and the second server stores the K display information in advance for the IAP framework to call;
and receiving K pieces of display information sent by the second server, and storing the K pieces of display information into the sandbox.
The LAP framework may be understood as a functional module on the client for interacting with the second server, capable of acquiring merchandise display information from the second server, and completing merchandise payment verification together with the second server, for example, an AppStore application installed in a mobile phone. The client may invoke the IAP framework to send a third request to the second server, where the third request carries K commodity identifiers in the first commodity list, and thus the second server may request to download display information corresponding to the K commodity identifiers. And the second server sends the display information corresponding to the K commodity identifications to the client, and the client stores the display information into the sandbox after receiving the display information. Thus, when the user requests to display the commodity display interface in the target application, the client can directly acquire the commodity detail information of the commodity to be displayed from the sandbox and display the commodity display interface based on the commodity detail information.
In practical application, when the client calls the IAP framework to acquire the display information of each commodity in the first commodity list from the second server, the display information is easily affected by factors such as a network state and an operation state of the second server, when the network state is poor or the second server is paralyzed, the client cannot acquire the display information of each commodity in the first commodity list, at this time, the client can recall the IAP framework to send a third request to the second server, and request to acquire the display information of each commodity in the first commodity list to the second server again. By the method, the condition that one request is unsuccessful can be avoided, the probability that the client acquires the display information of each commodity in the first commodity list is increased, so that the cache hit rate of the display information of each commodity in the first commodity list is improved, and the loading time of a commodity display interface on the client is shortened.
The time interval and the number of times that the client sends the third request may be set according to practical situations, for example, the time interval is set to any value such as 1 second, 2 seconds, 1 minute, 10 minutes, etc., and the number of times of sending is set to 1 time, 2 times, 3 times, etc., which is not specifically limited in this application.
In this embodiment, before the user requests to display the commodity display interface, the client acquires the display information corresponding to each commodity identifier in the first commodity list and stores the display information in the sandbox, so that when the user requests to display the commodity display interface, the display information does not need to be acquired from the second server through the IAP frame, thereby avoiding that the target application is in a loading state for a long time, and the commodity display interface can be directly displayed in the target application, so that the effect of improving the display efficiency of the commodity display interface is achieved.
Further, before the step 102 of sending the first request to the first server, the method may further include the following steps:
copying a third commodity list in a preset file into the sandbox under the condition that the first commodity list does not exist in the sandbox, wherein the preset file is an installation package file corresponding to the target application;
and taking the third commodity list as the first commodity list.
In an embodiment, when the client detects that the sandbox does not include the first commodity list, the client may acquire a third commodity list from the preset file, copy the third commodity list into the sandbox, and then use the third commodity list as the first commodity list, and continue to execute the step of acquiring K display information corresponding to K commodities in the first commodity list. That is, after the target application is started, the client may invoke the IAP framework to send a third request to the second server based on the obtained third commodity list, so as to obtain display information corresponding to each commodity identifier in the third commodity list, and store the display information in the sandbox, so that the display information is conveniently displayed directly based on the commodity detail information in the display information when the target application needs to display the commodity display interface.
It should be noted that, the preset file herein may be a bundle file corresponding to the target application, or other specified files. Since the third commodity list information in the preset file is not updated in real time like the first commodity list on the first server, the version number of the third commodity list is old relative to the version number of the first commodity list, and of course, it is also possible that the version number of the third commodity list is the same as the version number of the first commodity list.
In practical application, the version number of the third commodity list in the bundle file is the version number corresponding to the first commodity list on the first server when the user installs the target application on the client, so after the target application is installed on the client, if the first commodity list on the first server is not updated by the application developer (i.e. the version number of the first commodity list on the first server is not updated), the version number of the third commodity list in the preset file is the same as the version number of the first commodity list on the first server.
In this embodiment, if the sandbox does not include the first commodity list, the third commodity list may be obtained from the preset file to serve as the first commodity list, so that it is ensured that the client can obtain one commodity list from the local storage space, and the situation that the first commodity list cannot be obtained due to the failure of the first server or the network problem does not occur.
In practical application, the client may obtain K display information corresponding to K commodities in the first commodity list from the second server, and a specific process thereof may refer to fig. 4, where fig. 4 is a detailed flowchart of a step of obtaining K display information corresponding to K commodities in the first commodity list provided in the embodiment of the present application. As shown in fig. 4, this step specifically includes the steps of:
step 401, the client judges whether the sandbox includes a first commodity list or not under the condition that the client detects that the target application is started.
After each start of the target application, the client judges whether the sandbox comprises the first commodity list, and when the sandbox does not comprise the first commodity list, step 402 is executed; when it is determined that the first commodity list is included in the sandbox, step 403 is performed.
And step 402, the client copies the third commodity list in the preset file into the sandbox, and takes the third commodity list as the first commodity list in the sandbox.
The method comprises the steps that a preset file is an installation package file corresponding to a target application, and a sandbox is a local storage area corresponding to the target application. This step is described in detail in the above embodiments, and will not be described in detail here.
Step 403, the client invokes the IAP framework to send a third request to the second server.
The third request carries K commodity identifications in the first commodity list, the third request is used for requesting to acquire K display information corresponding to the K commodity identifications from the second server, and the second server stores the K display information in advance so as to be called by the IAP framework.
Step 404, the client determines whether to successfully obtain K pieces of display information corresponding to K pieces of commodities in the first commodity list.
If the client side judges that the K pieces of display information corresponding to the K pieces of commodities in the first commodity list are not successfully obtained, the step 403 is executed again; if the client determines whether K pieces of display information corresponding to K pieces of merchandise in the first merchandise list are successfully acquired, step 405 is executed.
And 405, storing the acquired K pieces of display information into a sandbox. In this embodiment, before a user requests to display a commodity display interface, the client acquires display information corresponding to each commodity identifier in the first commodity list in the sandbox and stores the display information in the sandbox, so that when the user requests to display the commodity display interface, the IAP framework is not required to be called to acquire the display information corresponding to each commodity identifier in the first commodity list from the second server, thereby avoiding that a target application is in a loading state for a long time, and the commodity display interface can be directly displayed in the target application, and achieving the effect of improving the display efficiency of the commodity display interface.
Further, after the step 103 of obtaining the N first product identifiers of the recommended display, the method further includes the following steps:
under the condition that only M commodity identifications exist in the N commodity identifications and are contained in the first commodity list, calling the IAP framework to send a fourth request to the second server, wherein the fourth request carries the N commodity identifications, and the fourth request is used for requesting to acquire N display information corresponding to the N commodity identifications from the second server, and M is a natural number smaller than N;
and receiving N pieces of display information corresponding to the N pieces of commodity identifications, and executing the step of displaying the commodity display interface based on the commodity detail information corresponding to each commodity identification in the N pieces of commodity identifications.
The fourth request and the third request have the same function, and are used for acquiring display information corresponding to the commodity identifications carried in the request from the second server by calling the IAP framework, but the third request is sent by the client when the target application is started, and the third request carries all the commodity identifications included in the first commodity list. And the fourth request is sent when the client detects that only M commodity identifications in the N commodity identifications are contained in the first commodity list, and the fourth request carries the N commodity identifications.
In this embodiment, if only M product identifiers exist in the N product identifiers and are included in the first product list, where M is a natural number smaller than N, that is, when the first product list in the sandbox does not include all product identifiers in the N product identifiers, the client may invoke the IAP framework to send a fourth request to the second server again, to request to obtain N display information corresponding to the N product identifiers. After the second server obtains N pieces of display information corresponding to the N pieces of commodity identifications, the N pieces of display information are sent to the client, and therefore the client can normally display a commodity display interface based on the N pieces of display information, and the commodity display interface can be ensured to be normally displayed.
In practical application, the client may display a commodity display interface according to the N commodity identifications sent by the first server, and a specific process of the commodity display interface may refer to fig. 5. Fig. 5 is a detailed flowchart of a step of displaying a commodity display interface based on commodity detail information corresponding to each of N commodity identifications according to an embodiment of the present application. As shown in fig. 5, the step of displaying the display interface of the merchandise display interface based on the merchandise information corresponding to the N first merchandise identifications may specifically include the following steps:
Step 501, receiving N commodity identifications sent by a first server.
Step 502, determining whether all the N product identifiers are included in the first product list.
If only M product identifiers exist in the N product identifiers and are included in the first product list, executing step 503; if all the N product identifiers are included in the first product list, step 504 is performed, where M is a natural number less than N.
Step 503, call the IAP framework to send a fourth request to the second server, and receive N display information corresponding to the N product identifiers sent by the second server.
The fourth request carries N commodity identifications, and the fourth request is used for requesting to acquire N display information corresponding to the N commodity identifications from the second server.
Step 504, acquiring display information corresponding to the N commodity identifications from the sandbox.
In this step, the sandbox stores display information corresponding to N first commodity identifications, and the client may obtain display information corresponding to the N first commodity identifications, such as information including names, types, prices, descriptions, pictures, and the like of virtual commodities and/or virtual services, so that the client may conveniently construct a display interface of the commodity display interface based on the display information.
And 505, displaying a commodity display interface based on commodity detail information corresponding to each commodity identifier in the N commodity identifiers.
In this embodiment, if only M commodity identifications exist in the N commodity identifications and are included in the first commodity list, where M is a natural number smaller than N, that is, when all the commodity identifications in the N commodity identifications are not included in the first commodity list in the sandbox, the client may call the IAP framework to send a fourth request to the second server to request to obtain display information corresponding to the N commodity identifications, so that it is ensured that, even if the client does not obtain the display information corresponding to the N commodity identifications in advance, the client may obtain the required display information again through the IAP framework, so as to ensure that the commodity display interface can be displayed normally.
In addition, an embodiment of the present application further provides a method for displaying a merchandise display interface, referring to fig. 6, fig. 6 is a second flowchart of the method for displaying a merchandise display interface provided in the embodiment of the present application, where the method for displaying a merchandise display interface is executed on a first server, and the method may include the following steps:
step 601, receiving a first request sent by a client, where the client is configured to obtain a first commodity list corresponding to a target application and obtain K display information corresponding to K commodities in the first commodity list when the client detects that the target application is started, where the first commodity list includes K commodity identifications corresponding to K commodities allowed to conduct transactions in the target application, and one display information includes the commodity identifications and commodity detail information corresponding to the commodity identifications, and K is a positive integer.
It should be noted that, before the server receives the first request sent by the client, the client needs to obtain the first commodity list corresponding to the target application and obtain K display information corresponding to K commodities in the first commodity list when detecting that the target application is started. Specifically, when a first commodity list corresponding to a target application is acquired, the client may send a request for acquiring the first commodity list to the first server, and the first server sends the first commodity list to the client after receiving the request; the first server can actively send a first commodity list to the client; the client may also obtain the file from the local storage space, such as a bundle file of the target application, or a sandbox of the target application, which is not specifically limited in this application. When K showing information corresponding to K commodities in the first commodity list is obtained, the client can obtain the showing information stored in the local storage space in advance; the IAP framework may also be called to obtain the K display information from the second server, and after obtaining the K display information, store the K display information in a local storage space of the client, for example, a sandbox, a cache, a memory, or other preset storage spaces, which is not specifically limited in this application.
Step 602, acquiring N commodity identifications to be displayed in a commodity display interface, wherein N is a positive integer less than or equal to K;
after the first server receives the first request sent by the client, the first server can recommend the commodities in the first commodity list according to a preset recommendation algorithm, so that N commodity identifications are selected to serve as commodity identifications to be displayed in the commodity display interface, and the commodity identifications are sent to the client.
And 603, transmitting the N commodity identifications to the client so that the client displays the commodity display interface based on the commodity detail information corresponding to each commodity identification in the N commodity identifications when the N commodity identifications are contained in the first commodity list.
And the first server sends the N commodity identifications to the client after acquiring the N commodity identifications. In this way, the client may match the N product identifiers with the first product list acquired in step 101, and if the N product identifiers are all included in the first product list, it indicates that the display information acquired in step 101 by the client already includes display information corresponding to the N product identifiers, and at this time, the product detail information corresponding to the N product identifiers may be directly displayed on the product display interface. The user can thus see the merchandise display interface without waiting for a longer period of time and perform subsequent selection and payment operations based on the merchandise display interface.
In this embodiment, the first server may obtain N product identifiers to be displayed on the product display interface and send the N product identifiers to the client, so that the client displays the product display interface through the product detail information in the obtained display information, so that the user does not need to wait for a long time after initiating the first request, thereby improving the display efficiency of the product display interface.
Further, before the step 601 of receiving the first request sent by the client, the method further includes the following steps:
receiving a second request sent by the client, wherein the second request carries a version number corresponding to a second commodity list in a sandbox, and the sandbox is a local storage area corresponding to the target application on the client;
verifying the version number to judge whether the second commodity list in the sandbox is the latest version;
and under the condition that the second commodity list in the sandbox is not the latest version, sending the first commodity list and the corresponding version number to the client.
In an embodiment, after receiving the second request sent by the client, the first server may compare the version number corresponding to the second commodity list in the sandbox carried in the second request with the version number of the first commodity list of the first server, so as to determine whether the second commodity list in the sandbox is the latest version. If the second commodity list in the sandbox is the latest version, the first server may return an error code, such as ResponseCode304, to the client, and inform the client that the second commodity list in the sandbox is the latest version through the error code; if the second commodity list in the sandbox is not the latest version, the first server may return the first commodity list and the version number corresponding to the first commodity list to the client.
In this embodiment, the version condition of the second commodity list in the sandbox may be determined by the first server, and the latest version of the first commodity list is sent to the client when the version numbers of the second commodity list in the sandbox and the first commodity list are different, so that the latest commodity list can be obtained after each start of the target application.
In addition, the embodiment of the application further provides a display device of the merchandise display interface, referring to fig. 7, fig. 7 is one of schematic structural diagrams of the display device of the merchandise display interface provided in the embodiment of the application.
As shown in fig. 7, the display device 700 of the merchandise display interface includes:
the first obtaining module 701 is configured to obtain a first commodity list corresponding to a target application and obtain K display information corresponding to K commodities in the first commodity list when the target application is detected to be started, where the first commodity list includes K commodity identifications corresponding to K commodities allowed to be transacted in the target application, and one display information includes the commodity identification and commodity detail information corresponding to the commodity identification, and K is a positive integer;
the first sending module 702 is configured to send a first request to a first server, where the first request is used to request that N commodity identifiers to be displayed in a commodity display interface be obtained from the first server, where N is a positive integer less than or equal to K;
A first receiving module 703, configured to receive N commodity identifications sent by the first server;
and a display module 704, configured to display a commodity display interface based on the commodity detail information corresponding to each of the N commodity identifications when the N commodity identifications are included in the first commodity list.
Optionally, the first acquisition module 701 includes:
the first acquisition sub-module is used for acquiring a version number corresponding to the second commodity list in the sandbox, wherein the sandbox is a local storage area corresponding to the target application;
the first sending submodule is used for sending a second request to the first server, the second request carries a version number, and the second request is used for requesting the first server to verify the version number so as to judge whether a second commodity list in the sandbox is the latest version or not;
the first receiving sub-module is used for receiving the first commodity list and the corresponding version number sent by the first server under the condition that the second commodity list in the sandbox is not the latest version.
Optionally, the first acquisition module 701 further includes:
the first updating sub-module is used for updating a second commodity list in the sandbox according to the first commodity list;
and the second updating sub-module is used for updating the current version number according to the version number corresponding to the first commodity list.
Optionally, the first acquisition module 701 further includes:
the second sending submodule is used for calling the in-application purchase IAP framework to send a third request to the second server, the third request carries K commodity identifications in the first commodity list, the third request is used for requesting to acquire K display information corresponding to the K commodity identifications from the second server, and the second server stores the K display information in advance for the IAP framework to call;
and the second receiving sub-module is used for receiving the K pieces of display information sent by the second server and storing the K pieces of display information into the sandbox.
Optionally, the display device 700 of the merchandise display interface further includes:
the copying module is used for copying a third commodity list in a preset file into the sandbox under the condition that the first commodity list does not exist in the sandbox, wherein the preset file is an installation package file corresponding to the target application;
and the module is used for taking the third commodity list as the first commodity list.
Optionally, the display device 700 of the merchandise display interface further includes:
the second sending module is used for calling the IAP framework to send a fourth request to the second server when only M commodity identifications are contained in the first commodity list in the N commodity identifications, the fourth request carries the N commodity identifications, the fourth request is used for requesting to acquire N display information corresponding to the N commodity identifications from the second server, and M is a natural number smaller than N;
And the second receiving module is used for receiving N pieces of display information corresponding to the N pieces of commodity identifications and executing the step of displaying the commodity display interface based on the commodity detail information corresponding to each commodity identification in the N pieces of commodity identifications.
The display device 700 of the merchandise display interface can implement the processes of the embodiment of the method for displaying a merchandise display interface shown in fig. 1 and achieve the same technical effects, and for avoiding repetition, the description is omitted here.
In addition, the embodiment of the application further provides a display device of the merchandise display interface, referring to fig. 8, fig. 8 is a second schematic structural diagram of the display device of the merchandise display interface provided in the embodiment of the application. As shown in fig. 8, the display device 800 of the merchandise display interface includes:
a third receiving module 801, configured to receive a first request sent by a client, where the client is configured to obtain, when it is detected that a target application is started, a first commodity list corresponding to the target application, and obtain K display information corresponding to K commodities in the first commodity list, where the first commodity list includes K commodity identifications corresponding to K commodities allowed to conduct transactions in the target application, and one display information includes the commodity identification and commodity detail information corresponding to the commodity identification, and K is a positive integer;
The second obtaining module 802 is configured to obtain N product identifiers to be displayed in the product display interface, where N is a positive integer less than or equal to K;
and a third sending module 803, configured to send the N product identifiers to the client, so that the client displays the product display interface based on the product detail information corresponding to each of the N product identifiers when the N product identifiers are included in the first product list.
Optionally, the display device 800 of the merchandise display interface further includes:
the fourth receiving module is used for receiving a second request sent by the client, the second request carries a version number corresponding to a second commodity list in a sandbox, and the sandbox is used as a local storage area corresponding to the target application on the client;
the verification module is used for verifying the version number to judge whether the second commodity list in the sandbox is the latest version or not;
and the fourth sending module is used for sending the first commodity list and the corresponding version number to the client under the condition that the second commodity list in the sandbox is not the latest version.
The display device 800 of the merchandise display interface may implement the processes of the embodiment of the method for displaying a merchandise display interface shown in fig. 6 and achieve the same technical effects, and for avoiding repetition, the description is omitted herein.
Optionally, as shown in fig. 9, the embodiment of the present application further provides an electronic device 900, including a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and capable of running on the processor 901, where the program or the instruction implements each process of the display method embodiment of the merchandise display interface when executed by the processor 901, and the process can achieve the same technical effect, and for avoiding repetition, a description is omitted herein.
Optionally, as shown in fig. 10, the embodiment of the present application further provides a server 1000, including a processor 1001, a memory 1002, and a program or an instruction stored in the memory 1002 and capable of being executed on the processor 1001, where the program or the instruction implements each process of the embodiment of the display method of the merchandise display interface described above when executed by the processor 1001, and the same technical effects can be achieved, and for avoiding repetition, a description is omitted herein.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, where the program or the instruction implements each process of the display method embodiment of the commodity display interface when executed by a processor, and the same technical effect can be achieved, so that repetition is avoided, and no detailed description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-only memory (ROM), random access memory (RandomAccessMemory, RAM), magnetic or optical disks, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (11)

1. A method for displaying a merchandise display interface, the method being performed on a client, the method comprising:
under the condition that the starting of a target application is detected, a first commodity list corresponding to the target application is obtained, K showing information corresponding to K commodities in the first commodity list is obtained, wherein the first commodity list comprises K commodity identifications corresponding to K commodities which are allowed to conduct transactions in the target application, one piece of showing information comprises the commodity identifications and commodity detail information corresponding to the commodity identifications, and K is a positive integer;
a first request is sent to a first server, wherein the first request is used for requesting to acquire N commodity identifications to be displayed in a commodity display interface from the first server, and N is a positive integer less than or equal to K;
receiving the N commodity identifications sent by the first server;
displaying the commodity display interface based on commodity detail information corresponding to each commodity identifier in the N commodity identifiers under the condition that the N commodity identifiers are contained in the first commodity list;
the obtaining K display information corresponding to K commodities in the first commodity list includes:
Calling an in-application purchase IAP framework to send a third request to a second server, wherein the third request carries K commodity identifications in the first commodity list, the third request is used for requesting to acquire K display information corresponding to the K commodity identifications from the second server, and the second server stores the K display information in advance for the IAP framework to call;
and receiving the K pieces of display information sent by the second server, and storing the K pieces of display information into a sandbox.
2. The method of claim 1, wherein the obtaining the first commodity list corresponding to the target application includes:
the method comprises the steps of obtaining a version number corresponding to a second commodity list in a sandbox, wherein the sandbox is a local storage area corresponding to the target application;
sending a second request to the first server, wherein the second request carries the version number, and the second request is used for requesting the first server to verify the version number so as to judge whether a second commodity list in the sandbox is the latest version or not;
and under the condition that the second commodity list in the sandbox is not the latest version, receiving the first commodity list and the corresponding version number sent by the first server.
3. The method according to claim 2, wherein the method further comprises:
updating a second commodity list in the sandbox according to the first commodity list;
and updating the current version number according to the version number corresponding to the first commodity list.
4. The method of claim 2, wherein prior to said sending the first request to the first server, the method further comprises:
copying a third commodity list in a preset file into the sandbox under the condition that the first commodity list does not exist in the sandbox, wherein the preset file is an installation package file corresponding to the target application;
and taking the third commodity list as the first commodity list.
5. The method of claim 1, wherein after said receiving the N commodity identifications sent by the first server, the method further comprises:
when only M commodity identifications exist in the N commodity identifications and are contained in the first commodity list, calling the IAP framework to send a fourth request to the second server, wherein the fourth request carries the N commodity identifications, and the fourth request is used for requesting to acquire N display information corresponding to the N commodity identifications from the second server, and M is a natural number smaller than N;
And receiving N showing information corresponding to the N commodity identifications, and executing the step of displaying the commodity showing interface based on the commodity detail information corresponding to each commodity identification in the N commodity identifications.
6. A method for displaying a merchandise display interface, the method being performed on a first server, the method comprising:
receiving a first request sent by a client, wherein the client is used for acquiring a first commodity list corresponding to a target application and acquiring K display information corresponding to K commodities in the first commodity list under the condition that the target application is detected to be started, the first commodity list comprises K commodity identifications corresponding to K commodities which are allowed to be transacted in the target application, one piece of display information comprises the commodity identifications and commodity detail information corresponding to the commodity identifications, and K is a positive integer;
acquiring N commodity identifications to be displayed in a commodity display interface, wherein N is a positive integer less than or equal to K;
the N commodity identifications are sent to the client so that the client displays the commodity display interface based on commodity detail information corresponding to each commodity identification in the N commodity identifications when the N commodity identifications are contained in the first commodity list;
The obtaining K display information corresponding to K commodities in the first commodity list includes: calling an in-application purchase IAP framework to send a third request to a second server, wherein the third request carries K commodity identifications in the first commodity list, the third request is used for requesting to acquire K display information corresponding to the K commodity identifications from the second server, and the second server stores the K display information in advance for the IAP framework to call; and receiving the K pieces of display information sent by the second server, and storing the K pieces of display information into a sandbox.
7. The method of claim 6, wherein prior to the receiving the first request sent by the client, the method further comprises:
receiving a second request sent by the client, wherein the second request carries a version number corresponding to a second commodity list in a sandbox, and the sandbox is a local storage area corresponding to the target application on the client;
verifying the version number to judge whether a second commodity list in the sandbox is the latest version or not;
and under the condition that the second commodity list in the sandbox is not the latest version, sending the first commodity list and the corresponding version number to the client.
8. A display device of a merchandise display interface, the device being a client, the device comprising:
the first acquisition module is used for acquiring a first commodity list corresponding to a target application and acquiring K showing information corresponding to K commodities in the first commodity list under the condition that the target application is detected to be started, wherein the first commodity list comprises K commodity identifications corresponding to K commodities which are allowed to conduct transactions in the target application, one piece of showing information comprises the commodity identifications and commodity detail information corresponding to the commodity identifications, and K is a positive integer;
the first sending module is used for sending a first request to a first server, wherein the first request is used for requesting to obtain N commodity identifications to be displayed in a commodity display interface from the first server, and N is a positive integer less than or equal to K;
the first receiving module is used for receiving the N commodity identifications sent by the first server;
the display module is used for displaying the commodity display interface based on commodity detail information corresponding to each commodity identifier in the N commodity identifiers when the N commodity identifiers are contained in the first commodity list;
Wherein, the first acquisition module includes:
the second sending submodule is used for calling the in-application purchase IAP framework to send a third request to the second server, the third request carries K commodity identifications in the first commodity list, the third request is used for requesting to acquire K display information corresponding to the K commodity identifications from the second server, and the second server stores the K display information in advance for the IAP framework to call;
and the second receiving sub-module is used for receiving the K pieces of display information sent by the second server and storing the K pieces of display information into the sandbox.
9. A display device of a merchandise display interface, the device being a first server, the device comprising:
the third receiving module is used for receiving a first request sent by a client, wherein the client is used for acquiring a first commodity list corresponding to a target application and acquiring K showing information corresponding to K commodities in the first commodity list under the condition that the target application is detected to be started, the first commodity list comprises K commodity identifications corresponding to K commodities allowed to be transacted in the target application, one piece of showing information comprises the commodity identifications and commodity detail information corresponding to the commodity identifications, and K is a positive integer;
The second acquisition module is used for acquiring N commodity identifications to be displayed in the commodity display interface, wherein N is a positive integer less than or equal to K;
the third sending module is used for sending the N commodity identifications to the client so that the client displays the commodity display interface based on commodity detail information corresponding to each commodity identification in the N commodity identifications when the N commodity identifications are contained in the first commodity list;
the obtaining K display information corresponding to K commodities in the first commodity list includes: calling an in-application purchase IAP framework to send a third request to a second server, wherein the third request carries K commodity identifications in the first commodity list, the third request is used for requesting to acquire K display information corresponding to the K commodity identifications from the second server, and the second server stores the K display information in advance for the IAP framework to call; and receiving the K pieces of display information sent by the second server, and storing the K pieces of display information into a sandbox.
10. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction when executed by the processor implementing the steps of the method of displaying a merchandise display interface according to any one of claims 1 to 5 or the program or instruction when executed by the processor implementing the steps of the method of displaying a merchandise display interface according to any one of claims 6 to 7.
11. A readable storage medium, wherein a program or instructions is stored on the readable storage medium, which when executed by a processor, implements the steps of the method of displaying a merchandise display interface according to any one of claims 1 to 5, or which when executed by a processor, implements the steps of the method of displaying a merchandise display interface according to any one of claims 6 to 7.
CN202110417593.1A 2021-04-19 2021-04-19 Commodity display interface display method, related equipment and readable storage medium Active CN113129101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110417593.1A CN113129101B (en) 2021-04-19 2021-04-19 Commodity display interface display method, related equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110417593.1A CN113129101B (en) 2021-04-19 2021-04-19 Commodity display interface display method, related equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113129101A CN113129101A (en) 2021-07-16
CN113129101B true CN113129101B (en) 2023-07-18

Family

ID=76777469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110417593.1A Active CN113129101B (en) 2021-04-19 2021-04-19 Commodity display interface display method, related equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113129101B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8032424B1 (en) * 2005-12-27 2011-10-04 United Services Automobile Association Method, system, and storage medium for viewing commodity information
WO2012051539A2 (en) * 2010-10-14 2012-04-19 Cyandia, Inc. Methods, apparatus, and systems for presenting television programming and related information
WO2016173436A1 (en) * 2015-04-27 2016-11-03 阿里巴巴集团控股有限公司 Information presentation method and apparatus
CN106610785A (en) * 2015-10-22 2017-05-03 阿里巴巴集团控股有限公司 Commodity object list information processing method and apparatus
CN107330768A (en) * 2017-07-13 2017-11-07 北京京东尚科信息技术有限公司 Personalized material displaying control method, device and system
CN107872715A (en) * 2017-11-09 2018-04-03 北京奇艺世纪科技有限公司 A kind of method and device for showing displaying information
CN109064277A (en) * 2018-07-25 2018-12-21 北京小米移动软件有限公司 merchandise display method and device
CN110399561A (en) * 2019-07-31 2019-11-01 中国工商银行股份有限公司 Information recommendation method, information recommending apparatus and electronic equipment
CN112004106A (en) * 2020-08-20 2020-11-27 广州朱雀信息科技有限公司 Commodity display method and device, server and computer-readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9384504B2 (en) * 2012-06-13 2016-07-05 Aggregate Shopping Corp. System and method for a user to perform online searching and purchasing of multiple items

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8032424B1 (en) * 2005-12-27 2011-10-04 United Services Automobile Association Method, system, and storage medium for viewing commodity information
WO2012051539A2 (en) * 2010-10-14 2012-04-19 Cyandia, Inc. Methods, apparatus, and systems for presenting television programming and related information
WO2016173436A1 (en) * 2015-04-27 2016-11-03 阿里巴巴集团控股有限公司 Information presentation method and apparatus
CN106610785A (en) * 2015-10-22 2017-05-03 阿里巴巴集团控股有限公司 Commodity object list information processing method and apparatus
CN107330768A (en) * 2017-07-13 2017-11-07 北京京东尚科信息技术有限公司 Personalized material displaying control method, device and system
CN107872715A (en) * 2017-11-09 2018-04-03 北京奇艺世纪科技有限公司 A kind of method and device for showing displaying information
CN109064277A (en) * 2018-07-25 2018-12-21 北京小米移动软件有限公司 merchandise display method and device
CN110399561A (en) * 2019-07-31 2019-11-01 中国工商银行股份有限公司 Information recommendation method, information recommending apparatus and electronic equipment
CN112004106A (en) * 2020-08-20 2020-11-27 广州朱雀信息科技有限公司 Commodity display method and device, server and computer-readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Android的移动电子商务***的设计与实现;张欣;;电子世界(22);全文 *

Also Published As

Publication number Publication date
CN113129101A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
US11392914B2 (en) Techniques for mobile transaction processing
US20160171553A1 (en) Smartphone operating characteristic evaluation and diagnostics
RU2753450C1 (en) Method and device for fast order processing
CN106709785B (en) Display method and device
JP5149210B2 (en) Mobile inventory management service method and system using mobile communication terminal
CN108846093B (en) Business processing method and system supporting multi-user operation
CN113129101B (en) Commodity display interface display method, related equipment and readable storage medium
KR102239936B1 (en) System and method for purchasing merchandise based on radio frequency recognition
CN111985910A (en) Rapid generation method for online store and cash register
US20170372309A1 (en) Method and system for providing automated payment
CN114897573A (en) Commodity information processing method and device, readable medium and electronic equipment
CN109741069B (en) Transaction data processing method and device, electronic equipment and readable storage medium
CN109685508B (en) Transaction data processing method and device, electronic equipment and readable storage medium
CN106658210A (en) Automatic shopping method and device for smart television
CN114004569A (en) Distribution information processing method, distribution information processing apparatus, electronic device, distribution information processing medium, and program product
CN112766969A (en) Mobile payment method and system, payment device and computer readable storage medium
CN112801722A (en) Method and system for issuing invoice after caching
CN109493099B (en) Confirmation method of house purchasing qualification, server and storage medium
CN108364421B (en) Commodity sales data processing apparatus, information processing apparatus, method, and system
CN111738714A (en) Virtual object transfer control method and device and electronic equipment
CN108156122B (en) Method, system and equipment for introducing capability of capability open platform
CN113409099B (en) Object processing method, device, electronic equipment and computer readable storage medium
CN113112332B (en) Cross-data-platform order verification method, device and equipment
CA3054967C (en) Method and device for obtaining electronic transaction certificate, multimedia player, and storage medium
US20210390594A1 (en) Electronic product and service fulfillment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant