CN115604285A - Method for realizing address book of App terminal - Google Patents

Method for realizing address book of App terminal Download PDF

Info

Publication number
CN115604285A
CN115604285A CN202211030024.2A CN202211030024A CN115604285A CN 115604285 A CN115604285 A CN 115604285A CN 202211030024 A CN202211030024 A CN 202211030024A CN 115604285 A CN115604285 A CN 115604285A
Authority
CN
China
Prior art keywords
address book
app
data
version number
database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211030024.2A
Other languages
Chinese (zh)
Inventor
胡恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Unicloud Technology Co Ltd
Original Assignee
Unicloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Unicloud Technology Co Ltd filed Critical Unicloud Technology Co Ltd
Priority to CN202211030024.2A priority Critical patent/CN115604285A/en
Publication of CN115604285A publication Critical patent/CN115604285A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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/2291User-Defined Types; Storage management thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a method for realizing an App terminal address book, which comprises the steps that after the App is started, the address book version number stored locally by the App is transmitted to a server, if the version number is increased, new address book data are pulled, and the new version number is stored locally; and if the version number is not changed, loading address book data stored in the App local database. The implementation method of the address book at the App end can reduce the times of pulling the address book data from the server after the App is started, thereby reducing the pressure of the server for processing a large amount of address book data and reducing the flow loss.

Description

Method for realizing address book of App terminal
Technical Field
The invention belongs to the technical field of cloud services, and particularly relates to a method for realizing an App (application point) address book.
Background
In order to improve the work communication efficiency among the personnel in the office software of the company, an address book module is provided to display the internal organization structure and the co-worker contact way of the company, so that the personnel and the personnel can communicate in time.
Because enterprise personnel are more and the change can not be very frequent, the address list should be relatively more stable, and App uses at every turn and all draws data from the server, can bring great pressure to the server, brings unnecessary user flow loss simultaneously.
Disclosure of Invention
In view of this, the present invention aims to provide a method for implementing an App terminal address book, so as to solve the problem that each time an App uses the App, address book data needs to be pulled from a server, which not only increases server load, but also causes user traffic loss.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a method for realizing an address book at an App end, which comprises the steps that after the App is started, the version number of the address book stored locally by the App is transmitted to a server, if the version number is increased, new address book data are pulled, and the new version number is stored locally; and if the version number is not changed, loading address book data stored in the App local database.
Further, the method comprises the following steps:
responding to an APP login instruction, reading the version number of an APP address book, transmitting the version number to a server, and starting a database;
after receiving interface data of the address book version number, if the interface data is updated, pulling the address book data of the server, and storing the address book data into a database;
and if the data are not updated, reading the data of the App database.
Further, reading the App address book version number includes: and reading an address book stored in a plist file in the App sandbox to obtain the address book version number.
Further, the database is created by using a user unique identifier userId.
Further, the storing the address book data into a database includes: and deserializing JSON data in the address book into a data model which can be identified by App, and coding and storing the data model into a database.
Further, if the data is not updated, reading the data of the App database, including:
before reading, a sub thread is created, and address book data is read from a local database.
In a second aspect, the present invention provides an electronic device/server, including a processor, and a memory communicatively connected to the processor and used for storing instructions executable by the processor, where the processor implements the method for implementing the App address book according to the first aspect when executing the instructions.
In a third aspect, the present invention provides a readable storage medium for storing a computer program, where the computer program, when executed by a processor, implements the method for implementing the App address book according to the first aspect.
Compared with the prior art, the implementation method of the App terminal address book has the following advantages:
the implementation method of the address book at the App end can reduce the times of pulling the address book data from the server after the App is started, thereby reducing the pressure of the server for processing a large amount of address book data and reducing the flow loss.
Detailed Description
It should be noted that the embodiments and features of the embodiments of the present invention may be combined with each other without conflict.
The present invention will be described in detail with reference to examples.
The embodiment provides a method for realizing an address book at an App end, wherein the App transmits the address book version number locally stored by the App to a server after being started, if the version number is increased, new address book data are pulled, and the new version number is stored locally; and if the version number is not changed, loading address book data stored in the App local database.
The method comprises the following steps:
after the App starts login, reading an address book version number stored in a plist file in an App sandbox, transmitting the version number to a server through an interface, and simultaneously starting a database created by a user unique identifier userId in the sandbox;
after receiving the interface data of the version number, if the interface data is updated, pulling the address book data of the server;
deserializing JSON data of the address list into a data model which can be conveniently used by the App, and coding and storing the data model into a database;
if not, reading the data of the App database, and because the address book data is large and the performance of the mobile phone is different, avoiding blocking the main thread to influence the starting of other main services and needing to start a sub-thread to read the address book data from the local database;
finally, displaying the address book data on the App;
the embodiment provides a server, which comprises a processor and a memory, wherein the memory is in communication connection with the processor and is used for storing executable instructions of the processor, and when the processor executes the instructions, the method for realizing the address book of the App end in the embodiment is realized.
The embodiment provides a readable storage medium for storing a computer program, and the computer program is executed by a processor to implement the method for implementing the App terminal address book in the embodiment.
Those of ordinary skill in the art will appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of clearly illustrating the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed method and system may be implemented in other ways. For example, the division of the above-mentioned units is only a logical function division, and other division manners may be available in actual implementation, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. The units may or may not be physically separate, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being covered by the appended claims and their equivalents.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. An implementation method of an App terminal address book is characterized in that: after the App is started, the address book version number stored locally by the App is transmitted to a server, if the version number is increased progressively, new address book data are pulled, and the new version number is stored locally; and if the version number is not changed, loading address book data stored in the App local database.
2. The method for implementing the address book at the App end according to claim 1, comprising the following steps:
responding to an APP login instruction, reading the version number of an APP address book, transmitting the version number to a server, and starting a database;
after receiving interface data of the address book version number, if the interface data is updated, pulling the address book data of the server, and storing the address book data into a database;
and if the data are not updated, reading the data of the App database.
3. The method for implementing the address book at the App end according to claim 2, wherein the reading of the version number of the App address book comprises: and reading an address book stored in a plist file in the App sandbox to obtain the address book version number.
4. The method for implementing the address book at the App end according to claim 2, wherein: the database is created with a user unique identifier userId.
5. The method for implementing the address book at the App end according to claim 2, wherein the storing the address book data in a database includes: and deserializing JSON data in the address book into a data model which can be identified by App, and coding and storing the data model into a database.
6. The method for implementing the address book at the App end according to claim 2, wherein: if not, reading the data of the App database, including:
before reading, a sub thread is created, and address book data is read from a local database.
7. A server, comprising a processor and a memory, wherein the memory is communicatively connected to the processor and is configured to store instructions executable by the processor, and when executing the instructions, the processor implements the method for implementing the App-side address book according to any one of claims 1 to 6.
8. A readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the method for implementing the App directory according to any one of claims 1 to 6.
CN202211030024.2A 2022-08-26 2022-08-26 Method for realizing address book of App terminal Pending CN115604285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211030024.2A CN115604285A (en) 2022-08-26 2022-08-26 Method for realizing address book of App terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211030024.2A CN115604285A (en) 2022-08-26 2022-08-26 Method for realizing address book of App terminal

Publications (1)

Publication Number Publication Date
CN115604285A true CN115604285A (en) 2023-01-13

Family

ID=84843206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211030024.2A Pending CN115604285A (en) 2022-08-26 2022-08-26 Method for realizing address book of App terminal

Country Status (1)

Country Link
CN (1) CN115604285A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634445A (en) * 2013-11-19 2014-03-12 广州云宏信息科技有限公司 Caller identification method and device
CN105872168A (en) * 2015-11-09 2016-08-17 乐视致新电子科技(天津)有限公司 Address list update method and device
CN110535903A (en) * 2019-07-19 2019-12-03 浙江讯盟科技有限公司 A kind of update method of the enterprise directory of real-time high-efficiency

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634445A (en) * 2013-11-19 2014-03-12 广州云宏信息科技有限公司 Caller identification method and device
CN105872168A (en) * 2015-11-09 2016-08-17 乐视致新电子科技(天津)有限公司 Address list update method and device
CN110535903A (en) * 2019-07-19 2019-12-03 浙江讯盟科技有限公司 A kind of update method of the enterprise directory of real-time high-efficiency

Similar Documents

Publication Publication Date Title
CN108510389B (en) Intelligent contract calling method and device based on block chain and readable storage medium
CN110049113A (en) Service message processing method and device
EP2661059A1 (en) Method and mobile terminal for storing memorandum during calling
CN102404149B (en) Management system and method of service characteristics
CN106230977A (en) A kind of client functionality loading method, system, client and service end
CN108536544B (en) Consumption method, device, server and medium based on database message queue
CN111124540B (en) Dynamic configuration method of service control system and service request forwarding method
CN111104178A (en) Dynamic library loading method, terminal device and storage medium
CN111049913B (en) Data file transmission method and device, storage medium and electronic equipment
CN102404242A (en) User information updating device, electric equipment and user information updating method
CN109933595B (en) Internet of things equipment information sharing system and device and terminal equipment
CN103164245B (en) The method of application display language-specific and terminal
CN115604285A (en) Method for realizing address book of App terminal
CN102184375A (en) Management method and terminal of data in subscriber identity module (SIM) card
CN113835625B (en) Data storage method, device, equipment and storage medium based on sub-path
CN114356970B (en) Storage system resource caching method and device
CN102932960A (en) Exchange system and exchange method for electronic business cards
CN103873631A (en) Method and device for displaying call interface of mobile terminal
CN113064655B (en) BIOS network starting method and device and computer readable storage medium
CN104735643A (en) Information processing method and data server
CN114385537A (en) Page slot number dynamic allocation method, device, equipment and medium
CN113918436A (en) Log processing method and device
CN113868184A (en) Configuration method and system of master-slave architecture cache-based configuration center
CN109800229B (en) Data access method and related equipment
CN109491931A (en) A kind of binding method, device and the relevant device of computer system and external 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