CN113127120B - Interface dynamic method based on mobile APP - Google Patents

Interface dynamic method based on mobile APP Download PDF

Info

Publication number
CN113127120B
CN113127120B CN202110374664.4A CN202110374664A CN113127120B CN 113127120 B CN113127120 B CN 113127120B CN 202110374664 A CN202110374664 A CN 202110374664A CN 113127120 B CN113127120 B CN 113127120B
Authority
CN
China
Prior art keywords
operating system
interface
app
data
smartisan
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
CN202110374664.4A
Other languages
Chinese (zh)
Other versions
CN113127120A (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.)
Guangdong Convenisun Technology Co ltd
Original Assignee
Guangdong Convenisun 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 Guangdong Convenisun Technology Co ltd filed Critical Guangdong Convenisun Technology Co ltd
Priority to CN202110374664.4A priority Critical patent/CN113127120B/en
Publication of CN113127120A publication Critical patent/CN113127120A/en
Application granted granted Critical
Publication of CN113127120B publication Critical patent/CN113127120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/954Navigation, e.g. using categorised browsing
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

The invention discloses an interface dynamic method based on mobile APP, which comprises the following steps: the server side establishes an interface to be displayed; the method comprises the steps of caching a full set of structured interface description information, converting an interface to be displayed into data and storing the data in a server side, wherein the server side converts APP interfaces in an IOS (operating system), an Android operating system, a Smartisan OS (operating system) and an MIUI (micro-interactive application interface) operating system at the same time, the APP interface can be directly changed without upgrading and reinstalling the APP side, and the method is high in practicability.

Description

