CN111381824A - Method, system, device and medium for synchronizing user data in multi-architecture - Google Patents

Method, system, device and medium for synchronizing user data in multi-architecture Download PDF

Info

Publication number
CN111381824A
CN111381824A CN202010166841.5A CN202010166841A CN111381824A CN 111381824 A CN111381824 A CN 111381824A CN 202010166841 A CN202010166841 A CN 202010166841A CN 111381824 A CN111381824 A CN 111381824A
Authority
CN
China
Prior art keywords
user
page
native
current login
synchronizing
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
CN202010166841.5A
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.)
Suzhou Jinxi Intelligent Technology Co ltd
Original Assignee
Suzhou Jinxi Intelligent 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 Suzhou Jinxi Intelligent Technology Co ltd filed Critical Suzhou Jinxi Intelligent Technology Co ltd
Priority to CN202010166841.5A priority Critical patent/CN111381824A/en
Publication of CN111381824A publication Critical patent/CN111381824A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation

Abstract

The invention provides a method, a system, a device and a medium for synchronizing user data in multiple architectures, which can synchronize the user data in the multiple architectures, so that a read-native on ios equipment can correctly transmit values to interact with an H5 page, and the method comprises the following steps: step 1: a user logs in an ios native page; step 2: customizing the attribute of a user agent of a current login user in a webView component of a read-native; and step 3: the current login user jumps to the H5 page from the ios native page; and 4, step 4: loading the content of the H5 page through a webView component of read-native; and 5: in the webView component, the H5 page obtains the specified data of the current login user according to the user parameters in the user agent attribute customized in the step 1.

Description

