CN112579926A - Method and device for acquiring target resource, electronic equipment and storage medium - Google Patents

Method and device for acquiring target resource, electronic equipment and storage medium Download PDF

Info

Publication number
CN112579926A
CN112579926A CN202011460076.4A CN202011460076A CN112579926A CN 112579926 A CN112579926 A CN 112579926A CN 202011460076 A CN202011460076 A CN 202011460076A CN 112579926 A CN112579926 A CN 112579926A
Authority
CN
China
Prior art keywords
resource
target
candidate
value
user
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.)
Pending
Application number
CN202011460076.4A
Other languages
Chinese (zh)
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 Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202011460076.4A priority Critical patent/CN112579926A/en
Publication of CN112579926A publication Critical patent/CN112579926A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9536Search customisation based on social or collaborative filtering
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Primary Health Care (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method and a device for acquiring target resources, electronic equipment and a storage medium, and belongs to the technical field of internet. The method comprises the following steps: receiving a resource acquisition request of a target user, wherein the resource acquisition request carries an object identifier of a target object; acquiring at least one resource, a resource code of each resource and a resource numerical value of each resource which are included by a target object according to the object identifier of the target object; displaying candidate resources in at least one resource, wherein the candidate resources are selected by a first user and are not acquired, and the first user is a user acquiring the resources before a target user; in response to receiving a selected instruction of a target resource in the candidate resources, determining a resource code of the target resource, and adjusting a resource value of the target resource based on the resource code of the target resource; and acquiring the target resource according to the adjusted resource value of the target resource. When the method is used for acquiring the target resource, the speed of acquiring the target resource can be increased, and the channel change rate of the target object is increased.

Description

Method and device for acquiring target resource, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of internet, in particular to a method and a device for acquiring target resources, electronic equipment and a storage medium.
Background
With the continuous development of internet technology, the catering industry and other service industries are also rapidly developing, and electronic menu gradually becomes a novel ordering tool in the catering industry. When a consumer obtains a target resource (ordering), the two-dimensional code of a merchant is scanned by using terminal equipment, and after the two-dimensional code is scanned, the information of each dish of the merchant is displayed on the terminal. For merchants, it is very important to set the display sequence of each dish information to save the waiting time of consumers.
In the related art, the dish information is displayed as follows: the merchant manually sets the display sequence of the information of each dish, and displays the information of each dish based on the set display sequence. The displayed dish information depends on the personal subjective consciousness of the merchant, and the displayed dish information is easy to have no regularity; when the user orders according to the display sequence, the commercial tenants need to make the ordering sequence according to the ordering sequence of the user, so that the meal serving speed of the commercial tenants is low, and the user needs to spend a large amount of time waiting for the meal serving, so that the channel changing rate of the commercial tenants is low.
Disclosure of Invention
The embodiment of the application provides a method and a device for acquiring a target resource, electronic equipment and a storage medium, which can be used for solving the problems in the related art. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a method for acquiring a target resource, where the method includes:
receiving a resource acquisition request of a target user, wherein the resource acquisition request carries an object identifier of a target object;
acquiring at least one resource, a resource code of each resource and a resource numerical value of each resource, which are included by the target object, according to the object identifier of the target object;
displaying candidate resources in the at least one resource, wherein the candidate resources are resources with resource values not equal to zero, the candidate resources are resources selected by a first user and not acquired, and the first user is a user acquiring resources before the target user;
in response to receiving a selected instruction of a target resource in the candidate resources, determining a resource code of the target resource, and adjusting a resource value of the target resource based on the resource code of the target resource;
and acquiring the target resource according to the adjusted resource value of the target resource.
In a possible implementation manner, before presenting the candidate resource in the at least one resource, the method further includes:
determining an alternative resource with a non-zero resource value in the at least one resource based on the resource value of the at least one resource, and determining the alternative resource as the candidate resource, wherein the non-zero resource value is used for indicating that the alternative resource is selected by the first user and is not acquired;
after the target resource is obtained according to the adjusted resource value of the target resource, the method further includes:
and adjusting the resource value of the target resource to zero.
In a possible implementation manner, before presenting the candidate resource in the at least one resource, the method further includes:
determining candidate resources with resource values not zero in the at least one resource based on the resource values of the at least one resource, and selecting candidate resources with a first identifier as the candidate resources, wherein the resource values not zero are used for indicating selection by the first user, and the first identifier is used for indicating non-acquisition;
after the target resource is obtained according to the adjusted resource value of the target resource, the method further includes:
and adjusting the indication identifier of the target resource to be a second identifier, wherein the second identifier is used for indicating that the acquisition is performed.
In one possible implementation, the determining, in response to receiving the selected instruction of the target resource from the candidate resources, a resource code of the target resource, and adjusting a resource value of the target resource based on the resource code of the target resource, includes:
in response to receiving a selected instruction of a target resource in the candidate resources, displaying a resource detail page of the target resource, wherein the resource detail page is displayed with a resource quantity option, a resource code of the target resource, and at least one of a resource name and resource information of the target resource;
responding to a received selected instruction of the resource quantity option, and acquiring a limit numerical value corresponding to the target resource based on the resource code of the target resource;
and responding to the condition that the resource value of the target resource is smaller than the limit value corresponding to the target resource, and adjusting the resource value of the target resource.
In one possible implementation, the method further includes:
responding to the resource value of the target resource being equal to the limit value, displaying a notification message, wherein the notification message is used for notifying that the resource value of the target resource meets the limit value of the target resource;
and setting the resource quantity option of the target resource as a target format, wherein the target format is used for prompting that the resource numerical value of the target resource reaches an upper limit.
In a possible implementation manner, the setting the resource quantity option of the target resource to the target format includes:
setting the color of the resource quantity option of the target resource as a target color;
or setting the resource quantity option of the target resource to be in an invisible mode.
In a possible implementation manner, the presenting candidate resources in the at least one resource includes:
acquiring an acquisition sequence number of the candidate resource;
and displaying the candidate resources according to the acquisition sequence numbers of the candidate resources.
In a possible implementation manner, the resource detail page further shows multimedia data of the target resource, where the multimedia data includes at least one of a picture and a video of the target resource;
before the receiving the selected instruction of the target resource in the candidate resources and displaying the resource detail page of the target resource, the method further comprises:
generating a multimedia data acquisition request according to the resource code of the target resource, wherein the multimedia data acquisition request carries the resource code of the target resource;
sending the multimedia data acquisition request to a target server;
and receiving multimedia data corresponding to the target resource returned by the target server based on the resource coding of the target resource.
In one possible implementation, the method further includes:
presenting a non-candidate resource of the at least one resource after the presentation location of the candidate resource;
in response to receiving a selected instruction for a target non-candidate resource of the non-candidate resources, adjusting a resource value of the target non-candidate resource based on a resource encoding of the target non-candidate resource;
and acquiring the target non-candidate resource according to the adjusted resource value of the target non-candidate resource.
In another aspect, an embodiment of the present application provides an apparatus for acquiring a target resource, where the apparatus includes:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a resource acquisition request of a target user, and the resource acquisition request carries an object identifier of a target object;
a first obtaining module, configured to obtain, according to an object identifier of the target object, at least one resource included in the target object, a resource code of each resource, and a resource value of each resource;
a display module, configured to display a candidate resource in the at least one resource, where the candidate resource is a resource whose resource value is not zero, the candidate resource is a resource selected by a first user and not acquired, and the first user is a user who acquires a resource before the target user;
a determining module, configured to determine a resource code of a target resource in response to receiving a selected instruction of the target resource from the candidate resources;
an adjusting module, configured to adjust a resource value of the target resource based on a resource code of the target resource;
and the second acquisition module is used for acquiring the target resource according to the adjusted resource value of the target resource.
In a possible implementation manner, the determining module is further configured to determine, based on a resource value of the at least one resource, an alternative resource with a resource value that is not zero in the at least one resource, and determine the alternative resource as the candidate resource, where the resource value that is not zero is used to indicate that the alternative resource is selected by the first user and is not acquired;
the adjusting module is further configured to adjust the resource value of the target resource to zero.
In a possible implementation manner, the determining module is further configured to determine, based on a resource value of the at least one resource, a candidate resource whose resource value is not zero in the at least one resource, select, as the candidate resource, a candidate resource with a first identifier, where the resource value is not zero and is used to indicate that the candidate resource is selected by the first user, and the first identifier is used to indicate that the candidate resource is not acquired;
the adjusting module is further configured to adjust the indication identifier of the target resource to a second identifier, where the second identifier is used to indicate that the acquisition is in progress.
In a possible implementation manner, the adjusting module is configured to, in response to receiving a selected instruction of a target resource in the candidate resources, display a resource detail page of the target resource, where the resource detail page displays at least one of a resource quantity option, a resource code of the target resource, and a resource name and resource information of the target resource; responding to a received selected instruction of the resource quantity option, and acquiring a limit numerical value corresponding to the target resource based on the resource code of the target resource; and responding to the condition that the resource value of the target resource is smaller than the limit value corresponding to the target resource, and adjusting the resource value of the target resource.
In one possible implementation, the apparatus further includes:
a display module, configured to display a notification message in response to that the resource value of the target resource is equal to the limit value, where the notification message is used to notify that the resource value of the target resource meets the limit value of the target resource;
and the setting module is used for setting the resource quantity option of the target resource into a target format, and the target format is used for prompting that the resource numerical value of the target resource reaches an upper limit.
In a possible implementation manner, the setting module is configured to set a color of the resource quantity option of the target resource to a target color; or setting the resource quantity option of the target resource to be in an invisible mode.
In a possible implementation manner, the presentation module is configured to obtain an obtaining sequence number of the candidate resource; and displaying the candidate resources according to the acquisition sequence numbers of the candidate resources.
In a possible implementation manner, the resource detail page further shows multimedia data of the target resource, where the multimedia data includes at least one of a picture and a video of the target resource;
the receiving module is further configured to generate a multimedia data acquisition request according to the resource code of the target resource, where the multimedia data acquisition request carries the resource code of the target resource; sending the multimedia data acquisition request to a target server; and receiving multimedia data corresponding to the target resource returned by the target server based on the resource coding of the target resource.
In a possible implementation manner, the presentation module is further configured to present a non-candidate resource in the at least one resource after the presentation position of the candidate resource;
the adjusting module is further configured to adjust a resource value of a target non-candidate resource based on a resource code of the target non-candidate resource in response to receiving a selected instruction of the target non-candidate resource;
the second obtaining module is further configured to obtain the target non-candidate resource according to the adjusted resource value of the target non-candidate resource.
In another aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores at least one program code, and the at least one program code is loaded and executed by the processor, so as to implement any one of the above methods for acquiring a target resource.
In another aspect, a computer-readable storage medium is provided, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement any of the above methods for acquiring a target resource.
In another aspect, a computer program or a computer program product is provided, in which at least one computer instruction is stored, and the at least one computer instruction is loaded and executed by a processor, so as to implement any one of the above methods for acquiring a target resource.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
according to the technical scheme provided by the embodiment of the application, when the target user acquires the target resource from the target object, the candidate resource is displayed to the target user in consideration of the resource which is selected by the first user and is not acquired before the target user in the resources included in the target object, namely the candidate resource, so that the target user is guided to acquire the target resource from the candidate resource, namely the target user and the first user are guided to acquire the same resource. After the target user selects the target resource in the candidate resources, the resource value of the target resource is adjusted, the target resource is obtained based on the adjusted resource value, so that the target user and the first user can simultaneously obtain the target resource.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment of a method for acquiring a target resource according to an embodiment of the present application;
fig. 2 is a flowchart of a method for acquiring a target resource according to an embodiment of the present application;
FIG. 3 is a schematic illustration showing a candidate resource of a target object according to an embodiment of the present disclosure;
FIG. 4 is a diagram illustrating a representation of a resource included in a target object according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a resource detail page of a target resource provided by an embodiment of the present application;
FIG. 6 is a diagram illustrating a notification message of a target resource according to an embodiment of the present application;
FIG. 7 is a schematic diagram illustrating a setting of a resource quantity option of a target resource according to an embodiment of the present application;
FIG. 8 is a diagram illustrating a setting of a resource quantity option of another target resource provided by an embodiment of the present application;
fig. 9 is a schematic structural diagram of an apparatus for acquiring a target resource according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 11 is a schematic structural diagram of a target server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment of a method for acquiring a target resource according to an embodiment of the present application, and as shown in fig. 1, the implementation environment includes: an electronic device 101 and a target server 102.
The electronic device 101 may be at least one of a smartphone, a game console, a desktop computer, a tablet computer, an e-book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4) player, and a laptop computer. An application program for acquiring a target resource is installed and run in the electronic device 101, and the electronic device 101 is configured to execute the method for acquiring a target resource provided by the embodiment of the present application.
The electronic device 101 may be generally referred to as one of a plurality of electronic devices, and the embodiment is only illustrated by the electronic device 101. Those skilled in the art will appreciate that the number of electronic devices 101 described above may be greater or fewer. For example, the number of the electronic devices 101 may be only one, or the number of the electronic devices 101 may be tens or hundreds, or more, and the number of the electronic devices and the device types are not limited in the embodiment of the present application.
The target server 102 is one server, or a plurality of servers, or at least one of a cloud computing platform and a virtualization center. The target server 102 may communicate with the electronic device 101 through a wired network or a wireless network. The target server 102 receives a multimedia data acquisition request sent by the electronic device 101, and acquires multimedia data corresponding to a target resource in response to the multimedia data acquisition request. The target server 102 may also send multimedia data corresponding to the target resource to the electronic device 101. Alternatively, the number of the target servers 102 may be more or less, and the embodiment of the present application is not limited thereto. Of course, the target server 102 may also include other functional servers to provide more comprehensive and diverse services.
Based on the foregoing implementation environment, the present application embodiment provides a method for acquiring a target resource, which may be executed by the electronic device 101 in fig. 1, taking a flowchart of the method for acquiring a target resource provided in the present application embodiment shown in fig. 2 as an example. As shown in fig. 2, the method comprises the steps of:
in step 201, a resource obtaining request of a target user is received, where the resource obtaining request carries an object identifier of a target object.
In the exemplary embodiment of the present application, the electronic device is an intelligent terminal such as a mobile phone, or other electronic devices for acquiring a target resource, and the device type of the electronic device is not limited in the embodiment of the present application. The electronic device is installed and operated with an application program for acquiring a target resource, where the application program is an application program of any type, and the target resource is a dish or other type of resource, and the type of the application program and the type of the target resource are not limited in the embodiment of the present application.
In one possible implementation manner, in response to a selection operation of a target user on the electronic device for the application program, a display interface of the application program is displayed, and a plurality of objects are displayed in the display interface and are viewed by the target user. When the target user selects any one of the plurality of objects, the electronic equipment determines the object selected by the target user as the target object. Based on an operation of selecting a target object by a target user, an electronic device receives a resource acquisition request of the target object, where the resource acquisition request carries an object identifier of the target object, and the object identifier of the target object is an object name of the target object, or an object account of the target object, or a license number of the target object, or any identifier that can uniquely represent the target object.
In step 202, at least one resource, a resource code of each resource, and a resource value of each resource included in the target object are obtained according to the object identifier of the target object.
In a possible implementation manner, there may be two implementation manners, that is, according to the object identifier of the target object, at least one resource included in the target object, a resource code of each resource, and a resource value of each resource are obtained.
In the first implementation manner, the electronic device obtains at least one resource, a resource code of each resource, and a resource value of each resource included in the target object in a storage space of the electronic device.
In a possible implementation manner, the electronic device stores an object identifier of each object, a resource code, and a resource value of the resource included in each object, and a corresponding relationship between the object identifier, the resource included in the object, the resource code, and the resource value of the resource. After the electronic equipment receives the resource acquisition request, the resource acquisition request is analyzed to obtain an object identifier of a target object carried in the resource acquisition request, and at least one resource, a resource code of each resource and a resource numerical value of each resource included in the target object are acquired in a storage space of the electronic equipment based on the object identifier of the target object.
And in the second implementation mode, the electronic device acquires at least one resource, the resource code of each resource and the resource numerical value of each resource, which are included by the target object, through interaction with the target server.
In a possible implementation manner, after receiving a resource acquisition request, an electronic device analyzes the resource acquisition request to obtain an object identifier of a target object carried in the resource acquisition request, generates an acquisition request based on the object identifier of the target object, and sends the acquisition request to a target server. The target server stores the object identification of each object, at least one resource included by each object, the resource code of each resource and the resource value of each resource. After receiving the acquisition request, the target server analyzes the acquisition request to obtain an object identifier of a target object carried in the acquisition request, and acquires at least one resource, a resource code of each resource and a resource numerical value of each resource included by the target object in a storage space of the target server based on the object identifier of the target object. The target server sends the at least one resource, the resource code of each resource, and the resource numerical value of each resource included in the target object to the electronic device, that is, the electronic device obtains the at least one resource, the resource code of each resource, and the resource numerical value of each resource included in the target object.
It should be noted that any one of the above implementation manners may be selected to obtain at least one resource included in the target object, a resource code of each resource, and a resource value of each resource, which is not limited in this embodiment of the present application.
In step 203, candidate resources in the at least one resource are displayed, where the candidate resources are resources whose resource values are not zero, the candidate resources are resources selected by the first user and are not acquired, and the first user is a user who acquires resources before the target user.
In a possible implementation manner, before presenting the candidate resource in the at least one resource, the electronic device needs to determine the candidate resource in the at least one resource, and the determination process of the candidate resource has the following two manners.
In a first mode, a candidate resource is determined in at least one resource based on a resource value of the at least one resource.
In a possible implementation manner, based on a resource value of at least one resource, a candidate resource with a resource value that is not zero is determined in the at least one resource, and the candidate resource is determined as a candidate resource, where the resource value that is not zero is used to indicate that the candidate resource is selected by the first user and is not acquired.
Illustratively, the target object is a restaurant, the at least one resource included in the target object is dishes sold in the restaurant, and the at least one resource included in the target object is: dish a, dish B, dish C, dish D, and dish E. And determining the dish A, the dish B and the dish C as alternative resources because the resource numerical values of the dish A, the dish B and the dish C are not zero. Since the resource value is not zero to indicate that the first user selected and not acquired, the electronic device determines dish a, dish B, and dish C as candidate resources for the target object.
And secondly, determining candidate resources in the at least one resource based on the resource value and the indication identifier of the at least one resource.
In a possible implementation manner, based on a resource value of at least one resource, a candidate resource whose resource value is not zero is determined in the at least one resource, and a candidate resource having a first identifier is selected as a candidate resource from the candidate resources, where the resource value is not zero and is used for indicating that the candidate resource is selected by a first user, and the first identifier is used for indicating that the candidate resource is not acquired.
In a possible implementation manner, at least one resource included in the target object further carries an indication identifier, where the indication identifier includes a first identifier and a second identifier. The first mark is used for indicating that the acquisition is not performed, and the second mark is used for indicating that the acquisition is performed.
It should be noted that the first mark may be represented by a "five-pointed star," and the second mark may be represented by a "square," or the first mark and the second mark may be represented by other marks, as long as the representation forms of the first mark and the second mark are not consistent, and the representation forms of the first mark and the second mark are not limited in the embodiment of the present application.
Illustratively, the target object is a restaurant, the at least one resource included in the target object is dishes sold in the restaurant, and the at least one resource included in the target object is: dish a, dish B, dish C, dish D, and dish E. And determining the dish A, the dish B, the dish C and the dish D as alternative resources. The indicating mark of the dish A is a first mark, the indicating mark of the dish B is a first mark, the indicating mark of the dish C is a first mark, and the indicating mark of the dish D is a second mark. Therefore, the electronic device selects the candidate resource with the first identifier as the candidate resource from the candidate resources, that is, the electronic device determines dish a, dish B, and dish C as the candidate resources.
In a possible implementation manner, after acquiring the candidate resources of the target object, the electronic device may further display each candidate resource according to the acquisition sequence number of each candidate resource, where the display process includes the following steps 1 to 2.
Step 1, acquiring the acquisition sequence number of the candidate resource.
In a possible implementation manner, in step 202, when the electronic device obtains at least one resource included in the target object, a resource code of each resource, and a resource numerical value of each resource, the electronic device may further obtain an obtaining sequence number of a resource whose resource numerical value is not zero. Illustratively, dish A is a resource selected and not acquired by a first user, dish B is a resource selected and not acquired by a second first user, and dish C is a resource selected and not acquired by a third first user, and the first user performs resource acquisition before the second first user and the second first user performs resource acquisition before the third first user. Thus, the acquisition number for dish A is 1, the acquisition number for dish B is 2, and the acquisition number for dish C is 3.
The acquisition sequence number of each candidate resource may be in other expression forms, and the embodiment of the present application does not limit this.
And 2, displaying the candidate resources according to the acquired sequence numbers of the candidate resources.
In a possible implementation manner, the candidate resources are displayed in an order from high to low of the acquisition sequence number of each candidate resource, or the candidate resources are displayed in an order from low to high of the acquisition sequence number of each candidate resource. Fig. 3 is a schematic view illustrating candidate resources of a target object according to an embodiment of the present application, where 3 candidate resources of the target object are illustrated in fig. 3 and are respectively dish a, dish B, and dish C, where an acquisition serial number of dish a is 1, an acquisition serial number of dish B is 2, and an acquisition serial number of dish C is 3, that is, an order of displaying the candidate resources in fig. 3 is that the candidate resources are displayed according to an order of acquiring serial numbers of the candidate resources from high to low.
In a possible implementation manner, a resource whose resource value is zero in the resources included in the target object may be displayed after the display position of the candidate resource, that is, a non-candidate resource in the resources included in the target object is displayed after the display position of the candidate resource, so that the user may select the non-candidate resource. Fig. 4 is a display diagram of resources included in a target object according to an embodiment of the present application, where in fig. 4, a dish D and a dish E are displayed after the display positions of a dish a, a dish B and a dish C.
In step 204, in response to receiving the selected instruction of the target resource in the candidate resources, a resource code of the target resource is determined, and a resource value of the target resource is adjusted based on the resource code of the target resource.
In a possible implementation manner, after the electronic device displays the candidate resources of the target object, the target user selects the target resource from the candidate resources displayed by the electronic device based on a click operation or a voice obtaining operation. In response to receiving a target user's instruction for selecting a target resource from the candidate resources, a resource code of the target resource is determined, and a process of adjusting a resource value of the target resource based on the resource code of the target resource includes steps 2041 to 2043.
Step 2041, in response to receiving the selected instruction of the target resource in the candidate resources, displaying a resource detail page of the target resource, in which a resource quantity option, a resource code of the target resource, and at least one of a resource name and resource information of the target resource are displayed.
In a possible implementation manner, the resource detail page further shows multimedia data of the target resource, where the multimedia data includes at least one of a picture and a video of the target resource.
In a possible implementation manner, in response to receiving a selected instruction of a target resource in candidate resources, before a resource detail page of the target resource is displayed, multimedia data of the target resource needs to be acquired first, and any one of the following implementation manners may be used to acquire the multimedia data of the target resource.
In the first implementation manner, the electronic device acquires multimedia data of a target resource through interaction with a target server, and the acquiring process of the multimedia data includes the following steps 1 to 3.
Step 1, the electronic equipment generates a multimedia data acquisition request according to the resource code of the target resource, wherein the multimedia data acquisition request carries the resource code of the target resource.
In a possible implementation manner, in response to a target user's instruction for selecting a target resource from the candidate resources, the electronic device acquires a resource code of the target resource, and generates a multimedia data acquisition request based on the resource code of the target resource.
And step 2, the electronic equipment sends a multimedia data acquisition request to a target server.
In a possible implementation manner, after generating a multimedia data acquisition request of a target resource, an electronic device may directly send the multimedia data acquisition request of the target resource to a target server, and the sending timing of the multimedia data acquisition request is not limited in the embodiment of the present application.
And 3, the electronic equipment receives the multimedia data corresponding to the target resource returned by the target server based on the resource code of the target resource.
In a possible implementation manner, the storage space of the target server stores multimedia data corresponding to each resource and a corresponding relationship between the multimedia data and a resource code of each resource. The method comprises the steps that after a target server receives a multimedia data acquisition request sent by electronic equipment, the multimedia data acquisition request is analyzed to obtain a resource code of a target resource carried by the multimedia data acquisition request, and multimedia data corresponding to the target resource are extracted from a storage space based on the resource code of the target resource. And sending the multimedia data corresponding to the target resource to the electronic equipment, namely, the electronic equipment acquires the multimedia data corresponding to the target resource.
And in the second implementation mode, the electronic equipment extracts the multimedia data corresponding to the target resource from the storage space of the electronic equipment.
In one possible implementation manner, the storage space of the electronic device stores multimedia data corresponding to each resource and a correspondence between the multimedia data and a resource code of each resource. After the electronic device receives the selected instruction of the target resource, the electronic device obtains the resource code of the target resource, and extracts the multimedia data corresponding to the target resource from the storage space based on the resource code of the target resource, that is, the electronic device obtains the multimedia data corresponding to the target resource.
It should be noted that the electronic device may obtain the multimedia data corresponding to the target resource based on any one of the above implementation manners, which is not limited in the embodiment of the present application.
Fig. 5 is a schematic view of a resource detail page of a target resource provided in an embodiment of the present application, where a resource code of the target resource shown in fig. 5 is 003, a resource name of the target resource is a shrimp with a fragrance explosion, resource information of the target resource is salt, cooking wine, pepper-pickled shrimp, sliced shallot, carrot, and green pepper, which is then fried with broad bean paste and taken out of a pot, a resource quantity option of the target resource is 2, and multimedia data of the target resource is also shown.
Step 2042, in response to the received selected instruction of the resource quantity option, acquiring a limit value corresponding to the target resource based on the resource code of the target resource.
In a possible implementation manner, each resource has a limit value corresponding to the resource, the electronic device stores the limit value corresponding to each resource, and also stores a correspondence between a resource code of each resource and the limit value corresponding to each resource. In response to receiving a selection instruction of the target user for the resource quantity option of the target resource, the electronic device extracts the limit value of the target resource from the storage space based on the resource code of the target resource. Illustratively, the limit value for the target resource is 5.
It should be noted that the limit value of each resource may be the same or different, the limit value of each resource is set by the user, and the value of the limit value of each resource is not limited in the embodiment of the present application.
Step 2043, in response to the resource value of the target resource being smaller than the limit value corresponding to the target resource, adjusting the resource value of the target resource.
In one possible implementation, in response to the resource value of the target resource being less than the limit value corresponding to the target resource, the electronic device adjusts the resource value of the target resource by an upward value. Illustratively, the resource value of the target resource is 2, the corresponding limit value of the target resource is 5, and since the resource value of the target resource is smaller than the limit value of the target resource, the resource value of the target resource is adjusted to 3.
In one possible implementation manner, in response to that the resource value of the target resource is equal to the limit value corresponding to the target resource, a notification message is displayed, where the notification message is used to notify that the resource value of the target resource meets the limit value of the target resource. Fig. 6 is a schematic diagram of a notification message of a target resource according to an embodiment of the present application, where the notification message shown in fig. 6 is: sorry, the target resource can not be acquired temporarily, and you can select other methods to acquire. Of course, the notification message may also be other contents, and the content of the notification message is not limited in the embodiment of the present application.
In a possible implementation manner, when the resource value of the target resource is equal to the limit value corresponding to the target resource, the electronic device may further set the resource quantity option of the target resource to a target format, where the target format is used to prompt that the resource value of the target resource reaches the upper limit.
In one possible implementation, the resource quantity option of the target resource may be set to the target format in the following two ways.
And in the first mode, setting the color of the resource quantity option of the target resource as the target color.
Fig. 7 is a schematic diagram illustrating a setting of a resource quantity option of a target resource according to an embodiment of the present application, where in fig. 7, a color of the resource quantity option of the target resource is set to be gray.
The target color may be any color, and the example of the present application only illustrates that the target color is gray, which is not limited in the present application.
And secondly, setting the resource quantity option of the target resource to be in an invisible mode.
Fig. 8 is a schematic diagram illustrating a setting of a resource quantity option of a target resource according to an embodiment of the present application, where in fig. 8, the resource quantity option of the target resource is set to be in an invisible mode.
In step 205, the target resource is obtained according to the adjusted resource value of the target resource.
In a possible implementation manner, the electronic device sends the adjusted resource value of the target resource to the kitchen system, so that a worker in the kitchen system can make the resource value based on the adjusted resource value of the target resource, that is, obtain the target resource according to the adjusted resource value of the target resource.
Illustratively, the first user has selected dish A, and thus dish A has a resource value of 1 and a limit value of 5. The target user determines the dish a as the target resource, and the resource value of the dish a is adjusted upward by a value, that is, the resource value of the dish a is changed to 2, because the resource value of the dish a is smaller than the limit value of the dish a. The electronic equipment sends the adjusted resource value of the dish A to the kitchen system, and workers in the kitchen system make the dish A based on the adjusted resource value of the dish A, so that 2 dishes A can be obtained at one time. Since one part of dish is not needed, the making time of the dish A can be saved, the first user and the target user can obtain the dish A at the same time, the waiting time of the target user can be saved, and the making speed of the dish A is improved.
In a possible implementation manner, in response to receiving a selection instruction of a target non-candidate resource in the non-candidate resources, a resource value of the target non-candidate resource is adjusted based on a resource code of the target non-candidate resource, and the adjusted resource value of the target non-candidate resource is sent to a kitchen system, so that a worker in the kitchen system makes the resource value based on the adjusted resource value of the target non-candidate resource, that is, the target non-candidate resource is obtained according to the adjusted resource value of the target non-candidate resource.
In a possible implementation manner, in response to that the target resource does not carry the indication identifier, after the target resource is obtained according to the adjusted resource value of the target resource, the resource value of the target resource is adjusted to zero. Responding to the indication mark carried by the target resource, after the target resource is obtained according to the adjusted resource value of the target resource, adjusting the indication mark of the target resource, and adjusting the indication mark of the target resource from the first mark to the second mark. Through the adjustment process, when a user behind the target user acquires resources, the electronic device can quickly determine which resources are candidate resources, which candidate resources are the candidate resources being acquired, and which candidate resources are candidate resources not yet acquired in at least one resource, so that the user behind the target user can conveniently determine the target resources in the candidate resources.
According to the method, when the target user acquires the target resource from the target object, the candidate resource is shown to the target user in consideration of the resource which is selected by the first user and is not acquired before the target user in the resources included in the target object, namely the candidate resource, so that the target user is guided to acquire the target resource from the candidate resource, namely the target user and the first user are guided to acquire the same resource. After the target user selects the target resource in the candidate resources, the resource value of the target resource is adjusted, the target resource is obtained based on the adjusted resource value, so that the target user and the first user can simultaneously obtain the target resource.
Fig. 9 is a schematic structural diagram of an apparatus for acquiring a target resource according to an embodiment of the present application, and as shown in fig. 9, the apparatus includes:
a receiving module 901, configured to receive a resource acquisition request of a target user, where the resource acquisition request carries an object identifier of a target object;
a first obtaining module 902, configured to obtain, according to the object identifier of the target object, at least one resource included in the target object, a resource code of each resource, and a resource value of each resource;
a presentation module 903, configured to present a candidate resource in the at least one resource, where the candidate resource is a resource whose resource value is not zero, the candidate resource is a resource selected by a first user and not acquired, and the first user is a user who acquires a resource before the target user;
a determining module 904, configured to determine a resource code of a target resource in the candidate resources in response to receiving a selected instruction of the target resource;
an adjusting module 905, configured to adjust a resource value of the target resource based on the resource code of the target resource;
a second obtaining module 906, configured to obtain the target resource according to the adjusted resource value of the target resource.
In a possible implementation manner, the determining module 904 is further configured to determine, based on a resource value of at least one resource, an alternative resource with a resource value that is not zero in the at least one resource, and determine the alternative resource as a candidate resource, where the resource value that is not zero is used to indicate that the alternative resource is selected by the first user and is not acquired;
the adjusting module 905 is further configured to adjust the resource value of the target resource to zero.
In a possible implementation manner, the determining module 904 is further configured to determine, based on a resource value of at least one resource, an alternative resource whose resource value is not zero in the at least one resource, select, as a candidate resource, an alternative resource with a first identifier, where the resource value is not zero and is used for indicating that the alternative resource is selected by a first user, and the first identifier is used for indicating that the alternative resource is not acquired;
the adjusting module 905 is further configured to adjust the indication identifier of the target resource to a second identifier, where the second identifier is used to indicate that the acquisition is being performed.
In a possible implementation manner, the adjusting module 905 is configured to, in response to receiving a selected instruction of a target resource in the candidate resources, display a resource detail page of the target resource, where the resource detail page displays at least one of a resource quantity option, a resource code of the target resource, and a resource name and resource information of the target resource; responding to the received selected instruction of the resource quantity option, and acquiring a limit value corresponding to the target resource based on the resource code of the target resource; and responding to the resource value of the target resource being smaller than the limit value corresponding to the target resource, and adjusting the resource value of the target resource.
In one possible implementation, the apparatus further includes:
a display module, configured to display a notification message in response to that the resource value of the target resource is equal to the limit value, where the notification message is used to notify that the resource value of the target resource meets the limit value of the target resource;
and the setting module is used for setting the resource quantity option of the target resource into a target format, and the target format is used for prompting that the resource numerical value of the target resource reaches the upper limit.
In a possible implementation manner, the setting module is configured to set a color of the resource quantity option of the target resource as a target color; or, the resource quantity option of the target resource is set to be in the invisible mode.
In a possible implementation manner, the presentation module 903 is configured to obtain an obtaining sequence number of the candidate resource; and displaying the candidate resource according to the acquisition sequence number of the candidate resource.
In a possible implementation manner, the resource detail page further shows multimedia data of the target resource, where the multimedia data includes at least one of a picture and a video of the target resource;
the receiving module 901 is further configured to generate a multimedia data acquisition request according to the resource code of the target resource, where the multimedia data acquisition request carries the resource code of the target resource; sending the multimedia data acquisition request to a target server; and receiving the multimedia data corresponding to the target resource returned by the target server based on the resource code of the target resource.
In a possible implementation manner, the presenting module 903 is further configured to present a non-candidate resource in the at least one resource after the presentation position of the candidate resource;
the adjusting module 905 is further configured to, in response to receiving a selected instruction of a target non-candidate resource in the non-candidate resources, adjust a resource value of the target non-candidate resource based on a resource code of the target non-candidate resource;
the second obtaining module 906 is further configured to obtain the target non-candidate resource according to the adjusted resource value of the target non-candidate resource.
When the target user of the device acquires the target resource from the target object, the candidate resource is shown to the target user in consideration of the resource which is selected by the first user and is not acquired before the target user in the resources included in the target object, namely the candidate resource, so that the target user is guided to acquire the target resource from the candidate resource, namely the target user and the first user are guided to acquire the same resource. After the target user selects the target resource in the candidate resources, the resource value of the target resource is adjusted, the target resource is obtained based on the adjusted resource value, so that the target user and the first user can simultaneously obtain the target resource.
It should be noted that: in the device for acquiring a target resource provided in the foregoing embodiment, when acquiring a target resource, only the division of each functional module is illustrated, and in practical applications, the function allocation may be completed by different functional modules according to needs, that is, the internal structure of the device for acquiring a target resource is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for acquiring a target resource and the method for acquiring a target resource provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 1000 may be: a smart phone, a tablet computer, an MP3(Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4) player, a notebook computer or a desktop computer. The electronic device 1000 may also be referred to by other names as user equipment, portable electronic device, laptop electronic device, desktop electronic device, and so forth.
In general, the electronic device 1000 includes: one or more processors 1001 and one or more memories 1002.
Processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 1001 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 1001 may further include an AI (Artificial Intelligence) processor for processing a computing operation related to machine learning.
Memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1002 is used to store at least one instruction for execution by the processor 1001 to implement the method of obtaining a target resource provided by the method embodiments herein.
In some embodiments, the electronic device 1000 may further include: a peripheral interface 1003 and at least one peripheral. The processor 1001, memory 1002 and peripheral interface 1003 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1004, display screen 1005, camera assembly 1006, audio circuitry 1007, positioning assembly 1008, and power supply 1009.
The peripheral interface 1003 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 1001 and the memory 1002. In some embodiments, processor 1001, memory 1002, and peripheral interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral interface 1003 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 1004 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1004 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1004 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 1004 may communicate with other electronic devices via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1004 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1005 is a touch display screen, the display screen 1005 also has the ability to capture touch signals on or over the surface of the display screen 1005. The touch signal may be input to the processor 1001 as a control signal for processing. At this point, the display screen 1005 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 1005 may be one, providing a front panel of the electronic device 1000; in other embodiments, the display screens 1005 may be at least two, respectively disposed on different surfaces of the electronic device 1000 or in a folded design; in some embodiments, the display screen 1005 may be a flexible display screen, disposed on a curved surface or on a folded surface of the electronic device 1000. Even more, the display screen 1005 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display screen 1005 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 1006 is used to capture images or video. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Generally, a front camera is disposed on a front panel of an electronic apparatus, and a rear camera is disposed on a rear surface of the electronic apparatus. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1006 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1007 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1001 for processing or inputting the electric signals to the radio frequency circuit 1004 for realizing voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the electronic device 1000. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1001 or the radio frequency circuit 1004 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 1007 may also include a headphone jack.
The positioning component 1008 is used to locate a current geographic Location of the electronic device 1000 to implement navigation or LBS (Location Based Service). The Positioning component 1008 may be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
The power supply 1009 is used to supply power to the respective components in the electronic device 1000. The power source 1009 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 1009 includes a rechargeable battery, the rechargeable battery may support wired charging or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 1000 also includes one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: acceleration sensor 1011, gyro sensor 1012, pressure sensor 1011, fingerprint sensor 1014, optical sensor 1015, and proximity sensor 1016.
The acceleration sensor 1011 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the electronic apparatus 1000. For example, the acceleration sensor 1011 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1001 may control the display screen 1005 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1012 may detect a body direction and a rotation angle of the electronic device 1000, and the gyro sensor 1012 and the acceleration sensor 1011 may cooperate to acquire a 3D motion of the user on the electronic device 1000. From the data collected by the gyro sensor 1012, the processor 1001 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 1011 may be disposed on a side bezel of the electronic device 1000 and/or on a lower layer of the display screen 1005. When the pressure sensor 1011 is disposed on the side frame of the electronic device 1000, the holding signal of the user to the electronic device 1000 can be detected, and the processor 1001 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1011. When the pressure sensor 1011 is disposed at the lower layer of the display screen 1005, the processor 1001 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 1005. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1014 is used to collect a fingerprint of the user, and the processor 1001 identifies the user according to the fingerprint collected by the fingerprint sensor 1014, or the fingerprint sensor 1014 identifies the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 1001 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 1014 may be disposed on the front, back, or side of the electronic device 1000. When a physical button or vendor Logo is provided on the electronic device 1000, the fingerprint sensor 1014 may be integrated with the physical button or vendor Logo.
The optical sensor 1015 is used to collect the ambient light intensity. In one embodiment, the processor 1001 may control the display brightness of the display screen 1005 according to the ambient light intensity collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the display screen 1005 is turned down. In another embodiment, the processor 1001 may also dynamically adjust the shooting parameters of the camera assembly 1006 according to the intensity of the ambient light collected by the optical sensor 1015.
A proximity sensor 1016, also known as a distance sensor, is typically disposed on the front panel of the electronic device 1000. The proximity sensor 1016 is used to capture the distance between the user and the front of the electronic device 1000. In one embodiment, the processor 1001 controls the display screen 1005 to switch from the bright screen state to the dark screen state when the proximity sensor 1016 detects that the distance between the user and the front surface of the electronic device 1000 gradually decreases; when the proximity sensor 1016 detects that the distance between the user and the front of the electronic device 1000 gradually becomes larger, the display screen 1005 is controlled by the processor 1001 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 10 is not limiting of the electronic device 1000 and may include more or fewer components than shown, or combine certain components, or employ a different arrangement of components.
Fig. 11 is a schematic structural diagram of a target server according to an embodiment of the present application, where the target server 800 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1101 and one or more memories 1102, where the one or more memories 1102 store at least one program code, and the at least one program code is loaded and executed by the one or more processors 1101 to implement the method for obtaining a target resource according to the foregoing method embodiments. Of course, the target server 1100 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the target server 1100 may also include other components for implementing device functions, which are not described herein again.
In an exemplary embodiment, a computer readable storage medium is also provided, in which at least one program code is stored, the at least one program code being loaded and executed by a processor to implement any of the above methods for obtaining a target resource.
Alternatively, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program or a computer program product is also provided, in which at least one computer instruction is stored, and the at least one computer instruction is loaded and executed by a processor to implement any one of the above methods for obtaining a target resource.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (12)

