CN112579538A - Recommendation method and device for sending file, electronic equipment and storage medium - Google Patents

Recommendation method and device for sending file, electronic equipment and storage medium Download PDF

Info

Publication number
CN112579538A
CN112579538A CN202011586006.3A CN202011586006A CN112579538A CN 112579538 A CN112579538 A CN 112579538A CN 202011586006 A CN202011586006 A CN 202011586006A CN 112579538 A CN112579538 A CN 112579538A
Authority
CN
China
Prior art keywords
file
target
icon
sending
record
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
CN202011586006.3A
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 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information 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 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN202011586006.3A priority Critical patent/CN112579538A/en
Publication of CN112579538A publication Critical patent/CN112579538A/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/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/156Query results presentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention provides a recommendation method and device for sending files, electronic equipment and a storage medium. The method comprises the following steps: when a file sending instruction is received, the storage time of each stored multimedia file is obtained; acquiring a target file to be sent according to the storage time of each multimedia file and the historical operation record of each multimedia file, wherein the historical operation record comprises at least one of the historical sending record of the multimedia file and the historical display record of the file icon of the multimedia file; and displaying a file icon of the target file based on the current display interface. Therefore, the method and the device have the advantages of improving the screening efficiency of the multimedia file to be sent, saving the time of the user and improving the matching degree of the selected target file and the sending requirement of the user.

Description

