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

Interface dynamic method based on mobile APP Download PDF

Info

Publication number
CN113127120A
CN113127120A CN202110374664.4A CN202110374664A CN113127120A CN 113127120 A CN113127120 A CN 113127120A CN 202110374664 A CN202110374664 A CN 202110374664A CN 113127120 A CN113127120 A CN 113127120A
Authority
CN
China
Prior art keywords
operating system
interface
app
data
miui
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.)
Granted
Application number
CN202110374664.4A
Other languages
Chinese (zh)
Other versions
CN113127120B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

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 structured interface description information is cached in a complete set, an interface to be displayed is converted into data and stored at a server side, the server side converts APP interfaces in an IOS operating system, an Android operating system, a Smartian OS operating system and an MIUI operating system simultaneously, the APP interface can be directly changed without upgrading and reinstalling the APP side, the practicability is high, meanwhile, the APP side verifies C language and python identification on the IOS operating system, the Android operating system, the Smartian OS operating system and the MIUI operating system with C language and python identification at the server side, the safety of the APP interface change is improved, the development efficiency is improved, the occurrence of BUG is reduced, a DES algorithm encrypts four identifications of the IOS operating system, the Android operating system, the Smartian OS operating system and the MIUI operating system, data are effectively prevented from being cracked in the data transmission process, and the data transmission safety is enhanced, the design is reasonable.

Description