Method, system, device and medium for synchronizing user data in multi-architecture
Technical Field
The invention relates to the technical field of ios, React-native and H5 hybrid development, in particular to a method, a system, a device and a medium for synchronizing user data in multiple architectures.
Background
The IOs or android native technology is used for development, so that the user experience is improved, but the manpower development cost can be greatly improved. By using the RN technology, two sets of equipment of one set of codes are used, so that the manpower development cost is greatly saved, and the APP is lower than the original development in the user experience.
However, on the ios device, when using the RN (read-native) own webView plug-in, no user agent is used when jumping to the H5 page, so that the parameters cannot be transferred. If the webView of the third-party plug-in is used, the interaction between the H5 page and the RN cannot be monitored, and the page exception occurs.
Disclosure of Invention
In view of the above problems, the present invention provides a method, system, device and medium for synchronizing user data in multiple architectures, which can synchronize user data in multiple architectures, so that a read-native on an ios device can interact with a correct value transfer of an H5 page.
The technical scheme is as follows: a method of synchronizing user data in a multi-architecture, comprising the steps of:
step 1: a user logs in an ios native page;
step 2: customizing the attribute of a user agent of a current login user in a webView component of a read-native;
and step 3: the current login user jumps to the H5 page from the ios native page;
and 4, step 4: loading the content of the H5 page through a webView component of read-native;
and 5: in the webView component, the H5 page obtains the specified data of the current login user according to the user parameters in the user agent attribute customized in the step 1.
Further, in step 2, the user-defined user agent attribute includes a unique identifier of the current login user, a mobile phone number of the user, and a user name.
Further, in step 3, the login user jumps to the H5 page by clicking the jump button on the ios native page.
Further, in step 5, the H5 page obtains the unique identifier of the current login user in the user agent attribute defined in step 1, and obtains the specified data of the current login user according to the unique identifier.
A system for synchronizing user data in a multi-architecture, comprising:
the login module is used for logging in the ios native page by a user;
the user-defined module is used for customizing the user agent attribute of the user logged in the logging module in a webView component of the read-native;
the skip module is used for enabling the current login user to skip from the ios native page to the H5 page;
the loading module is used for loading the content of the H5 page through the webView component of the read-native;
and the synchronization module is used for enabling the H5 page to acquire the specified data of the current login user according to the user parameters in the defined user agent attribute.
Further, the user agent attribute customized by the customization module includes a unique mark of the current login user, a mobile phone number of the user, and a user name.
Further, the jump module jumps to the H5 page by having the login user click a jump button on the ios native page.
Further, the synchronization module obtains a unique mark of the current login user in the user-defined user agent attribute, and obtains the specified data of the current login user according to the unique mark.
Apparatus for synchronizing user data in a multi-architecture, comprising: comprising a processor, a memory, and a program;
the program is stored in the memory and the processor invokes the program stored in the memory to perform the method for synchronizing user data in a multi-architecture as described above.
A computer-readable storage medium characterized by: the computer-readable storage medium is configured to store a program configured to perform the above-described method of synchronizing user data in a multi-architecture.
The method for synchronizing the user data in the multi-architecture is characterized in that the user agent attribute of a current login user is customized through a read-native webView component, the user agent attribute comprises a unique mark of the current login user, a mobile phone number of the user and a user name, the user logs in an ios native page, the current login user jumps to an H5 page from the ios native page, the content of the H5 page is loaded through the read-native webView component, the H5 page obtains the unique mark of the current login user in the customized user agent attribute, and specified data of the current login user is obtained according to the unique mark, so that the user data can be synchronized in ios, read-native and H5, the read-native can correctly transfer value interaction with the H5 page on an ios device, the operation is simple and convenient, and a third-party plug-in is not needed.
Drawings
FIG. 1 is a flow chart of a method of synchronizing user data in a multi-architecture of the present invention;
fig. 2 is a block diagram of the components of the system for synchronizing user data in a multi-architecture of the present invention.
Detailed Description
Referring to fig. 1, a method for synchronizing user data in a multi-architecture according to the present invention includes the following steps:
step 1: a user logs in an ios native page;
step 2: customizing a user agent attribute of a current login user in a read-native webView component, wherein the customized user agent attribute comprises a unique mark of the current login user, a mobile phone number of the user and a user name;
and step 3: the current login user jumps to the H5 page from the ios native page, specifically, the login user jumps to the H5 page by clicking a jump button on the ios native page;
and 4, step 4: loading the content of the H5 page through a webView component of read-native;
and 5: in the webView component, the H5 page obtains the specified data of the current login user according to the user parameters in the user agent attribute customized in the step 1.
Specifically, in step 5, the H5 page obtains the unique identifier of the current login user in the user agent attribute customized in step 1, and obtains the specified data of the current login user according to the unique identifier, and then, the data can be processed according to the service logic of the user.
The method for synchronizing the user data in the multi-architecture is characterized in that the user agent attribute of a current login user is customized through a read-native webView component, the user agent attribute comprises a unique mark of the current login user, a mobile phone number of the user and a user name, the user logs in an ios native page, the current login user jumps to an H5 page from the ios native page, the content of the H5 page is loaded through the read-native webView component, the H5 page obtains the unique mark of the current login user in the customized user agent attribute, and specified data of the current login user is obtained according to the unique mark, so that the user data can be synchronized in ios, read-native and H5, the read-native can correctly transfer value interaction with the H5 page on an ios device, the operation is simple and convenient, and a third-party plug-in is not needed.
In an embodiment of the present invention, there is also provided a system for synchronizing user data in multiple architectures, including:
the login module 1 is used for logging in the ios native page by a user;
the user-defined module 2 is used for customizing the user agent attribute of the user logged in the logging module 1 in a webView component of the read-native, and the user-defined user agent attribute of the user-defined module 2 comprises a unique mark of the current logged user, the mobile phone number of the user and the user name;
the skip module 3 is used for skipping the current login user from the ios native page to the H5 page, specifically, the skip module 3 skips to the H5 page by clicking a skip button on the ios native page by the login user;
the loading module 4 is used for loading the content of the H5 page by the webView component of the read-native;
the synchronization module 5 is configured to enable the H5 page to obtain the specified data of the current login user according to the user parameter in the defined user agent attribute, specifically, the synchronization module 5 obtains the unique identifier of the current login user in the user-defined user agent attribute, and obtains the specified data of the current login user according to the unique identifier.
In an embodiment of the present invention, there is also provided an apparatus for synchronizing user data in a multi-architecture, including: comprising a processor, a memory, and a program;
a program is stored in the memory and the processor calls the program stored in the memory to perform the above-described method of synchronizing user data in a multi-architecture.
In an implementation of the apparatus for synchronizing user data in the above-described multi-architecture, the memory and the processor are electrically connected directly or indirectly to enable transmission or interaction of data. For example, the components may be electrically connected to each other via one or more communication buses or signal lines, such as a bus. The memory stores computer-executable instructions for implementing the data access control method, and includes at least one software functional module which can be stored in the memory in the form of software or firmware, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory.
The Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory is used for storing programs, and the processor executes the programs after receiving the execution instructions.
The processor may be an integrated circuit chip having signal processing capabilities. The processor may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In an embodiment of the present invention, there is also provided a computer-readable storage medium configured to store a program configured to perform the above-described method of synchronizing user data in a multi-architecture.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart.
The method for synchronizing user data in multiple architectures, the system for synchronizing user data in multiple architectures, the apparatus for synchronizing user data in multiple architectures, and the application of a computer-readable storage medium provided by the present invention have been described in detail above, and specific examples are applied herein to illustrate the principles and embodiments of the present invention, and the above descriptions of the embodiments are only used to help understand the method and the core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for synchronizing user data in a multi-fabric, comprising the steps of:
step 1: a user logs in an ios native page;
step 2: customizing the attribute of a user agent of a current login user in a webView component of a read-native;
and step 3: the current login user jumps to the H5 page from the ios native page;
and 4, step 4: loading the content of the H5 page through a webView component of read-native;
and 5: in the webView component, the H5 page obtains the specified data of the current login user according to the user parameters in the user agent attribute customized in the step 1.
2. Method for synchronizing user data in a multi-architecture according to claim 1, characterized in that: in step 2, the customized user agent attribute includes the unique identifier of the current login user, the mobile phone number of the user, and the user name.
3. Method for synchronizing user data in a multi-architecture according to claim 1, characterized in that: in step 3, the login user jumps to the H5 page by clicking the jump button on the ios native page.
4. Method for synchronizing user data in a multi-architecture according to claim 2, characterized in that: in step 5, the H5 page obtains the unique identifier of the current login user in the user agent attribute defined in step 1, and obtains the specified data of the current login user according to the unique identifier.
5. A system for synchronizing user data in a multi-architecture, comprising:
the login module is used for logging in the ios native page by a user;
the user-defined module is used for customizing the user agent attribute of the user logged in the logging module in a webView component of the read-native;
the skip module is used for enabling the current login user to skip from the ios native page to the H5 page;
the loading module is used for loading the content of the H5 page through the webView component of the read-native;
and the synchronization module is used for enabling the H5 page to acquire the specified data of the current login user according to the user parameters in the defined user agent attribute.
6. A system for synchronizing user data in a multi-architecture according to claim 5, characterized in that: the user agent attribute customized by the custom module comprises a unique mark of the current login user, the mobile phone number of the user and the user name.
7. A system for synchronizing user data in a multi-architecture according to claim 5, characterized in that: the jump module jumps to the H5 page by having the login user click the jump button on the ios native page.
8. A system for synchronizing user data in a multi-architecture according to claim 6, characterized in that: and the synchronization module acquires the unique mark of the current login user in the user-defined user agent attribute and acquires the specified data of the current login user according to the unique mark.
9. Apparatus for synchronizing user data in a multi-architecture, comprising: comprising a processor, a memory, and a program;
said program being stored in said memory, said processor calling the memory-stored program to perform the method of synchronizing user data in a multi-architecture as claimed in claim 1.
10. A computer-readable storage medium characterized by: the computer readable storage medium is configured to store a program configured to perform the method of synchronizing user data in a multi-architecture of claim 1.
CN202010166841.5A 2020-03-11 2020-03-11 Method, system, device and medium for synchronizing user data in multi-architecture Pending CN111381824A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010166841.5A CN111381824A (en) 2020-03-11 2020-03-11 Method, system, device and medium for synchronizing user data in multi-architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010166841.5A CN111381824A (en) 2020-03-11 2020-03-11 Method, system, device and medium for synchronizing user data in multi-architecture

