[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112307015B - Data updating method and related device - Google Patents

Data updating method and related device Download PDF

Info

Publication number
CN112307015B
CN112307015B CN201910703637.XA CN201910703637A CN112307015B CN 112307015 B CN112307015 B CN 112307015B CN 201910703637 A CN201910703637 A CN 201910703637A CN 112307015 B CN112307015 B CN 112307015B
Authority
CN
China
Prior art keywords
terminal
data table
terminals
server
information
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
CN201910703637.XA
Other languages
Chinese (zh)
Other versions
CN112307015A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910703637.XA priority Critical patent/CN112307015B/en
Publication of CN112307015A publication Critical patent/CN112307015A/en
Application granted granted Critical
Publication of CN112307015B publication Critical patent/CN112307015B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a data updating method and a related device, which are characterized in that by acquiring revision information in terminal equipment and selecting a proper data table according to authority information of the terminal equipment, the revision information can be smoothly displayed in the terminal equipment, and the corresponding data table in a server or a terminal is maintained, so that the flexibility and the stability of data updating in the terminal equipment are improved, and the user experience is improved.

Description

Data updating method and related device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method for updating data and a related device.
Background
With the popularization of the internet and the development of instant messaging technology, more and more communication software is presented in people's life, for example: weChat, etc., are often added to various populations by various means in order to widen the traffic.
Generally, each group has a self name, and people can recognize and perform corresponding operations according to the group name.
However, some groups are complex in name and difficult to distinguish, and the category of the group cannot be known rapidly under the condition of more groups, so that the user is inconvenient to find conveniently, and the user experience is affected.
Disclosure of Invention
In view of this, a first aspect of the present application provides a method for updating data, specifically including: the method comprises the steps that a server receives first identification information sent by a first terminal, wherein the first identification information is used for indicating revision information of the first terminal and a communication group where the first terminal is located, the communication group comprises a plurality of terminals, the plurality of terminals share a first data table, and the first data table is used for indicating display contents of the plurality of terminals; the server determines authority information of the first terminal, wherein the authority information is used for indicating whether the first terminal has authority for modifying a first data table or not; and if the first terminal does not have the authority to update the first data table, the server records the first identification information in a second data table, wherein the second data table is used for indicating the display content of the first terminal.
Preferably, in some possible implementations of the present application, the method further includes: if the first terminal does not have the authority to update the first data table, the server sends the response information without the authority to the first terminal, so that the first terminal updates the locally stored second data table according to the response information without the authority, and the locally stored second data table is used for indicating the display content revised by the first terminal according to the revision information.
Preferably, in some possible implementations of the present application, the communication group further includes a second terminal, where the second terminal has authority to update the first data table, and if the first terminal does not have authority to update the first data table, after the server records the first identification information in the second data table, the method further includes: the server receives second identification information sent by a second terminal; the server updates the first data table according to the second identification information, the updated first data table is used for indicating display contents of terminals except the first terminal, the terminals except the first terminal are terminals which do not contain revision information in the communication group, the communication group is based on preset rule interaction data, and the preset rule comprises that if the terminals in the communication group send the revision information to the server, the second data table is selected to indicate the display contents.
Preferably, in some possible implementations of the present application, the updating, by the server, the first data table according to the second identification information includes: the server waits for a preset time length, wherein the preset time length is set based on the time delay between the second terminal and the server; and if the waiting time reaches the preset duration, the server updates the first data table according to the second identification information.
Preferably, in some possible implementations of the present application, the server receives first identification information sent by the first terminal, including: the server traversing a plurality of terminals in the communication group; and if the plurality of terminals comprise the first terminal, the server receives the first identification information sent by the first terminal.
A second aspect of the present application provides another method of data update, comprising: the first terminal acquires revision information; the first terminal generates first identification information according to the revision information, and sends the first identification information to a server, wherein the first identification information is used for indicating a communication group where the first terminal is located, the communication group comprises a plurality of terminals, the plurality of terminals share a first data table, and the first data table is used for indicating display contents of the plurality of terminals; the first terminal receives a second data table sent by the server, wherein the second data table is used for indicating display content of the first terminal.
Preferably, in some possible implementations of the present application, after the first terminal receives the second data table sent by the server, the method further includes: the first terminal receives the authority information sent by the server; and the first terminal sends the revision information to the second terminal according to the permission information so that the second terminal updates the first data table.
A third aspect of the present application provides another server, comprising:
the terminal comprises a receiving unit, a first data table and a second data table, wherein the receiving unit is used for receiving first identification information sent by a first terminal, the first identification information is used for indicating revision information of the first terminal and a communication group where the first terminal is located, the communication group comprises a plurality of terminals, the plurality of terminals share the first data table, and the first data table is used for indicating display contents of the plurality of terminals;
a determining unit, configured to determine rights information of the first terminal, where the rights information is used to indicate whether the first terminal has a right to modify a first data table;
and the recording unit is used for recording the first identification information in a second data table if the first terminal does not have the authority to update the first data table, wherein the second data table is used for indicating the display content of the first terminal.
Preferably, in some possible implementations of the present application, the recording unit is further configured to send, if the first terminal does not have permission to update the first data table, no permission response information to the first terminal, so that the first terminal updates a locally stored second data table according to the no permission response information, where the locally stored second data table is used to indicate display content revised by the first terminal according to the revision information.
Preferably, in some possible implementations of the present application, the communication group further includes a second terminal, the second terminal having the authority to update the first data table, if the first terminal does not have the authority to update the first data table,
the receiving unit is further used for receiving second identification information sent by the second terminal;
the recording unit is further configured to update the first data table according to the second identification information, where the updated first data table is used to indicate display content of terminals other than the first terminal, the terminals other than the first terminal are terminals that do not include revision information in the communication group, the communication group interacts data based on a preset rule, and the preset rule includes that if the terminals in the communication group send the revision information to the server, a second data table is selected to indicate display content.
Preferably, in some possible implementations of the application,
the recording unit is specifically configured to wait for a preset duration, where the preset duration is set based on a time delay between the second terminal and the server;
the recording unit is specifically configured to update the first data table according to the second identification information if the waiting time reaches the preset duration.
Preferably, in some possible implementations of the application,
the receiving unit is specifically configured to traverse the plurality of terminals in the communication group by using the server;
the receiving unit is specifically configured to, if the plurality of terminals includes a first terminal, receive, by the server, first identification information sent by the first terminal.
A fourth aspect of the present application provides another terminal device, including:
an acquisition unit configured to acquire revision information;
a sending unit, configured to generate first identification information according to the revision information, and send the first identification information to a server, where the first identification information is used to indicate a communication group where the first terminal is located, the communication group includes a plurality of terminals, the plurality of terminals share a first data table, and the first data table is used to indicate display contents of the plurality of terminals;
and the receiving unit is used for receiving a second data table sent by the server, wherein the second data table is used for indicating the display content of the first terminal.
Preferably, in some possible implementations of the application,
the receiving unit is further used for receiving the authority information sent by the server;
the sending unit is further configured to send the revision information to the second terminal according to the permission information, so that the second terminal updates the first data table.
A fifth aspect of the present application provides a computer apparatus comprising: a memory, a processor, and a bus system; the memory is used for storing program codes; the processor is configured to perform the method of the first aspect or any one of the first aspects described above according to instructions in the program code.
A sixth aspect of the application provides a computer device comprising: a memory, a processor, and a bus system; the memory is used for storing program codes; the processor is configured to perform the method of the second aspect or any of the data updates described in the second aspect according to instructions in the program code.
A seventh aspect of the application provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of any of the first aspects or the first aspects described above.
An eighth aspect of the application provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of the second aspect or any of the second aspects described above.
From the above technical solutions, the embodiment of the present application has the following advantages:
by acquiring the revision information in the terminal equipment and selecting a proper data table according to the authority information of the terminal equipment, the revision information can be smoothly displayed in the terminal equipment, and the corresponding data table in the server is maintained, so that the flexibility and stability of data updating in the terminal equipment are improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a diagram of a network architecture to which embodiments of the present application are applied;
FIG. 2 is a flowchart of a method for updating data according to an embodiment of the present application;
FIG. 3 is an interface display diagram of an application scenario provided by an embodiment of the present application;
FIG. 4 is a flow chart of another method for updating data provided by an embodiment of the present application;
FIG. 5 is a flow chart of another method for updating data provided by an embodiment of the present application;
FIG. 6 is an interface display diagram of another application scenario provided by an embodiment of the present application;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another server according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a data updating method and a related device, which can be applied to various network communication scenes, and particularly, by acquiring the revision information in the terminal equipment and selecting a proper data table according to the authority information of the terminal equipment, the revision information can be smoothly displayed in the terminal equipment, and the corresponding data table in a server is maintained, so that the flexibility and the stability of the data updating in the terminal equipment are improved, and the user experience is improved.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented, for example, in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "includes" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that the data updating method provided by the present application may be applied to a network framework that may be applied to interaction between a server and a terminal, specifically, as shown in fig. 1, a network architecture diagram that is applied to an embodiment of the present application, as shown in the figure, the server may acquire relevant data through a plurality of terminals, analyze and process the data according to authority information of the relevant terminals, and update a corresponding data table, and it may be understood that three terminals are shown in fig. 1, and that in an actual scenario, more or fewer terminal devices may participate in an experimental test, where a specific number is determined according to the actual scenario, and the specific number is not limited herein; in addition, one server is shown in fig. 1, but in an actual scenario, there may also be multiple servers involved, and in particular in a scenario of multi-application data interaction, the specific number of servers depends on the actual scenario.
It should be understood that the technical solution of the embodiment of the present application may be applied to various communication systems, for example: global system for mobile communications (Global System ofMobile communication, GSM), code Division multiple access (Code Division MultipleAccess, CDMA), wideband Code Division multiple access (Wideband Code Division MultipleAccess, WCDMA), general packet radio service (General Packet Radio Service, GPRS), long term evolution (Long Term Evolution, LTE), LTE frequency Division duplex (Frequency Division Duplex, FDD), LTE time Division duplex (Time Division Duplex, TDD), universal mobile telecommunications system (Universal Mobile Telecommunication System, UMTS), or global internet microwave access (Worldwide Interoperability forMicrowaveAccess, WIMAX) communication systems, and the like.
It should be appreciated that in embodiments of the present invention, the Terminal includes, but is not limited to, a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (Mobile Terminal), a Mobile phone (handset), a handset (handset), and a portable device (portable Equipment), and the User Equipment may communicate with one or more core networks via a radio access network (RadioAccess Network, RAN), for example, the User Equipment may be a Mobile phone (or "cellular" phone), a computer with wireless communication capability, and the like, and the User Equipment may also be a portable, pocket, hand-held, computer-built-in, or vehicle-mounted Mobile device.
With the popularization of the internet and the development of instant messaging technology, more and more communication software is presented in people's life, for example: weChat, etc., are often added to various populations by various means in order to widen the traffic. Generally, each group has a self name, and people can recognize and perform corresponding operations according to the group name.
However, some groups are complex in name and difficult to distinguish, and the category of the group cannot be known rapidly under the condition of more groups, so that the user is inconvenient to find conveniently, and the user experience is affected.
In order to solve the above-mentioned problems, a method for updating data in the present application will be described with reference to the above-mentioned network architecture, referring to fig. 2, fig. 2 is a flowchart of a method for updating data provided in an embodiment of the present application, and the embodiment of the present application at least includes the following steps:
201. the first terminal acquires revision information;
in this embodiment, the first terminal and the plurality of terminals are in the same communication group, where the revision information may be data generated by the first terminal according to a requirement of the first terminal or input corresponding to a user, and specifically, the revision information may include: and information associated with each terminal in the communication group, such as modification of the name of the communication group, modification of user information in the communication group, or change of user personnel in the communication group.
202. The first terminal generates first identification information;
in this embodiment, the first identification information includes at least two parts of revision information and indication information of the first terminal, where the indication information in the first identification information includes an account number registered by the first terminal in the server, information of a communication group where the first terminal is located, or IP addresses of other first terminals, and the like.
In one possible scenario, the first identification information may take the form of #group_name_set, that is, reflect the communication group in which the first terminal is located, the naming of the communication group by the first terminal, and related operation information performed by the first terminal.
It should be understood that the above information format is used to indicate a possible expression, and the specific manner and content depend on the actual scenario, which is not limited herein.
203. The first terminal sends first identification information to a server;
in this embodiment, the first terminal may send the first identification information to the server through a wireless network, may send the first identification information through a wired network, and may also forward the first identification information to the server through a third party platform, where the specific sending manner is determined according to an actual scenario, and is not limited herein.
204. The method comprises the steps that a server receives first identification information sent by a first terminal;
in this embodiment, before the server receives the first identification information sent by the first terminal, the server may wait for a preset period of time, that is, the first terminal may possibly cancel or make other modifications after sending the first identification information, where the server may wait for the preset period of time after receiving the first identification information, if the cancellation or modification information sent by the first terminal is not received, continue the following steps, and if the cancellation or modification information sent by the first terminal is received, terminate the current process, and wait for the retransmission of the information related to the first terminal.
It can be understood that the setting of the preset duration may be based on a setting of a related person, or may be based on a setting of a current network environment, for example, the length of the preset duration is adjusted according to a time delay of a network, and if the time delay is larger, the preset duration may be increased appropriately.
205. The server determines authority information of the first terminal;
in this embodiment, the permission information may be locally stored by the server, or may be obtained according to the first identification information sent by the first terminal; in a general scenario, the server stores the authority information of each member in the communication group, but if the first identification information sent by the first terminal just touches the information of the authority change, and the corresponding storage is not performed in the server at this time, the authority information acquired in the first identification information needs to be used as the reference, and the specific mode depends on the actual scenario and is not limited herein.
It may be understood that the permission information may include whether the first terminal has permission to modify the first data table, where the first data table is shared data of the communication group, that is, in display data of each terminal, data of some modules are the same, and if data in the first data table is modified, relevant data of all terminals in the corresponding communication group will be changed accordingly.
206. The server judges whether the first terminal has authority to update the first data table;
in this embodiment, if the authority information in the server is taken as a judgment standard, a form of judging the relevant character may be adopted, for example: the user with the modification authority is marked as 1, and the user without the modification authority is marked as 0, and at the moment, whether the related terminal has the modification authority can be determined by identifying the numerical value of the corresponding position.
207. The server records the first identification information in a second data table;
if the first terminal does not have the modification permission, the first identification information is recorded in a second data table, wherein the second data table can be a backup of the first data table, but provides display of data related to the first terminal. In one possible scenario, the server processes the first identification information as #server_group_name_set, and then writes and maintains a second data table.
208. The server sends a second data table to the first terminal;
in this embodiment, the server may send the second data table to the first terminal through the wireless network, or may send the second data table through the wired network, or may forward the second data table to the server through the third party platform, where the specific sending manner is determined according to the actual scenario, and is not limited herein.
209. And the first terminal displays the corresponding content of the second data table.
In this embodiment, the first terminal extracts the revision corresponding to the first identification information according to the related content of the second data table, and displays the revision through a corresponding module, for example, the first terminal extracts #show_group_name, and executes the instruction for displaying.
By combining the above embodiments, by acquiring the revision information in the terminal device and selecting an appropriate data table according to the authority information of the terminal device, the revision information can be smoothly displayed in the terminal device, and the corresponding data table in the server is maintained, so that the flexibility and stability of data update in the terminal device are improved, and the user experience is improved.
The embodiment is described below in connection with a specific scenario, as shown in fig. 3, which is an interface display diagram of an application scenario provided by the embodiment of the present application, where a group chat interface of a user 1 is displayed on the left side of the diagram, a visible group name is "7.26 book group", clicking on the group name can find that an original group name (A1) and a group name (A2) and related group members do not have permission to modify the group name, and by using the method in the embodiment, revision information is sent to a server and a corresponding data table is determined according to the permission information, so that the display name of the terminal can be freely modified, that is, the group name of the terminal of the user 1 is still "7.26 book group", and the user 1 can modify the group name of the terminal of the user 1 into "7.26 book group" according to own needs, without affecting the data expression of other users, thereby improving user experience.
It can be understood that, the terminal will generally set a spare data table locally, so as to display related content when communication with the server cannot occur, and the locally stored data table can also be applied in the present application in combination with the above embodiment; next, the scenario is described with reference to the accompanying drawings, as shown in fig. 4, fig. 4 is a flowchart of another method for updating data according to an embodiment of the present application, where the embodiment of the present application at least includes the following steps:
401. the first terminal acquires revision information;
402. the first terminal generates first identification information;
403. the first terminal sends first identification information to a server;
404. the method comprises the steps that a server receives first identification information sent by a first terminal;
405. the server determines authority information of the first terminal;
in this embodiment, steps 401-405 are similar to steps 301-305 in fig. 3, and will not be described here.
406. The server sends permission response information to the first terminal;
in this embodiment, the permission response information sent by the server to the first terminal may be non-permission response information or permission response information.
407. The first terminal updates the locally stored second data table according to the revision information.
In this embodiment, if the first terminal receives the unauthorized response information, the locally stored second data table is updated according to the revision information, where the locally stored second data table is used to indicate the indication content of the first terminal related module, and at this time, the correspondence between the module and the first data table in the first server is updated to the correspondence between the module and the locally stored second data table, that is, the locally stored second data table is used to indicate the display content of the related module.
It can be understood that after the correspondence between the display content and the locally stored second data table is generated, the first data table shared by the server in the communication group may still be received, and in one possible scenario, the first terminal may also select to switch to the content indication display content of the first data table.
By combining the above embodiments, the second data table stored locally is updated according to the permission response information, so that flexible configuration of the first terminal content can be realized, shared information can still be received, the selectivity of the first terminal content is improved, and the user experience is improved.
In one possible scenario, the revision information of the first terminal may also be shared with other members of the communication group; next, the scenario is described with reference to the accompanying drawings, as shown in fig. 5, fig. 5 is a flowchart of another method for updating data according to an embodiment of the present application, where the embodiment of the present application at least includes the following steps:
501. The first terminal acquires revision information;
in this embodiment, the first terminal and the plurality of terminals are in the same communication group, where the revision information may be data generated by the first terminal according to a requirement of the first terminal or input corresponding to a user, and specifically, the revision information may include: and information associated with each terminal in the communication group, such as modification of the name of the communication group, modification of user information in the communication group, or change of user personnel in the communication group.
502. The first terminal generates first identification information;
in this embodiment, the first identification information includes at least two parts of revision information and indication information of the first terminal, where the indication information in the first identification information includes an account number registered by the first terminal in the server, information of a communication group where the first terminal is located, or IP addresses of other first terminals, and the like.
In one possible scenario, the first identification information may take the form of #group_name_set, that is, reflect the communication group in which the first terminal is located, the naming of the communication group by the first terminal, and related operation information performed by the first terminal.
It should be understood that the above information format is used to indicate a possible expression, and the specific manner and content depend on the actual scenario, which is not limited herein.
503. The first terminal sends first identification information to a server;
in this embodiment, the first terminal may send the first identification information to the server through a wireless network, may send the first identification information through a wired network, and may also forward the first identification information to the server through a third party platform, where the specific sending manner is determined according to an actual scenario, and is not limited herein.
504. The method comprises the steps that a server receives first identification information sent by a first terminal;
in this embodiment, before the server receives the first identification information sent by the first terminal, the server may wait for a preset period of time, that is, the first terminal may possibly cancel or make other modifications after sending the first identification information, where the server may wait for the preset period of time after receiving the first identification information, if the cancellation or modification information sent by the first terminal is not received, continue the following steps, and if the cancellation or modification information sent by the first terminal is received, terminate the current process, and wait for the retransmission of the information related to the first terminal.
It can be understood that the setting of the preset duration may be based on a setting of a related person, or may be based on a setting of a current network environment, for example, the length of the preset duration is adjusted according to a time delay of a network, and if the time delay is larger, the preset duration may be increased appropriately.
505. The server determines authority information of the first terminal;
in this embodiment, the permission information may be locally stored by the server, or may be obtained according to the first identification information sent by the first terminal; in a general scenario, the server stores the authority information of each member in the communication group, but if the first identification information sent by the first terminal just touches the information of the authority change, and the corresponding storage is not performed in the server at this time, the authority information acquired in the first identification information needs to be used as the reference, and the specific mode depends on the actual scenario and is not limited herein.
It may be understood that the permission information may include whether the first terminal has permission to modify the first data table, where the first data table is shared data of the communication group, that is, in display data of each terminal, data of some modules are the same, and if data in the first data table is modified, relevant data of all terminals in the corresponding communication group will be changed accordingly.
506. The server sends authority information to a first terminal;
in this embodiment, the server may send the permission information to the first terminal through a wireless network, may send the permission information through a wired network, and may also forward the permission information to the server through a third party platform, where the specific sending manner is determined according to an actual scenario, and is not limited herein.
507. The first terminal analyzes the authority information and determines a second terminal;
in this embodiment, the permission information is used to instruct the first terminal to determine a terminal having a modification permission in the current communication group, that is, the second terminal; it will be appreciated that the first terminal may also determine the remaining terminals in the communication group that do not have the revision authority.
508. The first terminal sends the first identification information to the second terminal;
in this embodiment, the first terminal may send the first identification information to the second terminal having the revision right in order to share the revision information.
Optionally, the second terminal may determine whether the second terminal is in the same communication group with the first terminal according to the first identification information, and if so, execute the following operation.
509. The second terminal generates second identification information;
in this embodiment, the second terminal determines the revision information according to the first identification information, and replaces the portion of the first identification information for indicating the related information of the first terminal with the related indication information of the second terminal, so as to obtain the second identification information.
510. The second terminal sends second identification information to the server;
511. the server updates the first data table;
in this embodiment, since the second terminal has the revision authority, the server may update the first data table according to the second identification information.
Optionally, the server updates the first data table according to the second identification information, which may be that the server deletes the related content in the original first data table and replaces the related content with the content corresponding to the second identification information; or determining the corresponding revision position in the first data table according to the second identification information, and then adjusting the related content in the revision position.
According to the embodiment, through forwarding of the second terminal, the revision information to be shared on the first terminal can be shared, so that user experience is further improved.
In another possible scenario, the user 3 without revision authority subscribes to the name of its own device, and the user 2 with revision authority revises the name at this time, and the specific example is described below, and fig. 6 is a schematic diagram of an interface display of another application scenario provided by an embodiment of the present application. User 2 is a user with revising authority, at this time, the original group name of "small partner" is revised to be "eating group", and both B1 and B2 are shown as "eating group"; at this time, according to the description in the above embodiment, other users without revision authority should display "eating group"; at this time, if the user 3 does not revise, it is displayed as "eating a good group", but the user 3 is displayed as "small partner" set by itself, and the click detail finds that the preset group name C1 has been revised as "eating a good group", but because the user 3 needs to change the name back to "small partner", it can be found through the above embodiment that the terminal with authority can update the shared information of the device without authority, the device without authority can also update the information according to the own needs, and the data update requirement of the device without authority is guaranteed while the data uniformity in the communication group is guaranteed, and the user experience is improved.
In order to better implement the above-described aspects of the embodiments of the present application, the following provides related apparatuses for implementing the above-described aspects. Referring to fig. 7, fig. 7 is a schematic structural diagram of a server according to an embodiment of the present application, and a server 700 includes:
a receiving unit 701, configured to receive first identification information sent by a first terminal, where the first identification information is used to indicate revision information of the first terminal and a communication group where the first terminal is located, where the communication group includes a plurality of terminals, and the plurality of terminals share a first data table, where the first data table is used to indicate display contents of the plurality of terminals;
a determining unit 702, configured to determine rights information of the first terminal, where the rights information is used to indicate whether the first terminal has a right to modify a first data table;
a recording unit 703, configured to record the first identification information in a second data table, where the second data table is used to indicate the display content of the first terminal, if the first terminal has no authority to update the first data table.
Preferably, in some possible implementations of the present application, the recording unit 703 is further configured to, if the first terminal does not have permission to update the first data table, send, by the server, no permission response information to the first terminal, so that the first terminal updates a locally stored second data table according to the no permission response information, where the locally stored second data table is used to indicate display content revised by the first terminal according to the revision information.
Preferably, in some possible implementations of the present application, the communication group further includes a second terminal, the second terminal having the authority to update the first data table, if the first terminal does not have the authority to update the first data table,
the receiving unit 701 is further configured to receive second identification information sent by a second terminal;
the recording unit 703 is further configured to update the first data table according to the second identification information, where the updated first data table is used to indicate display content of terminals other than the first terminal, where the terminals other than the first terminal are terminals that do not include revision information in the communication group, and the communication group interacts data based on a preset rule, where the preset rule includes that if the terminals in the communication group send the revision information to the server, the terminals select a second data table to indicate display content.
Preferably, in some possible implementations of the application,
the recording unit 703 is specifically configured to wait for a preset duration, where the preset duration is set based on a time delay between the second terminal and the server;
the recording unit 703 is specifically configured to update the first data table according to the second identification information if the waiting time reaches the preset duration.
Preferably, in some possible implementations of the application,
the receiving unit 701 is specifically configured to traverse the plurality of terminals in the communication group by using the server;
the receiving unit 701 is specifically configured to, if the plurality of terminals includes a first terminal, receive, by the server, first identification information sent by the first terminal.
The present application further provides another terminal device, please refer to fig. 8, fig. 8 is a schematic structural diagram of a terminal device provided in an embodiment of the present application, and the terminal device 800 includes:
an acquisition unit 801 for acquiring revision information;
a processing unit 802, configured to generate first identification information according to the revision information, and send the first identification information to a server, where the first identification information is used to indicate a communication group where the first terminal is located, the communication group includes a plurality of terminals, and the plurality of terminals share a first data table, where the first data table is used to indicate display contents of the plurality of terminals;
and a receiving unit 803, configured to receive a second data table sent by the server, where the second data table is used to indicate display content of the first terminal.
Preferably, in some possible implementations of the application,
The receiving unit 803 is further configured to receive the permission information sent by the server;
the processing unit 802 is further configured to send the revision information to the second terminal according to the permission information, so that the second terminal updates the first data table.
By acquiring the revision information in the terminal equipment and selecting a proper data table according to the authority information of the terminal equipment, the revision information can be smoothly displayed in the terminal equipment, and the corresponding data table in the server is maintained, so that the flexibility and stability of data updating in the terminal equipment are improved, and the user experience is improved.
Referring to fig. 9, fig. 9 is a schematic diagram of another server according to an embodiment of the present application, where the server 900 may have a relatively large difference due to different configurations or performances, and may include one or more central processing units (central processing units, CPU) 922 (e.g., one or more processors) and a memory 932, and one or more storage media 930 (e.g., one or more mass storage devices) storing application programs 942 or data 944. Wherein the memory 932 and the storage medium 930 may be transitory or persistent. The program stored on the storage medium 930 may include one or more modules (not shown), each of which may include a series of instruction operations in the data updating apparatus. Still further, the central processor 922 may be arranged to communicate with the storage medium 930 to execute a series of instruction operations in the storage medium 930 on the data updating apparatus.
The server 900 may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input/output interfaces 958, and/or one or more operating systems 941, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, etc.
The steps performed by the terminal device in the above embodiments may be based on the server structure shown in fig. 9.
Embodiments of the present application also provide a computer-readable storage medium having stored therein data update instructions that, when executed on a computer, cause the computer to perform the steps performed by the data update apparatus in the method described in the embodiments of fig. 2 to 6 described above.
Embodiments of the present application also provide a computer program product comprising data update instructions which, when run on a computer, cause the computer to perform the steps performed by the data update apparatus in the method described in the embodiments of figures 2 to 6 above.
The embodiment of the application also provides a data updating system, which can comprise the server in the embodiment shown in fig. 7 and 9 or the terminal device shown in fig. 8.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in whole or in part in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a data updating apparatus, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical schemes described in the foregoing embodiments may be updated or some technical features thereof may be replaced equivalently; such updating or replacing does not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. A method of data updating, comprising:
the method comprises the steps that a server receives first identification information sent by a first terminal, wherein the first identification information is used for indicating revision information of the first terminal and a communication group where the first terminal is located, the communication group comprises a plurality of terminals, the plurality of terminals share a first data table, the plurality of terminals comprise second terminals, and the first data table is used for indicating display contents of the plurality of terminals;
the server determines authority information of the first terminal, wherein the authority information is used for indicating whether the first terminal has authority for updating a first data table or not;
If the first terminal does not have the authority to update the first data table, the server records the first identification information in a second data table, wherein the second data table is used for indicating the display content of the first terminal;
the server receives second identification information sent by a second terminal, wherein the second terminal has the authority of updating the first data table;
the server updates the first data table according to the second identification information, the updated first data table is used for indicating display contents of terminals except the first terminal, the terminals except the first terminal are terminals which do not contain revision information in the communication group, the communication group is based on preset rule interaction data, and the preset rule comprises that if the terminals in the communication group send the revision information to the server, the second data table is selected to indicate the display contents.
2. The method according to claim 1, wherein the method further comprises:
if the first terminal does not have the authority to update the first data table, the server sends the response information without the authority to the first terminal, so that the first terminal updates the locally stored second data table according to the response information without the authority, and the locally stored second data table is used for indicating the display content revised by the first terminal according to the revision information.
3. The method of claim 1, wherein the server updating the first data table based on the second identification information comprises:
the server waits for a preset time length, wherein the preset time length is set based on the time delay between the second terminal and the server;
and if the waiting time reaches the preset duration, the server updates the first data table according to the second identification information.
4. A method according to any one of claims 1-3, wherein the server receiving the first identification information sent by the first terminal comprises:
the server traversing a plurality of terminals in the communication group;
and if the plurality of terminals comprise the first terminal, the server receives the first identification information sent by the first terminal.
5. A method of data updating, comprising:
the method comprises the steps that a first terminal obtains revision information, and the first terminal does not have authority to update a first data table;
the first terminal generates first identification information according to the revision information and sends the first identification information to a server, wherein the first identification information is used for indicating a communication group where the first terminal is located, the communication group comprises a plurality of terminals, the plurality of terminals share a first data table, the plurality of terminals comprise a second terminal, and the first data table is used for indicating display contents of the plurality of terminals;
The first terminal receives a second data table sent by the server, wherein the second data table is used for indicating the display content of the first terminal, and the second data table records the first identification information;
the first terminal receives the authority information sent by the server;
the first terminal sends the revision information to the second terminal according to the authority information so that the second terminal updates the first data table; the updated first data table is used for indicating display content of terminals except the first terminal, the terminals except the first terminal are terminals which do not contain revision information in the communication group, the communication group interacts data based on preset rules, and the preset rules comprise that if the terminals in the communication group send the revision information to the server, a second data table is selected to indicate the display content.
6. A server, comprising:
the terminal comprises a receiving unit, a first data table and a second data table, wherein the receiving unit is used for receiving first identification information sent by a first terminal, the first identification information is used for indicating revision information of the first terminal and a communication group where the first terminal is located, the communication group comprises a plurality of terminals, the plurality of terminals share the first data table, the plurality of terminals comprise second terminals, and the first data table is used for indicating display contents of the plurality of terminals;
A determining unit, configured to determine authority information of the first terminal, where the authority information is used to indicate whether the first terminal has authority to update a first data table;
a recording unit, configured to record the first identification information in a second data table if the first terminal has no authority to update the first data table, where the second data table is used to indicate display content of the first terminal;
the receiving unit is further used for receiving second identification information sent by a second terminal, and the second terminal has the authority of updating the first data table;
the recording unit is further configured to update the first data table according to the second identification information, where the updated first data table is used to indicate display content of terminals other than the first terminal, the terminals other than the first terminal are terminals that do not include revision information in the communication group, the communication group interacts data based on a preset rule, and the preset rule includes that if the terminals in the communication group send the revision information to the server, a second data table is selected to indicate display content.
7. The server according to claim 6, wherein the recording unit is specifically configured to wait for a preset duration, where the preset duration is set based on a time delay between the second terminal and the server;
The recording unit is specifically configured to update the first data table according to the second identification information if the waiting time reaches the preset duration.
8. The server according to any of the claims 6-7, characterized by the receiving unit, in particular for the server to traverse a plurality of terminals in the communication group;
the receiving unit is specifically configured to, if the plurality of terminals includes a first terminal, receive, by the server, first identification information sent by the first terminal.
9. A terminal device, comprising:
an acquisition unit configured to acquire revision information;
the processing unit is used for generating first identification information according to the revision information and sending the first identification information to the server, wherein the first identification information is used for indicating a communication group where a first terminal is located, the communication group comprises a plurality of terminals, the plurality of terminals share a first data table, the plurality of terminals comprise second terminals, and the first data table is used for indicating display contents of the plurality of terminals;
the receiving unit is used for receiving a second data table sent by the server, wherein the second data table is used for indicating the display content of the first terminal; the first terminal does not have the authority to update the first data table; the second data table records the first identification information;
The receiving unit is further used for receiving the authority information sent by the server;
the processing unit is further used for sending the revision information to the second terminal according to the permission information so that the second terminal updates the first data table; the updated first data table is used for indicating display content of terminals except the first terminal, the terminals except the first terminal are terminals which do not contain revision information in the communication group, the communication group interacts data based on preset rules, and the preset rules comprise that if the terminals in the communication group send the revision information to the server, a second data table is selected to indicate the display content.
10. A computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of data update of any of the preceding claims 1 to 4, or claim 5.
11. A computer device, the computer device comprising:
a communication interface;
a memory for storing a program for implementing the data updating method according to any one of claims 1 to 4, or claim 5;
A processor for invoking and executing the program of the memory to perform the steps of the data update method of any of claims 1-4 or claim 5.
CN201910703637.XA 2019-07-31 2019-07-31 Data updating method and related device Active CN112307015B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910703637.XA CN112307015B (en) 2019-07-31 2019-07-31 Data updating method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910703637.XA CN112307015B (en) 2019-07-31 2019-07-31 Data updating method and related device

Publications (2)

Publication Number Publication Date
CN112307015A CN112307015A (en) 2021-02-02
CN112307015B true CN112307015B (en) 2023-11-03

Family

ID=74486190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910703637.XA Active CN112307015B (en) 2019-07-31 2019-07-31 Data updating method and related device

Country Status (1)

Country Link
CN (1) CN112307015B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7881268B1 (en) * 2005-02-17 2011-02-01 Sprint Spectrum L.P. Group list update system and method
CN107453977A (en) * 2016-06-01 2017-12-08 腾讯科技(深圳)有限公司 The method and server of a kind of session management
CN107645582A (en) * 2017-09-04 2018-01-30 深圳市盛路物联通讯技术有限公司 A kind of information variation, terminal device and computer-readable medium
CN108776756A (en) * 2018-06-04 2018-11-09 北京奇虎科技有限公司 Access authorization for resource management method and device
CN109067557A (en) * 2018-07-19 2018-12-21 北京达佳互联信息技术有限公司 Monitoring method, device and the corresponding server and storage medium of communication group
CN109063061A (en) * 2018-07-20 2018-12-21 北京百度网讯科技有限公司 Across distributed system data processing method, device, equipment and storage medium
CN109981733A (en) * 2019-02-19 2019-07-05 广州勒夫蔓德电器有限公司 Control method, server and the computer readable storage medium of intelligent terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7881268B1 (en) * 2005-02-17 2011-02-01 Sprint Spectrum L.P. Group list update system and method
CN107453977A (en) * 2016-06-01 2017-12-08 腾讯科技(深圳)有限公司 The method and server of a kind of session management
CN107645582A (en) * 2017-09-04 2018-01-30 深圳市盛路物联通讯技术有限公司 A kind of information variation, terminal device and computer-readable medium
CN108776756A (en) * 2018-06-04 2018-11-09 北京奇虎科技有限公司 Access authorization for resource management method and device
CN109067557A (en) * 2018-07-19 2018-12-21 北京达佳互联信息技术有限公司 Monitoring method, device and the corresponding server and storage medium of communication group
CN109063061A (en) * 2018-07-20 2018-12-21 北京百度网讯科技有限公司 Across distributed system data processing method, device, equipment and storage medium
CN109981733A (en) * 2019-02-19 2019-07-05 广州勒夫蔓德电器有限公司 Control method, server and the computer readable storage medium of intelligent terminal

Also Published As

Publication number Publication date
CN112307015A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN110214459B (en) Service processing method and device
EP2800343A1 (en) Message processing method, device and system
EP2822257B1 (en) Method and device for processing contact persons, and mobile terminal
US7966224B1 (en) System, method and computer program product for generating a relationship-based recommendation
US11221743B2 (en) Information processing method, terminal, server, and computer storage medium
CN103747132B (en) The method of display message and terminal
EP3627864A1 (en) Method for sending message, method for reading and notifying message, method for receiving message, and apparatus
CN101951426A (en) Contact person grouping method and terminal
WO2011008483A1 (en) A method and apparatus for management of virtual sticky notes
EP1850617B1 (en) Method and apparatus for producing a user-controlled PLMN list for a SIM/USIM card with use of a user-agent application
EP2191685B1 (en) Device and method for preserving customized user settings when transitioning between mobile communication devices
EP3651495A1 (en) Network switching method and terminal device
CN111193792A (en) Message transmission method and device, electronic equipment and storage medium
CN111246452B (en) Method for simulating real mobile phone based on cloud mobile phone
EP2779782A1 (en) Method and device for controlling delivery of packet data protocol context
US8244672B1 (en) Method and system for establishing an application contact list
CN112307015B (en) Data updating method and related device
CN107465538B (en) Internet of things terminal migration method and gateway
CN105978934A (en) List sharing method and mobile terminal
CN101553043A (en) Method for establishing communication from a dual-mode mobile terminal
CN114501636A (en) Access and mobility policy update method and system
CN106302670A (en) A kind of picture update method, communication terminal and server
CN116301458A (en) Message processing method, device, electronic equipment and storage medium
CN109639878B (en) Mobile terminal contact searching method, mobile terminal and storage medium
CN103747150B (en) Information processing method and electronic equipment

Legal Events

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