Interface dynamic method based on mobile APP
Technical Field
The invention relates to the technical field of mobile APP interface dynamic, in particular to an interface dynamic method based on mobile APP.
Background
A mobile phone, which is called a mobile phone or a wireless phone, is a portable phone terminal that can be used in a wide range, and is originally a communication tool, and has been known as a mobile phone in the early days. The first battlefield mobile phone developed by the united states bell laboratory in 1940, in 1958, the soviet union engineer, loney, kunjing, invented a-1 type mobile phone, in 1973, the united states motorola engineer, martin, kunja, 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 partially 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 APP interface in a Smartisan OS and an MIUI system can not be dynamically changed, the use limitation is large, the technical scheme can not realize the dynamic change of the APP interfaces in four operating systems of the IOS, the Android, the Smartisan OS and the MIUI at the same time, in the data transmission process, four identifiers of the IOS, the Android, the Smartisan OS and the MIUI are not encrypted, data is cracked, and the data transmission safety is usually 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 low 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 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 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 comprises 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) 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 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.
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 end on the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system, the verification is passed, and verification information is transmitted to a database of the server end;
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, 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.
Preferably, in S33, for the view generated by the display container performing the splicing process on the received interface data, the smoothing process is performed, and the smoothing process deviation is calculated by using the following formula:
Figure BDA0003010716250000061
in the above formula, R represents a smoothing processing deviation of a view; deltapImage information indicating the p pixel position of the smoothed image; gamma raypMeans for indicating flatnessImage information of p pixel positions of the image before the slide 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 ofqRepresenting 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; bx,pAnd by,pA 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, 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 of1Representing the mean value of the distances from n-1 points in front of the jth positioning point to the ith splicing line displayed on the screenA weight; dikRepresenting the distance from the kth positioning point to the ith splicing line displayed on the screen; k is a radical of2The weight of the distance from the jth positioning point to the ith splicing line displayed on the screen is represented; dijRepresenting the distance from the jth positioning point to the ith splicing line displayed on the screen; d0A 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 invention can obtain the following beneficial effects:
the interface dynamic method based on the mobile APP comprises the steps that in the using process, the server end can conduct the same time transition on the interfaces of the APP ends in an IOS (operation system), an Android operation system, a Smartisan OS (operating system) and an MIUI (micro-interactive application) operation system, and by using four kinds of identifications as keys, the identification module inside the server can quickly identify the identifications, so that the speed of the change of the interfaces of the APP ends is accelerated, the influence of the APP ends on the APP ends in the IOS, the Android operation system, the Smartisan OS operation system and the MIUI operation system in other operation systems is reduced, the interfaces of the APP ends can be directly changed without upgrading and reinstalling the APP ends, the practicability of the device is improved, the time consumed by reinstallation of the APP ends is reduced, the smoothness degree of the APP ends is improved, and the practicability is increased The C language and python identification on the Smartisan OS operating system and the MIUI operating system are compared with the C language and python identification on the server, the verification safety of the change of the APP interface is improved, the development efficiency is improved, the BUG is reduced, the DES encryption and decryption algorithm can be used for encrypting and decrypting four identifications of the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system, in the data transmission process, data are effectively prevented from being cracked, the data transmission safety is improved, the design is reasonable, and the use is convenient.
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 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 an operation of storing parsing description information data 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 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 realized aiming at APPs (dynamic interfaces) of four operating systems of IOS, Android, Smartisan OS and MIUI, and identifiers on the four operating systems of IOS, Android, Smartisan OS and MIUI are established simultaneously;
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 the navigation elements, caching the key value items of all the interface elements, acquiring pictures, characters, videos and audios with complete corresponding information by interface numbers, analyzing the description information of the interface elements, converting contents into data models which can be identified by a client, transmitting formatted data to display containers of four operating systems of IOS, Android, Smartisan OS and MIUI, generating corresponding views by an interface distributor according to the data, transmitting specific interface data of picture addresses, characters, character colors and background colors to the display containers, classifying the associated views by APP views on the four operating systems of IOS, Android, Smartisan OS and MIUI, the completed view is adapted to the screen, and at the moment, 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 picture, character, video and audio 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 expanding attributes onto the 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 + +), and the construction algorithm is as follows: 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 ═ malloc (sizeof (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 side 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 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 includes 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 (application applications) on four operating systems of IOS (operation system), Android, Smartisan OS (operating system) and MIUI (micro-user interface);
s62: analyzing data by using a URL (uniform resource locator) mode through APP on four operating systems, namely an IOS (operating system), an Android system, a Smartisan OS (operating system) and an MIUI (micro-interactive user interface), and transmitting the analyzed data 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 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 the verification 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, namely 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 (operation operating system), an Android operating system, a Smartisan OS (operating system) and an MIUI (micro-user interface) 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 the display container performing the splicing process on the received interface data, a smoothing process is performed, and the smoothing process deviation is calculated by using the following formula:
Figure BDA0003010716250000151
in the above formula, R represents a smoothing processing deviation of a view; deltapImage information indicating the p pixel position of the smoothed image; gamma raypImage 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 ofqRepresenting 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; bx,pAnd by,pA 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 stitching 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 stitching 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 of1Representing 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; dikRepresenting the distance from the kth positioning point to the ith splicing line displayed on the screen; k is a radical of2The weight of the distance from the jth positioning point to the ith splicing line displayed on the screen is represented; dijRepresenting the distance from the jth positioning point to the ith splicing line displayed on the screen; d0A 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 average 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 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.
2. The method of claim 1, wherein the method comprises the following steps: 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.
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 screens of the operating systems.
4. The method of claim 1, wherein the method comprises the following steps: 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.
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) 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 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 end on the IOS operating system, the Android operating system, the Smartisan OS operating system and the MIUI operating system, the verification is passed, and verification information is transmitted to a database of the server end;
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.
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 (operation operating system), an Android operating system, a Smartisan OS (operating system) and an MIUI (micro-user interface) 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 mobile APP according to claim 3, characterized in that: in S33, for the view generated by the display container performing the splicing process on the received interface data, a smoothing process is performed, and a smoothing process deviation is calculated by using the following formula:
Figure FDA0003010716240000041
in the above formula, R represents a smoothing processing deviation of a view; deltapImage information indicating the p pixel position of the smoothed image; gamma raypImage 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 ofqRepresenting 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; bx,pAnd by,pA 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 the view base point generated by the stitching process as a first base point, selecting the screen base point of the APP-side operating system as a second base point, performing superposition positioning with the first base point and the second base point during display, and evaluating that the view generated by the stitching process is adapted to the screen of the APP-side 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 of1Representing 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; dikRepresenting the distance from the kth positioning point to the ith splicing line displayed on the screen; k is a radical of2The weight of the distance from the jth positioning point to the ith splicing line displayed on the screen is represented; dijRepresenting the distance from the jth positioning point to the ith splicing line displayed on the screen; d0A 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.
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 true CN113127120A (en) 2021-07-16
CN113127120B 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050025119A1 (en) * 2003-01-21 2005-02-03 Nextio Inc. Switching apparatus and method for providing shared I/O within a load-store fabric
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050025119A1 (en) * 2003-01-21 2005-02-03 Nextio Inc. Switching apparatus and method for providing shared I/O within a load-store fabric
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开发双语用户界面程序", 《计算机应用》 *

Also Published As

Publication number Publication date
CN113127120B (en) 2023-01-06

Similar Documents

Publication Publication Date Title
US11269694B2 (en) Automated API code generation
US7266559B2 (en) Method and apparatus for adapting a search classifier based on user queries
CN103678702A (en) Video duplicate removal method and device
CA2994831A1 (en) Building and managing data-processing attributes for modeled data sources
US10848407B2 (en) Efficient density based geo clustering
CN107852412A (en) For phishing and the system and method for brand protection
CN111143555B (en) Customer portrait generating method, device, equipment and storage medium based on big data
CN111078986A (en) Data retrieval method, device and computer readable storage medium
US20240103928A1 (en) Information processing method and apparatus for animation resource, device, medium and product
CN111859426A (en) Universal encrypted database connector and setting method thereof
CN110046155A (en) The update of property data base, data characteristics determination method, device and equipment
CN113127120B (en) Interface dynamic method based on mobile APP
WO2023217086A1 (en) Resource file updating method and apparatus, and device and readable storage medium
WO2023115974A1 (en) Multimedia resource recommendation method and apparatus and object representation network generation method and apparatus
CN110866229B (en) Multi-platform account authority unified management method and system
CN106921711A (en) The method for pushing of automobile information, device and server
CN115757995A (en) Method and device for processing characteristic-free data label, computer equipment and storage medium
CN110089076A (en) The method and apparatus for realizing information interaction
CN115396128A (en) Malicious traffic detection method and device, storage medium and electronic equipment
CN111176715A (en) Information calling method and server
CN110737662A (en) data analysis method, device, server and computer storage medium
CN117171185B (en) Logistics data changing method and related equipment based on industrial identification
US11899664B2 (en) Computerized system and method for optimizing queries in a templated virtual semantic layer
US20240104051A1 (en) System and method for analyzing file system data using a machine learning model applied to a metadata backup
US20240104068A1 (en) System and method for analyzing file system data using a virtual file system generated using a metadata backup

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