CN109151514B - Method, storage medium, equipment and system for purchasing commodities in live broadcast room - Google Patents
Method, storage medium, equipment and system for purchasing commodities in live broadcast room Download PDFInfo
- Publication number
- CN109151514B CN109151514B CN201710512316.2A CN201710512316A CN109151514B CN 109151514 B CN109151514 B CN 109151514B CN 201710512316 A CN201710512316 A CN 201710512316A CN 109151514 B CN109151514 B CN 109151514B
- Authority
- CN
- China
- Prior art keywords
- live broadcast
- purchase
- broadcast room
- commodity information
- entrance
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/254—Management at additional data server, e.g. shopping server, rights management server
- H04N21/2542—Management at additional data server, e.g. shopping server, rights management server for selling goods, e.g. TV shopping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0641—Shopping interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/47815—Electronic shopping
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- General Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- Marketing (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Databases & Information Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a method, a storage medium, equipment and a system for purchasing commodities in a live broadcast room, and relates to the technical field of live broadcast application and development. The method comprises the following steps: when a user starts a live broadcast application to enter a live broadcast room, whether the current live broadcast room has the authority of purchasing commodities in the live broadcast room or not is checked according to the obtained ID of the live broadcast room; if so, initiating a network request for requesting to purchase the entrance; when the network request is successful, adding a button for purchasing an entrance in an interface of the current live broadcast room; when a user clicks a button of a purchase entrance, acquiring commodity information corresponding to the current live broadcast room, and displaying the acquired commodity information in the live broadcast room; when the user clicks the displayed commodity information, the user is linked to the purchase page to inquire and purchase the commodity. The invention can realize the function of commodity purchase in the live broadcast room, meets the requirement of a user for purchasing commodities in the live broadcast room, also meets the requirement of the anchor on rich live broadcast content and attraction of user attention, and has good user experience.
Description
Technical Field
The invention relates to the technical field of live broadcast application development, in particular to a method, a storage medium, equipment and a system for purchasing commodities in a live broadcast room.
Background
The online live video broadcast refers to live video broadcast service performed by using internet network resources, and is synchronously released to a network through live video shooting, so that a user can see real-time live conditions on the network at the same time.
With the rapid development of mobile terminals, especially mobile terminals of mobile phones, the live broadcast industry is more and more popular, and many users like to watch live broadcasts through mobile terminal devices. In the live broadcasting process, due to the requirement of live broadcasting content, the anchor sometimes recommends some commodities to the user during live broadcasting. And users also hope to conveniently inquire or purchase the recommended goods of the anchor while watching the live broadcast based on the appreciation and trust of the anchor.
However, the function of purchasing commodities in a live broadcast room is not set in the current live broadcast application, so that a user cannot directly inquire or purchase commodities recommended by an anchor broadcast when watching the live broadcast, and the requirement of purchasing commodities in the live broadcast room by the user cannot be met. Meanwhile, the anchor hopes to interact with the user in a mode of directly purchasing commodities in the live broadcast room, so that live broadcast content of the anchor is enriched, and the anchor can better attract more fans and attention of the user. And the current live broadcast application cannot meet the requirements.
Therefore, it is an urgent need to solve the problem of providing a solution for purchasing commodities in a live broadcast room to satisfy the needs of users and anchor broadcasters.
Disclosure of Invention
The invention aims to overcome the defects of the background technology, and provides a method, a storage medium, equipment and a system for purchasing commodities in a live broadcast room, which can realize the function of purchasing commodities in the live broadcast room, meet the requirement of purchasing commodities in the live broadcast room of a user, meet the requirement of enriching live broadcast contents and attracting the attention of the user of a main broadcast, and effectively improve the user experience.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows: a method for purchasing commodities in a live broadcast room is provided, which comprises the following steps: s1, when a user starts a live application to enter a live room, acquiring the ID of the current live room; checking whether the current live broadcast room has the authority to purchase the commodities in the live broadcast room or not according to the acquired live broadcast room ID, if so, turning to the step S2, otherwise, ending; s2, initiating a network request for requesting to purchase an entrance, and if the network request is successful, turning to the step S3; if the network request is unsuccessful, ending; s3, adding a button of a purchase entrance in the interface of the current live broadcast room, and turning to the step S4; s4, when the user clicks a button of a purchase entrance, acquiring the commodity information corresponding to the current live broadcast room, displaying the acquired commodity information in the live broadcast room, and turning to the step S5; and S5, when the user clicks the displayed commodity information, the user links to the purchase page to inquire and purchase the commodity.
On the basis of the above technical solution, step S3 specifically includes the following steps: s301, creating a button of a purchase entrance, and setting coordinate values for the button of the purchase entrance; s302, adding a background picture for the created button of the purchase entrance; s303, adding a click event and a click callback function for responding to the click event for the created button of the purchase entry; and S304, adding a button of the purchase entrance into the interface of the current live broadcast room.
On the basis of the above technical solution, step S4 specifically includes the following steps: s401, when a user clicks a button of a purchase entrance, triggering a click callback function for responding to a click event; s402, clicking a callback function to acquire the current live broadcast room ID, judging whether the live broadcast room ID is correct or not, if so, turning to the step S403, and if not, ending; s403, initiating a network request for requesting commodity information according to the acquired live broadcast room ID, and if the network request is successful, turning to S404; if the network request is unsuccessful, ending; s404, acquiring commodity information corresponding to the current live broadcast room according to feedback information of the network request; s405, creating a view for displaying the commodity information in the live broadcast room, and displaying the obtained commodity information in the view.
The invention also provides a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described method of purchasing goods in a live broadcast room.
The invention also provides equipment for purchasing commodities in the live broadcast room, which comprises a memory, a processor and a computer program which is stored on the memory and runs on the processor, wherein the processor executes the computer program to realize the steps of the method for purchasing commodities in the live broadcast room.
The invention also provides a system for purchasing commodities in the live broadcast room, which comprises a purchasing authority judging module, a purchasing entrance requesting module, a purchasing entrance adding module, a commodity information display module and a commodity inquiring and purchasing module;
the purchase permission judging module is used for: when a user starts a live application to enter a live room, acquiring an ID of the current live room; checking whether the current live broadcast room has the authority to purchase commodities in the live broadcast room or not according to the acquired live broadcast room ID, if so, sending an entrance request signal to a purchase entrance request module, and if not, finishing the operation;
the purchase portal request module is to: after receiving the entrance request signal, initiating a network request for requesting to purchase an entrance, and if the network request is successful, sending an entrance adding signal to a purchase entrance adding module; if the network request is unsuccessful, ending the operation;
the purchase portal addition module is to: after receiving an entrance adding signal, adding a button for purchasing an entrance in an interface of the current live broadcast room; sending a commodity information display signal to a commodity information display module;
the commodity information display module is used for: after receiving the commodity information display signal, when a user clicks a button of a purchase entrance, acquiring commodity information corresponding to the current live broadcast room, displaying the acquired commodity information in the live broadcast room, and sending a purchase inquiry signal to a commodity inquiry and purchase module;
the commodity inquiry and purchase module is used for: after receiving the inquiry purchase signal, when the user clicks the displayed commodity information, the user is linked to the purchase page to inquire and purchase the commodity.
On the basis of the technical scheme, the specific process that the purchase entrance adding module adds the button of the purchase entrance in the interface of the current live broadcast room is as follows: firstly, creating a button of a purchase entrance, and setting coordinate values for the button of the purchase entrance; adding a background picture for the created button of the purchase entrance; then, adding a click event and a click callback function for responding to the click event for the created button of the purchase entry; finally, a button to purchase the portal is added to the interface of the current live room.
On the basis of the technical scheme, the commodity information display module comprises a click callback function triggering sub-module, a live broadcast room ID judging sub-module, a commodity information request sub-module, a commodity information acquisition sub-module and a display processing sub-module;
the click callback function triggering submodule is used for: after receiving the commodity information display signal, when a user clicks a button of a purchase entry, triggering a click callback function for responding to a click event; and sending a judgment signal to the live broadcast room ID judgment submodule;
the live broadcast room ID judgment submodule is used for: after receiving the judgment signal, acquiring the current live broadcast room ID through clicking a callback function, judging whether the live broadcast room ID is correct or not, if so, sending a request signal to a commodity information request submodule, and otherwise, ending the operation;
the commodity information request submodule is used for: after receiving the request signal, initiating a network request for requesting commodity information according to the obtained live broadcast room ID, and if the network request is successful, sending an acquisition signal to a commodity information acquisition submodule; if the network request is unsuccessful, ending the operation;
the commodity information acquisition submodule is used for: after receiving the acquisition signal, acquiring commodity information corresponding to the current live broadcast room according to feedback information of the network request; and sending a processing signal to the display processing submodule;
the display processing submodule is used for: and after receiving the processing signal, creating a view for displaying the commodity information in the live broadcast room, and displaying the acquired commodity information in the view.
On the basis of the technical scheme, the specific process of the display processing by the display processing submodule is as follows: after receiving the processing signal, creating a display commodity information view class, and creating an object for the display commodity information view class by using a creating function; setting coordinate values for the information view of the display commodity by using a coordinate value initialization function; setting a proxy function of an object displaying a commodity information view class as a current live broadcast room controller; and assigning the acquired commodity information to an object displaying the commodity information view class, and displaying the commodity information by using a data display method.
On the basis of the technical scheme, the purchase page is a purchase page arranged in the live broadcast platform or a purchase page of a third-party e-commerce platform.
The invention has the beneficial effects that:
(1) in the invention, when a user starts a live broadcast application to enter a live broadcast room, whether the current live broadcast room has the authority of purchasing commodities in the live broadcast room or not can be checked according to the obtained live broadcast room ID; if so, initiating a network request for requesting to purchase the entrance; when the network request is successful, adding a button for purchasing an entrance in an interface of the current live broadcast room; when a user clicks a button of a purchase entrance, acquiring commodity information corresponding to the current live broadcast room, and displaying the acquired commodity information in the live broadcast room; when the user clicks the displayed commodity information, the user is linked to the purchase page to inquire and purchase the commodity.
Compared with the prior art, the method and the system can realize the function of purchasing the commodities in the live broadcast room, meet the requirement of purchasing the commodities in the live broadcast room by the user, also meet the requirements of enriching live broadcast contents and attracting the attention of the user by the anchor broadcast, and effectively improve the user experience.
(2) According to the invention, when the user clicks the button of the purchase entrance, the commodity information corresponding to the current live broadcast room is obtained, and the obtained commodity information is displayed in the live broadcast room. Therefore, the flow can be greatly saved, and if the commodity information is requested when the commodity information enters a live broadcast room, a large amount of flow can be wasted; and only when the user clicks a button of a purchase entrance, the user requests commodity information, so that the loading method accords with the law of lazy loading, and the load of the server is greatly reduced.
(3) In the system, the commodity information display module is also provided with a live broadcast room ID judgment submodule. The module can acquire the current live broadcast room ID through clicking the callback function and judge whether the live broadcast room ID is correct, so that a fault-tolerant processing unit is added, and the robustness and the reliability of the system are greatly enhanced.
(4) In step S4 and the commodity information obtaining sub-module of the present invention, after obtaining the correct commodity information corresponding to the current live broadcast room, a view for displaying the commodity information is created, and the commodity information is displayed in the view. Therefore, the operation completely accords with the law of lazy loading, the creation of the view class object can be effectively reduced, the memory is saved, and the program performance is improved.
Drawings
FIG. 1 is a flow chart of a method for purchasing commodities in a live broadcast room according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an apparatus for purchasing commodities in a live broadcast room according to an embodiment of the present invention;
FIG. 3 is a block diagram of a system for purchasing commodities in a live broadcast room according to an embodiment of the present invention;
fig. 4 is a block diagram of a detailed structure of the merchandise information display module according to the embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and the embodiments.
Referring to fig. 1, an embodiment of the present invention provides a method for purchasing commodities in a live broadcast room, where the method includes the following steps:
step S1, when the user starts the live application to enter the live room, the current live room ID is obtained by calling the existing room interface (usually the loadRoom interface); and checking whether the current live broadcast room has the authority to purchase the commodities in the live broadcast room or not according to the acquired live broadcast room ID, if so, turning to the step S2, and if not, ending.
Step S2, initiating a network request for requesting to purchase an entrance, and if the network request is successful, turning to step S3; if the network request is unsuccessful, the process is finished.
It will be appreciated that in practice, a network request interface tool class InterfaceManager may be used to initiate a network request to purchase a portal. And after the network request is initiated, two callback parameters are fed back: the error code parameter errorCode is 0, which indicates that the network request is successful; and an error information parameter errorMessage, wherein the errorMessage feeds back description information of the requested error when the network request is unsuccessful. Therefore, whether the network request is successful or not can be judged according to the error code parameter errorCode, if the errorCode is 0, the network request is successful, and if the errorCode is not 0, the network request is unsuccessful.
Step S3, add a button of purchase entry in the interface of the current live broadcast room, and proceed to step S4.
In one embodiment, step S3 specifically includes the following steps:
step S301, a button buyBtn of a purchase entrance is created, and coordinate values are set for the button buyBtn of the purchase entrance.
Taking the IOS system as an example, in step S301, when creating the buybbtn button of the purchase entry, the creation function alloc provided by the IOS system may be used to implement the creation; when the coordinate value is set for the buybbtn button of the purchase entry, the coordinate value setting function initWithFrame provided by the IOS system can be used for implementation.
Step S302, adding a background picture for the created buyBtn button of the purchase entrance.
Or taking the IOS system as an example, in step S302, when adding a background picture to the created buyBtn of the purchase entry, the picture setting function setImage provided by the IOS system can be used to implement the operation.
And step S303, adding a click event and a click callback function for responding to the click event to the buyBtn button of the created purchase entry.
Or taking the IOS system as an example, in step S303, when adding a click event and a click callback function for responding to the click event to the buybbtn button of the created purchase entry, the addition can be implemented by using an addTarget function addTarget provided by the IOS system; also, the click callback function for responding to the click event may be onBuyEntranceButtonClick.
And S304, adding a button buyBtn of the purchase entrance into an interface of the current live broadcast room. Or for example, the IOS system, in step S304, when the button buybbtn of the purchase entry is added to the interface of the current live broadcast room, the method and subview for adding the child view provided by the IOS system can be used.
And step S4, when the user clicks a button of the purchase entrance, acquiring the commodity information corresponding to the current live broadcast room, and displaying the acquired commodity information in the live broadcast room.
In one embodiment, step S4 specifically includes the following steps:
step S401, when the user clicks the buyBtn button of the purchase entrance, triggering a click callback function for responding to a click event.
And S402, clicking a callback function to acquire the current live broadcast room ID, judging whether the live broadcast room ID is correct or not, if so, turning to S403, and otherwise, ending.
Or taking the IOS system as an example, in step S402, when the callback function is clicked to obtain the current live broadcast room ID, the function may be implemented by calling a preset function for loading and purchasing goods, such as loadtaobaotitemdata; moreover, when the live broadcast room ID is determined to be correct, the function of loading and purchasing commodities can be realized in a preset function, such as loadtaobaotitemdata.
Step S403, initiating a network request for requesting commodity information according to the acquired live broadcast room ID, and if the network request is successful, turning to step S404; if the network request is unsuccessful, the process is finished.
It is understood that, in actual operation, a network request interface tool class interface manager may be used to initiate a network request for merchandise information. And, after the network request for commodity information is initiated, three callback parameters are fed back: the error code parameter errorCode is 0, which indicates that the network request is successful; an error information parameter errorMessage, wherein the errorMessage feeds back description information of the request error when the network request is unsuccessful; and the commodity information parameter data is data of an array type and is used for describing the requested commodity information. Therefore, whether the network request is successful or not can be judged according to the error code parameter errorCode, if the errorCode is 0, the network request is successful, and if the errorCode is not 0, the network request is unsuccessful; and in the subsequent steps, the commodity information corresponding to the current live broadcast room can be obtained according to the fed-back commodity information parameter data.
And S404, acquiring commodity information corresponding to the current live broadcast room according to the feedback information of the network request.
Step S405, a view for displaying the commodity information is created in the live broadcast room, and the obtained commodity information is displayed in the view.
Also taking the IOS system as an example, step S405 specifically includes the following operations:
s405a, creating a display commodity information view type DYTAOBaoItemListView; using a creating function alloc provided by the IOS system, creating an object, such as a _ taobaotitlemllistview, for the display commodity information view class dytaobaotitlemllistview (it can be understood that the object displaying the commodity information view class is a view displaying commodity information); and setting coordinate values for the display commodity information view class by using a coordinate value initialization function initWithFrame provided by the IOS system, wherein the coordinate values can be self-defined.
S405b, setting the proxy function of the object _ taobaoititemListView of the displayed commodity information view type as the current live broadcast room controller, namely adding the created view for displaying the commodity information into the live broadcast room.
S405c, the obtained commodity information data is assigned to the taobaoitemListViewde object, and the taobaoitemListViewde object displays the commodity information data by using a data display method showData provided by the IOS system. I.e. the merchandise information is presented in a view showing the merchandise information.
And step S5, when the user clicks the displayed commodity information, the user links to the purchase page to inquire and purchase the commodity.
It can be understood that the purchase page may be a purchase page set inside the live broadcast platform, such as a purchase page built inside the live broadcast platform for a fish fighter; and the webpage can also be a purchase page of a third-party E-commerce platform, such as a Taobao shopping mall page, a Jingdong shopping mall page and the like. By linking to these purchase pages, the user can realize the detailed viewing of the corresponding goods and the purchase of the corresponding goods.
It should be noted that the operation of the IOS system instance in the above steps is only an example, and in other systems (such as an android system), the specific implementation flow of each step, and a developer may perform specific design and adjustment according to the actual function, code, interface, and the like of the android system, which is not limited herein.
In response to the method for purchasing commodities in the live broadcast room, an embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the steps of the method for purchasing commodities in the live broadcast room in the embodiments. The storage medium includes various media capable of storing program codes, such as a usb disk, a removable hard disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), a magnetic disk, or an optical disk.
In addition, referring to fig. 2, corresponding to the method for purchasing commodities in the live broadcast room, an embodiment of the present invention further provides an apparatus for purchasing commodities in the live broadcast room, including a memory, a processor, and a computer program stored in the memory and running on the processor, where when the processor executes the computer program, the steps of the method for purchasing commodities in the live broadcast room in the embodiments described above may be implemented.
Referring to fig. 3, an embodiment of the present invention further provides a system for purchasing commodities in a live broadcast room, where the system includes a purchasing authority determining module, a purchasing entry requesting module, a purchasing entry adding module, a commodity information displaying module, and a commodity inquiring and purchasing module.
Wherein, the purchase permission judging module is used for: when a user starts a live application to enter a live room, acquiring an ID of the current live room; checking whether the current live broadcast room has the authority to purchase commodities in the live broadcast room or not according to the acquired live broadcast room ID, if so, sending an entrance request signal to a purchase entrance request module, and if not, finishing the operation;
the purchase portal request module is to: after receiving the entrance request signal, initiating a network request for requesting to purchase an entrance, and if the network request is successful, sending an entrance adding signal to a purchase entrance adding module; if the network request is unsuccessful, ending the operation;
the purchase portal addition module is to: after receiving an entrance adding signal, adding a button for purchasing an entrance in an interface of the current live broadcast room; sending a commodity information display signal to a commodity information display module;
the commodity information display module is used for: after receiving the commodity information display signal, when a user clicks a button of a purchase entrance, acquiring commodity information corresponding to the current live broadcast room, displaying the acquired commodity information in the live broadcast room, and sending a purchase inquiry signal to a commodity inquiry and purchase module;
the commodity inquiry and purchase module is used for: after receiving the inquiry purchase signal, when the user clicks the displayed commodity information, the user is linked to the purchase page to inquire and purchase the commodity.
Further, the specific process of adding the button of the purchase entry in the current live broadcast room by the purchase entry adding module is as follows: firstly, creating a button of a purchase entrance, and setting coordinate values for the button of the purchase entrance; adding a background picture for the created button of the purchase entrance; then, adding a click event and a click callback function for responding to the click event for the created button of the purchase entry; finally, a button to purchase the portal is added to the interface of the current live room.
Further, as shown in fig. 4, the commodity information display module includes a click-back function triggering sub-module, a live broadcast room ID determining sub-module, a commodity information requesting sub-module, a commodity information acquiring sub-module, and a display processing sub-module.
Wherein, the click callback function trigger submodule is used for: after receiving the commodity information display signal, when a user clicks a button of a purchase entry, triggering a click callback function for responding to a click event; and sending a judgment signal to the live broadcast room ID judgment submodule;
the live broadcast room ID judgment submodule is used for: after receiving the judgment signal, acquiring the current live broadcast room ID through clicking a callback function, judging whether the live broadcast room ID is correct or not, if so, sending a request signal to a commodity information request submodule, and otherwise, ending the operation;
the commodity information request submodule is used for: after receiving the request signal, initiating a network request for requesting commodity information according to the obtained live broadcast room ID, and if the network request is successful, sending an acquisition signal to a commodity information acquisition submodule; if the network request is unsuccessful, ending the operation;
the commodity information acquisition submodule is used for: after receiving the acquisition signal, acquiring commodity information corresponding to the current live broadcast room according to feedback information of the network request; and sending a processing signal to the display processing submodule;
the display processing submodule is used for: after receiving the processing signal, a view for displaying the commodity information is established in the live broadcast room, and the obtained commodity information is displayed in the view. The specific treatment process comprises the following steps: after receiving the processing signal, creating a display commodity information view class, and creating an object for the display commodity information view class by using a creating function; setting coordinate values for the information view of the display commodity by using a coordinate value initialization function; setting a proxy function of an object displaying a commodity information view class as a current live broadcast room controller; assigning the acquired commodity information to an object displaying a commodity information view class; and displaying the commodity information by using the data display method for the object displaying the commodity information view class.
It should be noted that: in the system provided by the above embodiment, when the purchase of the goods in the live broadcast room is realized, only the division of the above functional modules is taken as an example, and in practical application, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the system is divided into different functional modules to complete all or part of the above described functions.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention.
Those not described in detail in this specification are within the skill of the art.
Claims (8)
1. A method for purchasing commodities in a direct broadcast room is characterized by comprising the following steps:
s1, when a user starts a live application to enter a live room, acquiring the ID of the current live room; checking whether the current live broadcast room has the authority to purchase the commodities in the live broadcast room or not according to the acquired live broadcast room ID, if so, turning to the step S2, otherwise, ending;
s2, initiating a network request for requesting to purchase an entrance, and if the network request is successful, turning to the step S3; if the network request is unsuccessful, ending;
s3, adding a button of a purchase entrance in the interface of the current live broadcast room, and turning to the step S4;
s4, when the user clicks a button of a purchase entrance, acquiring the commodity information corresponding to the current live broadcast room, displaying the acquired commodity information in the live broadcast room, and turning to the step S5;
s5, when the user clicks the displayed commodity information, the user is linked to the purchase page to inquire and purchase the commodity;
step S4 specifically includes the following steps:
s401, when a user clicks a button of a purchase entrance, triggering a click callback function for responding to a click event;
s402, clicking a callback function to acquire the current live broadcast room ID, judging whether the live broadcast room ID is correct or not, if so, turning to the step S403, and if not, ending;
s403, initiating a network request for requesting commodity information according to the acquired live broadcast room ID, and if the network request is successful, turning to S404; if the network request is unsuccessful, ending;
s404, acquiring commodity information corresponding to the current live broadcast room according to feedback information of the network request;
s405, creating a view for displaying the commodity information in the live broadcast room, and displaying the obtained commodity information in the view.
2. The method for purchasing commodities in a live broadcast room according to claim 1, wherein the step S3 specifically includes the following steps:
s301, creating a button of a purchase entrance, and setting coordinate values for the button of the purchase entrance;
s302, adding a background picture for the created button of the purchase entrance;
s303, adding a click event and a click callback function for responding to the click event for the created button of the purchase entry;
and S304, adding a button of the purchase entrance into the interface of the current live broadcast room.
3. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor implements the steps of the method of any of the preceding claims 1 to 2.
4. An apparatus for enabling purchase of goods in a live broadcast room, comprising a memory, a processor, and a computer program stored on the memory and executed on the processor, wherein: the processor, when executing the computer program, realizes the steps of the method of any of the preceding claims 1 to 2.
5. A system for purchasing commodities in a live broadcast room is characterized in that: the system comprises a purchasing authority judging module, a purchasing entrance requesting module, a purchasing entrance adding module, a commodity information display module and a commodity inquiring and purchasing module;
the purchase permission judging module is used for: when a user starts a live application to enter a live room, acquiring an ID of the current live room; checking whether the current live broadcast room has the authority to purchase commodities in the live broadcast room or not according to the acquired live broadcast room ID, if so, sending an entrance request signal to a purchase entrance request module, and if not, finishing the operation;
the purchase portal request module is to: after receiving the entrance request signal, initiating a network request for requesting to purchase an entrance, and if the network request is successful, sending an entrance adding signal to a purchase entrance adding module; if the network request is unsuccessful, ending the operation;
the purchase portal addition module is to: after receiving an entrance adding signal, adding a button for purchasing an entrance in an interface of the current live broadcast room; sending a commodity information display signal to a commodity information display module;
the commodity information display module is used for: after receiving the commodity information display signal, when a user clicks a button of a purchase entrance, acquiring commodity information corresponding to the current live broadcast room, displaying the acquired commodity information in the live broadcast room, and sending a purchase inquiry signal to a commodity inquiry and purchase module;
the commodity inquiry and purchase module is used for: after receiving the inquiry purchase signal, when the user clicks the displayed commodity information, linking to a purchase page to inquire and purchase the commodity;
the commodity information display module comprises a click callback function triggering submodule, a live broadcast room ID judging submodule, a commodity information request submodule, a commodity information acquisition submodule and a display processing submodule;
the click callback function triggering submodule is used for: after receiving the commodity information display signal, when a user clicks a button of a purchase entry, triggering a click callback function for responding to a click event; and sending a judgment signal to the live broadcast room ID judgment submodule;
the live broadcast room ID judgment submodule is used for: after receiving the judgment signal, acquiring the current live broadcast room ID through clicking a callback function, judging whether the live broadcast room ID is correct or not, if so, sending a request signal to a commodity information request submodule, and otherwise, ending the operation;
the commodity information request submodule is used for: after receiving the request signal, initiating a network request for requesting commodity information according to the obtained live broadcast room ID, and if the network request is successful, sending an acquisition signal to a commodity information acquisition submodule; if the network request is unsuccessful, ending the operation;
the commodity information acquisition submodule is used for: after receiving the acquisition signal, acquiring commodity information corresponding to the current live broadcast room according to feedback information of the network request; and sending a processing signal to the display processing submodule;
the display processing submodule is used for: and after receiving the processing signal, creating a view for displaying the commodity information in the live broadcast room, and displaying the acquired commodity information in the view.
6. A system for enabling the purchase of merchandise in a live broadcast room as defined in claim 5, wherein: the specific process that the purchase entry adding module adds the button of the purchase entry in the interface of the current live broadcast room is as follows:
firstly, creating a button of a purchase entrance, and setting coordinate values for the button of the purchase entrance; adding a background picture for the created button of the purchase entrance; then, adding a click event and a click callback function for responding to the click event for the created button of the purchase entry; finally, a button to purchase the portal is added to the interface of the current live room.
7. The system for purchasing commodities in a live broadcast room according to claim 5, wherein the specific process of the display processing performed by the display processing sub-module is as follows:
after receiving the processing signal, creating a display commodity information view class, and creating an object for the display commodity information view class by using a creating function; setting coordinate values for the information view of the display commodity by using a coordinate value initialization function;
setting a proxy function of an object displaying a commodity information view class as a current live broadcast room controller;
assigning the acquired commodity information to an object displaying a commodity information view class; and displaying the commodity information by using the data display method for the object displaying the commodity information view class.
8. A system for enabling the purchase of merchandise in a live broadcast room as claimed in any one of claims 5 to 7 wherein: the purchase page is a purchase page arranged in the live broadcast platform or a purchase page of a third-party e-commerce platform.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710512316.2A CN109151514B (en) | 2017-06-28 | 2017-06-28 | Method, storage medium, equipment and system for purchasing commodities in live broadcast room |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710512316.2A CN109151514B (en) | 2017-06-28 | 2017-06-28 | Method, storage medium, equipment and system for purchasing commodities in live broadcast room |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109151514A CN109151514A (en) | 2019-01-04 |
CN109151514B true CN109151514B (en) | 2021-06-15 |
Family
ID=64803320
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710512316.2A Active CN109151514B (en) | 2017-06-28 | 2017-06-28 | Method, storage medium, equipment and system for purchasing commodities in live broadcast room |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109151514B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111724222A (en) * | 2019-03-19 | 2020-09-29 | 阿里巴巴集团控股有限公司 | Information processing method and device in live broadcast and electronic equipment |
CN110060135A (en) * | 2019-04-26 | 2019-07-26 | 广州虎牙信息科技有限公司 | Commodity transaction processing method, device, server and medium based on live streaming platform |
CN111582969A (en) * | 2020-01-20 | 2020-08-25 | 全息空间(深圳)智能科技有限公司 | Order customization transaction method, device and medium for live broadcast platform |
CN111754302B (en) * | 2020-06-24 | 2021-04-27 | 广西壹农乐信息技术有限公司 | Video live broadcast interface commodity display intelligent management system based on big data |
CN111951082B (en) * | 2020-08-18 | 2024-06-21 | 广州华多网络科技有限公司 | Method, device, equipment and medium for executing and controlling network live transaction order |
CN112116427A (en) * | 2020-09-22 | 2020-12-22 | 深圳市分期乐网络科技有限公司 | Commodity recommendation method and device, electronic equipment and storage medium |
CN112235647B (en) * | 2020-10-13 | 2021-08-17 | 北京达佳互联信息技术有限公司 | Network data processing method and device, terminal and server |
CN112770136A (en) * | 2021-01-27 | 2021-05-07 | 北京龙商公社互联网科技发展股份有限公司 | Community electronic commerce video live broadcast delivery service system |
CN113259773B (en) * | 2021-05-25 | 2022-06-03 | 北京达佳互联信息技术有限公司 | Live broadcast data processing method and device, terminal, server and readable storage medium |
CN113362175B (en) * | 2021-06-23 | 2023-07-25 | 富途网络科技(深圳)有限公司 | Interface display method and device, storage medium and terminal equipment |
CN113490005B (en) * | 2021-06-30 | 2023-08-18 | 北京达佳互联信息技术有限公司 | Information interaction method and device for live broadcasting room, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102929850A (en) * | 2012-09-28 | 2013-02-13 | 用友软件股份有限公司 | Report data processing device and report data processing method |
CN103795761A (en) * | 2012-11-01 | 2014-05-14 | 腾讯科技(深圳)有限公司 | Method and system for downloading online game data |
CN105828123A (en) * | 2016-03-30 | 2016-08-03 | 乐视控股(北京)有限公司 | Method and apparatus for interaction in live broadcast |
CN106604048A (en) * | 2016-12-15 | 2017-04-26 | 深圳市智联宝生态科技有限公司 | Direct broadcasting method and system with shopping module embedded in direct broadcasting room |
CN106791904A (en) * | 2016-12-29 | 2017-05-31 | 广州华多网络科技有限公司 | Live purchase method and device |
-
2017
- 2017-06-28 CN CN201710512316.2A patent/CN109151514B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102929850A (en) * | 2012-09-28 | 2013-02-13 | 用友软件股份有限公司 | Report data processing device and report data processing method |
CN103795761A (en) * | 2012-11-01 | 2014-05-14 | 腾讯科技(深圳)有限公司 | Method and system for downloading online game data |
CN105828123A (en) * | 2016-03-30 | 2016-08-03 | 乐视控股(北京)有限公司 | Method and apparatus for interaction in live broadcast |
CN106604048A (en) * | 2016-12-15 | 2017-04-26 | 深圳市智联宝生态科技有限公司 | Direct broadcasting method and system with shopping module embedded in direct broadcasting room |
CN106791904A (en) * | 2016-12-29 | 2017-05-31 | 广州华多网络科技有限公司 | Live purchase method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109151514A (en) | 2019-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109151514B (en) | Method, storage medium, equipment and system for purchasing commodities in live broadcast room | |
US20180043264A1 (en) | Game Accessing Method and Processing Method, Server, Terminal, and System | |
CN110708346B (en) | Information processing system and method | |
CN108848401B (en) | Video playing starting method and device | |
US20140344286A1 (en) | Method and apparatus for displaying webcast roomss | |
US20190158626A1 (en) | Method, apparatus and computer readable storage medium for processing service | |
US11890540B2 (en) | User interface processing method and device | |
WO2019024257A1 (en) | Method and device for publishing video files | |
CN111083517B (en) | Live broadcast room interaction method and device, electronic equipment, system and storage medium | |
CN104469467A (en) | Video playing method, device and system in browser client | |
JP2017539103A (en) | Method, apparatus, server, and system for synchronizing member gain among multiple apparatuses | |
CN110659121A (en) | Task data acquisition method and device, task configuration method and device and server | |
US20170180805A1 (en) | Method and electronic device for video follow-play | |
CN112689170B (en) | Content playing method of display terminal, display terminal and readable storage medium | |
US20180027355A1 (en) | Data download method and apparatus | |
EP2804406A1 (en) | Real Time Bidding System For Applications | |
CN108271050B (en) | Live broadcast room program recommendation method and device | |
US20170171266A1 (en) | Method and electronic device based on android platform for multimedia resource play | |
JP2018500670A (en) | Handling unstructured messages | |
CN113727129B (en) | Live interaction method, device, system, equipment and storage medium | |
CN108182030B (en) | Player control hiding method and device | |
CN113413611A (en) | Order generation method, order payment method, device and equipment for cloud game platform | |
US20240073488A1 (en) | Live video processing method and apparatus, device and medium | |
WO2019134294A1 (en) | Method and apparatus for processing recommendation information of live stream | |
CN111050217B (en) | Video playing method and device |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230919 Address after: 434000 Room 101-108, Building 26, Songzi Modern Agricultural Expo City, Daoguxi Road, Xinjiangkou Street, Songzi City, Jingzhou City, Hubei Province (self declared) Patentee after: Hubei Sanwa Food Co.,Ltd. Address before: 430000 Wuhan Donghu Development Zone, Wuhan, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |