CN109165197B - File processing method, terminal and server - Google Patents

File processing method, terminal and server Download PDF

Info

Publication number
CN109165197B
CN109165197B CN201810995649.XA CN201810995649A CN109165197B CN 109165197 B CN109165197 B CN 109165197B CN 201810995649 A CN201810995649 A CN 201810995649A CN 109165197 B CN109165197 B CN 109165197B
Authority
CN
China
Prior art keywords
file
terminal
identifier
receiving
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810995649.XA
Other languages
Chinese (zh)
Other versions
CN109165197A (en
Inventor
林云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Qiyidian Network Co
Original Assignee
Jiangsu Qiyidian Network Co
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 Jiangsu Qiyidian Network Co filed Critical Jiangsu Qiyidian Network Co
Priority to CN201810995649.XA priority Critical patent/CN109165197B/en
Publication of CN109165197A publication Critical patent/CN109165197A/en
Application granted granted Critical
Publication of CN109165197B publication Critical patent/CN109165197B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a file processing method, a terminal and a server, wherein the method comprises the following steps: receiving a file creating request acting on a target conversation, wherein the file creating request comprises a file identifier of a first file requested to be created; searching target template data corresponding to the first file in a template database according to the file identifier of the first file; receiving content data added to the target template data; and if receiving a file creating and sending instruction, sending the file identifier of the first file, the content data added to the target template data and the conversation identifier of the target conversation to the server so that the server sends a first file receiving notice to the second terminal. In the process, the terminal can realize the related processing operation of the file without a third-party application except an instant messaging tool, and the operations of creating, receiving, updating and the like of the file are all displayed in real time in the current conversation, so that the file processing flow is simplified, and the file processing efficiency is improved.

Description

File processing method, terminal and server
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a file processing method, a terminal, and a server.
Background
With the development of communication technology, Instant Messaging (IM) tools in communication networks are also more and more widely used. The IM tool is simple to use and has various application scenes. The existing IM tool provides a function of multi-terminal instant conversation, so that a user can converse with information such as characters, pictures, voice and the like, and can also share files. When an existing IM file sharing function sends or receives a file, a user can check or modify the file only through a third-party application corresponding to the file. After the modified file is saved, the saved file can be sent to the dialog in the corresponding IM tool through complex clicking operation.
Therefore, the existing conversation tool has the technical problem that the operation of file processing is complicated.
Disclosure of Invention
The embodiment of the invention provides a file processing method, a terminal and a server, and aims to solve the technical problem that the operation of file processing is complicated in the existing conversation tool.
In order to achieve the purpose, the invention provides the following specific scheme:
in a first aspect, an embodiment of the present invention provides a file processing method, which is applied to a first terminal, and the method includes:
receiving a file creating request acting on a target conversation, wherein the file creating request comprises a file identifier of a first file requested to be created;
searching target template data corresponding to the first file in a template database according to the file identifier of the first file, wherein at least one template data is stored in the template database in advance;
receiving content data added to the target template data;
and if a file creating and sending instruction is received, sending the file identifier of the first file, the content data added to the target template data and the conversation identifier of the target conversation to a server so that the server sends a first file receiving notice to a second terminal, wherein the first file receiving notice comprises the file identifier of the first file and the conversation identifier of the target conversation.
In a second aspect, an embodiment of the present invention provides a file processing method, which is applied to a second terminal, and the method includes:
if a first file receiving notification sent by a server is received, displaying a file identifier of a first file in a target conversation, wherein the first file receiving notification comprises the file identifier of the first file and a conversation identifier of the target conversation;
acquiring content data of the first file according to the file identifier of the first file;
searching template data corresponding to the first file in a template database according to the file identifier of the first file;
adding the content data of the first file to the template data to form an integrated first file;
and displaying the integrated first file.
In a third aspect, an embodiment of the present invention provides a file processing method, which is applied to a server, and the method includes:
receiving a file identifier of a first file, content data of the first file and a conversation identifier of a target conversation, which are sent by a first terminal;
sending a first file receiving notification to a second terminal so that the second terminal receives the first file receiving notification and displays a file identifier of a first file in a target conversation, wherein the first file receiving notification comprises the file identifier of the first file and the conversation identifier of the target conversation.
In a fourth aspect, an embodiment of the present invention provides a terminal, where the terminal includes: a memory, a processor, and a computer program stored on the memory and executable on the processor; the processor, when executing the computer program, implements the file processing method as described in the first aspect.
In a fifth aspect, an embodiment of the present invention provides a terminal, where the terminal includes: a memory, a processor, and a computer program stored on the memory and executable on the processor; the processor, when executing the computer program, implements the file processing method according to the second aspect.
In a sixth aspect, an embodiment of the present invention provides a server, where the terminal includes: a memory, a processor, and a computer program stored on the memory and executable on the processor; the processor, when executing the computer program, implements the file processing method according to the third aspect.
In a seventh aspect, an embodiment of the present invention 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 file processing method according to the first aspect.
In the embodiment of the invention, a template database can be preset in the terminal and at least one template data used for creating the file is stored. When receiving a file creation request or a file reception request, the terminal may receive only content data of a file, and call corresponding template data in a local template database. Thus, the terminal can integrate and display the template data and the content data. In the embodiment of the invention, the terminal provides the template data calling function in the instant messaging tool, and in the process, the terminal can realize the related processing operation of the file without a third party application outside the instant messaging tool, and the operations of creating, receiving, updating and the like of the file are displayed in real time in the current conversation, so that the file processing flow is simplified, and the file processing efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be 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 according to these drawings without inventive exercise.
Fig. 1 is a schematic connection diagram of a file processing system to which a file processing method according to an embodiment of the present invention is applied;
FIG. 2 is a flowchart illustrating a file processing method according to an embodiment of the present invention;
fig. 3a and 3b are schematic diagrams of a display interface according to a file processing method according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating a file processing method according to another embodiment of the present invention;
fig. 5 is a schematic diagram of a display interface related to a file processing method according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a file processing method according to another embodiment of the present invention;
fig. 7 is a schematic diagram of a display interface according to a file processing method provided in an embodiment of the present invention;
fig. 8 is a schematic flowchart of a file processing method according to another embodiment of the present invention;
fig. 9 is a schematic flowchart of a file processing method according to another embodiment of the present invention;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of another terminal according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of another terminal according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of another terminal according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 16 is a schematic structural diagram of a server according to an 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.
The embodiment of the invention provides a file processing method, a terminal and a server. As shown in fig. 1, the file processing system may include: the terminal comprises a server 110, a first terminal 120 and a second terminal 130, wherein the first terminal 120 and the second terminal 130 are both in communication connection with the server 110. The first terminal 120 and the second terminal 130 are both in communication connection with the server 110.
The embodiment is mainly applied to the file processing and transceiving operation in the conversation of the instant messaging tool. The first terminal 120 and the second terminal 130 initiate a conversation through the server 110 by using the instant messenger, and the conversation in which the first terminal 120 and the second terminal 130 participate is taken as a target conversation. In this embodiment, the participating terminals of the target session may include other terminals except the first terminal 120 and the second terminal 130, and therefore, the first terminal 120 that creates the first file may be any one of all terminals participating in the target session, and the second terminal 130 that receives the first file may be any one of all terminals participating in the target session, which is not limited. Embodiments provided by the present invention will be described below separately from a first terminal, a second terminal, and a server.
Fig. 2 is a schematic flow chart of a file processing method according to an embodiment of the present invention. The file processing method provided by the embodiment is applied to a first terminal, and mainly comprises the following steps:
step 201, receiving a file creating request acting on a target conversation;
the first terminal 120 may receive a file creation request triggered by a user while displaying the target dialog. Specifically, a file creation control may be set in the display window of the target session, and the user may initiate a file creation request to the first terminal 120 by clicking the file creation control. The file creation request may include a file identification of the requested creation, which may include, but is not limited to, a file type, a file subject, and other attributes.
Step 202, searching target template data corresponding to a first file in a template database according to a file identifier of the first file;
a template database is disposed in the first terminal 120, where at least one template data may be stored in the template database in advance, and each template data may correspond to a file type, such as a commonly used word, excel, html, and the like. When being called and displayed, each template data stored in the template database is displayed as a file frame of a corresponding file type, so that a user can conveniently check, add or modify content data on the basis of the file frame, and in the process, the first terminal 120 does not need to withdraw from the current instant messaging tool and connect to a corresponding file application to open the file of the corresponding type, so that the application setting and operation flow of the terminal are saved.
After receiving a file creation request triggered by a user, the first terminal 120 searches for target template data corresponding to a first file in a template database according to a file identifier of the first file indicated by the file creation request.
Of course, considering that the template data stored in the template database of the first terminal 120 is limited, the first terminal 120 may not find the required template data locally, and may also request the server 110. Specifically, after the step of searching the target template data corresponding to the first file in the template database, the method further includes:
if the target template data corresponding to the first file is not found, sending a template data acquisition request to the server 110;
and receiving target template data returned by the server 110 based on the template data acquisition request.
If the template data corresponding to the file required by the user is not stored in the first terminal 120, a template data obtaining request may be sent to the server 110, where the template data obtaining request may include a type of the template data requested to be obtained. After receiving the template data obtaining request, the server 110 returns the template data requested by the first terminal 120, so that the first terminal 120 uses and stores the template data.
In this way, the first terminal 120 may store the template data of the common file, and may request the server 110 to obtain the template data when some template data that is not stored is needed. Not only too much memory occupation of the first terminal 120 is avoided, but also the template data calling requirement of the first terminal 120 is ensured.
Step 203, receiving the content data added to the target template data;
after the first terminal 120 finds the corresponding target template data in the template database, it can receive the content data that the user wants to add.
After the first terminal 120 finds the corresponding target template data in the template database, it can receive the content data that the user wants to add. In order to facilitate the user to input the content data, the first terminal 120 may first display the target template data, facilitating the user to directly add the content data at a corresponding portion of the displayed template data.
And 204, if a file creating and sending instruction is received, sending the file identifier of the first file, the content data added to the target template data and the conversation identifier of the target conversation to a server so that the server sends a first file receiving notice to a second terminal.
After receiving the created file transmission instruction, the first terminal 120 may directly transmit the created complete file to the server 110. To reduce the total amount of data to be transferred, the first terminal 120 may send only the file identification of the first file, the content data added to the target template data, and the session identification of the target session to the server 110 to inform the server 110 of the file identification of the file, the content data added by the user of the first terminal 120, and the target session in which the file creation operation is located.
The server 110 receives the file identifier of the first file, the content added to the target template data, and the session identifier of the target session from the first terminal 120, and then generates a first file receiving notification to the second terminal 130, where the first file receiving notification may include the file identifier of the first file and the session identifier of the target session, so as to notify the second terminal 130 of the reception of the first file and the session from which the first file originated.
In other embodiments, the first file receiving notification sent by the server 110 may further include identity information of the sending terminal, so that the user of the second terminal 130 may know the sender of the first file.
In the file processing method provided by the embodiment of the present invention, when the first terminal needs to send a file in the instant messaging tool, the template data can be called locally, and the required file can be created by adding the content data. And after the creation is finished, directly sending the content data of the created file, the dialogue identification of the target dialogue and the file type of the first file to the server, namely, the server informs the corresponding second terminal to receive the created file. The first terminal does not need to be connected to a third-party application to create a file, and does not need to store complicated operations of searching and sending the file, so that the convenience and timeliness of file processing operations in the instant messaging tool are greatly improved.
On the basis of the embodiment shown in fig. 2, before the step of receiving the content data added to the target template data, the method further includes:
displaying the target template data in a file display window;
the step of receiving the content data added to the target template data includes:
receiving content data added to the target template data displayed within the file display window.
In this embodiment, the first terminal 120 calls a file display window, and displays the target template data in the file display window, so that the display interface displays the contents of the substrate frame, the title, the chapter, and the like of the first file. The user can directly input the corresponding content data in the file display window corresponding to the displayed target template data.
As shown in fig. 3a, the display window may be a display window where the target dialog is located, a file creation control (shown as K in the figure) is disposed in the display window, and a file list (shown as L in the figure) may be included in the file creation control. The file list may be a list of types of files that can be created, or may include a history of files created or received in the past, without limitation.
Fig. 3b is a schematic diagram of a file display window. The document display window may first display target template data (as depicted by M in the figure), such as option topics, option labels, option topics, and the like. In the blank area of the file display window, content data (shown as N in the figure) input by the user, such as a selection option, an opinion reply, etc., may be received. By calling the file window to display the template data and receiving the content data added by the user in the displayed template data, the file checking and operating effects can be more visual and real for the user.
Referring to fig. 4, a flowchart of a file processing method according to another embodiment of the present invention is shown. The file processing method provided by this embodiment is applied to the second terminal 130, and the file processing method provided by this embodiment mainly includes the following steps:
step 401, if a first file receiving notification sent by a server is received, displaying a file identifier of a first file in a target session;
the second terminal 130 receives the first file reception notification transmitted by the server 110, which may include the file identification of the first file and the session identification of the target session. The second terminal displays the file identifier of the first file in the target dialog box to prompt the user of the second terminal 130 that the first file to be received and the basic information of the first file exist.
In addition, if the first file receiving notification further includes the identity information of the file sending terminal, that is, the first terminal 120, the target dialog box of the second terminal 130 may also display that the sending terminal of the first file is the first terminal 120.
As shown in fig. 5, the second terminal 130 displays the file identification of the received first file within the target session, and may further include identity information of the transmitting terminal, i.e., an avatar, a nickname, etc., of the first user of the first terminal 120. The second terminal 130 may view the file directly within the dialog box or continue the dialog with the first user of the first terminal 120.
Step 402, obtaining content data of the first file according to the file identifier of the first file;
the second terminal 130 displays the file identifier of the first file to be received to prompt the user to receive. The second terminal 130 may acquire the content data of the first file according to the file identification file reception request of the first file. The second terminal 130 may obtain the content data of the first file in two ways:
first, the server 110 actively transmits content data. The server 110 may transmit the content data of the first file to the second terminal 130 together with the first file reception notification. When the second terminal 130 receives the first file notification, it may receive the content data of the first file.
Second, the second terminal 130 actively acquires the content data. The second terminal 130, if receiving a file receiving request for the first file, sends a content data acquisition request to the server 110;
receiving the content data of the first file returned by the server 110 based on the content data acquisition request.
Considering that there may be a plurality of files within the target session, the second terminal 130 may not need to receive the content data of the entire files. Therefore, the extension user can select whether to receive the content data of the first file according to the identifier of the first file indicated by the first file receiving notification. If the user of the second terminal 130 triggers the file receiving request of the first file, the second terminal 130 requests the server 110 for the content data of the first file. If the user of the second terminal 130 does not need to receive the content data of the first file, the reception may be denied or the reception request may not be triggered. Therefore, the scheme of firstly sending the file notification to the second terminal 130 and then selectively receiving the content file by the user can prompt the file processing state timely and effectively, and unnecessary file downloading operation and occupation of the terminal storage memory are effectively reduced.
Step 403, according to the file identifier of the first file, searching template data corresponding to the first file in a template database;
a template database is arranged in the second terminal 130, at least one template data may be stored in the template database in advance, and each template data may correspond to a file type, such as commonly used word, excel, html, and the like. When being called and displayed, each template data stored in the template database is displayed as a file frame of the corresponding file type, so that a user can conveniently check, add or modify content data on the basis of the file frame, and in the process, the second terminal 130 does not need to withdraw from the current instant messaging tool and connect to the corresponding file application to open the corresponding file type, so that the application setting and operation flow of the terminal are saved.
After receiving a file receiving request triggered by a user, the second terminal 130 searches for target template data corresponding to the first file in a template database according to the file identifier of the first file.
In addition, the template data stored in the template database of the second terminal 130 is limited, and the second terminal 130 may not find the required template data locally, or may request the acquired template data from the server 110. Specifically, after the step of searching the target template data corresponding to the first file in the template database, the method further includes:
if the target template data corresponding to the first file is not found, sending a template data acquisition request to the server 110;
and receiving target template data returned by the server 110 based on the template data acquisition request.
If the template data corresponding to the file required by the user is not stored in the second terminal 130, a template data obtaining request may be sent to the server 110, where the template data obtaining request may include a type of the template data requested to be obtained. After receiving the template data obtaining request, the server 110 returns the template data requested by the second terminal 130, so that the second terminal 130 uses and stores the template data.
In this way, the second terminal 130 may store the template data of the common file, and may request the server 110 to obtain the template data when some template data that is not stored is needed. Not only is excessive memory occupation of the second terminal 130 avoided, but also the template data calling requirement of the second terminal 130 is ensured.
Step 404, adding the content data of the first file to the target template data to form an integrated first file;
and step 405, displaying the integrated first file.
The second terminal 130 acquires the content data of the first file and the target template data, adds the content data to the target template data to integrate the content data into a complete first file, and displays the integrated first file. Specifically, the second terminal 130 may call a file display window to display the integrated first file, so as to achieve a better file display effect.
In the file processing method provided by the embodiment, the second terminal 130 can directly acquire the file to be received in the target session, and does not need to be connected to a third-party application, and the same effect of displaying the file can be achieved through a scheme of integrating and displaying the template data and the content data. In this way, the template data is stored in the second terminal 130, and does not need to be acquired from the server 110 every time, thereby reducing the total amount of data exchange.
On the basis of the embodiment shown in fig. 4, another specific implementation is provided in the embodiment of the present invention, and the method adds a process of modifying and updating the received file by the second terminal. As shown in fig. 6, after all the steps shown in fig. 4, the method further comprises the steps of:
601, if receiving a modification operation acting on the content data, modifying the content data, and storing the modified content data;
the second terminal 130 calls the template data of the first file and displays the added content data and the template data in an integrated manner, so that the user can conveniently view the specific content of the first file. If the user needs to modify the content data of the first file, the user may apply a modification operation to the content data displayed on the second terminal 130, and store the modified content data.
Step 602, if a modified file sending instruction for the integrated first file is received, sending the file identifier of the first file, the modified content data, and the session identifier of the target session to the server, so that the server sends a first file update notification to the first terminal, where the first file update notification includes the file identifier of the first file and the session identifier of the target session.
After the user of the second terminal 130 modifies the content data, if the transmission is confirmed, the modified file transmission instruction of the second terminal 130 may be triggered to instruct the second terminal 130 to transmit the modified content data to the first terminal 120. The second terminal 130 transmits the file identification of the first file, the modified content data, and the session identification of the target session to the server 110. The server sends a first file updating notification to the first terminal to notify the first terminal that the updated first file to be received exists.
As shown in fig. 7, after the second terminal 130 sends the updated content data to the server 110, the first server 110 sends the updated content data to the first terminal 120, and the target dialog between the first terminal 120 and the second terminal 130 displays the prompt message for updating the file.
Similarly, after receiving the first file update notification sent by the server 110, the first terminal 120 also displays the file identifier of the updated first file in the target dialog box. If the user of the first terminal 120 needs to obtain the updated content data, the first terminal 120 requests the server 110 to obtain the updated content data.
In this embodiment, the second terminal may display the received integrated first file, receive a modification operation of the user, and send the stored modification content to the server after the modification of the user is confirmed, so that the server reminds the server of the modification operation for the first file. The second terminal does not need to be connected to a third party application, the received file can be modified conveniently, the modified file can be directly sent to the current conversation after being modified and confirmed, additional conversation saving and searching operations are not needed, and file processing operations in the instant messaging tool are optimized.
Referring to fig. 8, a flowchart of a file processing method according to another embodiment of the present invention is shown. The file processing method provided by the embodiment is applied to a server, and mainly comprises the following steps:
step 801, receiving a file identifier of a first file, content data of the first file and a conversation identifier of a target conversation, which are sent by a first terminal;
the first terminal locally creates a first file and receives content data added by a user. And after confirming that the creation is completed, the first terminal sends the created information to the server. In order to reduce the total amount of file receiving and sending, the first terminal only sends the file identification of the first file, the content data of the first file and the conversation identification of the target conversation to the server, and the server receives the file identification, and records the file receiving operation.
Step 802, sending a first file receiving notification to a second terminal, so that the second terminal receives the first file receiving notification and displays a file identifier of the first file in a target session.
After receiving the file identifier of the first file sent by the first terminal, the server generates a first file reception notification for notifying the second terminal, where the first file reception notification may include the file identifier of the first file and the session identifier of the target session. The server sends the first file receiving call to the second terminal, and after the second terminal receives the notification, the second terminal displays the file identification of the first file in the target session so as to prompt a user of the second terminal that the first file to be received exists.
In the file processing method provided by the embodiment of the present invention, the server performs the file interaction operation between the first terminal and the second terminal, and generates the first file receiving notification to notify the second terminal of the relevant information of the file to be received after receiving the newly created first content data sent by the first terminal, the file identifier of the corresponding first file, and the session identifier of the target session. Only necessary information is transmitted and received between the terminal and the server, fixed template data is not transmitted any more, and the source conversation of the file received by the second terminal is directly informed, so that the convenience and timeliness of file processing in the instant messaging tool are improved.
On the basis of the foregoing embodiment, after the step of sending the first file reception notification to the second terminal, the method may further include:
receiving a content data acquisition request sent by the second terminal;
and sending the content data of the first file to the second terminal.
In this embodiment, after receiving the content data of the first file sent by the first terminal, the server does not directly send the content data of the first file to the first terminal, but first sends the file identifier of the first file and the dialog of the target dialog to the first terminal, and the first terminal determines whether to receive the content data. And after receiving a content data acquisition request sent by the second terminal, the server sends the content data of the first file to the second terminal. Therefore, the defect that the memory of the second terminal occupies more due to the fact that the second terminal receives the unnecessary content file can be effectively avoided, meanwhile, unnecessary data interaction between the second terminal and the server can be reduced, and threads are saved.
On the basis of the above embodiment, after the step of sending the first file reception notification to the second terminal, the method further includes:
receiving a file identifier of a first file, modified content data and a conversation identifier of the target conversation, which are sent by the second terminal;
and sending a first file updating notice to the first terminal so that the first terminal receives the first file updating notice and displays the file identification of the first file in the target conversation.
And after modifying the received content data of the first file by the second terminal, sending the modified content to a server. And after receiving the first file updating notification, the server generates the first file updating notification to the first terminal, wherein the first file updating notification comprises the file identifier of the first file and the conversation identifier of the target conversation. Thus, the first terminal can know the basic information and source conversation of the update file and then determine whether to receive the modified content data. And if the first terminal determines to receive the modified content data, the first terminal requests the server to acquire the modified content data.
Therefore, the server timely prompts operations such as creation, modification and updating of files in the target conversation by the two terminals to the corresponding terminals, and convenience and timeliness of file interaction between the terminals are improved.
In addition, before the step of receiving the file identifier of the first file, the content data of the first file and the session identifier of the target session, the method further includes:
receiving a template data acquisition request sent by the first terminal;
and sending the target template data corresponding to the template data acquisition request to the first terminal.
Or after the step of sending the first file reception notification to the second terminal, the method further includes:
receiving a template data acquisition request sent by a second terminal;
and sending the target template data corresponding to the template data acquisition request to the second terminal.
The server side stores various template data required by the user, and the template databases of the first terminal and the second terminal also store the template data. Due to the memory limitation of the terminal, the first terminal and the second terminal only store part of the commonly used template data. When the first terminal and/or the second terminal do not find the required template data in the local template database, the first terminal and/or the second terminal can send a template data acquisition request to the server. And the server returns the required template data to the first terminal and/or the second terminal based on the received template data acquisition request.
Thus, not only is excessive memory occupation of the first terminal 120 avoided, but also the template data calling requirement of the first terminal 120 is ensured. For a specific implementation process of the file processing method provided in the embodiment of the present invention, reference may be made to the specific implementation process of the file processing method provided in the embodiment shown in fig. 2 and fig. 4, which is not described in detail herein.
Referring to fig. 9, a file processing method according to an embodiment of the present invention is provided, and the file processing method may be applied to the file processing system shown in fig. 1. As shown in fig. 9, the method mainly includes the following steps:
step 901, a first terminal receives a file creation request acting on a target session;
step 902, the first terminal searches target template data corresponding to the first file in a template database according to the file identifier of the first file;
step 903, the first terminal receives the content data added to the target template data;
step 904, if the first terminal receives a file creation sending instruction, sending the file identifier of the first file, the content data added to the target template data and the conversation identifier of the target conversation to a server;
the first terminal 120 may receive a user-triggered file creation request when displaying the target dialog, the file creation request including a file identification of the first file requested to be created. And the first terminal searches target template data corresponding to the first file in a template database according to the file identifier of the first file. The user can add corresponding content data according to the target template data of the first file, and the first terminal receives and stores the content data added by the user. And after the user confirms that the file creation is finished, the first terminal triggers a file creation sending instruction of the first terminal. The first terminal may directly transmit the created complete file to the server 110 according to the first file transmission instruction. To reduce the total amount of data to be transferred, the first terminal 120 may send only the file identification of the first file, the content data added to the target template data, and the session identification of the target session to the server 110 to inform the server 110 of the file identification of the file, the content data added by the user of the first terminal 120, and the target session in which the file creation operation is located. In this way, the creation and transmission of the first file are completed.
Step 905, the server receives the file identifier of the first file, the content data added to the target template data and the dialog identifier of the target dialog;
step 906, the server sends a first file receiving notification to the second terminal, where the first file receiving notification includes a file identifier of the first file and a session identifier of the target session;
the server 110 receives the file identifier of the first file, the content added to the target template data, and the session identifier of the target session from the first terminal 120, and then generates a first file receiving notification to the second terminal 130, where the first file receiving notification may include the file identifier of the first file and the session identifier of the target session, so as to notify the second terminal 130 of the reception of the first file and the session from which the first file originated.
Step 907, the second terminal receives the first file receiving notification;
step 908, the second terminal displays the file identifier of the first file in the target session;
step 909, if the second terminal receives a file receiving request for the file identifier acting on the first file, acquiring the content data of the first file;
step 910, the second terminal searches for target template data corresponding to the first file in a template database according to the file identifier of the first file;
step 911, the second terminal adds the content data corresponding to the first file to the target template data to form an integrated first file;
and 912, displaying the integrated first file by the second terminal.
The second terminal 130 receives the first file receiving notification sent by the server 110, and displays the file identifier of the first file in the target dialog box to prompt the user of the second terminal 130 that the first file to be received exists and the basic information of the first file. The second terminal 130 displays the file identifier of the first file to be received to prompt the user to receive. If a file identification file receiving request of the user for the first file is received, the second terminal 130 requests the server to acquire the content data of the first file.
The second terminal 130 is also provided with a template database, and when receiving the first file transmitted by the first terminal 120 via the server 110, the second terminal 130 receives only the content data of the first file and calls the template data corresponding to the first file from the template database locally stored in the second terminal 130.
The second terminal 130 acquires the content data of the first file and the target template data, adds the content data to the target template data to integrate the content data into a complete first file, and displays the integrated first file.
Thus, the operation of receiving the file and displaying the file by the second terminal is completed.
Step 913, if the second terminal receives the modification operation acting on the content data, saving the modified content data;
step 914, if the second terminal receives a modified file sending instruction for the integrated first file, sending the file identifier of the first file, the modified content data and the session identifier of the target session to the server;
step 915, the server sends a first file update notification to the first terminal.
The second terminal 130 calls the template data of the first file and displays the added content data and the template data in an integrated manner, so that the user can conveniently view the specific content of the first file. If the user needs to modify the content data of the first file, the user may apply a modification operation to the content data displayed on the second terminal 130, and store the modified content data.
After the user of the second terminal 130 modifies the content data, if the transmission is confirmed, the modified file transmission instruction of the second terminal 130 may be triggered to instruct the second terminal 130 to transmit the modified content data to the first terminal 120. The second terminal 130 transmits the file identification of the first file, the modified content data, and the session identification of the target session to the server 110.
The server 110 generates a first file update notification after receiving the file identifier of the first file, the modified content data and the session identifier of the target session, which are sent by the second terminal 130, and sends the first file update notification to the first terminal 120. The first file update notification may include a file identifier of the first file and a session identifier of the target session to inform the first terminal 120 of the source session and the corresponding specific file of the new file received.
According to the file processing method provided by the embodiment of the invention, the conversation participant terminal can receive, check, modify, send and the like the file in the utilized instant messaging tool without being connected to the corresponding file processing application, and only aiming at the content data which is possibly changed but not the complete file in the interaction process with the server, the total amount of data interaction between the terminal and the server is reduced, and the file interaction efficiency is improved. And the file updating state in the conversation is notified in time, so that the timeliness of sending and acquiring the file by the user is further improved. For a specific implementation process of the file processing method provided in the embodiments of the present invention, reference may be made to the specific implementation processes of the file processing methods provided in the embodiments shown in fig. 2 to 8, which are not described in detail herein.
On the basis of the above embodiment, each time the server receives a file processing operation, the server may store a file identifier, content data, a target session, an operation object, and the like corresponding to the current file processing operation in the server, so as to facilitate a user of the first terminal or the second terminal to search for a history processing record.
On the basis of the above embodiment, a scheme for binding and updating background equipment can be added. The first terminal and/or the second terminal can apply for binding respective background equipment to the server so as to perform real-time data updating or backup operation. For example, each time the first terminal receives and transmits one file through the server, the first background device bound to the first terminal may automatically acquire the received and transmitted file in time. Binding the background equipment to the server, automatically acquiring a part or a class of files in the conversation process in time, and performing other subsequent operations according to the acquired files, such as quantity statistics, performance calculation and the like without limitation.
The file processing scheme of the invention ensures that the document in the conversation of the instant communication tool and even the application cooperation work are simple and easy to use, thereby achieving good user experience. Data exchange is often required in work applications, such as for users to fill in personal data, etc., to do user surveys, user feedback, etc.; or applications that require certain application logic, such as letting everyone register in a multi-person conversation, letting everyone determine a meeting time, etc. These practical scenarios become very simple and easy to use under the action of the present invention. The template data is a description of the document type, the specific content of the document. Such as the data field name, type, length, etc. of a form, and also the UI layout of the data field. An HTML type template includes specific HTML code including HMTL, CSS, JAVASCRIPT, etc. The content data describes the specific data filled in by a template.
The template data and the content data of the document are separated, so that the data volume transmitted by each file can be reduced. When the document is displayed, the window of the client end can be embedded into a document display module according to the template type, and the display module is responsible for displaying and editing the document. Such as an HMTL type template, will be embedded in an HTML browser. Such a structure enables the client to support a variety of document types, leaving room for extending functionality.
In the invention, the display and the editing of the document do not need to call a third-party application, do not need to be connected to the outside through a network, such as opening a webpage, do not need additional user login, do not need additional steps to be shared repeatedly, and have the advantages of high speed, few steps, simplicity, safety and good user experience.
Referring to fig. 10, a schematic structural diagram of a terminal provided in an embodiment of the present invention is shown, where the terminal may be the first terminal provided in the foregoing embodiment. As shown in fig. 10, the terminal 1000 includes:
a request receiving module 1001, configured to receive a file creation request acting on a target session, where the file creation request includes a file identifier of a first file requested to be created;
a first searching module 1002, configured to search, according to a file identifier of the first file, target template data corresponding to the first file in a template database, where at least one template data is stored in the template database in advance;
a content data receiving module 1003 for receiving content data added to the target template data;
a first sending module 1004, configured to send, if a created file sending instruction is received, a file identifier of the first file, content data added to the target template data, and a session identifier of the target session to a server, so that the server sends a first file receiving notification to the second terminal, where the first file receiving notification includes the file identifier of the first file and the session identifier of the target session.
Optionally, as shown in fig. 11, the terminal 1000 may further include:
a first template data request module 1005, configured to send a template data obtaining request to the server if the target template data corresponding to the first file is not found;
a first template data receiving module 1006, configured to receive target template data returned by the server based on the template data obtaining request.
Optionally, the terminal 1000 further includes a first display module 1007, where the first display module 1007 is configured to:
displaying the target template data in a file display window;
the content data receiving module 1003 is configured to:
receiving the content data added to the target template data displayed within the file display window.
Referring to fig. 12, a schematic structural diagram of a terminal 1200 according to another embodiment of the present invention is provided, where the terminal may be the second terminal in the foregoing embodiment. As shown in fig. 12, a terminal 1200 includes:
a second display module 1201, configured to display a file identifier of a first file in the target session if a first file receiving notification sent by a server is received, where the first file receiving notification includes the file identifier of the first file and a session identifier of the target session;
a content data obtaining module 1202, configured to obtain content data of the first file if a file receiving request of a file identifier acting on the first file is received;
a second searching module 1203, configured to search, according to the file identifier of the first file, template data corresponding to the first file in a template database;
a data integration module 1204, configured to add content data of the first file to the template data to form an integrated first file;
the second display module 1201 is further configured to:
and displaying the integrated first file.
Optionally, the participating object of the target conversation further includes a first terminal;
as shown in fig. 13, the terminal 1300 may further include:
a modification saving module 1205, configured to, after the integrated first file is displayed, save the modified content data if a modification operation acting on the content data is received;
a second sending module 1206, configured to, if a modified file sending request for the integrated first file is received, send the file identifier of the first file, the modified content data, and the session identifier of the target session to the server, so that the server sends the first file update notification to the first terminal, where the first file update notification includes the file identifier of the first file and the session identifier of the target session is sent to the first terminal.
Optionally, the content data obtaining module 1202 is configured to:
if a file receiving request of a file identifier acting on the first file is received, sending a content data acquisition request to the server;
and receiving the content data of the first file returned by the server based on the content data acquisition request.
As shown in fig. 13, the terminal 1200 may further include:
a second template data request module 1207, configured to send a template data obtaining request to the server if the target template data corresponding to the first file is not found;
a second template data receiving module 1208, configured to receive target template data returned by the server based on the template data obtaining request.
Referring to fig. 14, which is a schematic structural diagram of a server 1400 provided in the embodiment of the present invention, the server 1400 may be a server to which the file processing method provided in the foregoing embodiment is applied. As shown in fig. 14, a server 1400 includes:
a third receiving module 1401, configured to receive a file identifier of the first file of the first terminal, content data of the first file, and a session identifier of a target session;
a third sending module 1402, configured to send a first file receiving notification to the second terminal, so that the second terminal receives the first file receiving notification and displays a file identifier of the first file in the target session, where the first file receiving notification includes the file identifier of the first file and a session identifier of the target session.
Optionally, the third receiving module 1401 is further configured to:
receiving a content data acquisition request sent by the second terminal;
the third sending module 1402 is further configured to:
and sending the content data of the first file to the second terminal.
Optionally, the third receiving module 1401 is further configured to:
receiving a file identifier of a first file, modified content data and a conversation identifier of the target conversation, which are sent by the second terminal;
the third sending module 1402 is further configured to:
and receiving the file identifier of the first file, the modified content data and the conversation identifier of the target conversation, which are sent by the second terminal.
Optionally, the third receiving module 1401 is further configured to:
receiving a template data acquisition request sent by the first terminal;
the third sending module 1402 is further configured to:
and sending the target template data corresponding to the template data acquisition request to the first terminal.
Optionally, the third receiving module 1401 is further configured to:
receiving a template data acquisition request sent by a second terminal;
the third sending module 1402 is further configured to:
and sending the target template data corresponding to the template data acquisition request to the second terminal.
Referring to fig. 15, fig. 15 is a schematic structural diagram of a terminal 1500 according to another embodiment of the present invention, where the terminal may be a first terminal or a second terminal related to the file processing method provided in the foregoing embodiment. As shown in fig. 15, to implement a terminal according to various embodiments of the present invention, the terminal 1500 includes, but is not limited to: a radio frequency unit 1501, a network module 1502, an audio output unit 1503, an input unit 1504, a sensor 1505, a file processing unit 1506, a user input unit 1507, an interface unit 1508, a memory 1509, a processor 1510, and a power supply 1511. Those skilled in the art will appreciate that the terminal configuration shown in fig. 15 is not intended to be limiting, and that the terminal 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 terminal 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.
Wherein, when the terminal is a first terminal,
a processor 1510 configured to:
receiving a file creating request acting on a target conversation, wherein the file creating request comprises a file identifier of a first file requested to be created;
searching target template data corresponding to the first file in a template database according to the file identifier of the first file, wherein at least one template data is stored in the template database in advance;
receiving content data added to the target template data;
and if a file creating and sending instruction is received, sending the file identifier of the first file, the content data added to the target template data and the conversation identifier of the target conversation to a server so that the server sends a first file receiving notice to the second terminal, wherein the first file receiving notice comprises the file identifier of the first file and the conversation identifier of the target conversation.
Optionally, the processor 1510 is further configured to:
if the target template data corresponding to the first file is not found, sending a template data acquisition request to the server;
and receiving target template data returned by the server based on the template data acquisition request.
Optionally, the processor 1510 is further configured to:
displaying the target template data in a file display window;
receiving the content data added to the target template data displayed within the file display window.
When the terminal 1500 is a second terminal, the processor 1510 is configured to:
if a first file receiving notification sent by a server is received, displaying a file identifier of the first file in the target conversation, wherein the first file receiving notification comprises the file identifier of the first file and a conversation identifier of the target conversation;
acquiring content data of the first file according to the first file;
searching template data corresponding to the first file in a template database according to the file identifier of the first file;
adding the content data of the first file to the template data to form an integrated first file;
and displaying the integrated first file.
Optionally, the processor 1510 is further configured to:
after the step of displaying the integrated first file, the method further comprises:
if receiving the modification operation acting on the content data, modifying the content data and storing the modified content data;
and if receiving a modified file sending instruction aiming at the integrated first file, sending the file identifier of the first file, the modified content data and the conversation identifier of the target conversation to the server so as to enable the server to send a first file updating notice to the first terminal, wherein the first file updating notice comprises the file identifier of the first file and the conversation identifier of the target conversation.
Optionally, the processor 1510 is further configured to:
if a file receiving request of a file identifier acting on the first file is received, sending a content data acquisition request to the server;
and receiving the content data of the first file returned by the server based on the content data acquisition request.
Optionally, the processor 1510 is further configured to:
if the target template data corresponding to the first file is not found, sending a template data acquisition request to the server;
and receiving target template data returned by the server based on the template data acquisition request.
The terminal provided by the present invention may execute the steps executed by the corresponding terminal in the above method embodiments, which are not described again.
It should be understood that, in the embodiment of the present invention, the rf unit 1501 may be configured to receive and transmit signals during a message transmission or a call, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 1510; in addition, the uplink data is transmitted to the base station. In general, the radio frequency unit 1501 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. Further, the radio frequency unit 1501 may also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 1502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 1503 may convert audio data received by the radio frequency unit 1501 or the network module 1502 or stored in the memory 1509 into an audio signal and output as sound. Also, the audio output unit 1503 may also provide audio output related to a specific function performed by the terminal 1500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1504 is used to receive audio or video signals. The input Unit 1504 may include a Graphics Processing Unit (GPU) 15041 and a microphone 15042, and the Graphics processor 15041 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 processed on a file processing unit 1506. The image frames processed by the graphic processor 15041 may be stored in the memory 1509 (or other storage medium) or transmitted via the radio frequency unit 1501 or the network module 1502. The microphone 15042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a communication base station via the radio frequency unit 1501 in the case of the phone call mode.
Terminal 1500 also includes at least one sensor 1505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the document processing panel 15061 according to the brightness of ambient light, and a proximity sensor that turns off the document processing panel 15061 and/or a backlight when the terminal 1500 reaches the ear. As one of the motion sensors, the 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 terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; sensors 1505 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 file processing unit 1506 is used for file processing of information input by the user or information provided to the user. The document processing unit 1506 may include a document processing panel 15061, and the document processing panel 15061 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 1507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 1507 includes a touch panel 15071 and other input devices 15072. The touch panel 15071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 15071 (e.g., operations by a user on or near the touch panel 15071 using a finger, a stylus, or any suitable object or accessory). The touch panel 15071 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, and sends the touch point coordinates to the processor 1510 to receive and execute commands sent by the processor 1510. In addition, the touch panel 15071 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 15071, the user input unit 1507 may include other input devices 15072. In particular, other input devices 15072 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 15071 may be overlaid on the document processing panel 15061, and when the touch panel 15071 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 1510 to determine the type of the touch event, and then the processor 1510 provides a corresponding visual output on the document processing panel 15061 according to the type of the touch event. Although in fig. 15, the touch panel 15071 and the file processing panel 15061 are two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 15071 and the file processing panel 15061 may be integrated to implement the input and output functions of the terminal, and is not limited herein.
An interface unit 1508 is an interface for connecting an external device to the terminal 1500. 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 1508 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 1500 or may be used to transmit data between the terminal 1500 and an external device.
The memory 1509 may be used to store software programs as well as various data. The memory 1509 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, 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 1509 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 1510 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 1509 and calling data stored in the memory 1509, thereby monitoring the entire terminal. Processor 1510 may include one or more processing units; preferably, the processor 1510 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 the processor 1510.
The terminal 1500 may also include a power supply 1511 (such as a battery) for powering the various components, and preferably, the power supply 1511 is logically coupled to the processor 1510 via a power management system that provides functionality for managing charging, discharging, and power consumption.
In addition, the terminal 1500 includes some functional modules that are not shown, and are not described in detail herein.
Referring to fig. 16, fig. 16 is a block diagram of a server according to an embodiment of the present invention, and as shown in fig. 16, a server 1600 includes: a transceiver 1601, a bus interface and processor 1602, wherein:
the transceiver 1601 is used for receiving a file identifier of a first file, content data of the first file and a conversation identifier of a target conversation, which are sent by a first terminal;
a processor 1602, configured to generate a first file receiving notification, where the first file receiving notification includes a file identifier of the first file and a session identifier of the target session;
the transceiver 1601 is further configured to: and sending a first file receiving notice to a second terminal so that the second terminal receives the first file receiving notice and displays the file identification of the first file in the target conversation.
Optionally, the transceiver 1601 is further configured to:
receiving a file identifier of a first file, modified content data and a conversation identifier of the target conversation, which are sent by the second terminal;
and sending a first file updating notification to the first terminal so that the first terminal receives the first file updating notification and displays a file identifier of the first file in the target conversation, wherein the first file updating notification comprises the file identifier of the first file and the conversation identifier of the target conversation.
Optionally, the transceiver 1601 is further configured to: receiving a template data acquisition request sent by the first terminal;
and sending the target template data corresponding to the template data acquisition request to the first terminal.
Optionally, the transceiver 1601 is further configured to: receiving a template data acquisition request sent by a second terminal;
and sending the target template data corresponding to the template data acquisition request to the second terminal.
In this embodiment of the present invention, the server 1600 further includes: a memory 1603. In FIG. 16, the bus architecture may include any number of interconnected buses and bridges with various circuits linking one or more processors, represented by processor 1602, and memory, represented by memory 1603. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 1601 may be a number of elements including a transmitter and a receiver providing a means for communicating with various other apparatus over a transmission medium. The processor 1602 is responsible for managing the bus architecture and general processing, and the memory 1603 may store data used by the processor 1602 in performing operations.
The server 1600 provided in the embodiment of the present invention may perform an interactive operation of the file identifier of the first file, the session identifier of the target session, the content data of the first file, and the like between the first terminal and the second terminal. The embodiment of the present invention may execute the steps that the server in the above method embodiments may execute, and details are not described again.
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 the computer program is executed by a processor, the computer program implements each process of the file processing method embodiment, 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.
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.

Claims (23)

1. A file processing method is applied to a first terminal, and the method comprises the following steps:
receiving a file creating request acting on a target conversation, wherein the file creating request comprises a file identifier of a first file requested to be created;
searching target template data corresponding to the first file in a template database according to the file identifier of the first file, wherein at least one template data is stored in the template database in advance;
receiving content data added to the target template data;
if a file creating and sending instruction is received, sending a file identifier of the first file, content data added to the target template data and a conversation identifier of the target conversation to a server so that the server sends a first file receiving notification to a second terminal, wherein the first file receiving notification comprises the file identifier of the first file and the conversation identifier of the target conversation, and the first file receiving notification is used for notifying the second terminal to acquire the content data of the first file according to the file identifier of the first file, searching template data corresponding to the first file in a template database, and adding the content data of the first file to the template data to form an integrated first file;
after the step of sending the file identifier of the first file, the content data added to the target template data, and the session identifier of the target session to a server, the method further includes:
and if a first file updating notice is received, displaying the updating prompt information of the first file, wherein the first file updating notice is used for informing the first terminal that the first file to be received after updating exists.
2. The method of claim 1, wherein after the step of searching the template database for the target template data corresponding to the first file, the method further comprises:
if the target template data corresponding to the first file is not found, sending a template data acquisition request to the server;
and receiving target template data returned by the server based on the template data acquisition request.
3. The method of claim 1, wherein the step of receiving content data added to the target template data is preceded by the method further comprising:
displaying the target template data in a file display window;
the step of receiving the content data added to the target template data includes:
receiving content data added to the target template data displayed within the file display window.
4. A file processing method is applied to a second terminal, and comprises the following steps:
if a first file receiving notification sent by a server is received, displaying a file identifier of a first file in a target conversation, wherein the first file receiving notification comprises the file identifier of the first file and a conversation identifier of the target conversation;
acquiring content data of the first file according to the file identifier of the first file;
searching template data corresponding to the first file in a template database according to the file identifier of the first file;
adding the content data of the first file to the template data to form an integrated first file;
displaying the integrated first file;
after the step of displaying the integrated first file, the method further comprises:
if receiving the modification operation acting on the content data, modifying the content data and storing the modified content data;
and if receiving a modified file sending instruction aiming at the integrated first file, sending the file identifier of the first file, the modified content data and the conversation identifier of the target conversation to the server so as to enable the server to send a first file updating notice to a first terminal, wherein the first file updating notice comprises the file identifier of the first file and the conversation identifier of the target conversation.
5. The method according to claim 4, wherein the step of obtaining the content data of the first file according to the file identifier of the first file comprises:
if a file receiving request of a file identifier acting on the first file is received, sending a content data acquisition request to the server;
and receiving the content data of the first file returned by the server based on the content data acquisition request.
6. The method according to claim 4, wherein after the step of searching the template database for the target template data corresponding to the first file according to the file identifier of the first file, the method further comprises:
if the target template data corresponding to the first file is not found, sending a template data acquisition request to the server;
and receiving target template data returned by the server based on the template data acquisition request.
7. A file processing method is applied to a server, and the method comprises the following steps:
receiving a file identifier of a first file, content data of the first file and a conversation identifier of a target conversation, which are sent by a first terminal;
sending a first file receiving notification to a second terminal so that the second terminal receives the first file receiving notification and displays a file identifier of a first file in a target conversation, wherein the first file receiving notification comprises the file identifier of the first file and the conversation identifier of the target conversation;
wherein after the step of sending the first file reception notification to the second terminal, the method further comprises:
receiving a file identifier of a first file, modified content data and a conversation identifier of the target conversation, which are sent by the second terminal;
and sending a first file updating notification to the first terminal so that the first terminal receives the first file updating notification and displays a file identifier of the first file in the target conversation, wherein the first file updating notification comprises the file identifier of the first file and the conversation identifier of the target conversation.
8. The file processing method according to claim 7, wherein after the step of sending the first file reception notification to the second terminal, the method further comprises:
receiving a content data acquisition request sent by the second terminal;
and sending the content data of the first file to the second terminal.
9. The method of claim 7, wherein the step of receiving the file identifier of the first file, the content data of the first file and the session identifier of the target session sent by the first terminal is preceded by the step of:
receiving a template data acquisition request sent by the first terminal;
and sending the target template data corresponding to the template data acquisition request to the first terminal.
10. The method of claim 7, wherein after the step of sending the first file reception notification to the second terminal, the method further comprises:
receiving a template data acquisition request sent by a second terminal;
and sending the target template data corresponding to the template data acquisition request to the second terminal.
11. A terminal, comprising:
the device comprises a request receiving module, a file creating module and a processing module, wherein the request receiving module is used for receiving a file creating request acting on a target conversation, and the file creating request comprises a file identifier of a first file requested to be created;
the first searching module is used for searching target template data corresponding to the first file in a template database according to the file identifier of the first file, wherein at least one template data is stored in the template database in advance;
a content data receiving module for receiving content data added to the target template data;
a first sending module, configured to send, if a file creation sending instruction is received, a file identifier of the first file, content data added to the target template data, and a session identifier of the target session to a server, so that the server sends a first file receiving notification to a second terminal, where the first file receiving notification includes the file identifier of the first file and the session identifier of the target session, and the first file receiving notification is used to notify the second terminal to obtain the content data of the first file according to the file identifier of the first file, search for template data corresponding to the first file in a template database, add the content data of the first file to the template data, and form an integrated first file;
the terminal is further configured to:
and if a first file updating notice is received, displaying the updating prompt information of the first file, wherein the first file updating notice is used for informing the terminal that the updated first file to be received exists.
12. The terminal of claim 11, wherein the terminal further comprises:
the first template data request module is used for sending a template data acquisition request to the server if the target template data corresponding to the first file is not found;
and the first template data receiving module is used for receiving the target template data returned by the server based on the template data acquisition request.
13. The terminal of claim 11, further comprising a first display module configured to:
displaying the target template data in a file display window;
the content data receiving module is used for:
receiving the content data added to the target template data displayed within the file display window.
14. A terminal, comprising:
the second display module is used for displaying the file identifier of the first file in the target conversation if receiving a first file receiving notice sent by the server, wherein the first file receiving notice comprises the file identifier of the first file and the conversation identifier of the target conversation;
the content data acquisition module is used for acquiring the content data of the first file according to the file identifier of the first file;
the second searching module is used for searching template data corresponding to the first file in a template database according to the file identifier of the first file;
the data integration module is used for adding the content data of the first file to the template data to form an integrated first file;
the display module is further configured to:
displaying the integrated first file;
the terminal further comprises:
a modification storage module, configured to modify the content data and store the modified content data if a modification operation acting on the content data is received after the integrated first file is displayed;
and the second sending module is used for sending the file identifier of the first file, the modified content data and the conversation identifier of the target conversation to the server if a modified file sending request aiming at the integrated first file is received, so that the server sends the first file updating notification to the first terminal, wherein the first file updating notification comprises the file identifier of the first file and the conversation identifier of the target conversation.
15. The terminal of claim 14, wherein the content data acquisition module is configured to:
if a file receiving request of a file identifier acting on the first file is received, sending a content data acquisition request to the server;
and receiving the content data of the first file returned by the server based on the content data acquisition request.
16. The terminal of claim 14, wherein the terminal further comprises:
the second template data request module is used for sending a template data acquisition request to the server if the target template data corresponding to the first file is not found;
and the second template data receiving module is used for receiving the target template data returned by the server based on the template data acquisition request.
17. A server, comprising:
a third receiving module, configured to receive a file identifier of a first file of a first terminal, content data of the first file, and a session identifier of a target session;
a third sending module, configured to send a first file receiving notification to a second terminal, so that the second terminal receives the first file receiving notification and displays a file identifier of a first file in a target session, where the first file receiving notification includes the file identifier of the first file and a session identifier of the target session;
wherein the third receiving module is further configured to:
receiving a file identifier of a first file, modified content data and a conversation identifier of the target conversation, which are sent by the second terminal;
the third sending module is further configured to:
and receiving the file identifier of the first file, the modified content data and the conversation identifier of the target conversation, which are sent by the second terminal.
18. The server according to claim 17, wherein the third receiving module is further configured to:
receiving a content data acquisition request sent by the second terminal;
the third sending module is further configured to:
and sending the content data of the first file to the second terminal.
19. The server according to claim 17, wherein the third receiving module is further configured to:
receiving a template data acquisition request sent by the first terminal;
the third sending module is further configured to:
and sending the target template data corresponding to the template data acquisition request to the first terminal.
20. The server according to claim 17, wherein the third receiving module is further configured to:
receiving a template data acquisition request sent by a second terminal;
the third sending module is further configured to:
and sending the target template data corresponding to the template data acquisition request to the second terminal.
21. A terminal, characterized by comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the file processing method according to any one of claims 1 to 3 when executing the computer program.
22. A terminal, characterized in that it comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the file processing method according to any one of claims 4 to 6 when executing the computer program.
23. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the file processing method according to any one of claims 7 to 10 when executing the computer program.
CN201810995649.XA 2018-08-29 2018-08-29 File processing method, terminal and server Active CN109165197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810995649.XA CN109165197B (en) 2018-08-29 2018-08-29 File processing method, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810995649.XA CN109165197B (en) 2018-08-29 2018-08-29 File processing method, terminal and server

Publications (2)

Publication Number Publication Date
CN109165197A CN109165197A (en) 2019-01-08
CN109165197B true CN109165197B (en) 2021-07-27

Family

ID=64893114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810995649.XA Active CN109165197B (en) 2018-08-29 2018-08-29 File processing method, terminal and server

Country Status (1)

Country Link
CN (1) CN109165197B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110765094B (en) * 2019-10-24 2020-08-11 重庆紫光华山智安科技有限公司 File creation method, device, system and storage medium
CN111857810A (en) * 2020-07-30 2020-10-30 上海妙一生物科技有限公司 Front-end development file creating method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090759A (en) * 2014-06-26 2014-10-08 湖北安标信息技术有限公司 Template file based data filling method
WO2017151456A1 (en) * 2016-03-04 2017-09-08 Microsoft Technology Licensing, Llc Managing messages between users for collaborative editing of electronic documents
CN107579911A (en) * 2017-10-18 2018-01-12 韩家佳 Instant communicating method, communication terminal and computer-readable medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4756870B2 (en) * 2005-02-03 2011-08-24 キヤノン株式会社 Document processing apparatus, document processing method, and program
CN102404250B (en) * 2011-12-13 2015-05-27 华为技术有限公司 Method, device and system for transmitting files to users of instant message system
CN103838763A (en) * 2012-11-26 2014-06-04 鸿富锦精密工业(深圳)有限公司 Object file generation system and method
KR102292086B1 (en) * 2014-03-12 2021-08-19 에스케이플래닛 주식회사 Messenger service system, method and apparatus for displaying information during voice call waiting in the system
CN106155470B (en) * 2015-04-21 2019-09-17 阿里巴巴集团控股有限公司 A kind of audio file generation method and device
CN105224516A (en) * 2015-09-28 2016-01-06 北京橙鑫数据科技有限公司 Graph text information generation method and device
CN105871706A (en) * 2016-06-13 2016-08-17 珠海佳米科技有限公司 File transmission method and file transmission system
CN107809447B (en) * 2016-09-08 2022-05-31 腾讯科技(深圳)有限公司 File transmission processing method and related equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090759A (en) * 2014-06-26 2014-10-08 湖北安标信息技术有限公司 Template file based data filling method
WO2017151456A1 (en) * 2016-03-04 2017-09-08 Microsoft Technology Licensing, Llc Managing messages between users for collaborative editing of electronic documents
CN107579911A (en) * 2017-10-18 2018-01-12 韩家佳 Instant communicating method, communication terminal and computer-readable medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Java操作Word模板实现动态数据输出";刘永立、周莉;《电脑编程技巧与维护》;20100603(第11期);第46-51页 *

Also Published As

Publication number Publication date
CN109165197A (en) 2019-01-08

Similar Documents

Publication Publication Date Title
CN111049979B (en) Application sharing method, electronic equipment and computer readable storage medium
CN108234289B (en) Message display method and device and mobile terminal
CN108924037B (en) Display method of rich media communication RCS message and mobile terminal
CN108540655B (en) Caller identification processing method and mobile terminal
CN107038245B (en) Page switching method, mobile terminal and storage medium
CN110166439B (en) Equipment sharing method, terminal, router and server
CN110971423B (en) Group creation method and electronic device
CN111130817B (en) Group creation method, electronic device and server
CN111309218A (en) Information display method and device and electronic equipment
CN107391768B (en) Webpage data processing method, device and equipment and computer readable storage medium
CN111143005A (en) Application sharing method, electronic equipment and computer readable storage medium
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN107908765B (en) Game resource processing method, mobile terminal and server
CN109189303B (en) Text editing method and mobile terminal
CN111049980A (en) Application sharing method, electronic equipment and computer readable storage medium
CN106293738B (en) Expression image updating method and device
CN110719319B (en) Resource sharing method, device, terminal equipment and storage medium
US20220318076A1 (en) Application sharing method, first electronic device, and computer-readable storage medium
CN111124706A (en) Application program sharing method and electronic equipment
CN109165197B (en) File processing method, terminal and server
CN111367444A (en) Application function execution method and device, electronic equipment and storage medium
CN111061446A (en) Display method and electronic equipment
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN111142759B (en) Information sending method and electronic equipment
CN110012156B (en) Information display method, mobile terminal and non-transitory computer readable storage medium

Legal Events

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