1. A method for acquiring a target resource, the method being applied to an electronic device in which an application program for acquiring the target resource is installed and executed, the method comprising:
receiving a resource acquisition request of a target user, wherein the resource acquisition request carries an object identifier of a target object;
acquiring at least one resource, a resource code of each resource and a resource numerical value of each resource, which are included by the target object, according to the object identifier of the target object;
displaying candidate resources in the at least one resource, wherein the candidate resources are resources with resource values not equal to zero, the candidate resources are resources selected by a first user and not acquired, and the first user is a user acquiring resources before the target user;
in response to receiving a selected instruction of a target resource in the candidate resources, determining a resource code of the target resource, and adjusting a resource value of the target resource based on the resource code of the target resource;
and acquiring the target resource according to the adjusted resource value of the target resource.
2. The method of claim 1, wherein before presenting the candidate resource of the at least one resource, the method further comprises:
determining an alternative resource with a non-zero resource value in the at least one resource based on the resource value of the at least one resource, and determining the alternative resource as the candidate resource, wherein the non-zero resource value is used for indicating that the alternative resource is selected by the first user and is not acquired;
after the target resource is obtained according to the adjusted resource value of the target resource, the method further includes:
and adjusting the resource value of the target resource to zero.
3. The method of claim 1, wherein before presenting the candidate resource of the at least one resource, the method further comprises:
determining candidate resources with resource values not zero in the at least one resource based on the resource values of the at least one resource, and selecting candidate resources with a first identifier as the candidate resources, wherein the resource values not zero are used for indicating selection by the first user, and the first identifier is used for indicating non-acquisition;
after the target resource is obtained according to the adjusted resource value of the target resource, the method further includes:
and adjusting the indication identifier of the target resource to be a second identifier, wherein the second identifier is used for indicating that the acquisition is performed.
4. The method of claim 1, wherein, in response to receiving a selected instruction for a target resource of the candidate resources, determining a resource encoding for the target resource, and adjusting a resource value for the target resource based on the resource encoding for the target resource comprises:
in response to receiving a selected instruction of a target resource in the candidate resources, displaying a resource detail page of the target resource, wherein the resource detail page is displayed with a resource quantity option, a resource code of the target resource, and at least one of a resource name and resource information of the target resource;
responding to a received selected instruction of the resource quantity option, and acquiring a limit numerical value corresponding to the target resource based on the resource code of the target resource;
and responding to the condition that the resource value of the target resource is smaller than the limit value corresponding to the target resource, and adjusting the resource value of the target resource.
5. The method of claim 4, further comprising:
responding to the resource value of the target resource being equal to the limit value, displaying a notification message, wherein the notification message is used for notifying that the resource value of the target resource meets the limit value of the target resource;
and setting the resource quantity option of the target resource as a target format, wherein the target format is used for prompting that the resource numerical value of the target resource reaches an upper limit.
6. The method of claim 5, wherein setting the resource quantity option of the target resource to a target format comprises:
setting the color of the resource quantity option of the target resource as a target color;
or setting the resource quantity option of the target resource to be in an invisible mode.
7. The method of claim 1, wherein the presenting the candidate resources of the at least one resource comprises:
acquiring an acquisition sequence number of the candidate resource;
and displaying the candidate resources according to the acquisition sequence numbers of the candidate resources.
8. The method according to any one of claims 4-6, wherein the resource detail page further shows multimedia data of the target resource, wherein the multimedia data comprises at least one of a picture and a video of the target resource;
before the receiving the selected instruction of the target resource in the candidate resources and displaying the resource detail page of the target resource, the method further comprises:
generating a multimedia data acquisition request according to the resource code of the target resource, wherein the multimedia data acquisition request carries the resource code of the target resource;
sending the multimedia data acquisition request to a target server;
and receiving multimedia data corresponding to the target resource returned by the target server based on the resource coding of the target resource.
9. The method of claim 1 or 7, further comprising:
presenting a non-candidate resource of the at least one resource after the presentation location of the candidate resource;
in response to receiving a selected instruction for a target non-candidate resource of the non-candidate resources, adjusting a resource value of the target non-candidate resource based on a resource encoding of the target non-candidate resource;
and acquiring the target non-candidate resource according to the adjusted resource value of the target non-candidate resource.
10. An apparatus for acquiring a target resource, the apparatus comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a resource acquisition request of a target user, and the resource acquisition request carries an object identifier of a target object;
a first obtaining module, configured to obtain, according to an object identifier of the target object, at least one resource included in the target object, a resource code of each resource, and a resource value of each resource;
a display module, configured to display a candidate resource in the at least one resource, where the candidate resource is a resource whose resource value is not zero, the candidate resource is a resource selected by a first user and not acquired, and the first user is a user who acquires a resource before the target user;
a determining module, configured to determine a resource code of a target resource in response to receiving a selected instruction of the target resource from the candidate resources;
an adjusting module, configured to adjust a resource value of the target resource based on a resource code of the target resource;
and the second acquisition module is used for acquiring the target resource according to the adjusted resource value of the target resource.
11. An electronic device, comprising a processor and a memory, wherein at least one program code is stored in the memory, and wherein the at least one program code is loaded and executed by the processor to implement the method of acquiring a target resource according to any one of claims 1 to 9.
12. A computer-readable storage medium having stored therein at least one program code, the at least one program code being loaded and executed by a processor, for implementing the method for acquiring a target resource according to any one of claims 1 to 9.
CN202011460076.4A 2020-12-11 2020-12-11 Method and device for acquiring target resource, electronic equipment and storage medium Pending CN112579926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011460076.4A CN112579926A (en) 2020-12-11 2020-12-11 Method and device for acquiring target resource, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011460076.4A CN112579926A (en) 2020-12-11 2020-12-11 Method and device for acquiring target resource, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112579926A true CN112579926A (en) 2021-03-30