Publications (1)

Publication Number Publication Date
CN111381824A true CN111381824A (en) 2020-07-07

Family

ID=71222672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010166841.5A Pending CN111381824A (en) 2020-03-11 2020-03-11 Method, system, device and medium for synchronizing user data in multi-architecture

Country Status (1)

Country Link
CN (1) CN111381824A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160124914A1 (en) * 2014-10-30 2016-05-05 Alibaba Group Holding Limited Page Processing for Mobile App
CN107241439A (en) * 2017-07-24 2017-10-10 北京小米移动软件有限公司 The information push method and device of the H5 pages
CN107861713A (en) * 2017-07-25 2018-03-30 平安普惠企业管理有限公司 Data calling method, device and computer-readable recording medium
CN110493184A (en) * 2019-07-09 2019-11-22 深圳壹账通智能科技有限公司 The processing method of login page, device, electronic device in the client

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160124914A1 (en) * 2014-10-30 2016-05-05 Alibaba Group Holding Limited Page Processing for Mobile App
CN107241439A (en) * 2017-07-24 2017-10-10 北京小米移动软件有限公司 The information push method and device of the H5 pages
CN107861713A (en) * 2017-07-25 2018-03-30 平安普惠企业管理有限公司 Data calling method, device and computer-readable recording medium
CN110493184A (en) * 2019-07-09 2019-11-22 深圳壹账通智能科技有限公司 The processing method of login page, device, electronic device in the client

Similar Documents

Publication Publication Date Title
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
EP2608585B1 (en) Method, device and system for triggering terminal operation
CN113498594B (en) Control method and device of smart home system, electronic equipment and storage medium
CN107770786B (en) Method, equipment and system for testing network performance
CN112667426B (en) Log analysis method and device
CN106897095A (en) The multiple method of application program hot repair, device and readable storage medium storing program for executing
CN111225414A (en) Multimode communication device, communication method thereof and multimode communication system
CN109348434B (en) Scene information sending method, sending device and terminal equipment
CN110727581A (en) Collapse positioning method and electronic equipment
CN111722857A (en) Updating method and device of software development kit, electronic equipment and storage medium
CN107391170A (en) Support multivariant upgrade method, device and computer equipment
CN111381824A (en) Method, system, device and medium for synchronizing user data in multi-architecture
CN110806856A (en) Data loading method and device and electronic equipment
CN116243949A (en) Software upgrading method and device, embedded equipment and storage medium
CN113934552A (en) Method and device for determining function code, storage medium and electronic device
CN113934591A (en) Data monitoring method and device, storage medium and electronic device
AU2013206622B2 (en) Download management method and device based on Android browser
CN111198721A (en) Application program running method and device
CN113411832A (en) Load balancing method, load balancer and Internet of things system
CN112073462A (en) Positioning method and device
CN108009084B (en) Testing method, device and system for hybrid mobile application
CN106991017B (en) Event processing method and device
CN107066380B (en) Authentication method and device for application containing redundancy function
CN111541774A (en) Equipment upgrading method, device and system
CN106970884B (en) Method and device for processing serial port command applied to android system running layer

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