Interface dynamic method based on mobile APP
Technical Field
The invention relates to the technical field of interface dynamic of mobile APP (application), in particular to an interface dynamic method based on a mobile APP.
Background
A mobile phone, which is generally called a mobile phone or a wireless phone, is originally a communication tool, and was also called a mobile phone terminal in the early days. The inventor originally developed a battlefield mobile phone manufactured by Bell laboratories in 1940, in 1958, soviet Engineer Linn Nide Kupli invented a LkK-1 type mobile phone, in 1973, U.S. Motorola Engineer Martin KuPa invented the first commercial mobile phone in the world, a Smart phone (Smart phone), which is like a personal computer, has an independent operating system, is mostly a large-screen machine, is a touch capacitive screen, is also a part of a resistive screen, and has strong functions and high practicability. The user can install programs provided by third-party service providers such as games, the functions of the mobile phone can be continuously expanded through the programs, and the general name of the mobile phone with wireless network access can be realized through a mobile communication network. The tablet personal computer, also called a portable computer, is a small-sized and portable personal computer, and uses a touch screen as a basic input device, the touch screen allows a user to perform operations through a stylus or a digital pen instead of a traditional keyboard or a mouse, and the user can use the tablet personal computer through built-in handwriting recognition, a soft keyboard on a screen, voice recognition or a real keyboard.
At present, mobile devices such as smart phones and tablet computers are very popular, content providers and service providers with different sizes basically have mobile APPs, and the APPs mainly refer to software installed on the smart phones, improve the defects and individuation of original systems, enable the mobile phones to improve the functions of the mobile phones and provide richer use experience for users.
The prior art scheme (Chinese invention patent with the publication number of CN 107291506A) discloses a method and a device for updating an APP interface, wherein in the using process of the technical scheme, only the APP interface of an IOS and an Android system can be dynamically changed, the dynamic change of the APP interface in a Smartisan OS and an MIUI system cannot be realized, the use limitation is large, in addition, the dynamic change of the APP interfaces in four operating systems of the IOS, the Android, the Smartisan OS and the MIUI system at the same time cannot be realized, in the data transmission process, four identifications of the IOS, the Android, the Smartisan OS and the MIUI are not encrypted, a plurality of data are cracked, and the data transmission safety is often low;
the technical scheme only can establish the connection of IOS, android and WEB and cannot realize the connection of APP and WEB in four operating systems at the same time, and in the process of APP upgrading, the method needs to be installed again, consumes more time and has lower practicability.
Disclosure of Invention
The invention aims to provide an interface dynamic method based on mobile APP, and aims to solve the problems that the proposal provided in the background art can only dynamically change the APP interfaces of an IOS (internet operating system) and an Android operating system, cannot dynamically change the APP interfaces in a Smartisan OS operating system and an MIUI (media independent interface) system, has large use limitation, cannot realize the dynamic change of the APP interfaces of the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system at the same time, needs to be reinstalled in the upgrading process of an APP end, consumes more time, cannot realize the connection of the APP ends of the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system at the same time and has poor practicability.
An interface dynamic method based on mobile APP comprises the following steps:
s1: a structured display interface is established through a server side;
s2: carrying out full set caching on the description information related to the display interface, converting the description information into data information and storing the data information in a server side;
s3: aiming at APP dynamic interfaces based on an IOS operating system, an Android operating system, a Smartisan OS operating system and an MIUI operating system, establishing identifiers on the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system;
s4: reading parameter requests sent by APP terminals on an IOS (operating system), an Android operating system, a Smartisan OS (operating system) and an MIUI (micro-interactive user interface) operating system through a server terminal, comparing the parameters with C program data and python program data of the server terminal, and identifying four identifications in the C program data and the python program data;
s5: taking the identifier on the IOS operating system, the identifier on the Android operating system, the identifier on the Smartisan OS operating system and the identifier on the MIUI operating system as keys, searching the identifier of the corresponding interface from cache data of a server side for comparison, and encrypting the four identifiers of the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system by using a DES encryption algorithm;
s6: searching for an identifier of a corresponding interface from cache data of the server side for comparison, analyzing the compared data by using a URL (uniform resource locator), and decrypting the data analyzed by the URL by using a DES (data encryption standard) decryption algorithm;
s7: decrypting the data analyzed by the URL based on a DES decryption algorithm to generate interface description information, storing the interface description information into a cache library and feeding back the interface description information to an APP terminal;
s8: and storing the interface description information into a cache library and feeding back the interface description information to an APP terminal, and constructing a target interface at the APP terminal by using an APP interface conversion method.
Preferably, in S2, the method includes the steps of:
s21: the method comprises the steps that description information related to a display interface is independently divided into single interface elements, and each single interface element is packaged according to a uniform interface to generate an interface element library;
s22: loading all object data and expansion attributes in the interface element library, and mounting the information of the expansion attributes to the navigation elements;
s23: caching all the interface elements in a key value item mode, and acquiring pictures, characters, videos and audios with complete corresponding information through interface numbers;
s24: and based on the picture, the character, the video and the audio with complete corresponding information obtained through the interface number, the complete picture, the character, the video and the audio are stored in a hard disk of the server side.
Preferably, in S3, the method includes the steps of:
s31: analyzing the description information of the interface element, converting the description information into a data model which can be identified by an APP terminal, and transmitting the data model to display containers of an IOS operating system, an Android operating system, a Smartisan OS operating system and an MIUI operating system;
s32: the interface distributor generates a corresponding view according to the data model and transmits specific interface data of a view address, view characters, a view character color and a view background color to the display container;
s33: the display container splices the received interface data to generate a view, and associates the click event interaction logic;
s34: based on the correlation processing of the click event interaction logic, the correlated views are classified on an IOS operating system, an Android operating system, a Smartisan OS operating system and an MIUI operating system, and the views generated by splicing processing are matched with the screens of the operating systems.
Preferably, in S4, the method includes the steps of:
s41: starting an APP end and initiating a request for reading one or more interface control data to a server end, carrying out identification analysis on the APP ends on an IOS operating system, an Android operating system, a Smartisan OS operating system and an MIUI operating system through URLs, and converting the identifications into data;
s42: the URL of the server side decrypts the data;
s43: and decrypting the data based on the URL of the server side, and receiving and identifying the identifier by the database of the server side.
Preferably, in S31 to S34, the method further includes:
s35: the server side converts internal interface elements into interface data in a URL (uniform resource locator) analysis mode, and transmits the interface data to APP sides on an IOS (input/output) operating system, an Android operating system, a Smartisan OS (operating system) and an MIUI (micro user interface) operating system;
s36: analyzing interface data to form a data model by using a URL (uniform resource locator) analysis mode based on an IOS (operation input system), an Android operation system, a Smartisan OS (operating system) and an APP (application) end on an MIUI (micro-user interface) operation system, and transmitting the data model formed by analysis to a display container;
s37: traversing and checking the data model analyzed by the URL and corresponding interface description information in the cache library, executing integrity check, and transmitting the interface description information to the APP terminal when the data model is matched with the interface description information in the cache library;
s38: and the APP terminal compares the received interface description information, and stores the interface description information in the APP terminal cache after the comparison is completed.
Preferably, in S8, the method includes the steps of:
s81: the APP end receives an interface function sent by the server end, and the server end converts the interface control into interface data and transmits the interface data to the APP end;
s82: the APP terminal obtains attribute information of the matched interface control;
s83: controlling the text content, the picture content, the video content and the audio content to be displayed on the interface of the APP terminal according to the attribute information of the matched interface control;
s84: displaying the text content, the picture content, the video content and the audio content on an interface of the APP terminal, and constructing a target interface by the APP terminal.
Preferably, in S43, the method includes the steps of:
s431: when the identification accords with the identification of the APP terminal on the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system, passing the verification and transmitting the verification information to a database of the server terminal;
s432: when the identification does not conform to the identifications of the APP ends on the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system, refusing verification and reporting the identification to a database of a server end;
s433: and the hard disk of the server side records and caches the IP and the MAC address of the server side.
Preferably, in S7, the process of feeding back the interface description information to the APP end is as follows:
firstly, establishing an association relation with interface description information according to an identifier of a corresponding interface based on APP dynamic interfaces of an IOS (operation operating system), an Android operating system, a Smartisan OS (operating system) and an MIUI (micro-user interface) operating system;
secondly, grouping the interface description information according to the APP dynamic interfaces of an IOS operating system, an Android operating system, a Smartisan OS operating system and an MIUI operating system according to the association relation, and grouping and packaging the interface description information;
and finally, acquiring the type of the operating system with the APP dynamic interface, and transmitting the interface description information packet to the APP end corresponding to the type of the operating system according to the association relationship.
Preferably, in S33, for the view generated by splicing the received interface data by the presentation container, smoothing is performed, and the smoothing deviation is calculated by using the following formula:
Figure BDA0003010716250000061
in the above formula, R represents a smoothing processing deviation of a view; delta p Image information indicating the p pixel position of the smoothed image; gamma ray p Image information indicating a p-pixel position of the image before the smoothing processing; p represents a pixel position; λ represents a smoothing control parameter, which is preset;
Figure BDA0003010716250000062
representing taking a minimum value, wherein q represents taking all coordinates in the pass image; k is a radical of q Representing a region factor, wherein the value of an image background region is 1, the value of an image foreground region is 0, and the value of the image background region and the image foreground region in an intersecting matching manner is 0.7; e represents a natural constant; σ represents a size factor, which takes the value of the minimum value of the width or height of the image divided by the square root of 25; b x,p And b y,p A two-dimensional smoothing weight representing a p pixel position of the image;
Figure BDA0003010716250000063
and
Figure BDA0003010716250000064
a two-dimensional minimized partial derivative representing the processed image information;
if the calculation result is larger than the deviation threshold value, the image after the smoothing processing is smoothed again, and the smoothing processing deviation of the image after the smoothing processing and the image before the processing is calculated by adopting the formula until the calculation result is not larger than the deviation threshold value.
Preferably, in S34, the view base point generated by the splicing processing is selected as a first base point, the screen base point of the APP-side operating system is selected as a second base point, the first base point and the second base point are coincided and positioned during displaying, and the view generated by the splicing processing is evaluated to be matched with the screen of the APP-side operating system by the following matching algorithm:
Figure BDA0003010716250000071
in the above formula, μ represents a deviation between a distance matching metric value from the jth positioning point to the ith splicing line displayed on the screen and a matching threshold value of the distance; k is a radical of 1 Representing the weight of the average value of the distances from n-1 points in front of the jth positioning point to the ith splicing line displayed on a screen; d ik Representing the distance from the kth positioning point to the ith splicing line displayed on the screen; k is a radical of 2 The weight of the distance from the jth positioning point to the ith splicing line displayed on the screen is represented; d is a radical of ij Representing the distance from the jth positioning point to the ith splicing line displayed on the screen; d 0 A matching degree threshold value representing a distance is preset;
if the calculated deviation does not exceed the set value, the matching degree of the view generated by the splicing processing and the screen of the APP terminal operating system is high, and otherwise, the display needs to be adjusted.
The invention can obtain the following beneficial effects:
in the interface dynamic method based on the mobile APP, in the using process, the server end can convert the interfaces of the APP ends in the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system at the same time, and by using four kinds of identifiers as keys, the identifier identification module in the server can quickly identify the identifiers, thereby accelerating the change speed of the interface of the APP end, reducing the influence of the APP ends in other operating systems on the APP ends in the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system, directly changing the interface of the APP end, not needing to upgrade and reinstall the APP end, improving the practicability of the device, reduce APP end installation time of reinstallating consumption, the smoothness degree of APP end has been improved, the practicality has been increased, APP compares IOS operating system simultaneously, android operating system, C language and python sign on Smartisan OS operating system and the MIUI operating system with C language and python sign on the server, the check-up security that APP end interface changes has been improved, development efficiency is improved, reduce the emergence of BUG, use DES to add the deciphering algorithm can be to IOS operating system, android operating system, four kinds of signs of Smartisan OS operating system and MIUI operating system add the deciphering, at the in-process of transmission data, effectively avoid data to be cracked, data transmission's security has been increased, and reasonable design is convenient for use.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
In the drawings:
FIG. 1 is a flowchart of the overall operation of an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an interface package storage operation according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a work flow of parsing description information data storage according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a URL data parsing operation according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating the operation of matching navigation objects in an embodiment of the present invention;
FIG. 6 is a flowchart illustrating an embodiment of an identifier determination process;
fig. 7 is a flowchart illustrating a display operation of an interface control according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
The embodiment of the invention provides an interface dynamic method based on a mobile APP, which comprises the following steps:
s1: the server side establishes an interface to be displayed;
s2: caching a full set of structured interface description information, converting an interface to be displayed into data and storing the data on a server;
s3: the method is implemented aiming at APPs (dynamic interfaces) of four operating systems of IOS, android, smartisan OS and MIUI, and identifiers of the four operating systems of IOS, android, smartisan OS and MIUI are established at the same time;
s4: the method comprises the steps that a server reads parameter requests sent by APPs on four operating systems, namely an IOS (operating system), an Android operating system, a Smartisan OS (operating system) and an MIUI (micro-interactive user interface), compares parameters with C language and python data on the server, and identifies four identifications in the C language and the python data;
s5: using four identifications of IOS, android, smartisan OS and MIUI as keys, searching the identifications of corresponding interfaces from a cache library in a server for comparison, and using DES to encrypt the four identifications of IOS, android, smartisan OS and MIUI;
s6: analyzing the compared information by using a URL (uniform resource locator), and decrypting the data analyzed by the URL by using a DES (data encryption standard);
s7: generating interface description information, storing the interface description information in a cache library and returning the generated interface description information;
s8: constructing a target interface at the APP end according to an interface conversion method;
the working principle of the technical scheme is as follows: packaging interface elements according to a uniform interface to generate an interface element library, loading data and expansion attributes of all element library objects, mounting the information of the expansion attributes to a navigation element, caching the key value items of all the interface elements, acquiring pictures, characters, videos and audios with complete corresponding information through interface numbers, analyzing interface element description information, converting contents into a data model which can be identified by a client, transmitting formatted data to display containers of IOS, android, smartisan OS and MIUI four operating systems, generating a corresponding view according to the data by an interface distributor, transmitting specific interface data of picture addresses, characters, character colors and background colors to the display containers, classifying APP views on the IOS, android, smartisan and MIUI four operating systems of the associated views, and adapting the finished views to a screen, wherein the construction of an APP end target interface can be realized;
the beneficial effects of the above technical scheme are: the method is suitable for four operating systems of IOS, android, smartisan OS and MIUI, and simultaneously transmits specific interface data of picture addresses, characters, character colors and background colors to the APP terminal, and the APP terminal on the four operating systems of IOS, android, smartisan OS and MIUI can simultaneously display specific interfaces of the pictures, the characters, the character colors and the background colors.
In one embodiment, S2 includes the steps of:
s21: packaging the interface elements according to a uniform interface to generate an interface element library;
s22: loading data and expansion attributes of all the element library objects, and mounting the information of the expansion attributes to the navigation elements;
s23: caching the key value items of all interface elements, and acquiring pictures, characters, videos and audios with complete corresponding information only through interface numbers.
S24: storing the complete pictures, characters, videos and audios in a hard disk of a server;
the working principle of the technical scheme is as follows: mapping an interface element into a payload of a certain encapsulation protocol, then filling a packet header of a corresponding protocol to form a data packet of the encapsulation protocol, completing rate adaptation, and mounting information of extended attributes onto a navigation element, wherein as long as a navigation object with complete information is obtained through a navigation object number, the navigation element is represented in four forms of for (i = a; i < = b; i + +), for (i =0 i < = n; i + +), for (i = src; i; i/= 10) and for (i =0 str i ]; i + +): void CreateBinTree (BinTree x T) {// construct a binary linked list. T is a pointer pointing to the root pointer, so modifying T modifies the actual parameter (root pointer) itself char ch;
if ((ch = getcar () = = ") > T = NULL; i/read in spaces, null the corresponding pointer
else {// read in non-blank spaces
* T = (BinTNode) = (smalloc (BinTNode)); // generating nodes
(*T)->data=ch;
CreateBinTree (& ([ T) - > lchild); v/construct the left sub-tree }
CreateBinTree (& ({ T) - > rchild); v/construct the right subtree };
the beneficial effects of the above technical scheme are: interface elements can be packaged according to a uniform interface to generate an interface element library, so that pictures, characters, videos and audios in the database can be managed conveniently.
In one embodiment, S3 includes the steps of:
s31: analyzing the interface element description information, converting the content into a data model which can be identified by a client, and transmitting the formatted data to display containers of four operating systems, namely IOS, android, smartisan OS and MIUI;
s32: the interface distributor generates a corresponding view according to the data and transmits specific interface data of the picture address, the characters, the character color and the background color to the display container;
s33: the presentation container splices the received views and associates click event interaction logic.
S34: classifying the associated views by APP views on IOS, android, smartisan OS and MIUI operating systems, and adapting the generated views to a screen;
the working principle of the technical scheme is as follows: the finished view is adapted to the screen, and the sizes of APP views on four operating systems, namely IOS, android, smartisan OS and MIUI, can be met in the process of dynamic rotation of an APP interface;
the beneficial effects of the above technical scheme are: the content is converted into a data model which can be identified by a client, formatted data is transmitted to display containers of four operating systems of IOS, android, smartisan OS and MIUI, an interface distributor generates corresponding views according to the data, specific interface data of picture addresses, characters, character colors and background colors are transmitted to the display containers, APP views on the four operating systems of IOS, android, smartisan OS and MIUI are classified for the associated views, the finished views are matched with a screen, and the sizes of the APP views on the four operating systems of IOS, android, smartisan OS and MIUI can be met in the process of dynamic rotation of the APP interfaces.
In one embodiment, S4 includes the steps of:
s41: starting an APP and initiating a request for reading one or more interface control data to a server, and analyzing and converting identifiers into data through URLs by the APP on four operating systems of IOS, android, smartisan OS and MIUI;
s42: the URL of the server side converts the data into the identification again and decrypts the identification data;
s43: a database in the server identifies the received identification;
the working principle of the technical scheme is as follows: the APP compares the four C language and python identifications on the IOS, the Android, the Smartisan OS and the MIUI with the C language and the python identification on the server;
the beneficial effects of the above technical scheme are: the APP on the IOS, android, smartisan OS and MIUI four operating systems converts the identification into data through URL analysis, the URL of the server side converts the data into the identification again, the identification data is decrypted, and a database in the server side identifies the received identification.
In one embodiment, S7 comprises the steps;
s71: reading a navigation object dictionary of a complete tree structure;
s72: iterating the navigation object dictionary, screening the navigation object dictionary according to the label list in the query parameters, and removing all navigation objects which are not matched with the labels in the query parameters;
s73: if the navigation object does not have a label, the navigation object is considered to be a general object and is also included in the screening result;
the working principle of the technical scheme is as follows: finding out the father node object according to the navigation object number, assigning to the father node object, inserting the father node object into a child object list of the father node object, and assigning a serial number to the navigation object, so that a client program can be directly used conveniently;
the beneficial effects of the above technical scheme are: in the using process, the navigation object can be quickly searched and identified according to the navigation object, so that the searching and identifying time is reduced, and the data identification of the server side is accelerated.
In one embodiment, S6 includes the steps of:
s61: the server side converts the internal interface elements into a data form in a URL mode, and transmits the data to APPs on four operating systems of IOS, android, smartisan OS and MIUI;
s62: the method comprises the steps that APP on four operating systems of IOS, android, smartisan OS and MIUI analyzes data in a URL mode, and the analyzed data are transmitted to a display container;
s63: checking the data analyzed by the URL and corresponding interface description information in a cache library, carrying out integrity check on the information, and transmitting the data into an APP on a system when the data is matched with the information in the cache library;
s64: the APP on the system compares the received data, and after the comparison is completed, the data is stored in the APP cache;
the working principle of the technical scheme is as follows: the APP on the IOS, android, smartisan OS and MIUI operating systems converts the identification into data through URL analysis, the URL of the server side converts the data into the identification again, the identification data is decrypted, and a database in the server side identifies the received identification;
the beneficial effects of the above technical scheme are: corresponding contact can be established with the server side that APP can be quick on four kinds of operating system of IOS, android, smartisan OS and MIUI, and the accuracy that APP can the discernment data simultaneously avoids data at the in-process of transmission, has the condition of losing to take place, has improved the practicality.
In one embodiment, S8 includes the steps of:
s81: the APP receives the interface and the parameters sent by the server, and the server converts the interface control into data and transmits the data to the APP;
s82: acquiring attribute information of the matched interface control;
s83: controlling the field content to be displayed on the APP interface according to the attribute information of the matched interface control;
s84: controlling the picture content to be displayed on the APP interface according to the attribute information of the matched interface control;
s85: controlling the video content to be displayed on the APP interface according to the attribute information of the matched interface control;
s86: controlling the audio content to be displayed on the APP interface according to the attribute information of the matched interface control;
the working principle of the technical scheme is as follows: meanwhile, the server interface control is converted into data and transmitted to the APP, and fields, pictures, videos and audios in the interface control are displayed in a classified mode;
the beneficial effects of the above technical scheme are: the data transmission and the display of being convenient for, section, picture, video and audio are the attribute information of the interface control of difference, and the APP end is at the in-process of data transmission and receipt, each other does not influence for the APP end is connected with the server end, reduces the time of data transmission and receipt, has improved the speed of APP interface dynamicization.
In one embodiment, S43 includes the steps of:
s431: when the identification conforms to the identifications of the APP on the IOS, android, smartisan OS and MIUI four operating systems, the identification passes the verification and the verification information is transmitted to a server database;
s432: when the identification does not conform to the identifications of the APP on the IOS, android, smartisan OS and MIUI four operating systems, refusing to verify and reporting the identification to a server database;
s433: the hard disk in the database records and caches the IP and MAC addresses of the database;
the working principle of the technical scheme is as follows: the identifier inside the server can be compared with identifiers of APPs on four operating systems of IOS, android, smartisan OS and MIUI;
the beneficial effects of the above technical scheme are: when the identification accords with the identifications of the APP on the four operation systems of IOS, android, smartisan OS and MIUI, the verification is passed, and verification information is transmitted to the server database, when the identification does not accord with the identifications of the APP on the four operation systems of IOS, android, smartisan OS and MIUI, the verification is refused, and the identification is reported to the server database, the IP and MAC addresses of the hard disks in the database are recorded and cached, when a worker investigates and maintains the server, the server can be searched according to the IP and MAC addresses refused to be verified, the maintenance of the server is facilitated, the safety of the APP interface change is improved, the development efficiency is improved, the occurrence of BUG is reduced, and the practicability is increased.
In one embodiment, in S7, the process of feeding back the interface description information to the APP end is as follows:
firstly, establishing an association relation with interface description information according to an identifier of a corresponding interface based on APP dynamic interfaces of an IOS operating system, an Android operating system, a Smartisan OS operating system and an MIUI operating system;
secondly, according to the association relationship, grouping the interface description information according to APP dynamic interfaces of an IOS operating system, an Android operating system, a Smartisan OS operating system and an MIUI operating system, and grouping and packaging the interface description information;
and finally, acquiring the type of the operating system with the APP dynamic interface, and transmitting the interface description information packet to the APP end corresponding to the type of the operating system according to the association relationship.
The working principle and the beneficial effects of the technical scheme are as follows: this scheme is associated through APP dynamic interface and interface description information based on operating system to different operating system's APP dynamic interface is grouped and is packed interface description information, acquires the operating system type that has APP dynamic interface, pertinently carries out interface description information packet transmission according to the incidence relation, can realize agreeing with to APP end transmission data and operating system, and the data volume of avoiding the data of transmission can not be suitable for or cause the transmission at the APP end is big, improves data transmission's efficiency and accuracy.
In one embodiment, in S33, for the view generated by splicing the received interface data by the presentation container, smoothing is performed, and a smoothing deviation is calculated by using the following formula:
Figure BDA0003010716250000151
in the above formula, R represents a smoothing processing deviation of a view; delta p Image information indicating the p pixel position of the smoothed image; gamma ray p Image information indicating a p-pixel position of the image before the smoothing process; p represents a pixel position; λ represents a smoothing control parameter, which is preset;
Figure BDA0003010716250000152
representing taking a minimum value, wherein q represents taking all coordinates in the pass image; k is a radical of q Representing a region factor, wherein the value of an image background region is 1, the value of an image foreground region is 0, and the value of the image background region and the image foreground region in an intersecting matching manner is 0.7; e representsA natural constant; σ represents a size factor, which takes the value of the minimum value of the width or height of the image divided by the square root of 25; b x,p And b y,p A two-dimensional smoothing weight representing a p pixel position of the image;
Figure BDA0003010716250000153
and
Figure BDA0003010716250000154
a two-dimensional minimized partial derivative representing the processed image information;
if the calculation result is larger than the deviation threshold value, the image after the smoothing processing is smoothed again, and the smoothing processing deviation of the image after the smoothing processing and the image before the processing is calculated by adopting the formula until the calculation result is not larger than the deviation threshold value.
The working principle and the beneficial effects of the technical scheme are as follows: this scheme is through carrying out the smooth processing to the view that the concatenation was handled and is generated, adopts above-mentioned formula to calculate the smooth processing deviation, and through the smooth processing more than once with the mode that control smooth processing deviation is not more than the deviation threshold value, the smooth processing quality of improvement view improves the interface dynamic display quality and the effect of APP, strengthens APP user's good experience.
In one embodiment, in S34, the view base point generated by the splicing process is selected as a first base point, the screen base point of the APP-side operating system is selected as a second base point, the first base point and the second base point are coincided and positioned during displaying, and the view generated by the splicing process is evaluated to be matched with the screen of the APP-side operating system by the following matching algorithm:
Figure BDA0003010716250000161
in the above formula, mu represents the deviation between the distance matching metric value from the jth positioning point to the ith splicing line displayed on the screen and the matching threshold value of the distance; k is a radical of formula 1 Representing the weight of the average value of the distances from n-1 points in front of the jth positioning point to the ith splicing line displayed on a screen; d ik Indicating the kth anchor point to the screen displayThe distance of the i splicing lines; k is a radical of 2 The weight of the distance from the jth positioning point to the ith splicing line displayed on the screen is represented; d is a radical of ij Representing the distance from the jth positioning point to the ith splicing line displayed on the screen; d 0 A matching degree threshold value representing a distance is preset;
if the calculation deviation does not exceed the set value, the matching degree of the view generated by the splicing processing and the screen of the APP terminal operating system is high, otherwise, the display needs to be adjusted.
The working principle and the beneficial effects of the technical scheme are as follows: according to the scheme, the view generated by splicing processing is evaluated to be matched with the screen of the APP side operating system, so that whether display adjustment is needed or not is judged; specifically, the influence of individual positioning points can be eliminated by taking the distance mean value of a plurality of points as a matching metric value, a correct matching evaluation result is obtained, the evaluation precision is improved, and the displayed matching degree is guaranteed.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. An interface dynamic method based on mobile APP is characterized by comprising the following steps:
s1: a structured display interface is established through a server side;
s2: carrying out full set caching on the description information related to the display interface, converting the description information into data information and storing the data information in a server side;
s3: aiming at APP dynamic interfaces based on an IOS operating system, an Android operating system, a Smartisan OS operating system and an MIUI operating system, establishing identifiers on the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system;
s4: reading parameter requests sent by the APP terminals on the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system through the server terminal, comparing the parameters with the C program data and the python program data of the server terminal, and identifying four kinds of identification in the C program data and the python program data;
s5: taking the identifier on the IOS operating system, the identifier on the Android operating system, the identifier on the Smartisan OS operating system and the identifier on the MIUI operating system as keys, searching the identifier of the corresponding interface from cache data of a server side for comparison, and encrypting the four identifiers of the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system by using a DES encryption algorithm;
s6: searching for an identifier of a corresponding interface from cache data of the server side for comparison, analyzing the compared data by using a URL (uniform resource locator), and decrypting the data analyzed by the URL by using a DES (data encryption standard) decryption algorithm;
s7: decrypting the data analyzed by the URL based on a DES decryption algorithm to generate interface description information, storing the interface description information into a cache library and feeding back the interface description information to an APP terminal;
s8: and storing the interface description information into a cache library and feeding back the interface description information to an APP (application) end, and constructing a target interface at the APP end by using an APP interface conversion method.
2. The interface dynamic method based on the mobile APP of claim 1 is characterized in that: in S2, the method includes the steps of:
s21: the method comprises the steps that description information related to a display interface is independently divided into single interface elements, and each single interface element is packaged according to a unified interface to generate an interface element library;
s22: loading all object data and expansion attributes in the interface element library, and mounting the information of the expansion attributes to the navigation elements;
s23: caching all the interface elements in a key value item mode, and acquiring pictures, characters, videos and audios with complete corresponding information through interface numbers;
s24: and storing the complete pictures, characters, videos and audios in a hard disk of a server side based on the pictures, characters, videos and audios which are obtained through the interface numbers and have complete corresponding information.
3. The method of claim 1, wherein the method comprises the following steps: in S3, the method includes the steps of:
s31: analyzing the description information of the interface element, converting the description information into a data model which can be identified by an APP terminal, and transmitting the data model to the presentation containers of an IOS (operating system), an Android operating system, a Smartisan OS (operating system) and an MIUI (micro interface operating system);
s32: the interface distributor generates a corresponding view according to the data model and transmits specific interface data of a view address, view characters, a view character color and a view background color to the display container;
s33: the display container splices the received interface data to generate a view, and associates the click event interaction logic;
s34: based on the correlation processing of the click event interaction logic, the correlated views are classified on an IOS operating system, an Android operating system, a Smartisan OS operating system and an MIUI operating system, and the views generated by splicing processing are matched with the screen of the operating system.
4. The interface dynamic method based on the mobile APP of claim 1 is characterized in that: in S4, the method includes the steps of:
s41: starting an APP terminal and initiating a request for reading one or more interface control data to a server terminal, carrying out identification analysis on the APP terminal on an IOS operating system, an Android operating system, a Smartisan OS operating system and an MIUI operating system through a URL, and converting an identification into data;
s42: the URL of the server side decrypts the data;
s43: and decrypting the data based on the URL of the server side, and receiving and identifying the identifier by the database of the server side.
5. The interface dynamic method based on mobile APP according to claim 3, characterized in that: in S31 to S34, further comprising the steps of:
s35: the server side converts internal interface elements into interface data in a URL (uniform resource locator) analysis mode, and transmits the interface data to APP sides on an IOS (input/output) operating system, an Android operating system, a Smartisan OS (operating system) and an MIUI (micro user interface) operating system;
s36: analyzing interface data to form a data model by using a URL (uniform resource locator) analyzing mode based on an IOS (operating system of operating system), an Android operating system, a Smartisan OS (operating system) and an APP (application) end on an MIUI (micro-user interface) operating system, and transmitting the data model formed by analyzing to a display container;
s37: traversing and checking the data model analyzed by the URL and corresponding interface description information in a cache library, executing integrity check, and transmitting the interface description information to an APP (application) end when the data model is matched with the interface description information in the cache library;
s38: and the APP terminal compares the received interface description information, and stores the interface description information in the APP terminal cache after the comparison is completed.
6. The method of claim 1, wherein the method comprises the following steps: in S8, the method includes the steps of:
s81: the APP end receives an interface function sent by the server end, and the server end converts the interface control into interface data and transmits the interface data to the APP end;
s82: the APP terminal obtains attribute information of the matched interface control;
s83: controlling the text content, the picture content, the video content and the audio content to be displayed on the interface of the APP terminal according to the attribute information of the matched interface control;
s84: displaying the text content, the picture content, the video content and the audio content on an interface of the APP terminal, and constructing a target interface by the APP terminal.
7. The interface dynamic method based on mobile APP according to claim 4, characterized in that: in S43, the method includes the steps of:
s431: when the identification accords with the identification of the APP terminal on the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system, passing the verification and transmitting the verification information to a database of the server terminal;
s432: when the identification does not conform to the identification of the APP terminal on the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system, refusing the verification and reporting the identification to a database of the server terminal;
s433: and the hard disk of the server side records and caches the IP and the MAC address of the server side.
8. The interface dynamic method based on mobile APP according to claim 4, characterized in that: in S7, the process of feeding back the interface description information to the APP end is as follows:
firstly, establishing an association relation with interface description information according to an identifier of a corresponding interface based on APP dynamic interfaces of an IOS operating system, an Android operating system, a Smartisan OS operating system and an MIUI operating system;
secondly, according to the association relationship, grouping the interface description information according to APP dynamic interfaces of an IOS operating system, an Android operating system, a Smartisan OS operating system and an MIUI operating system, and grouping and packaging the interface description information;
and finally, acquiring the type of the operating system with the APP dynamic interface, and transmitting the interface description information packet to the APP end corresponding to the type of the operating system according to the association relationship.
9. The interface dynamic method based on the mobile APP of claim 3 is characterized in that: in S33, for the view generated by the container splicing the received interface data, smoothing is performed, and the following formula is used to calculate the smoothing deviation:
Figure FDA0003010716240000041
in the above formula, R represents a smoothing processing deviation of a view; delta. For the preparation of a coating p Image information representing the p pixel position of the smoothed image; gamma ray p Image information indicating a p-pixel position of the image before the smoothing process; p represents a pixel position; λ represents a smoothing control parameter, which is preset;
Figure FDA0003010716240000051
representing taking a minimum value, wherein q represents taking all coordinates in the pass image; k is a radical of q Representing a region factor, wherein the value of an image background region is 1, the value of an image foreground region is 0, and the value of the image background region and the image foreground region in an intersecting matching manner is 0.7; e represents a natural constant; σ represents a size factor, which takes the value of the minimum of the width or height of the image divided by the square root of 25; b x,p And b y,p A two-dimensional smoothing weight representing a p pixel position of the image;
Figure FDA0003010716240000052
and
Figure FDA0003010716240000053
a two-dimensional minimized partial derivative representing the processed image information;
if the calculation result is larger than the deviation threshold value, the image after the smoothing processing is smoothed again, and the smoothing processing deviation of the image after the smoothing processing and the image before the processing is calculated by adopting the formula until the calculation result is not larger than the deviation threshold value.
10. The interface dynamic method based on mobile APP according to claim 3, characterized in that: in S34, selecting a view base point generated by the splicing processing as a first base point, selecting a screen base point of the APP end operating system as a second base point, positioning the view base point by coinciding the first base point and the second base point during displaying, and evaluating that the view generated by the splicing processing is adapted to the screen of the APP end operating system by using the following matching algorithm:
Figure FDA0003010716240000054
in the above formula, mu represents the deviation between the distance matching metric value from the jth positioning point to the ith splicing line displayed on the screen and the matching threshold value of the distance; k is a radical of 1 Representing the weight of the average value of the distances from n-1 points in front of the jth positioning point to the ith splicing line displayed on a screen; d ik Representing the distance from the kth positioning point to the ith splicing line displayed on the screen; k is a radical of formula 2 The weight of the distance from the jth positioning point to the ith splicing line displayed on the screen is represented; d ij Representing the distance from the jth positioning point to the ith splicing line displayed on the screen; d 0 A matching degree threshold value representing the distance is preset;
if the calculation deviation does not exceed the set value, the matching degree of the view generated by the splicing processing and the screen of the APP terminal operating system is high, otherwise, the display needs to be adjusted.
CN202110374664.4A 2021-04-08 2021-04-08 Interface dynamic method based on mobile APP Active CN113127120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110374664.4A CN113127120B (en) 2021-04-08 2021-04-08 Interface dynamic method based on mobile APP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110374664.4A CN113127120B (en) 2021-04-08 2021-04-08 Interface dynamic method based on mobile APP

Publications (2)

Publication Number Publication Date
CN113127120A CN113127120A (en) 2021-07-16
CN113127120B true CN113127120B (en) 2023-01-06

Family

ID=76775367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110374664.4A Active CN113127120B (en) 2021-04-08 2021-04-08 Interface dynamic method based on mobile APP

Country Status (1)

Country Link
CN (1) CN113127120B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699488A (en) * 2015-03-31 2015-06-10 北京奇虎科技有限公司 Method, equipment and system for acquiring APP (application) interface control data dynamically
WO2015139228A1 (en) * 2014-03-19 2015-09-24 Intel Patent Group Access isolation for multi-operating system devices
CN107463366A (en) * 2017-06-16 2017-12-12 兴业数字金融服务(上海)股份有限公司 A kind of interface mobilism method based on mobile App
CN109947521A (en) * 2019-03-28 2019-06-28 北京小米移动软件有限公司 Interface switching method, device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7219183B2 (en) * 2003-01-21 2007-05-15 Nextio, Inc. Switching apparatus and method for providing shared I/O within a load-store fabric

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015139228A1 (en) * 2014-03-19 2015-09-24 Intel Patent Group Access isolation for multi-operating system devices
CN104699488A (en) * 2015-03-31 2015-06-10 北京奇虎科技有限公司 Method, equipment and system for acquiring APP (application) interface control data dynamically
CN107463366A (en) * 2017-06-16 2017-12-12 兴业数字金融服务(上海)股份有限公司 A kind of interface mobilism method based on mobile App
CN109947521A (en) * 2019-03-28 2019-06-28 北京小米移动软件有限公司 Interface switching method, device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
用C++Builder开发双语用户界面程序;刘其洪;《计算机应用》;20010728(第07期);第87-89页 *

Also Published As

Publication number Publication date
CN113127120A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
US11269694B2 (en) Automated API code generation
US11120018B2 (en) Spark query method and system supporting trusted computing
US8131817B2 (en) Method and system for generating a graphical display for a remote terminal session
US10805267B2 (en) Systems and methods for geoprocessing-based computing network security
US10848407B2 (en) Efficient density based geo clustering
CN103678702A (en) Video duplicate removal method and device
EP3173951A1 (en) Integrated framework for secured data provisioning and management
CN111143555B (en) Customer portrait generating method, device, equipment and storage medium based on big data
CN111859426A (en) Universal encrypted database connector and setting method thereof
EP4174679A1 (en) Extending database external functions with user-defined functions
US20240103928A1 (en) Information processing method and apparatus for animation resource, device, medium and product
CN115150261A (en) Alarm analysis method and device, electronic equipment and storage medium
CN113127120B (en) Interface dynamic method based on mobile APP
CN108694227B (en) Method, system, and computer program product for tagging technical components of an organization unit in a virtual hosted platform by a central resource controller
WO2023217086A1 (en) Resource file updating method and apparatus, and device and readable storage medium
CN110866229B (en) Multi-platform account authority unified management method and system
WO2023115974A1 (en) Multimedia resource recommendation method and apparatus and object representation network generation method and apparatus
WO2022247226A1 (en) Applet monitoring method and device
CN106921711A (en) The method for pushing of automobile information, device and server
CN107357853B (en) Method and device for operating REDIS console and computer system
US20220365921A1 (en) Verifiable Cacheable Calclulations
CN110089076A (en) The method and apparatus for realizing information interaction
CN115396128A (en) Malicious traffic detection method and device, storage medium and electronic equipment
CN111610990B (en) Method, device and related system for upgrading application program
WO2019096207A1 (en) Image processing method and computer device, and computer readable storage medium

Legal Events

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