Family

ID=75131576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011460076.4A Pending CN112579926A (en) 2020-12-11 2020-12-11 Method and device for acquiring target resource, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112579926A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114648257A (en) * 2022-05-23 2022-06-21 德州市民政局 Information processing method, device and equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114648257A (en) * 2022-05-23 2022-06-21 德州市民政局 Information processing method, device and equipment

Similar Documents

Publication Publication Date Title
CN112162671B (en) Live broadcast data processing method and device, electronic equipment and storage medium
CN108063981B (en) Method and device for setting attributes of live broadcast room
CN113204298B (en) Method and device for displaying release progress, electronic equipment and storage medium
CN108959361B (en) Form management method and device
CN111028071B (en) Bill processing method and device, electronic equipment and storage medium
CN112667835A (en) Work processing method and device, electronic equipment and storage medium
CN108734662B (en) Method and device for displaying icons
CN111857793B (en) Training method, device, equipment and storage medium of network model
CN109660876B (en) Method and device for displaying list
CN111083554A (en) Method and device for displaying live gift
CN111327819A (en) Method, device, electronic equipment and medium for selecting image
CN109995804B (en) Target resource information display method, information providing method and device
CN111064657B (en) Method, device and system for grouping concerned accounts
CN112118353A (en) Information display method, device, terminal and computer readable storage medium
CN111813970A (en) Multimedia content display method, device, terminal and storage medium
CN112579926A (en) Method and device for acquiring target resource, electronic equipment and storage medium
CN112989198B (en) Push content determination method, device, equipment and computer-readable storage medium
CN114329292A (en) Resource information configuration method and device, electronic equipment and storage medium
CN114140105A (en) Resource transfer method, device, equipment and computer readable storage medium
CN109618018B (en) User head portrait display method, device, terminal, server and storage medium
CN112132472A (en) Resource management method and device, electronic equipment and computer readable storage medium
CN113076452A (en) Application classification method, device, equipment and computer readable storage medium
CN113064537B (en) Media resource playing method, device, equipment, medium and product
CN111953767B (en) Content sharing method, device, equipment and storage medium
CN110764808B (en) Client upgrade detection method, device and computer readable storage medium

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