Recommendation method and device for sending file, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for recommending a transmission file, an electronic device, and a storage medium.
Background
With the popularization of electronic devices such as smartphones and notebooks, apps (applications) based on electronic devices are involved in various industries, and people can do various things through the apps. Especially in some apps of e-commerce or platforms, users need to communicate with each other through chat tools such as micro-chat, and often need to send multimedia files such as pictures during communication. Taking sending pictures as an example, an album page is opened by a corresponding picture button, and then a desired picture is selected from the album page for sending.
However, each time a picture is sent, the page of the album is opened through related operations, the picture to be sent is manually selected, and the sending button is clicked after the picture is selected, so that the sending of the picture can be completed, the operation is complicated, and time waste is caused.
Disclosure of Invention
The embodiment of the invention provides a recommendation method and device for sending files, electronic equipment and a storage medium, and aims to solve the problems that the existing file selecting and sending process is complicated in operation and can cause time waste.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for recommending a file, including:
when a file sending instruction is received, the storage time of each stored multimedia file is obtained;
acquiring a target file to be sent according to the storage time of each multimedia file and the historical operation record of each multimedia file, wherein the historical operation record comprises at least one of the historical sending record of the multimedia file and the historical display record of the file icon of the multimedia file;
and displaying a file icon of the target file based on the current display interface.
Optionally, the step of obtaining a target file to be sent according to the saving time of each multimedia file and the historical operation record of each multimedia file includes:
acquiring a multimedia file with the time distance between the storage time and the current time within a first preset time range as an alternative file;
acquiring a historical operation record of each alternative file in a second preset time range before the current time;
and acquiring the alternative file with the empty historical operation record as a current target file to be sent.
Optionally, the step of obtaining a historical operation record of each candidate file in a second preset time range before the current time includes:
aiming at any one of the alternative files, acquiring a historical sending record of the alternative file in a session for receiving the file sending instruction within a second preset time range before the current time;
and/or acquiring a history sending record of the alternative file in the application to which the session receiving the file sending instruction belongs within a second preset time range before the current time;
and/or acquiring a history display record of a file icon of the alternative file in a target session page within a second preset time range before the current time, wherein the target session page is a display page of a session for receiving the file sending instruction;
and/or acquiring a history display record of the file icon of the alternative file in each session page in the application to which the target session page belongs within a second preset time range before the current time.
Optionally, the method further comprises:
responding to a received trigger instruction aiming at the file icon displayed in the current display interface, acquiring and sending the target file, and canceling the file icon of the target file displayed in the current display interface;
and in response to not receiving a trigger instruction aiming at the file icon displayed in the current display interface within a specified time period, canceling the display of the file icon in the current display interface.
Optionally, the multimedia file includes at least one of a picture, an audio file, a video file, and a text file, and when the target file is a picture, the picture or a thumbnail of the picture is used as a file icon of the target file, when the target file is a video file, any video frame and/or video identifier in the video file is acquired as the file icon of the target file, when the target file is an audio file, audio information of the audio file is acquired as the file icon of the target file, and when the target file is a text file, a file name of the text file is acquired as the file icon of the target file; and displaying the file icon of the target file in the front display interface in a floating layer mode.
In a second aspect, an embodiment of the present invention provides a recommendation apparatus for sending a file, including:
the storage time acquisition module is used for acquiring the storage time of each stored multimedia file when receiving a file sending instruction;
the target file determining module is used for acquiring a target file to be sent according to the storage time of each multimedia file and the historical operation record of each multimedia file, wherein the historical operation record comprises at least one of the historical sending record of the multimedia file and the historical display record of the file icon of the multimedia file;
and the file icon display module is used for displaying the file icon of the target file based on the current display interface.
Optionally, the target file determining module includes:
the alternative file determining submodule is used for acquiring a multimedia file of which the time distance between the storage time and the current time is within a first preset time range as an alternative file;
the operation record obtaining sub-module is used for obtaining the historical operation record of each alternative file in a second preset time range before the current time;
and the target file determining submodule is used for acquiring the alternative file with the empty historical operation record as the current target file to be sent.
Optionally, the operation record obtaining sub-module is specifically configured to:
aiming at any one of the alternative files, acquiring a historical sending record of the alternative file in a session for receiving the file sending instruction within a second preset time range before the current time;
and/or acquiring a history sending record of the alternative file in the application to which the session receiving the file sending instruction belongs within a second preset time range before the current time;
and/or acquiring a history display record of a file icon of the alternative file in a target session page within a second preset time range before the current time, wherein the target session page is a display page of a session for receiving the file sending instruction;
and/or acquiring a history display record of the file icon of the alternative file in each session page in the application to which the target session page belongs within a second preset time range before the current time.
Optionally, the apparatus further comprises:
the file sending module is used for responding to a trigger instruction which is received for the file icon displayed in the current display interface, acquiring and sending the target file, and canceling the file icon of the target file displayed in the current display interface;
and the file icon removing module is used for responding to the fact that a trigger instruction aiming at the file icon displayed in the current display interface is not received in a specified time period, and canceling the display of the file icon in the current display interface.
Optionally, the multimedia file includes at least one of a picture, an audio file, a video file, and a text file, and when the target file is a picture, the picture or a thumbnail of the picture is used as a file icon of the target file, when the target file is a video file, any video frame and/or video identifier in the video file is acquired as the file icon of the target file, when the target file is an audio file, audio information of the audio file is acquired as the file icon of the target file, and when the target file is a text file, a file name of the text file is acquired as the file icon of the target file; and displaying the file icon of the target file in the front display interface in a floating layer mode.
In a third aspect, an embodiment of the present invention additionally provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method for recommending sending files according to the first aspect.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the method for recommending a transmission file according to the first aspect.
In the embodiment of the invention, when a file sending instruction is received, the storage time of each stored multimedia file is acquired; acquiring a target file to be sent according to the storage time of each multimedia file and the historical operation record of each multimedia file, wherein the historical operation record comprises at least one of the historical sending record of the multimedia file and the historical display record of the file icon of the multimedia file; and displaying a file icon of the target file based on the current display interface. Therefore, the method and the device have the advantages of improving the screening efficiency of the multimedia file to be sent, saving the time of the user and improving the matching degree of the selected target file and the sending requirement of the user.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive labor.
FIG. 1 is a flowchart illustrating steps of a method for sending a recommendation of a file according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of another method for sending a recommendation of a file in an embodiment of the present invention;
FIG. 3A is a diagram illustrating a conversation page in an embodiment of the invention;
FIG. 3B is a diagram of a session page with a file icon shown in an embodiment of the invention;
fig. 4 is a schematic flow chart of determining a sending picture according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a recommendation device for sending a file according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of another apparatus for recommending a transmission file according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart illustrating steps of a method for recommending a sending file according to an embodiment of the present invention is shown.
Step 110, when receiving a file sending instruction, obtaining the storage time of each stored multimedia file;
step 120, obtaining a target file to be sent according to the storage time of each multimedia file and the historical operation record of each multimedia file, wherein the historical operation record comprises at least one of the historical sending record of the multimedia file and the historical display record of the file icon of the multimedia file;
and step 130, displaying a file icon of the target file based on the current display interface.
In the embodiment of the invention, under the application scene of Instant Messaging (IM) such as micro chat and micro letter, in order to avoid the problems of complicated operation, long time consumption and the like caused by the fact that a user actively screens multimedia files required to be sent from optional multimedia files under the condition that the user wants to send the multimedia files such as pictures, audios, texts and the like, the proper multimedia files can be automatically identified through reasonable rules to be actively displayed and directly clicked to send, so that the scheme for rapidly sending the pictures based on the micro chat is realized.
Specifically, in order to ensure that the recommended target file meets the sending requirement of the user and avoid repeatedly recommending the same multimedia file as the target file within a period of continuous time, the storage time and the historical operating record of each multimedia file can be referred to simultaneously when the target file is selected.
The saving time of the multimedia file can be understood as the time for saving the multimedia file to a specified storage area, for example, the time for saving the multimedia file to the local client or in a specified cloud server; the history operation record of the multimedia file may include any operation performed on the multimedia file after saving the multimedia file, such as a sending operation, a showing operation, a previewing operation, a display record of a file icon of the multimedia file, and the like, on the corresponding multimedia file in the current client.
Furthermore, in the embodiment of the present invention, the saving time of each saved multimedia file and the historical operation record of each multimedia file may be obtained in any available manner, which is not limited to this embodiment of the present invention. Moreover, the saving time of the multimedia file as the target file recommended to the user and the conditions required to be met by the historical operation record can also be set by self according to the requirements, and the embodiment of the invention is not limited.
For example, the saving time of the target file may be set to satisfy that the time distance between the saving time and the current time is within a specified time range (for example, 60 seconds), and/or the target file is the nth multimedia file with the closest time distance between the saving time and the current time, N is a positive integer, and the like; moreover, the condition that the historical operation records of the target file need to be satisfied can be set to be that some specified operation records exist in a specified time period, or some specified operation records do not exist in the specified time period, and the like.
Moreover, after the current target file is determined, a file icon for the corresponding target file may be displayed based on the current display interface. The file icon of the target file may be understood as an image mark that can uniquely identify the corresponding target file, for example, a thumbnail of the target file, a display image of part of representative information in the target file, and the like. The display position, the display size, the display appearance and other attribute information of the file icon of the target file in the display interface can be set in a user-defined mode according to requirements, and the embodiment of the invention is not limited.
In addition, in the embodiment of the present invention, the user may trigger the file sending instruction in any available manner, which is not limited to this embodiment of the present invention. For example, a file sending instruction may be triggered by clicking on a "+" icon behind a text input box in a conversation page presented in the current display interface, and so on.
Referring to fig. 2, in the embodiment of the present invention, the step 120 may further include:
step 121, acquiring a multimedia file with the time distance between the storage time and the current time within a first preset time range as an alternative file;
step 122, obtaining a historical operation record of each candidate file in a second preset time range before the current time;
and step 123, acquiring the alternative file with the history operation record being empty as the current target file to be sent.
In practical application, the data formats of the storage time of the multimedia files are relatively fixed and uniform, and the data formats of the historical operation records are relatively more complex and variable, so that when the target files are screened, in order to improve the acquisition efficiency of the target files, the multimedia files can be preliminarily screened on the basis of the storage time, most of the multimedia files are filtered, and further screening is performed on a small number of the multimedia files obtained through preliminary screening.
Moreover, generally speaking, a user rarely repeatedly sends the same multimedia file in a short time, so in the embodiment of the present invention, if the user repeatedly clicks the "+" button or other ways to trigger the file sending instruction in a short time, in order to avoid causing interference to the user, the user may be set not to repeatedly show the same multimedia file. Therefore, in the embodiment of the present invention, one of the conditions that the target file needs to satisfy may be that it has not been sent or shown in the last period of time, that is, its history operation record in the last period of time is empty, or that its file icon has been shown in the last period of time, but the corresponding target file is not sent by triggering the corresponding file icon after the showing.
Based on the above analysis, when obtaining the target file, first, the multimedia file with the time distance between the saving time and the current time within the first preset time range may be obtained as the candidate file, and then the historical operation record of each candidate file within the second preset time range before the current time is obtained, and then the candidate file with the empty historical operation record is obtained as the current target file to be sent.
The values of the first preset time range and the second preset time range can be set by user according to requirements, and the first preset time range can be the same as or different from the second preset time range, which is not limited in the embodiments of the present invention.
For example, generally, a user tends to send a multimedia file that is stored recently, so that the first preset time range may be set to be 0 to 60 seconds, when obtaining the historical operation record of each candidate file, since each candidate file is a multimedia file that is stored recently, the historical operation record is relatively few, the storage time of each candidate file may be traced from the current time, that is, the second preset time range may be directly set to be the storage time of each candidate file to the current time, and of course, the second preset time ranges corresponding to each candidate file may be set to be consistent, and are all 0 to 30 seconds, and the like, which is not limited in the embodiment of the present invention.
Optionally, in the embodiment of the present invention, the historical operation record of each candidate file in a second preset time range before the current time may be obtained in at least one of the following four ways:
in a first mode, aiming at any one alternative file, obtaining a historical sending record of the alternative file in a session for receiving the file sending instruction within a second preset time range before the current time;
obtaining a history sending record of the alternative file in the application to which the session receiving the file sending instruction belongs within a second preset time range before the current time;
obtaining a history display record of a file icon of the alternative file in a target session page within a second preset time range before the current time, wherein the target session page is a display page of a session for receiving the file sending instruction;
and fourthly, acquiring a history display record of the file icon of the alternative file in each session page in the application to which the target session page belongs within a second preset time range before the current time.
In practical applications, in order to recommend to a user a multimedia file that he may want to send, the text icon of the current target file is presented in the display page, and at different stages, each multimedia file, including the alternative files, may become the target file.
Therefore, when the history operation record of each candidate file is obtained, the history display record of the file icon of each candidate file in the current client can be obtained as a history operation record, and when the history display record of the file icon of the candidate file is obtained, only the session page receiving the current file sending instruction can be considered, so that the same multimedia file is prevented from being repeatedly recommended for the same session for multiple times in a short time, and each session page in the application to which the session page receiving the current file sending instruction belongs can be comprehensively considered, so that the same multimedia file is prevented from being repeatedly recommended for the same session application for multiple times in a short time.
Accordingly, the history sending record of each candidate file in the current client can be obtained as one of the history operation records, and when the history sending record of the candidate file is obtained, the history sending record of the candidate file in the session receiving the file sending instruction can be considered, and the history sending record of the candidate file in each session in the application to which the session receiving the file sending instruction belongs can also be considered.
For example, suppose that a user triggers a file sending instruction by clicking a "+" control in a presentation page of session 1, that is, the client receives the file sending instruction through a session page of session 1 at this time, and the application to which session 1 belongs also includes session 2 and session 3. Then, when the historical operation record of the candidate file is obtained at this time, the historical transmission record of the candidate file in the session 1 before the current time, and/or the historical transmission record of the candidate file in the application to which the session 1 belongs, that is, the historical transmission records in the session 1, the session 2, and the session 3, and/or the historical display record of the file icon of the candidate file in the display page of the session 1, and/or the historical display record of the file icon of the candidate file in the display pages of the session 1, the session 2, and the session 3, respectively, may be obtained. Fig. 3 is a schematic diagram of a presentation page of a conversation.
Referring to fig. 2, in the embodiment of the present invention, the method may further include:
step 140, in response to receiving a trigger instruction for the file icon displayed in the current display interface, acquiring and sending the target file, and canceling the file icon of the target file displayed in the current display interface;
and 150, in response to that the trigger instruction for the file icon displayed in the current display interface is not received within a specified time period, canceling the display of the file icon in the current display interface.
After the file icon of the target file is displayed in the current display interface, in order to facilitate a user to quickly send the target file, the target file can be acquired and sent after a trigger instruction for the file icon displayed in the current display interface is received, and meanwhile, the file icon of the target file displayed in the current display interface can be cancelled, so that visual interference caused to the user by continuous display of the file icon is avoided.
In addition, in practical applications, it is needless to say that the user clicks the "+" button, and the multimedia file is not necessarily sent, or the file icon of the currently displayed target file does not meet the user requirement, so that if the user does not trigger the file icon by clicking the file icon within a specified time period after the file icon of the target file is displayed, that is, if a trigger instruction for the file icon displayed in the current display interface is not received, the file icon displayed in the current display interface can be cancelled. The value of the specified time period can be set by user according to the requirement, and the embodiment of the invention is not limited. For example, the specified time period may be set to within 10 seconds after the document picture is presented, and so on.
In addition, in order to be compatible with various abnormal conditions, if the corresponding application enters the background when the file icon is displayed, the corresponding file icon can be controlled to be removed. At this time, of course, if the user finds that the target file is the multimedia file that is desired to be sent, after clicking the file icon, the user may remove the file icon and simultaneously send the original multimedia file corresponding to the file icon after performing editing operations such as cutting and modifying, and then jump to a corresponding page having an editing function for the target file, and send the edited multimedia file after the page is closed, which is not limited in the embodiment of the present invention.
Optionally, in an embodiment of the present invention, the multimedia file includes at least one of a picture, an audio file, a video file, and a text file, and when the target file is a picture, the picture or a thumbnail of the picture is used as a file icon of the target file, when the target file is a video file, any video frame and/or video identifier in the video file is acquired as the file icon of the target file, when the target file is an audio file, audio information of the audio file is acquired as the file icon of the target file, and when the target file is a text file, a file name of the text file is acquired as the file icon of the target file; and displaying the file icon of the target file in the front display interface in a floating layer mode.
The video identifier may be a video name or a video serial number, which is not limited in the embodiment of the present invention. For video files, patterns such as video playing logos and the like can also be displayed so that a user can visually determine that the file icon is used for representing a video. The audio information may be a file name, a file number, a storage time, and the like of the audio file, which is not limited in the embodiment of the present invention. For audio, a pattern such as an audio play logo may also be displayed to allow the user to visually determine that the file icon is for representing an audio.
In the embodiment of the present invention, the file icon of the target file may be displayed, and at the same time, the selection identifier and the confirmation key of the target file are displayed, when the click operation on the selection identifier is detected, the target file corresponding to the clicked selection identifier is determined as the selected target file, and when the click operation on the confirmation key is detected by the client, the determination sending instruction is triggered, and at least one selected target file is sent to the contact corresponding to the session.
In addition, in the embodiment of the present invention, the determined target files may be multiple or one, and in a case that the target files are multiple multimedia files, when the current display interface is in a horizontal screen state, the file icons of the multiple multimedia files may be displayed in a floating layer from left to right according to the number of the multiple target files. When the current display interface is in a vertical screen state, the file icons of the plurality of multimedia files can be displayed from top to bottom in a floating layer mode according to the number of the plurality of target files.
The number of file icons that can be displayed in a row and the number of file icons that can be displayed in a column, that is, the number of display columns and the number of display rows, in the display area of the preset file icon can also be determined according to the sizes of the file icons of the plurality of target files and the number of the plurality of target files, and then the file icons of the plurality of target files can be sequentially displayed from left to right and then from top to bottom according to the arrangement sequence of the plurality of target files.
It should be noted that the floating layer for displaying the file icon may be greater than or equal to the file icon of the target file, so that, in order to enable the user to achieve the purpose of sending without an accurate click operation, in the embodiment of the present invention, the floating layer may be an interactive object mapped to the operation of sending the target file, and the user clicks the floating layer to quickly send the target file to the contact corresponding to the current session.
Further, a prompt message may be displayed in the floating layer for reminding the user of the function of the floating layer. Such as "files you may want to send: ", etc. prompt a message.
It should be noted that, when the client detects a click operation on another additional key, while the floating layer is displayed, the function options corresponding to the clicked additional key, such as a photo option and a video call option, may still be displayed.
Fig. 4 is a schematic flow chart of recommending a picture to a client when a multimedia file is a picture based on a micro chat system.
Assuming that the session page shown in fig. 3A is displayed in the current display interface at this time, a file sending instruction may be triggered by clicking a "+" button on the lower right corner of the session page, so as to trigger the judgment on whether to display the most recently saved picture, at this time, a most recently saved picture may be obtained from the system album according to the time sequence of the saving time, and then, whether the creation time of the picture is within 60 seconds is judged. If the creation time of the picture is within 60 seconds, whether the picture is displayed is judged. If the picture is not displayed, the picture is probably the picture which is just stored by the user and needs to be sent now, and at the moment, the picture can be displayed in the current display interface in a floating layer mode. Specifically, a thumbnail of a picture to be displayed may be obtained, and then the thumbnail is displayed above the "+" button in a floating layer manner (of course, for the sake of clarity, a case of "picture that you may send:" may be added above the picture floating layer, as shown in fig. 3B), and the floating layer may disappear automatically without clicking within 10 seconds (for compatibility with various abnormal situations, if the APP enters the background during picture floating layer display, the floating layer picture may also be removed.
In the embodiment of the invention, the multimedia file which is recently stored by the user is automatically identified through reasonable rules to be displayed and the direct trigger sending is supported, so that the scheme for quickly sending the multimedia file is realized. The scheme can quickly position the multimedia files which are possibly required to be sent by the user at a proper time based on the storage time and the historical operation records of each multimedia file, supports display and quick sending, improves the screening efficiency of the multimedia files to be sent, saves the time of the user, and improves the matching degree of the selected target file and the sending requirements of the user.
Referring to fig. 5, a schematic structural diagram of a recommendation apparatus for sending a file in an embodiment of the present invention is shown.
The recommendation device for sending files in the embodiment of the invention comprises: a save time acquisition module 210, a target file determination module 220, and a file icon presentation module 230.
The functions of the modules and the interaction relationship between the modules are described in detail below.
A saving time obtaining module 210, configured to obtain saving time of each stored multimedia file when a file sending instruction is received;
the target file determining module 220 is configured to obtain a target file to be sent according to the storage time of each multimedia file and a historical operation record of each multimedia file, where the historical operation record includes at least one of a historical sending record of the multimedia file and a historical display record of a file icon of the multimedia file;
and a file icon displaying module 230, configured to display a file icon of the target file based on the current display interface.
Referring to fig. 6, in an embodiment of the present invention, the target file determining module 220 may further include:
the alternative file determining submodule 221 is configured to acquire a multimedia file, in which a time distance between the saving time and the current time is within a first preset time range, as an alternative file;
an operation record obtaining sub-module 222, configured to obtain a historical operation record of each candidate file in a second preset time range before the current time;
and the target file determining submodule 223 is configured to obtain an alternative file with an empty history operation record as a current target file to be sent.
Optionally, the operation record obtaining sub-module 222 may be specifically configured to:
aiming at any one of the alternative files, acquiring a historical sending record of the alternative file in a session for receiving the file sending instruction within a second preset time range before the current time;
and/or acquiring a history sending record of the alternative file in the application to which the session receiving the file sending instruction belongs within a second preset time range before the current time;
and/or acquiring a history display record of a file icon of the alternative file in a target session page within a second preset time range before the current time, wherein the target session page is a display page of a session for receiving the file sending instruction;
and/or acquiring a history display record of the file icon of the alternative file in each session page in the application to which the target session page belongs within a second preset time range before the current time.
Referring to fig. 6, in an embodiment of the present invention, the apparatus may further include:
the file sending module 240 is configured to, in response to receiving a trigger instruction for a file icon displayed in the current display interface, acquire and send the target file, and cancel the file icon of the target file displayed in the current display interface;
and a file icon removing module 250, configured to cancel displaying the file icon in the current display interface in response to not receiving a trigger instruction for the file icon displayed in the current display interface within a specified time period.
Optionally, the multimedia file includes at least one of a picture, an audio file, a video file, and a text file, and when the target file is a picture, the picture or a thumbnail of the picture is used as a file icon of the target file, when the target file is a video file, any video frame and/or video identifier in the video file is acquired as the file icon of the target file, when the target file is an audio file, audio information of the audio file is acquired as the file icon of the target file, and when the target file is a text file, a file name of the text file is acquired as the file icon of the target file; and displaying the file icon of the target file in the front display interface in a floating layer mode.
The recommendation device for sending files provided by the embodiment of the present invention can implement each process implemented in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
Preferably, an embodiment of the present invention further provides an electronic device, including: the processor, the memory, and the computer program stored in the memory and capable of running on the processor, when executed by the processor, implement each process of the above recommendation method for sending a file embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements each process of the above recommendation method for sending a file, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 7, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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 invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or 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, devices or units, and may be in an electrical, mechanical 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 invention 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A method for recommending a delivery file, comprising:
when a file sending instruction is received, the storage time of each stored multimedia file is obtained;
acquiring a target file to be sent according to the storage time of each multimedia file and the historical operation record of each multimedia file, wherein the historical operation record comprises at least one of the historical sending record of the multimedia file and the historical display record of the file icon of the multimedia file;
and displaying a file icon of the target file based on the current display interface.
2. The method according to claim 1, wherein the step of obtaining the target file to be sent according to the saving time of each multimedia file and the historical operating record of each multimedia file comprises:
acquiring a multimedia file with the time distance between the storage time and the current time within a first preset time range as an alternative file;
acquiring a historical operation record of each alternative file in a second preset time range before the current time;
and acquiring the alternative file with the empty historical operation record as a current target file to be sent.
3. The method according to claim 2, wherein the step of obtaining the historical operation record of each candidate file in a second preset time range before the current time comprises:
aiming at any one of the alternative files, acquiring a historical sending record of the alternative file in a session for receiving the file sending instruction within a second preset time range before the current time;
and/or acquiring a history sending record of the alternative file in the application to which the session receiving the file sending instruction belongs within a second preset time range before the current time;
and/or acquiring a history display record of a file icon of the alternative file in a target session page within a second preset time range before the current time, wherein the target session page is a display page of a session for receiving the file sending instruction;
and/or acquiring a history display record of the file icon of the alternative file in each session page in the application to which the target session page belongs within a second preset time range before the current time.
4. The method according to any one of claims 1-3, further comprising:
responding to a received trigger instruction aiming at the file icon displayed in the current display interface, acquiring and sending the target file, and canceling the file icon of the target file displayed in the current display interface;
and in response to not receiving a trigger instruction aiming at the file icon displayed in the current display interface within a specified time period, canceling the display of the file icon in the current display interface.
5. The method according to any one of claims 1 to 3, wherein the multimedia file comprises at least one of a picture, an audio file, a video file and a text file, and when the target file is a picture, the picture or a thumbnail of the picture is taken as a file icon of the target file, when the target file is a video file, any video frame and/or video identifier in the video file is taken as a file icon of the target file, when the target file is an audio file, audio information of the audio file is taken as a file icon of the target file, and when the target file is a text file, a file name of the text file is taken as a file icon of the target file; and displaying the file icon of the target file in the front display interface in a floating layer mode.
6. A recommendation device for transmitting a file, comprising:
the storage time acquisition module is used for acquiring the storage time of each stored multimedia file when receiving a file sending instruction;
the target file determining module is used for acquiring a target file to be sent according to the storage time of each multimedia file and the historical operation record of each multimedia file, wherein the historical operation record comprises at least one of the historical sending record of the multimedia file and the historical display record of the file icon of the multimedia file;
and the file icon display module is used for displaying the file icon of the target file based on the current display interface.
7. The apparatus of claim 6, wherein the target file determining module comprises:
the alternative file determining submodule is used for acquiring a multimedia file of which the time distance between the storage time and the current time is within a first preset time range as an alternative file;
the operation record obtaining sub-module is used for obtaining the historical operation record of each alternative file in a second preset time range before the current time;
and the target file determining submodule is used for acquiring the alternative file with the empty historical operation record as the current target file to be sent.
8. The apparatus according to claim 7, wherein the operation record obtaining sub-module is specifically configured to:
aiming at any one of the alternative files, acquiring a historical sending record of the alternative file in a session for receiving the file sending instruction within a second preset time range before the current time;
and/or acquiring a history sending record of the alternative file in the application to which the session receiving the file sending instruction belongs within a second preset time range before the current time;
and/or acquiring a history display record of a file icon of the alternative file in a target session page within a second preset time range before the current time, wherein the target session page is a display page of a session for receiving the file sending instruction;
and/or acquiring a history display record of the file icon of the alternative file in each session page in the application to which the target session page belongs within a second preset time range before the current time.
9. The apparatus according to any one of claims 6-8, further comprising:
the file sending module is used for responding to a trigger instruction which is received for the file icon displayed in the current display interface, acquiring and sending the target file, and canceling the file icon of the target file displayed in the current display interface;
and the file icon removing module is used for responding to the fact that a trigger instruction aiming at the file icon displayed in the current display interface is not received in a specified time period, and canceling the display of the file icon in the current display interface.
10. The apparatus according to any one of claims 6 to 8, wherein the multimedia file comprises at least one of a picture, an audio file, a video file, and a text file, and when the target file is a picture, the picture or a thumbnail of the picture is taken as a file icon of the target file, when the target file is a video file, any video frame and/or video identifier in the video file is taken as a file icon of the target file, when the target file is an audio file, audio information of the audio file is taken as a file icon of the target file, and when the target file is a text file, a file name of the text file is taken as a file icon of the target file; and displaying the file icon of the target file in the front display interface in a floating layer mode.
11. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the recommended method of sending a file according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, carries out the steps of the recommendation method for sending a file according to any one of claims 1 to 5.
CN202011586006.3A 2020-12-28 2020-12-28 Recommendation method and device for sending file, electronic equipment and storage medium Pending CN112579538A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011586006.3A CN112579538A (en) 2020-12-28 2020-12-28 Recommendation method and device for sending file, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011586006.3A CN112579538A (en) 2020-12-28 2020-12-28 Recommendation method and device for sending file, electronic equipment and storage medium

Publications (1)

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

Family

ID=75140389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011586006.3A Pending CN112579538A (en) 2020-12-28 2020-12-28 Recommendation method and device for sending file, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112579538A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115941794A (en) * 2022-11-16 2023-04-07 北京奇艺世纪科技有限公司 File storage method, system and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462128A (en) * 2013-09-22 2015-03-25 腾讯科技(深圳)有限公司 Method and device for processing multi-media files and terminal equipment
CN107426418A (en) * 2017-07-01 2017-12-01 珠海格力电器股份有限公司 A kind of multimedia file sending method and its device, electronic equipment
WO2019109976A1 (en) * 2017-12-08 2019-06-13 腾讯科技(深圳)有限公司 Multimedia file play record saving method, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462128A (en) * 2013-09-22 2015-03-25 腾讯科技(深圳)有限公司 Method and device for processing multi-media files and terminal equipment
CN107426418A (en) * 2017-07-01 2017-12-01 珠海格力电器股份有限公司 A kind of multimedia file sending method and its device, electronic equipment
WO2019109976A1 (en) * 2017-12-08 2019-06-13 腾讯科技(深圳)有限公司 Multimedia file play record saving method, terminal and storage medium
CN109905769A (en) * 2017-12-08 2019-06-18 腾讯科技(深圳)有限公司 Multimedia file plays record storing method, device, terminal and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115941794A (en) * 2022-11-16 2023-04-07 北京奇艺世纪科技有限公司 File storage method, system and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN109145142B (en) Management method and terminal for shared information of pictures
CN108958867B (en) Task operation method and device for application
CN108234289B (en) Message display method and device and mobile terminal
CN109101147B (en) Message notification display method and terminal
CN108132752B (en) Text editing method and mobile terminal
CN110752981B (en) Information control method and electronic equipment
CN110618969B (en) Icon display method and electronic equipment
CN109388456B (en) Head portrait selection method and mobile terminal
CN108646960B (en) File processing method and flexible screen terminal
CN110855921B (en) Video recording control method and electronic equipment
CN109271262B (en) Display method and terminal
CN109753202B (en) Screen capturing method and mobile terminal
CN109189303B (en) Text editing method and mobile terminal
CN111610903A (en) Information display method and electronic equipment
CN108132749B (en) Image editing method and mobile terminal
CN111061446A (en) Display method and electronic equipment
CN108628534B (en) Character display method and mobile terminal
CN109166164B (en) Expression picture generation method and terminal
CN111130995B (en) Image control method, electronic device, and storage medium
CN110543276B (en) Picture screening method and terminal equipment thereof
CN109714462B (en) Method for marking telephone number and mobile terminal thereof
CN108595104B (en) File processing method and terminal
CN110780795A (en) Screen capturing method and electronic equipment
CN110851042A (en) Interface display method and electronic equipment
CN110851219A (en) Information processing method and electronic equipment

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