CN114816556A - Request processing method and device and server - Google Patents
Request processing method and device and server Download PDFInfo
- Publication number
- CN114816556A CN114816556A CN202110122052.6A CN202110122052A CN114816556A CN 114816556 A CN114816556 A CN 114816556A CN 202110122052 A CN202110122052 A CN 202110122052A CN 114816556 A CN114816556 A CN 114816556A
- Authority
- CN
- China
- Prior art keywords
- target application
- operating system
- access request
- request
- application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 23
- 230000006978 adaptation Effects 0.000 claims abstract description 80
- 238000012545 processing Methods 0.000 claims abstract description 64
- 238000000034 method Methods 0.000 claims abstract description 46
- 238000006243 chemical reaction Methods 0.000 claims description 11
- 230000026676 system process Effects 0.000 claims description 6
- 230000004044 response Effects 0.000 claims description 4
- 238000011161 development Methods 0.000 abstract description 15
- 230000003044 adaptive effect Effects 0.000 abstract description 10
- 230000003993 interaction Effects 0.000 abstract description 5
- 230000008569 process Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000012827 research and development Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/541—Interprogram communication via adapters, e.g. between incompatible applications
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a request processing method, a request processing device and a server, wherein the method comprises the following steps: if a server deployed with a cloud platform receives an access request of a first terminal device for a target application, determining a first operating system running on the first terminal device; and then, acquiring adaptation parameters of the first operating system and the target application from adaptation parameters of the target application, which are contained in the cloud platform, adapting to various preset operating systems, and sending the access request to the target application based on the adaptation parameters. In the method, the terminal equipment accesses the target application through the cloud platform, and the cloud platform performs adaptive processing on the access request of the target application according to the operating system running on the terminal equipment, so that the interaction between the target application and different operating systems can be compatible, different application systems do not need to be designed for different operating systems when one application is developed, only one operating system needs to be developed, and the labor and time cost of application development is reduced.
Description
Technical Field
The present invention relates to the field of application development technologies, and in particular, to a request processing method, an apparatus, and a server.
Background
In the related art, a research and development company develops an application on-line release, and needs to develop different application systems for different operating systems (e.g., Android systems, iOS systems, windows systems, etc.) and different screen resolutions, and because system differences among the different operating systems are large, a professional technician needs to be recruited for application development for each operating system, thereby increasing labor cost and time for application development.
Disclosure of Invention
The invention aims to provide a request processing method, a request processing device and a request processing server, so as to reduce the labor cost and the time cost of application development.
In a first aspect, the present invention provides a request processing method, which is applied to a server deployed with a cloud platform, where the cloud platform includes: the target application adapts adaptation parameters of a plurality of preset operating systems; the method comprises the following steps: if an access request of a first terminal device for a target application is received, determining a first operating system running on the first terminal device; and acquiring adaptation parameters of the first operating system and the target application, and sending the access request to the target application based on the adaptation parameters.
In an optional implementation manner, the step of obtaining an adaptation parameter between the first operating system and the target application and sending the access request to the target application based on the adaptation parameter includes: according to the adaptation parameters of the first operating system and the target application, carrying out adaptation processing on the access request to obtain an access request suitable for the target application to receive; and sending the access request suitable for the target application to receive to the target application.
In an optional embodiment, the adaptation parameter includes an interface conversion parameter between the first operating system and an operating system to which the target application is applicable; the step of performing adaptation processing on the access request according to the adaptation parameters of the first operating system and the target application to obtain the access request suitable for the target application to receive includes: converting the format of the access request into a format matched with an interface corresponding to the target application according to the interface conversion parameters; and determining the format-converted access request as an access request suitable for the target application to receive.
In an optional implementation manner, after the step of obtaining the adaptation parameter of the first operating system and the target application and sending the access request to the target application based on the adaptation parameter, the method further includes: receiving a data processing request sent by first terminal equipment through a target application; based on the adaptation parameters of a first operating system running on the first terminal device and the target application, sending the data processing request to the first operating system so that the first operating system processes the data processing request and returns a processing result; and returning the received processing result to the target application.
In an optional embodiment, the access request carries a device parameter of a first terminal device that sends the access request; the device parameter is used for indicating a first operating system running on the first terminal device; the step of determining the first operating system running on the first terminal device if the access request for the target application sent by the first terminal device is received includes: if an access request of a first terminal device for a target application is received, extracting device parameters from the access request; and determining the operating system indicated by the equipment parameters as a first operating system running on the first terminal equipment.
In an optional implementation manner, before the step of determining the first operating system running on the first terminal device if the access request for the target application sent by the first terminal device is received, the method further includes: receiving a registration request sent by a user through first terminal equipment; registering a platform account for the user based on the registration request; the platform account is used for using the target application contained in the cloud platform through the platform account after logging in the cloud platform.
In an optional embodiment, the method further comprises: responding to an adding instruction aiming at the specified application, and adding the specified application to the cloud platform; the add instruction for a given application includes: the operating system to which the specified application is currently applicable and the program code of the specified application.
In an optional embodiment, the method further comprises: responding to an adding instruction aiming at the specified operating system, and adding the specified operating system to the cloud platform; wherein, the adding instruction aiming at the specified operating system carries the adaptive parameters of the specified operating system.
In a second aspect, the present invention provides a request processing apparatus, which is disposed in a server deployed with a cloud platform, where the cloud platform includes: the target application adapts adaptation parameters of a plurality of preset operating systems; the device includes: the request receiving module is used for determining a first operating system running on the first terminal equipment if an access request of the first terminal equipment for the target application is received; and the request forwarding module is used for acquiring the adaptation parameters of the first operating system and the target application and sending the access request to the target application based on the adaptation parameters.
In a third aspect, the present invention provides a server comprising a processor and a memory, the memory storing machine executable instructions capable of being executed by the processor, the processor executing the machine executable instructions to implement the request processing method of any one of the preceding embodiments.
In a fourth aspect, the present invention provides a machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to carry out the request processing method of any one of the preceding embodiments.
The embodiment of the invention has the following beneficial effects:
according to the request processing method, the request processing device and the server, firstly, if the server with a cloud platform receives an access request of a first terminal device for a target application, a first operating system running on the first terminal device is determined; and then the server acquires the adaptation parameters of the first operating system and the target application from the adaptation parameters of the target application adaptation multiple preset operating systems contained in the cloud platform, and sends the access request to the target application based on the adaptation parameters. In the method, the terminal equipment accesses the target application through the cloud platform, the cloud platform performs adaptive processing on the access request of the target application according to the operating system running on the terminal equipment, so that the interaction between the target application and different operating systems can be compatible, different application systems are not required to be designed for different operating systems when the same application is developed, only one operating system is required to be developed, and the labor cost and the time cost of application development are reduced.
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 as set forth above.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a request processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another request processing method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a request processing structure based on a cloud platform according to an embodiment of the present invention;
FIG. 4 is a flow chart of another request processing method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a request processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the related art, a research and development company develops an application on-line release, and needs to develop different application systems for different operating systems (e.g., Android system, iOS system, windows system, etc.) and different screen resolutions, that is, needs to develop an application system compatible with multiple operating systems and multiple screen resolutions. Because the system difference between different operating systems is large, a professional technical person needs to be recruited for application development for each operating system, so that the labor cost and the time cost of application development are increased, an innovative person wants to establish a company, and the cost for developing an application system is high. In the related art, most companies will firstly develop the android version, firstly release the android application market to run, and then gradually expand the android application market to systems such as WeChat public numbers, applets and iOS.
Meanwhile, the existing application development mode has the following problems: in the face of different screen sizes of different versions of systems of different manufacturers, it is very difficult for research and development companies to achieve compatibility and adaptation; the application system of the user can only be communicated with the player of one operating system, and cannot be communicated with the players of other operating systems (for example, the application is only communicated with the player of the Android on the Android, and cannot be communicated with the player on the iOS system), so that the user experience is poor; the application system of the user switches the mobile phone, and purchases other mobile phones with different operating systems, and data in the application system cannot be synchronized, so that the user experience is poor; the user needs to register, real name, bind information such as mobile phone number, bank card, identity card and the like separately for each large application system, so that the operation is troublesome, and the information of the user is easy to leak.
Based on the above problem, embodiments of the present invention provide a request processing method, apparatus, and server, and the technology may be applied to a scenario where an application system is compatible. To facilitate understanding of the embodiment, first, a detailed description is given to a request processing method disclosed in the embodiment of the present invention, where the method is applied to a server deployed with a cloud platform, and the cloud platform includes: the target application adapts adaptation parameters of a plurality of preset operating systems; the target application is one of a plurality of applications included in a cloud platform, the cloud platform includes adaptation parameters for adapting to a plurality of preset operating systems for each application, and the operating systems for each application may be the same or different, that is, the corresponding operating systems may be the same or different when each application is developed, for example, application 1 may be developed on an android system, and application 2 may be developed on an iOS system.
As shown in fig. 1, the method comprises the following specific steps:
step S102, if an access request of the first terminal device for the target application is received, a first operating system running on the first terminal device is determined.
The first terminal device may be a mobile terminal (e.g., a mobile phone, a tablet computer, a smart band, etc.), or may be a computer. The first terminal device is a device being used by a user, and the user may send an access request to the target application through the first terminal device, where the access request may be a request for accessing some data in the target application, or may be a processing result sent to the target application after the first terminal device processes some information.
In specific implementation, each terminal device corresponds to a respective operating system, which may be an Android system, an iOS system, or a windows system, and each operating system corresponds to a different version, for example, from Android version 4.x to Android version 11. x. Typically, a terminal device has a version of an operating system associated with it. Moreover, the first terminal device does not need to download the target application, and the user only needs to log in the cloud platform, and can send the access request to the target application included in the cloud platform, which can also be understood as: after a user logs in the cloud platform through the first terminal device, the cloud platform can display a plurality of applications, and the user can access any one of the displayed plurality of applications through the first terminal device, so that the processes of downloading and registering the applications by the user are avoided, and the application using process of the user is simplified.
Specifically, after a first terminal device logs in a cloud platform, the first terminal device may access a target application on the cloud platform through the cloud platform, and since a first operating system running on the first terminal device may be different from an operating system applicable to target application development, when an access request for the target application by the first terminal device is received, the first operating system running on the first terminal device that sends the access request is determined, the operating system may be determined according to device parameters carried in the access request, or the operating system may be determined according to device parameters of the first terminal device that are pre-stored in the cloud platform.
Step S104, acquiring the adaptation parameters of the first operating system and the target application, and sending the access request to the target application based on the adaptation parameters.
The cloud platform stores adaptation parameters of the target application and each operating system in the multiple operating systems, the adaptation parameters are actually adaptation parameters between the operating system used by the target application and each operating system, and the adaptation parameters can be interface parameters, protocol parameters and the like between the operating system to which the target application is applicable and a certain operating system. In a specific implementation, a server corresponding to the cloud platform needs to obtain adaptation parameters of the first operating system and the target application from the stored multiple adaptation parameters, and convert the access request into a request suitable for the target application to receive based on the adaptation parameters, which may also be understood as converting the access request into a request suitable for the operating system to which the target application is suitable to receive.
The request processing method provided by the embodiment of the invention comprises the steps that firstly, if a server with a cloud platform is deployed and receives an access request of a first terminal device for a target application, a first operating system running on the first terminal device is determined; and then the server acquires the adaptation parameters of the first operating system and the target application from the adaptation parameters of the target application adaptation multiple preset operating systems contained in the cloud platform, and sends the access request to the target application based on the adaptation parameters. In the method, the terminal equipment accesses the target application through the cloud platform, the cloud platform performs adaptive processing on the access request of the target application according to the operating system running on the terminal equipment, so that the interaction between the target application and different operating systems can be compatible, different application systems are not required to be designed for different operating systems when the same application is developed, only one operating system is required to be developed, and the labor cost and the time cost of application development are reduced.
The embodiment of the invention also provides another request processing method, which is realized on the basis of the method of the embodiment; the method mainly describes that if an access request of a first terminal device for a target application is received, a specific process of a first operating system running on the first terminal device is determined (realized through steps S202-S204), an adaptive parameter of the first operating system and the target application is obtained, and the access request is sent to the specific process of the target application based on the adaptive parameter (realized through step S208); as shown in fig. 2, the method comprises the steps of:
step S202, if receiving an access request of a first terminal device for a target application, extracting device parameters from the access request; the access request carries equipment parameters of first terminal equipment which sends the access request; the device parameter is indicative of a first operating system running on the first terminal device.
The device parameter may include a number of an operating system run by the first terminal device and a version number of the operating system.
Step S204, determining the operating system indicated by the device parameter as the first operating system running on the first terminal device.
Step S206, according to the obtained adaptive parameters of the first operating system and the target application, the access request is subjected to adaptive processing, and the access request suitable for being received by the target application is obtained.
During specific implementation, adaptation processing is performed on the access request according to adaptation parameters of the first operating system and the target application stored in the cloud platform, that is, adaptation parameters between the first operating system and an operating system suitable for the target application, so that the access request capable of being received by the target application is obtained.
In some embodiments, the adaptation parameter may include an interface conversion parameter between the first operating system and an operating system to which the target application is applicable; in a specific implementation, an Interface between the first operating system and an operating system to which the target Application is applicable may be an API (Application Programming Interface); when the adaptation parameter includes the interface conversion parameter, the step S206 may be implemented by the following steps 10 to 11:
and step 10, converting the format of the access request into a format matched with the interface corresponding to the target application according to the interface conversion parameters.
For example, if the first operating system is an iOS system and the operating system applicable to the target application is an Android system, the format of the access request needs to be converted into a format suitable for the interface reception of the Android system applicable to the target application according to the interface conversion parameter between the iOS system and the Android system.
And step 11, determining the access request after format conversion as the access request suitable for the target application to receive.
Step S208, sending the access request suitable for the target application to receive to the target application.
During specific implementation, after the server corresponding to the cloud platform performs adaptation processing on the access request to obtain the access request suitable for the target application to receive, the access request suitable for the target application to receive is forwarded to the target application, so that a user can use the target application, and interaction between the target application and the first terminal device running the first operating system is achieved.
Step S210, receiving a data processing request sent by the first terminal device through the target application.
The data processing request may be a data processing request sent by a target application triggered when a user operates the target application on a first terminal device, where the data processing request may be a request for turning on or turning off a certain hardware in the first terminal device or a request for acquiring certain data in the first terminal device, and the content specifically included in the data processing request may be set according to functions of different applications, and is not limited specifically herein.
Step S212, based on the adaptation parameters of the first operating system running on the first terminal device and the target application, sends the data processing request to the first operating system, so that the first operating system processes the data processing request, and returns a processing result.
Step S214 returns the received processing result to the target application.
During specific implementation, according to the adaptation parameters of the first operating system and the target application stored in the cloud platform, that is, the adaptation parameters between the first operating system and the operating system suitable for the target application, the data processing request is adapted to obtain a data processing request suitable for the first operating system to process, so that the first operating system processes the data processing request and sends a processing result to the cloud platform, and the cloud platform processes the processing result or directly sends the processing result to the target application.
For example, when a user uses a scanning function of a target application, the target application sends a request for using a system camera to a cloud platform layer, the cloud platform forwards the request to a first operating system, and the operating system opens the camera of a first terminal device after receiving the request; and similarly, the first operating system sends the operation result of opening the camera to the cloud platform, and the cloud platform sends the result to the target application.
The cloud platform has large cloud management and control capability and compatibility capability of each operating system, and is mainly used for processing interaction, safety, compatibility, account management and the like with manufacturer systems (equivalent to the operating systems of all brands). The cloud platform is provided with a plurality of applications, can process data of the applications, and then sends the processed data to a manufacturer system for interactive transfer, and meanwhile can help to respond terminal equipment operating the manufacturer system and return the response to the applications. Fig. 3 is a schematic diagram of a request processing structure based on a cloud platform according to an embodiment of the present invention, where the cloud platform in fig. 3 is deployed with applications suitable for multiple terminals, such as a mobile terminal application system, a PC (Personal Computer) end application system, and application systems of other application terminals.
In a specific implementation, before the operating system and the application are interacted through the cloud platform, account registration needs to be performed, which specifically includes the following steps 20 to 21:
step 20, receiving a registration request sent by a user through a first terminal device.
Step 21, registering a platform account for the user based on the registration request; the platform account is used for using the target application contained in the cloud platform through the platform account after logging in the cloud platform.
In practical application, a user can log in a cloud platform through a registered platform account in first terminal equipment, and then real-name authentication, bank card binding and the like can be performed in the cloud platform; meanwhile, after the user logs in successfully, any application published to the cloud platform can be directly accessed. The cloud platform guarantees the safety of the user, meanwhile, the user accesses the application in the cloud platform, the operations of registration, real-name authentication, card binding and the like do not need to be carried out again, and the cloud platform is used for realizing the unified operation. The platform uniformly manages and controls the user information, and before, independent registration, authentication, face recognition binding and bank card binding do not need to be carried out on each used application, so that the risk of information leakage, rogue application use by lawless persons and user personal information stealing is greatly reduced.
The following describes embodiments of the present invention in detail by taking a terminal device as a mobile phone as an example. Firstly, in order to facilitate understanding of the embodiment of the present invention, how a user manages applications in a mobile phone in the prior art is introduced, generally, when the user uses a mobile phone of a certain manufacturer, an operating system with factory settings in the mobile phone is provided, the operating system can be upgraded but the type cannot be changed, when the user needs to use a target application, the user needs to download and install the target application in an application store of the mobile phone, and after the target application is used, the user needs to use the mobile phone number of the user to perform operations such as registration, login, bank card binding and the like of the target application, and the method is complex in operation, and easily causes problems of user information leakage and safety.
The invention adds a layer of cloud platform between a manufacturer system and an application. The cloud platform is used for uniformly managing the applications on the mobile phone, when a user needs to use the target applications, the user does not need to download the target applications from an application mall, the user only needs to directly enter the cloud platform of the mobile phone, the cloud platform carries out operations such as account login and bank card binding, namely, the cloud platform is provided with icons corresponding to the target applications, the target applications can be used by clicking the icons, and in the using process of the target applications, the cloud platform is used for uniformly logging in without registering and authenticating the target applications. And bank cards do not need to be bound, the bank cards are uniformly bound on the cloud platform, all applications need to be paid or other transactions, and the operations such as payment and the like are directly skipped to the cloud platform. According to the method, the cloud platform is added between the manufacturer system and the application, so that the problems of user information leakage and safety, and the problems of complicated user registration, login authentication, identity recognition, bank card binding and the like are solved, and the compatibility of the application and the operating system is realized through the powerful system of the cloud platform.
As shown in fig. 4, another flow chart of a request processing method is presented, a user can log in a cloud platform through a platform account, use all applications deployed in the cloud platform, such as application a, application B and application C shown in fig. 4, when a user uses the application of the cloud platform to interact with the operating system of the terminal equipment, the user can send a data processing request to the cloud platform through the application A, the application B or the application C, the cloud platform performs adaptation processing on the data processing request, the adapted request is sent to the operating system of the terminal equipment used by the user through the system gateway of the cloud platform, the operating system processes the request, sends a command to the bottom hardware according to the request when the bottom hardware is required to respond, returns a processing result to the operating system after the bottom hardware executes the completion command, and returns the processing result to the application of the cloud platform through the system gateway of the cloud platform.
In specific implementation, a server of the cloud platform may respond to an addition instruction for a specific application, and add the specific application to the cloud platform; the add instruction for a given application includes: the operating system to which the specified application is currently applicable and the program code of the specified application. The specific application may be an application that an application developer wants to publish to the cloud platform, and the operating system to which the specific application is currently applied is also an operating system that is applicable when the specific application is developed. Specifically, the application developer can send the developed application to the cloud platform by one key, and can log in the cloud platform to access various applications published in the cloud platform at any terminal device.
In some embodiments, the server of the cloud platform may further add the specified operating system to the cloud platform in response to an add instruction for the specified operating system; the adding instruction for the specified operating system carries the adaptation parameters of the specified operating system. The specified operating system may be an operating system that the vendor wants to publish to the cloud platform.
According to the request processing method, an application developer does not need to pay attention to whether the version suitable for developing the application is compatible with the operating systems of the versions of manufacturers, and only needs to release or add the developed application to the cloud platform, the cloud platform can be adapted to the operating systems according to the operating systems suitable for developing the application, so that the development period and the development and maintenance cost are greatly shortened, and meanwhile, the operation flow from the on-line process of design, development and release to the experience and use of users is simplified.
For the foregoing method embodiment, an embodiment of the present invention provides a request processing apparatus, where the apparatus is disposed in a server deployed with a cloud platform, and the cloud platform includes: the target application adapts adaptation parameters of a plurality of preset operating systems; as shown in fig. 5, the apparatus includes:
the request receiving module 50 is configured to determine a first operating system running on the first terminal device if an access request for the target application from the first terminal device is received.
And a request forwarding module 51, configured to obtain adaptation parameters of the first operating system and the target application, and send the access request to the target application based on the adaptation parameters.
The request processing device comprises a server, a first terminal device and a second terminal device, wherein the server is deployed with a cloud platform, and if the server receives an access request of the first terminal device for a target application, the first terminal device determines a first operating system running on the first terminal device; and then the server acquires the adaptation parameters of the first operating system and the target application from the adaptation parameters of the target application adaptation multiple preset operating systems contained in the cloud platform, and sends the access request to the target application based on the adaptation parameters. In the method, the terminal equipment accesses the target application through the cloud platform, the cloud platform performs adaptive processing on the access request of the target application according to the operating system running on the terminal equipment, so that the target application and the compatible different operating systems can be interacted, different application systems are not required to be designed for different operating systems when the same application is developed, only one operating system is required to be developed, and the labor cost and the time cost of application development are reduced.
Specifically, the request forwarding module 51 is configured to: according to the adaptation parameters of the first operating system and the target application, adaptation processing is carried out on the access request to obtain the access request suitable for the target application to receive; and sending the access request suitable for the target application to receive to the target application.
In specific implementation, the adaptation parameter includes an interface conversion parameter between the first operating system and an operating system applicable to the target application; the request forwarding module 51 is further configured to: converting the format of the access request into a format matched with an interface corresponding to the target application according to the interface conversion parameters; and determining the format-converted access request as an access request suitable for the target application to receive.
Further, the apparatus further includes a data processing module configured to: after the adaptation parameters of the first operating system and the target application are obtained and the access request is sent to the target application based on the adaptation parameters, receiving a data processing request sent by the first terminal device through the target application; based on the adaptation parameters of a first operating system running on the first terminal device and the target application, sending the data processing request to the first operating system so that the first operating system processes the data processing request and returns a processing result; and returning the received processing result to the target application.
Further, the access request carries a device parameter of the first terminal device that sends the access request; the device parameter is used for indicating a first operating system running on the first terminal device; the request receiving module 50 is configured to: if an access request of a first terminal device for a target application is received, extracting device parameters from the access request; and determining the operating system indicated by the equipment parameters as a first operating system running on the first terminal equipment.
Further, the apparatus further includes a registration module configured to: receiving a registration request sent by a user through first terminal equipment; registering a platform account for the user based on the registration request; the platform account is used for using the target application contained in the cloud platform through the platform account after logging in the cloud platform.
Further, the apparatus further includes an application adding module configured to: responding to an adding instruction aiming at a specified application, and adding the specified application to the cloud platform; the add instruction for a given application includes: the operating system to which the specified application is currently applicable and the program code of the specified application.
Further, the apparatus further includes an operating system adding module, configured to: responding to an adding instruction aiming at a specified operating system, and adding the specified operating system to the cloud platform; wherein, the adding instruction aiming at the specified operating system carries the adaptive parameters of the specified operating system.
The implementation principle and the technical effect of the request processing device provided by the embodiment of the present invention are the same as those of the foregoing method embodiments, and for the sake of brief description, no mention is made in the device embodiment, and reference may be made to the corresponding contents in the foregoing method embodiments.
An embodiment of the present invention further provides a server, as shown in fig. 6, where the server includes a processor 101 and a memory 100, where the memory 100 stores machine executable instructions capable of being executed by the processor 101, and the processor 101 executes the machine executable instructions to implement the request processing method.
Further, the server shown in fig. 6 further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103 and the memory 100 are connected through the bus 102.
The memory 100 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 102 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
The processor 101 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 101. The processor 101 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100, and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the request processing method, and specific implementation may refer to method embodiments, and is not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (11)
1. A request processing method is applied to a server deployed with a cloud platform, and the cloud platform comprises the following steps: the target application adapts adaptation parameters of a plurality of preset operating systems; the method comprises the following steps:
if an access request of a first terminal device for the target application is received, determining a first operating system running on the first terminal device;
and acquiring adaptation parameters of the first operating system and the target application, and sending the access request to the target application based on the adaptation parameters.
2. The method of claim 1, wherein the step of obtaining the adaptation parameter of the first operating system and the target application, and sending the access request to the target application based on the adaptation parameter comprises:
according to the adaptation parameters of the first operating system and the target application, carrying out adaptation processing on the access request to obtain an access request suitable for being received by the target application;
and sending an access request suitable for the target application to receive to the target application.
3. The method of claim 2, wherein the adaptation parameters comprise interface translation parameters between the first operating system and an operating system to which the target application is applicable;
the step of performing adaptation processing on the access request according to the adaptation parameters of the first operating system and the target application to obtain the access request suitable for the target application to receive includes:
converting the format of the access request into a format matched with the interface corresponding to the target application according to the interface conversion parameters;
and determining the access request after format conversion as the access request suitable for the target application to receive.
4. The method according to any one of claims 1-3, wherein after the step of obtaining the adaptation parameters of the first operating system and the target application and sending the access request to the target application based on the adaptation parameters, the method further comprises:
receiving a data processing request sent by the first terminal device through the target application;
sending the data processing request to a first operating system based on the adaptation parameters of the first operating system running on the first terminal device and the target application, so that the first operating system processes the data processing request and returns a processing result;
and returning the received processing result to the target application.
5. The method according to any one of claims 1 to 3, wherein the access request carries device parameters of a first terminal device that sends the access request; the device parameter is used for indicating a first operating system running on the first terminal device;
the step of determining a first operating system running on the first terminal device if an access request for the target application sent by the first terminal device is received includes:
if an access request of the first terminal device for the target application is received, extracting the device parameters from the access request;
and determining the operating system indicated by the equipment parameters as a first operating system running on the first terminal equipment.
6. The method of claim 1, wherein before the step of determining the first operating system running on the first terminal device if an access request sent by the first terminal device for the target application is received, the method further comprises:
receiving a registration request sent by a user through the first terminal equipment;
registering a platform account for the user based on the registration request; and the platform account is used for using the target application contained in the cloud platform through the platform account after logging in the cloud platform.
7. The method of claim 1, further comprising:
adding a specified application to the cloud platform in response to an add instruction for the specified application; the adding instruction for the specified application comprises the following steps: an operating system to which the specified application is currently applicable and program code of the specified application.
8. The method of claim 1, further comprising:
adding a specified operating system to the cloud platform in response to an add instruction for the specified operating system; wherein, the adding instruction for the specified operating system carries the adaptation parameters of the specified operating system.
9. A request processing device is characterized in that the device is arranged on a server deployed with a cloud platform, and the cloud platform comprises: the target application adapts adaptation parameters of a plurality of preset operating systems; the device comprises:
the request receiving module is used for determining a first operating system running on first terminal equipment if an access request of the first terminal equipment for the target application is received;
and the request forwarding module is used for acquiring the adaptation parameters of the first operating system and the target application and sending the access request to the target application based on the adaptation parameters.
10. A server comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the request processing method of any one of claims 1 to 8.
11. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the request processing method of any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110122052.6A CN114816556A (en) | 2021-01-28 | 2021-01-28 | Request processing method and device and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110122052.6A CN114816556A (en) | 2021-01-28 | 2021-01-28 | Request processing method and device and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114816556A true CN114816556A (en) | 2022-07-29 |
Family
ID=82526900
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110122052.6A Pending CN114816556A (en) | 2021-01-28 | 2021-01-28 | Request processing method and device and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114816556A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115827060A (en) * | 2022-12-09 | 2023-03-21 | 广州文石信息科技有限公司 | Application adaptation method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108449418A (en) * | 2018-03-29 | 2018-08-24 | 新华三云计算技术有限公司 | A kind of mixed cloud platform management system and method |
CN111767271A (en) * | 2020-06-28 | 2020-10-13 | 西安万像电子科技有限公司 | Data processing method and device |
-
2021
- 2021-01-28 CN CN202110122052.6A patent/CN114816556A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108449418A (en) * | 2018-03-29 | 2018-08-24 | 新华三云计算技术有限公司 | A kind of mixed cloud platform management system and method |
CN111767271A (en) * | 2020-06-28 | 2020-10-13 | 西安万像电子科技有限公司 | Data processing method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115827060A (en) * | 2022-12-09 | 2023-03-21 | 广州文石信息科技有限公司 | Application adaptation method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10397210B2 (en) | Method, device, client and server for interaction | |
CN106445583B (en) | Page display method, equipment and system | |
US7644163B2 (en) | Plug and play mobile services | |
KR101541263B1 (en) | Method and apparatus for executing user action commands | |
CN107015870B (en) | Method and device for realizing communication between web page and local application and electronic equipment | |
CN108810123B (en) | Method and apparatus for provisioning mobile cellular network services | |
US9641575B2 (en) | Method for sharing multimedia content between two users | |
US11516732B2 (en) | Provisioning an embedded universal integrated circuit card (eUICC) of a mobile communication device | |
US20180324169A1 (en) | Method of access by a telecommunications terminal to a database hosted by a service platform that is accessible via a telecommunications network | |
CN111181992B (en) | Communication method, device, equipment and storage medium of nodes and chain codes in block chain | |
US10045216B1 (en) | WiFi access point connection protocol adaptation | |
CN114816556A (en) | Request processing method and device and server | |
CN110943827A (en) | Data acquisition method and device based on network protocol | |
CN111787642B (en) | Third-party application based authentication networking method and device | |
CN111064675B (en) | Access flow control method, device, network equipment and storage medium | |
CN114912097A (en) | Certificate verification method and device, electronic equipment and storage medium | |
CN112887362A (en) | Equipment access method, equipment access device and server | |
CN112486543A (en) | Firmware upgrading method, device, storage medium and system of network equipment | |
CN107666393B (en) | Method for controlling website access by portable router and portable router | |
CN117062038B (en) | Equipment automatic binding method and device based on near field communication technology | |
CN111475171B (en) | Application program component downloading method and device and electronic equipment | |
CN112235784B (en) | vSIM-based code number management method, device and equipment | |
WO2017124436A1 (en) | Communication method, mobile terminal, issuing terminal and communication system | |
EP4202665A1 (en) | Method for performing a service with an application when scanning an optical tag | |
CN115686505A (en) | Page processing method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |