Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
To enable one of ordinary skill in the art to use the present disclosure, in connection with a particular application scenario of resources: distribution of magic expressions, the following embodiments are given. It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the disclosure. Although the present disclosure is described primarily in the context of magic expressions, it should be understood that this is only one exemplary embodiment. The present disclosure may be applied to any other system where resources are distributed. For example, the present disclosure may be applied to distribution environments of different resources, including short videos, live rooms, chat rooms, and the like, or any combination thereof. Applications of the resource distribution system or method of the present disclosure may include web pages, plug-ins to browsers, clients, servers, cloud platforms, or custom systems, etc., or any combination thereof.
FIG. 1 is a schematic illustration of an implementation environment of some embodiments of the present disclosure. For example, the resource distribution system 100 may be a platform for providing resources such as live broadcasts, pictures, short videos, and the like for distribution. The resource distribution system 100 may include one or more of aserver 110 and at least one terminal device (e.g., a first terminal device 130), theserver 110 and the at least one terminal device being communicatively linked via anetwork 120, and theserver 110 may include a processor therein that performs the operations of the instructions. In addition, the resource distribution system 100 may also include adatabase 140.
In some embodiments, theserver 110 may be a single server or a cluster of servers. The server cluster may be centralized or distributed (e.g.,server 110 may be a distributed system). In some embodiments, theserver 110 may be local or remote to the terminal. For example,server 110 may access information and/or data stored in a plurality ofterminal devices 130 ordatabase 140, or any combination thereof, vianetwork 120.
As another example,server 110 may be directly connected to at least one of a plurality of terminal devices anddatabase 140 to access stored information and/or data. In some embodiments, theserver 110 may be implemented on a cloud platform; by way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud (community cloud), a distributed cloud, an inter-cloud, a multi-cloud, and the like, or any combination thereof.
In some embodiments, theserver 110 may include one or more processors. The processor may process information and/or data related to the service request to perform one or more of the functions described in this disclosure. For example, the processor may establish a session connection with at least one of the other terminal devices, based on a request obtained from at least one of the plurality of terminal devices, and/or the like. In some embodiments, a processor may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). By way of example only, a Processor may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), an Application Specific Instruction Set Processor (ASIP), a Graphics Processing Unit (GPU), a Physical Processing Unit (PPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), a Programmable Logic Device (PLD), a controller, a microcontroller Unit, a Reduced Instruction Set computer (Reduced Instruction Set Computing (RISC), a microprocessor, or the like, or any combination thereof.
Network 120 may be used for the exchange of information and/or data. In some embodiments, one or more devices in the resource distribution system 100 (e.g., theserver 110, one of the plurality of end devices, and the database 140) may send information and/or data to other devices. For example, theserver 110 may obtain a service request from one of the plurality of terminal devices via thenetwork 120. In some embodiments, thenetwork 120 may be any type of wired or wireless network, or combination thereof. Merely by way of example,Network 120 may include a wired Network, a Wireless Network, a fiber optic Network, a telecommunications Network, an intranet, the Internet, a Local Area Network (LAN), a Wide Area Network (WAN), a Wireless Local Area Network (WLAN), a Metropolitan Area Network (Metropolis Area Network (MAN), a Wide Area Network (WAN), a Public Switched Telephone Network (PSTN), a Bluetooth Network, a ZigBee Network, a Near Field Communication (NFC) Network, or the like, or any combination thereof. In some embodiments,network 120 may include one or more network access points. For example,network 120 may include wired or wireless network access points, such as base stations and/or network switching nodes, through which one or more devices of resource distribution system 100 may connect to network 120 to exchange data and/or information.
In some embodiments, the account of the at least oneterminal device 130 may set different attribute information according to a specific application scenario in the resource distribution system, such as: test accounts, private accounts, VIP accounts, and the like.
In some embodiments, theterminal device 130 may comprise a mobile device, a tablet computer, a laptop computer, or a built-in device in a motor vehicle, etc., or any combination thereof. In some embodiments, the mobile device may include a wearable device, a smart mobile device, a virtual reality device, an augmented reality device, or the like, or any combination thereof. In some embodiments, the wearable device may include a smart bracelet, a smart lace, smart glass, a smart helmet, a smart watch, a smart garment, a smart backpack, a smart accessory, and the like, or any combination thereof. In some embodiments, the smart mobile device may include a smart phone, a Personal Digital Assistant (PDA), a gaming device, a navigation device, or a point of sale (POS) device, or the like, or any combination thereof. In some embodiments, the virtual reality device and/or the augmented reality device may include a virtual reality helmet, virtual reality glass, a virtual reality patch, an augmented reality helmet, augmented reality glass, an augmented reality patch, or the like, or any combination thereof. For example, the virtual reality device and/or augmented reality device may include various virtual reality products and the like. In some embodiments, the built-in devices in the motor vehicle may include an on-board computer, an on-board control screen, and the like.
Database 140 may store data and/or instructions. In some embodiments,database 140 may store data obtained from terminal devices. In some embodiments,database 140 may store data and/or instructions for the exemplary methods described in this disclosure. In some embodiments, thedatabase 140 may include mass storage, removable storage, volatile Read-write Memory, Read-Only Memory (ROM), or the like, or any combination thereof. By way of example, mass storage may include magnetic disks, optical disks, solid state drives, and the like; removable memory may include flash drives, floppy disks, optical disks, memory cards, zip disks, tapes, and the like; the volatile read-write Memory may include Random Access Memory (RAM); the RAM may include Dynamic RAM (Dynamic Random Access Memory; DRAM), Double data Rate Synchronous Dynamic RAM (DDR SDRAM); static RAM (Static Random-Access Memory, SRAM for short), Thyristor RAM (T-RAM for short), Zero-capacitor RAM (Zero-RAM), and the like. By way of example, ROMs may include Mask Read-Only memories (MROMs), Programmable ROMs (PROMs), Erasable Programmable ROMs (PERROMs), Electrically Erasable Programmable ROMs (EEPROMs), compact disk ROMs (CD-ROMs), digital versatile disks ROMs, and the like. In some embodiments,database 140 may be implemented on a cloud platform. By way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, across clouds, multiple clouds, or the like, or any combination thereof.
In some embodiments,database 140 may be connected to network 120 to communicate with one or more devices in resource distribution system 100 (e.g.,server 110 andterminal devices 130, etc.). One or more devices in resource distribution system 100 may access data or instructions stored indatabase 140 vianetwork 120. In some embodiments,database 140 may be directly connected to one or more devices in resource distribution system 100 (e.g.,server 110 andterminal device 130, etc.); alternatively, in some embodiments,database 140 may also be part ofserver 110.
At present, in order to enrich the use effect of new media applications, many new media applications have introduced resources related to special effect animations such as magic expressions, cartoon expressions, animation expressions and the like. However, for the same special-effect animation, the display effects on different performance configurations and different types of terminal devices are different, such as the phenomena of jamming, frame dropping, and heat generation, which makes the user experience poor.
In the magic expression operation process, some high-value users or male users may not like the default built-in special effects of face slimming, shape beautifying and the like in the magic expressions, and some customized users have special requirements on the magic expressions, such as: skin color requirements, body shape requirements, and the like.
In addition, for the new magic expression, a part of users may use the new magic expression in advance to verify whether the display effect of the new magic expression is popular with the users. And an AB experiment may be carried out, and data packets with different magic expressions are issued to users with small occupation ratios so as to check the performances of the different data packets in user groups.
In summary, in the prior art, when a user clicks a magic expression on a client, since the server is only issued to the client of the account according to the data packet corresponding to the magic expression, the effects displayed by different accounts clicking the same magic expression are consistent, and the technical problem of different individualized display requirements of the magic expression cannot be satisfied.
In order to solve the above problem, the resource distribution method provided in this embodiment may obtain the target file of the resource to be displayed corresponding to the attribute information, so as to obtain different data packets of the resource to be displayed according to different attribute information, so that the resource to be displayed is displayed according to different data packets.
In this embodiment, the resource may be a magic expression, a cartoon expression, a character expression, and the like, and the resource distribution method provided by the embodiment of the present disclosure is introduced below in combination with an application scene of the magic expression. The method provided by this embodiment may be applied to the resource distribution system, where the server determines, by receiving a first acquisition request of the terminal, the target file of the target resource corresponding to the target attribute information, and sends the target file to the terminal, where the first acquisition request includes the target attribute and the identifier of the target resource. The target resource comprises a plurality of different files, the priorities of the different files are different, and the priorities of the files represent the distribution order determined according to the characteristics of each file, so that different accounts or different terminals can acquire different files according to the same resource, the individualized requirements of different accounts and different terminals on the resource are met, and the user experience is improved.
Fig. 2 is a first flowchart of a resource distribution method according to an exemplary embodiment, where as shown in fig. 2, the resource distribution method is used in a server and includes the following steps S201 to S203.
In step S201, the server receives a first acquisition request of the terminal.
In this embodiment, the first obtaining request includes target attribute information and an identifier of a target resource, the first obtaining request is used to request to obtain the target resource corresponding to the target attribute information, the target attribute information includes configuration information of the terminal and/or account information of a request account, and the request account is an account for proposing the first obtaining request.
The target attribute information comprises configuration information of the terminal and/or account information of a request account, wherein the configuration information of the terminal can comprise a device model of the terminal, processor architecture information, firmware information and the like, and the device model of the terminal comprises a mobile phone model iphone12, a Mate40 and the like; processor architecture information, such as: advanced RISC Machine Architecture (ARM), Complex Instruction Set Computer x86 architecture (CISC), etc.; firmware information, such as: the android system, the ISO system, and the like may be specifically set according to actual conditions, and are not limited thereto.
The account information of the request account includes an account name, an account identifier, an account type, and the like, and the account type may include a user type such as a test user, a VIP user, and a general user, and may be specifically set according to an actual situation, which is not limited to this.
The identification of the target resource is used to identify the content of the target resource, such as: the 'rabbit expression' in the magic expression can be identified by number 1, the 'wolf expression' in the magic expression can be identified by number 2, and the like, wherein the account request is requested to acquire number 1 'the rabbit expression', the identification of the target resource is the serial number 'number 1' of the 'rabbit expression', and the identification can be specifically set according to the actual situation, and is not limited by the actual situation.
In step S202, the server determines a target file of the target resource corresponding to the target attribute information according to the first acquisition request.
In this embodiment, the target resource includes a plurality of different files, the priorities of the plurality of different files are different, and the priority of the file indicates a distribution order determined according to the characteristics of each file, which may be set according to actual situations, and is not limited thereto.
The characteristics of the file may include a plurality of characteristics such as a data size of the file, a display effect of the data, a function corresponding to the data, and a data quality. For example, the "rabbit expression" includes a file a, a file B, a file C, and a file D, where the file a has an animation effect that a rabbit eats carrots, the file B is only a still picture of the rabbit, the resolution of the file C is 640x480, and the resolution of the file D is 1600x1200, which may be set according to actual situations, and is not limited thereto.
The priority of the files indicates the distribution order determined according to the characteristics of each file. The file distribution method includes the steps that the matching degree of the characteristics of each file and attribute information can be determined, for example, under the condition that a terminal has high-definition display hardware and a network is good, a file with high display resolution can be preferentially distributed; when the terminal has a large storage capacity and the communication channel satisfies the large capacity, a file with a large data size to be preferentially distributed may be set, and the setting may be specifically set according to the actual situation, but is not limited thereto.
Optionally, when there are files with the same matching degree between multiple characteristics and the attribute information, the priority of the file may be represented according to experience or by randomly setting the sending order of the file by the system, which may be specifically set according to the actual situation, and is not limited thereto.
In step S203, the server transmits the target file to the terminal.
In this embodiment, the server may determine, according to the target attribute information and the identifier of the target resource in the first acquisition request, a target file corresponding to the target attribute from the multiple files of the target resource, and then send the target file to the terminal.
The embodiment receives a first acquisition request of a terminal, where the first acquisition request is used to request to acquire a target resource corresponding to target attribute information; and determining a target file of the target resource corresponding to the target attribute information according to the identification of the target resource and the target attribute information, and sending the target file to the terminal. The target resource comprises a plurality of different files, and the priorities of the different files are different, and the priorities of the files represent distribution orders determined according to the characteristics of each file, so that different accounts or different terminals can acquire different files according to the same resource, the individualized requirements of different accounts and different terminals on the resource are met, and the user experience is improved.
In one embodiment, fig. 3 is a flowchart illustrating a resource distribution method according to an exemplary embodiment, where as shown in fig. 3, the above step "determining a target file of a target resource corresponding to target attribute information according to a first acquisition request" includes the following steps S301 to S302.
In step S301, the first corresponding relationship is read according to the first obtaining request, and a file of the target resource corresponding to the target attribute information is determined.
In this embodiment, the first correspondence includes a correspondence between attribute information and files of the resource, or a correspondence between type information and files of the resource; the attribute information at least comprises target attribute information, and the type information is used for representing the type of the attribute information.
Illustratively, a correspondence between account information of the account and a file of the resource is requested. For example: the first corresponding relation may include that the request account 1 corresponds to the dedicated data packet, the request account 2 corresponds to the test data packet, and the request account 3 corresponds to the standard data packet.
Exemplarily, the configuration information of the terminal corresponds to the file of the resource. For example: the first correspondence relationship may include that the terminal 1 corresponds to the dedicated data packet, the terminal 2 corresponds to the test data packet, and the terminal 3 corresponds to the standard data packet.
Optionally, the requesting account may be classified according to the account level, age information, gender information, identification information, and the like of the requesting account, so as to obtain type information of different requesting accounts. For example, the requesting account may be of multiple types, such as a general account, a VIP account, and a test account. The terminals can also be classified according to hardware systems, software platforms, equipment models and the like of the terminals, so that type information of different terminals can be obtained. For example, the terminal may classify a plurality of types of first model devices, middle-end devices, low-end devices, and the like according to the device model.
Illustratively, the correspondence between the type information and the files of the resource. For example: the first corresponding relation can comprise that a common account corresponds to a standard data packet, a VIP user corresponds to a special data packet, and a test account corresponds to a test data packet.
Exemplarily, the configuration information of the terminal corresponds to the file of the resource. For example: the magic expression resource comprises three files, namely a first data packet, a second data packet and a third data packet, and the first corresponding relation can comprise that the first model equipment corresponds to the first data packet, the second model equipment corresponds to the second data packet and the third model equipment corresponds to the third data packet.
Optionally, the correspondence between the attribute information and the file of the resource, or the correspondence between the type information and the file of the resource may be configured in the server through a list. Table 1 is a first mapping table of a resource distribution method shown in this embodiment. As shown in table 1 below, for example, it is assumed that resource identifiers of a plurality of magic expressions are 001 and 002, respectively, the 001 magic expression includes file 1, file 2, and file 3, which may not be identical in resolution, data amount, and display effect, and priorities of the files may be set according to the features, and the 002 magic expression includes file 4 and file 5, which may determine priorities of the files by setting a distribution order. When the account information of the requested account includes account a, account B, account C and account D, the files of account a, account B and account C corresponding to themagic expression 001 are different. The account A corresponds to a file 1, a file 2 and a file 3, the file 1 is the highest priority, and when the target file is determined to be the file 1, the file 1 is sent to the terminal. Similarly, the target file of the account B is file 2, and the target file of the account C is file 3; the target files of the account A and the account B corresponding to the magic expression No. 002 are the same, and the target files of the account C and the account D corresponding to the magic expression No. 002 are the same. Therefore, the files of the corresponding magic expressions can be set to be different or the same according to the account information of the request account, and the files can be specifically set according to the actual situation, but the setting is not limited to this.
Table 1 corresponding relation table one
| Serial number | Logo of magic expression | Document | Attribute information | Highest priority file |
| 1 | 001 | File 1, file 2, file 3 | Account A | Document 1 |
| 2 | 001 | Document 1 and document 2 | Account B | Document 2 |
| 3 | 001 | Document 2 and document 3 | Account C | Document 3 |
| 4 | 002 | Document 4 and document 5 | Account A | Document 4 |
| 5 | 002 | Document 4 and document 5 | Account B | Document 4 |
| 6 | 002 | Document 4 and document 5 | Account C | Document 5 |
| 5 | 002 | Document 4 and document 5 | Account D | Document 5 |
In step S302, the file with the highest priority among the determined files is taken as the target file.
In the present embodiment, the priority of the file as described above is the degree of importance of the feature for characterizing the file, or the transmission order of the file. For example, when there are a plurality of files corresponding to the same magic expression in the same account, the file with the highest priority level among the plurality of determined files may be used as the target file. In addition, when only one file is determined, the file is directly used as a target file.
For example, fig. 4 is a display interface diagram of a resource distribution method shown according to an example embodiment, as shown in fig. 4, the terminal display interface one displays 15 magic expressions in a magic panel, the magic expressions are identified as 001-015 numbers, and assuming that the correspondence between 001-002 numbers and account information is shown in table 1 above, in the process of using the magic expressions, a user may click the 001 magic expression on the terminal and send a first acquisition request of the 001 magic expression to the server. The first obtaining request may include the ID of the magic emoticon and account information of the requesting account, such as: the account A clicks themagic expression 001, and the account information of the account A is sent to the server. The server finds the file 1 corresponding to the account A in themagic expression 001 from the list according to the first acquisition request, and sends the file 1 of themagic expression 001 to the terminal, so that themagic expression 001 can be displayed according to the file 1. Accordingly, if account B clicks magic expression No. 002, the corresponding file 4 of magic expression No. 002 is sent to the terminal of account B.
It should be noted that, in the above example, only the correspondence between the identifier of the magic expression and the identifier of the different account is described, and correspondingly, the correspondence between the identifier of the magic expression and the identifiers of the different terminals and the correspondence between the identifier of the magic expression and the type information may be obtained in the same manner, which may be specifically determined according to an actual situation, and is not limited thereto.
In this embodiment, the server may set the files of the corresponding resources one to one according to different attribute information, that is, one attribute information corresponds to only one file of a plurality of files in the same resource; the corresponding resource files can be set in many-to-one mode according to different types of information, namely one attribute information corresponds to a plurality of files in the same resource, and when a plurality of files correspond, the file with the highest priority in the files can be used as a target file, so that richer personalized requirements are provided, and the user experience is improved.
Fig. 5 is a flowchart three illustrating a resource distribution method according to an exemplary embodiment, where as shown in fig. 5, the resource distribution method is used in a server, and in a case where the target attribute information includes account information and configuration information, and the first correspondence includes a correspondence between the attribute information and a file of a resource, determining a file of the target resource corresponding to the target attribute information includes the following steps S501 to S503.
In step S501, a first file of the target resource corresponding to the configuration information is determined according to the first corresponding relationship.
In step S502, a second file corresponding to the account information is determined from the first file.
In step S503, the file with the highest priority in the second files is determined as the target file.
In this embodiment, when the target attribute information includes account information and configuration information, and the first corresponding relationship includes a corresponding relationship between the attribute information and a file of the resource, the server may determine, according to the first corresponding relationship, a first file that matches the configuration information of the terminal. For example, the first file is matched with hardware equipment, a software system, storage capacity, equipment model and the like of the terminal. Then, a second file matching the account information of the requested account is determined from the first files. E.g., a second file that matches the identity, type, etc. of the requesting account. And if the second files are multiple, taking the file with the highest priority in the second files as the target file.
Exemplarily, table 2 is a second correspondence table of a resource distribution method shown in this embodiment. As shown in table 2 below, it is assumed that there are 10 files for the attribute information in magic expression 001, where the resolution characteristics in files 1-2 are the same and are dedicated for display on device a; files 3-5 have the same resolution characteristics and are dedicated for display on device b; the display effect in the second file 6-file 8 is the same and is dedicated to account A; the display effect in files 9-10 is the same and is dedicated to account B. If the attribute information comprises equipment a, equipment B, an account A and an account B, under the condition that the request account is the account A and the configuration information is the equipment a, files 1-2 are corresponding to the 001 number magic expression, and finally the file 2 is used as a target file; under the condition that the request account is an account A and the configuration information is equipment b, files 3-5 are corresponding to the 001 magic expression, and finally, the file 4 is used as a target file; if the request account is the account B and the configuration information is the equipment a, files 6-8 corresponding to the 001 magic expression exist, and finally the file 7 is used as a target file; if the request account is account B and the configuration information is device B, there are files 9-10 corresponding to the magic expression 001, and finally file 9 is used as the target file.
Table 2 corresponding relation table one
| Serial number | Logo of magic expression | Document | Highest priority file | Attribute information |
| 1 | 001 | File 1-file 2 | Document 2 | Device a, Account A |
| 2 | 001 | File 3-file 5 | Document 4 | Device b, account A |
| 3 | 001 | File 6-file 8 | Document 7 | Device a, account B |
| 4 | 001 | File 9-file 10 | File 9 | Device B, account B |
It should be noted that, in the above example, only the corresponding relationship between the identifier of one magic expression and the attribute information is described, and correspondingly, the corresponding relationship between the identifiers of other magic expressions and the attribute information can be obtained in the same manner, which may be specifically determined according to an actual situation, and is not limited to this.
In the embodiment, under the condition that the attribute information includes account information and configuration information, and the first corresponding relationship includes a corresponding relationship between the attribute information and the file of the resource, the server determines the first file according to the configuration information of the terminal, then determines the second file corresponding to the account information from the first file, and takes the second file with the highest priority as the target file, so that the file of the resource further meets the personalized requirements of different users under the condition that the file of the resource meets the personalized requirements of different terminals, the matching process of the file of the resource and the attribute information is more reasonable and efficient, and the user experience is further improved.
Optionally, the target attribute information includes account information and configuration information, and when the first corresponding relationship includes a corresponding relationship between type information and files of the resource, the type of the account information and the type of the configuration information may be determined respectively, and then the target file corresponding to the type information is determined according to the first corresponding relationship. The process of determining the target file corresponding to the type information is similar to the process of determining the target file corresponding to the attribute information, and is not repeated herein.
Fig. 6 is a fourth flowchart illustrating a resource distribution method according to an exemplary embodiment, where, as shown in fig. 6, the resource distribution method is used in a server, and the resource distribution method is used in the server, the method further includes the following steps S601 to S603.
In step S601, the server receives a second acquisition request of the terminal.
The second obtaining request comprises target attribute information, the second obtaining request is used for requesting to obtain a resource identifier corresponding to the target attribute information, and the resource identifier is used for indicating the terminal to obtain a resource corresponding to the resource identifier.
In step S602, the server determines at least one resource identifier corresponding to the target attribute information according to the second acquisition request.
The at least one resource identifier comprises an identifier of a target resource, and the resource identifiers corresponding to different types of attribute information are different.
In step S603, the server sends at least one resource identifier to the terminal.
In this embodiment, a second obtaining request of the terminal is received, where the second obtaining request is used to request to obtain a resource identifier corresponding to account information of the requested account and/or configuration information of the terminal, that is, different resource identifiers may be set for different requested accounts and/or different terminals. For example, in order to improve the user experience, if resources of a new magic expression need to be pushed out, all accounts are not online in full, but partial accounts, such as a large V account and a VIP account, may be used, so that resource identifiers corresponding to different requesting accounts and/or different terminals may be the same or different, and the resource identifiers may include only one or more resource identifiers, which may be specifically set according to actual situations.
For example, fig. 7 is a display interface diagram of a resource distribution method shown according to an exemplary embodiment, as shown in fig. 7, acontrol 500 of a magic expression is displayed in the display interface diagram of the terminal, when the terminal receives a touch instruction of thecontrol 500 of the magic expression, the terminal sends an account identifier of a request account and/or configuration information of the terminal to the server, and the server may determine, according to the account identifier and/or the configuration information, an identifier of a resource corresponding to the account identifier and/or the configuration information. Such as: account a corresponds to the magic expression of 001-015, account B corresponds to the magic expression of 001-020, account a can acquire the magic expression of 001-015 (as shown in fig. 7), and account B can acquire the magic expression of 001-020 (not shown); if terminal 1 corresponds to the magic expression of 001 # 010 # and 2 corresponds to the magic expression of 011 # 020 # and is not shown, terminal 1 can acquire the magic expression of 001 # 010 # and 011 # 020 # and is not shown. That is, different accounts and/or terminals may correspond to different magic expressions, or may correspond to the same magic expression.
Optionally, the resource identifier may be in a one-to-one correspondence with the attribute information, or in a one-to-many correspondence. When the resource identifier corresponds to the plurality of attribute information, a first resource identifier matched with the configuration information of the terminal is also determined, a second resource identifier matched with the account information is determined from the first resource identifier, and then the determined second resource identifier is sent to the terminal.
Optionally, the identifier of the resource may correspond to the type of the requesting account and/or the type of the terminal. The resource identifier may be in one-to-one correspondence with the type of the attribute information, or may be in one-to-many correspondence. When multiple types of attribute information are associated, the process of determining at least one resource identifier corresponding to the type of attribute information is similar to the process of determining at least one resource identifier corresponding to the attribute information, and details are not repeated here.
In this embodiment, a second acquisition request of the terminal is received, where the second acquisition request is used to request to acquire a resource identifier corresponding to the target attribute information; and determining at least one resource identifier corresponding to the target attribute information according to the second acquisition request, wherein different resource identifiers corresponding to different types of attribute information are different, that is, different resource identifiers can be set for different types of request accounts and/or different types of terminals, so that different accounts or different terminals can acquire the same or different resources, the individualized requirements of different accounts and different terminals on the resources are met, and the user experience is improved.
Fig. 8 is a flowchart five illustrating a resource distribution method according to an exemplary embodiment, where, as shown in fig. 8, the resource distribution method is used in a terminal and includes the following steps S801 to S802.
In step S801, the terminal transmits a first acquisition request in response to a first acquisition instruction.
The first obtaining request includes an identifier of the target resource and target attribute information, where the first obtaining request is used to request to obtain the target resource corresponding to the target attribute information, the target attribute information includes configuration information of the terminal and/or account information of a request account, and the request account is an account for providing the first obtaining request.
The target resource includes a plurality of different files, the priorities of the plurality of different files are different, the priority of the file indicates a distribution order determined according to the characteristics of each file, and the related content has been described in detail in the foregoing embodiment, and is not described again here.
In step S802, the terminal receives a target file of a target resource corresponding to the target attribute information.
In this embodiment, the first obtaining instruction may be an instruction of a first obtaining request triggered by various gesture operations such as a click operation, a sliding operation, a fingerprint operation, and the like of the user, so that the terminal may send the first obtaining request. The server sends a target file to the terminal according to the first acquisition request, the terminal receives the target file of the target resource corresponding to the target attribute information, and if the target file corresponds to a display function of an animation special effect, the terminal can respond to the operation of the animation special effect of the target resource when receiving the target file, so that the target resource displays the animation special effect on the terminal.
In this embodiment, a first acquisition request of a resource is sent to a server through a terminal, where the first acquisition request includes an identifier of a target resource and target attribute information, and the first acquisition request is used to request to acquire the target resource corresponding to the target attribute information; the target attribute information comprises configuration information of the terminal and/or account information of a request account, the request account is an account which makes a first acquisition request, and a target file of a target resource corresponding to the target attribute information is received. The target resource comprises a plurality of different files, and the priorities of the different files are different, and the priorities of the files represent distribution orders determined according to the characteristics of the files, so that different accounts or different terminals can acquire different files according to the same resource, the individualized requirements of different accounts and different terminals on the resource are met, and the user experience is improved.
Fig. 9 is a sixth flowchart illustrating a resource distribution method according to an exemplary embodiment, where as shown in fig. 9, the resource distribution method is used in a terminal and includes the following steps S901 to S902. The method further comprises the following steps:
in step S901, the terminal transmits a second acquisition request in response to the second acquisition instruction.
The second acquisition request is used for requesting to acquire the resource identifier corresponding to the target attribute information.
In step S902, the terminal receives at least one resource identifier corresponding to the target attribute information.
The resource identifier is used for indicating the terminal to acquire the resource corresponding to the resource identifier, at least one resource identifier comprises the identifier of the target resource, the resource identifiers corresponding to the attribute information of different types are different, and the attribute information at least comprises the target attribute information.
In this embodiment, the second obtaining instruction may be an instruction of a second obtaining request triggered by various gesture operations such as a click operation, a sliding operation, a fingerprint operation, and the like of the user, so that the terminal may send the second obtaining request, the server may send at least one resource identifier to the terminal according to the second obtaining request, the terminal may receive at least one resource identifier corresponding to the target attribute information, and if there are a plurality of resource identifiers, the resource identifiers may be displayed in a form of a list, a form of bubbles, and the like, which may be specifically set according to an actual situation, and is not limited thereto.
In this embodiment, a second acquisition request is sent to the server through the terminal, where the second acquisition request is used to request to acquire a resource identifier corresponding to the target attribute information, and then, at least one resource identifier corresponding to the target attribute information is received; due to the fact that the resource identifications corresponding to the different types of attribute information are different, namely different resource identifications can be set for different types of request accounts and/or different types of terminals, different accounts or different terminals can acquire the same or different resources, personalized requirements of different accounts and different terminals on the resources are met, and user experience is improved.
As shown in fig. 10, the following describes in detail the interaction process between the terminal and the server of the resource distribution method, taking an application scenario in which a new magic expression (a magic expression not on line in full) is issued for a specific user as an example, specifically as follows:
s10, the terminal receives a first trigger instruction of the user to the magic expression control;
s11, the terminal sends a magic expression acquisition request to the server;
the magic expression obtaining request comprises an account identification for making a request account.
S12, the server judges whether the account mark is in the preview white list according to the account mark, if yes, the step S13 is executed, if not, the step S14 is executed;
s13, the server sends the mark which is corresponding to the account mark and contains the magic expression which is not on line in full;
s14, the server sends the mark containing the full online magic expression corresponding to the account mark;
s15, the terminal receives and displays the interface of the identifier of the magic expression corresponding to the account identifier;
s16, the terminal receives a second trigger instruction of the user for the magic expression;
s17, the terminal sends a file obtaining request of the magic expression, wherein the file obtaining request of the magic expression comprises an identifier of the magic expression and an account identifier of a request account;
s18, the server judges whether the account identification is in the resource white list according to the account identification of the user, if yes, the step S19 is executed, and if not, the step S20 or the step S21 is executed;
s19, the server sends the special data packet of the magic expression corresponding to the account identifier to the terminal corresponding to the user;
s20, the server sends the magic expression to the terminal corresponding to the account identifier;
s21, the server judges whether the account identification is in the white list hit in the AB group experiment according to the account identification, if yes, the step S22 is executed, and if not, the step S23 is executed;
and S24, the terminal receives the special data packet or the common data packet corresponding to the account identifier, and displays the magic expression according to the display mode corresponding to the special data packet or the common data packet.
It should be noted that, the above embodiment is described by taking only attribute information of a user as an account identifier of the user, and may also be applied to an application scenario in which the attribute information is configuration information of a terminal, and the special data packet may be a special data packet corresponding to a next white list, or a special data packet corresponding to an AB group experimental hit white list, which may be determined specifically according to an actual situation, and is not limited to this.
The beneficial effects of the present embodiment are described in detail in the foregoing embodiments, and are not described herein again.
The above description has introduced the solution provided by the embodiments of the present disclosure mainly from the perspective of a server/terminal device. It is understood that the server/terminal device may contain one or more hardware structures and/or software modules for implementing the resource distribution method, and these execution hardware structures and/or software modules may constitute one electronic device. Those of skill in the art will readily appreciate that the present disclosure can be implemented in hardware or a combination of hardware and computer software for implementing the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
Accordingly, the embodiments of the present disclosure also provide a resource distribution apparatus, where the resource distribution apparatus may be entirely integrated in a server/terminal device, or may be partially integrated in the server or partially integrated in the terminal device.
Fig. 11 is a block diagram illustrating a resource distribution apparatus according to an example embodiment. Referring to fig. 11, the apparatus is applied to a server and includes a receivingunit 11, aprocessing unit 12, and a transmittingunit 13.
The receivingunit 11 is configured to execute a first obtaining request of a receiving terminal, where the first obtaining request includes target attribute information and an identifier of a target resource, the first obtaining request is used to request to obtain the target resource corresponding to the target attribute information, the target attribute information includes configuration information of the terminal and/or account information of a request account, and the request account is an account for proposing the first obtaining request.
Theprocessing unit 12 is configured to execute determining a target file of a target resource corresponding to the target attribute information according to the first acquisition request, wherein the target resource includes a plurality of different files, priorities of the plurality of different files are different, and the priority of the file indicates a distribution order determined according to a characteristic of each file.
The transmittingunit 13 is configured to perform a process configured to perform transmitting the target file to the terminal.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Optionally, fig. 12 is a block diagram of a resource distribution apparatus shown in fig. 12 according to an exemplary embodiment. Referring to fig. 13, theprocessing unit 12 includes:
areading unit 121, configured to execute reading the first corresponding relationship according to the first obtaining request, and determine a file of the target resource corresponding to the target attribute information.
The first corresponding relation comprises the corresponding relation between attribute information and files of the resources, or comprises the corresponding relation between type information and the files of the resources; the attribute information at least comprises target attribute information, and the type information is used for representing the type of the attribute information.
The determiningunit 122 is configured to execute to take the file with the highest priority level in the determined files as the target file.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Optionally, in a case that the target attribute information includes account information and configuration information, and the first corresponding relationship includes a corresponding relationship between the attribute information and a file of the resource, thereading unit 121 is further configured to execute determining, according to the first corresponding relationship, a first file of the target resource corresponding to the configuration information.
The determiningunit 122 is further configured to determine a second file corresponding to the account information from the first file, and determine a file with a highest priority in the second file as the target file.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Optionally, the receivingunit 11 is configured to execute a second obtaining request of the receiving terminal.
The second obtaining request comprises target attribute information, and the second obtaining request is used for requesting to obtain the resource identifier corresponding to the target attribute information.
Theprocessing unit 12 is further configured to perform determining at least one resource identification corresponding to the target attribute information according to the second acquisition request.
The at least one resource identifier comprises an identifier of a target resource, and the resource identifiers corresponding to different types of attribute information are different.
The transmittingunit 13 is further configured to perform transmitting at least one resource identity to the terminal.
The resource identifier is used for indicating the terminal to acquire the resource corresponding to the resource identifier.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 13 is a block diagram of a resource distribution apparatus shown in a third example. Referring to fig. 13, the apparatus is applied to a terminal and includes a transmittingunit 31 and a receivingunit 32.
The sendingunit 31 is configured to execute sending a first fetch request in response to a first fetch instruction.
The first obtaining request includes an identifier of the target resource and target attribute information, where the first obtaining request is used to request to obtain the target resource corresponding to the target attribute information, the target attribute information includes configuration information of the terminal and/or account information of a request account, and the request account is an account for providing the first obtaining request.
The target resource includes a plurality of different files, the priorities of the plurality of different files are different, the priorities indicate distribution orders determined according to characteristics of each file, and details of related contents have been described in the foregoing embodiment, and are not described herein again.
The receivingunit 32 is configured to perform receiving a target file of a target resource corresponding to the target attribute information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Optionally, the sendingunit 31 is further configured to execute sending a second obtaining request in response to the second obtaining instruction;
the second acquisition request is used for requesting to acquire the resource identifier corresponding to the target attribute information.
A receivingunit 32, further configured to perform receiving at least one resource identification corresponding to the target attribute information;
the resource identifier is used for indicating the terminal to acquire the resource corresponding to the resource identifier, at least one resource identifier comprises the identifier of the target resource, the resource identifiers corresponding to the attribute information of different types are different, and the attribute information at least comprises the target attribute information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to still another aspect of the embodiments of the present disclosure, there is also provided an electronic device for implementing the resource distribution method, where the electronic device may be, but is not limited to be, applied in a server or a terminal. Fig. 14 is a block diagram of an electronic device according to an exemplary embodiment, as shown in fig. 14, the electronic device includes amemory 1402 and aprocessor 1404, thememory 1402 storing therein a computer program, theprocessor 1404 configured to execute the steps of any of the method embodiments described above by the computer program.
Optionally, in this embodiment of the present disclosure, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment of the present disclosure, the processor may be configured to execute the following steps by a computer program:
in step S201, a first obtaining request of the terminal is received, where the first obtaining request includes target attribute information and an identifier of a target resource, the first obtaining request is used to request to obtain the target resource corresponding to the target attribute information, the target attribute information includes configuration information of the terminal and/or account information of a request account, and the request account is an account for providing the first obtaining request.
In step S202, according to the first obtaining request, a target file of a target resource corresponding to the target attribute information is determined, where the target resource includes a plurality of different files, and priorities of the plurality of different files are different, and the priorities indicate distribution orders determined according to characteristics of each file.
In step S203, the target file is transmitted to the terminal.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 14 is only an illustration, wherein thememory 1402 can be used for storing software programs and modules, such as program instructions/modules corresponding to the resource distribution method and apparatus in the embodiment of the present disclosure, and theprocessor 1404 is connected to thememory 1402 through thebus 1410, and executes various functional applications and data processing by running the software programs and modules stored in thememory 1402, so as to implement the above-mentioned resource distribution method.Memory 1402 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, thememory 1402 may further include memory located remotely from theprocessor 1404, which may be connected to a terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Thememory 1402 may be, but is not limited to, storing program steps of the resource distribution method. As an example, as shown in fig. 14, thememory 1402 may include, but is not limited to, a receivingunit 11, an obtainingunit 12, a sendingunit 13, and the like in the resource distribution apparatus. In addition, the resource distribution device may further include, but is not limited to, other module units in the resource distribution device, which is not described in this example again.
Optionally, in this embodiment of the present disclosure, the processor may be configured to execute the following steps by a computer program:
in step S801, in response to a first acquisition instruction, a first acquisition request is transmitted.
In step S802, a target file of a target resource corresponding to the target attribute information is received.
Optionally, the electronic device further includes: transmitting means 1406 for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, thetransmission device 1406 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, thetransmitting device 1406 is a Radio Frequency (RF) module, which is used to communicate with the internet by wireless means.
In addition, the electronic device further includes: adisplay 1408 for displaying a special effect to be displayed; and aconnection bus 1410 for connecting the respective module parts in the above-described electronic apparatus.
Embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
in step S201, a first obtaining request of the terminal is received, where the first obtaining request includes target attribute information and an identifier of a target resource, the first obtaining request is used to request to obtain the target resource corresponding to the target attribute information, the target attribute information includes configuration information of the terminal and/or account information of a request account, and the request account is an account for providing the first obtaining request.
In step S202, according to the first obtaining request, a target file of a target resource corresponding to the target attribute information is determined, where the target resource includes a plurality of different files, and priorities of the plurality of different files are different, and the priorities indicate distribution orders determined according to characteristics of each file.
In step S203, the target file is transmitted to the terminal.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
in step S801, in response to a first acquisition instruction, a first acquisition request is transmitted.
In step S802, a target file of a target resource corresponding to the target attribute information is received.
Optionally, the storage medium is further configured to store a computer program for executing the steps included in the method in the foregoing embodiment, which is not described in detail in this embodiment.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Embodiments of the present disclosure also provide a computer program product comprising computer instructions that, when executed by a processor of an electronic device, implement any of the resource distribution methods described in the above embodiments.
The above-mentioned serial numbers of the embodiments of the present disclosure are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present disclosure.
In the above embodiments of the present disclosure, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed server may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or devices may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is merely a preferred embodiment of the present disclosure, and it should be noted that modifications and embellishments could be made by those skilled in the art without departing from the principle of the present disclosure, and these should also be considered as the protection scope of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.