Book reading application configuration method, device and electronic device
By obtaining and modifying application configuration files to adapt to the business needs of book reading manufacturers, it solves the problems of cumbersome existing APP development processes and poor web page promotion, achieves rapid generation of applications that meet needs, and reduces the cost of entering the market.
Patent Information
- Application Number
- CN202010532006.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-11
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-06-11
AI Technical Summary
The existing novel APP development process is cumbersome, which increases the cost for manufacturers to enter the market, and the poor promotion of web pages leads to low retention rates.
By obtaining the business needs of the book reading manufacturer, the modification parameters of the book display characteristics and display revenue targets are obtained, the preset application configuration file is modified based on these parameters, the target application configuration file is generated, and returned to the manufacturer for business processing ask.
It realizes the rapid generation of applications that meet the needs of manufacturers, reducing the development workload and the cost of entering the market.
Smart Images

Figure CN111880767B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and more specifically, to a method, device, server and storage medium for configuring a book reading application. Background Art
[0002] With the development of information technology and the popularization of smart terminals, more and more users are starting to read novels with smart terminals such as mobile phones. At present, if manufacturers want to enter the novel market, they need to first obtain the novel content and then develop a web page or APP. Among them, the promotion of web pages is poor, which easily leads to low retention rates, and novel APPs have become people's first choice due to their convenience. However, the existing novel APP development process is relatively cumbersome, and it is necessary to send people to develop according to documents, or store book information on their own servers for maintenance and development, which increases the workload and thus increases the cost of entering the novel market. Summary of the invention
[0003] In view of the above problems, the present application proposes a book reading application configuration method, device, server and storage medium to improve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a method for configuring a book reading application, the method comprising: obtaining business requirements of a book reading manufacturer user, the business requirements comprising book display features and display revenue targets corresponding to the book display features; obtaining modification parameters corresponding to the book display features and the display revenue targets; modifying a preset application configuration file based on the modification parameters to obtain a target application configuration file; generating an application including the target application configuration file; and returning the application to the book reading manufacturer user for processing business requests corresponding to the business requirements based on the application.
[0005] In a second aspect, an embodiment of the present application provides a book reading application configuration device, which includes: a business demand acquisition module, used to obtain the business needs of book reading manufacturer users, the business needs including book display features and display revenue targets corresponding to the book display features; a modification parameter acquisition module, used to obtain modification parameters corresponding to the book display features and the display revenue targets; a configuration module, used to modify a preset application configuration file based on the modification parameters to obtain a target application configuration file; an application generation module, used to generate an application including the target application configuration file; a return module, used to return the application to the book reading manufacturer user, so as to process the business request corresponding to the business demand based on the application.
[0006] In a third aspect, an embodiment of the present application provides a server comprising a memory and one or more processors; one or more programs are stored in the memory and configured to be executed by one or more processors, and the one or more programs are configured to execute the method described in the first aspect above.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein when the program code is executed by a processor, the method described in the first aspect is executed.
[0008] The embodiments of the present application provide a method, device, server, and storage medium for configuring a book reading application. The method obtains the business needs of a book reading manufacturer user, obtains modification parameters corresponding to the book display characteristics and display revenue targets, modifies the preset application configuration file based on the modification parameters, obtains the target application configuration file, generates an application including the target application configuration file, and returns the application to the book reading manufacturer user for processing the business request corresponding to the business needs based on the application. Thus, the above method can realize that the application corresponding to the needs of the book reading manufacturer user can be quickly generated by directly modifying the preset application configuration file based on the modification parameters corresponding to the business needs of the book reading manufacturer user, thereby reducing the workload and thus reducing the cost of entering the novel market. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0010] Figure 1 An example diagram of an application environment applicable to the book reading application configuration method provided in an embodiment of the present application is shown.
[0011] Figure 2 A method flow chart of a book reading application configuration method provided by an embodiment of the present application is shown.
[0012] Figure 3 An example diagram of an interface for modifying a preset application configuration file through a content setting module in an embodiment of the present application is shown.
[0013] Figure 4 A method flow chart of a book reading application configuration method provided by another embodiment of the present application is shown.
[0014] Figure 5 Shows Figure 4 Flow chart of the method of step S260 in .
[0015] Figure 6 A method flow chart of a book reading application configuration method provided by yet another embodiment of the present application is shown.
[0016] Figure 7 A structural block diagram of an application configuration device provided by an embodiment of the present application is shown.
[0017] Figure 8 A structural block diagram of a server provided in an embodiment of the present application is shown.
[0018] Fig. 9 A storage unit for storing or carrying program codes for implementing a book reading application configuration method according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0019] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0020] With the development of information technology and the popularization of smart terminals, more and more users have begun to read novels using smart terminals such as mobile phones, and novel apps have become people's first choice.
[0021] At present, if manufacturers want to enter the novel market, they need to obtain novel content first, and then develop a website or APP. Among them, the promotion of web pages is poor, which easily leads to low retention rate, while novel APPs have become people's first choice due to their convenience. Then, the existing novel APP development process is relatively cumbersome, and people need to be sent to develop according to documents, or store book information on their own servers for maintenance and development, which increases the workload and also increases the cost of entering the novel market.
[0022] In response to the above-mentioned problems, the inventors have discovered after long-term research that it is possible to obtain the business needs of book reading manufacturer users, and then obtain the modification parameters corresponding to the book display features and display revenue targets included in the business needs, and then modify the preset application configuration file based on the modification parameters to obtain the target application configuration file, and then generate an application including the target application configuration file, and then return the application to the book reading manufacturer user for processing the business request corresponding to the business needs based on the application. Thus, through the above-mentioned method, it is possible to quickly generate an application corresponding to the needs of book reading manufacturer users by directly modifying the preset application configuration file based on the modification parameters corresponding to the business needs of book reading manufacturer users, thereby reducing the workload and thus reducing the cost of entering the novel market. Therefore, the book reading application configuration method, device, server and storage medium provided in the embodiments of the present application are proposed.
[0023] In order to facilitate understanding of the book reading application configuration method proposed in the present application, the application environment of the embodiment of the present application will be briefly described below in conjunction with the accompanying drawings.
[0024] See also Figure 1 , shows an example diagram of the application environment of the embodiment of the present application, such as Figure 1 As shown, the application environment 10 includes a server 11, a book reading application 12, a book reading manufacturer user 13, and a book reading reader client 14. Among them, the server 11 can receive the business needs of the book reading manufacturer user 13, and obtain the modification parameters for configuring the needs that match the book reading manufacturer user 13 according to the business needs, and then modify the preset application configuration file according to the modification parameters, and then generate a book reading management application that matches the business needs, and return the book reading management application to the book reading manufacturer user 13. It should be noted that the book reading application 12 is a client for the book reading manufacturer user 13 to manage books for online display. The book reading manufacturer user 13 can modify the book data displayed online or the data related to the displayed books through the book reading application 12. Optionally, the book reading applications corresponding to different book reading manufacturer users may be different, including some or all differences in book content, display style, and display revenue targets, etc., which may not be specifically limited.
[0025] Optionally, the server 11 stores various types of book data and book reading manufacturer user data corresponding to the various types of book data. When a book reading reader reads a book through a book reading reader client 14, the corresponding book data can be obtained from the server 11. Optionally, the book reading reader can read various types of data offline or online through the book reading reader client 14. The server 11 can obtain the reading revenue data corresponding to various types of books, and return the reading revenue data to the corresponding book reading manufacturer user 13, so that the book reading manufacturer user 13 can intuitively check whether the revenue brought by the books displayed online meets the display revenue target through the book reading application 12, and then adjust its corresponding business needs according to the comparison results.
[0026] Optionally, in the embodiment of the present application, the server for generating a book reading management application matching the business requirements and the server for processing the business request of the book reading reader user may be the same server or different servers ( Figure 1 Only one server is shown in the figure), and no specific limitation is given.
[0027] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0028] See also Figure 2 , shows a flow chart of a method for configuring a book reading application provided by an embodiment of the present application. This embodiment provides a method for configuring a book reading application, which can be applied to a server. The method includes:
[0029] Step S110: Obtaining the business needs of book reading manufacturer users.
[0030] Optionally, the book reading manufacturer user in this embodiment can be a book reading manufacturer user of a book reading application. The book reading manufacturer user can put the corresponding book reading application on the novel market. The book reading application is configured with various types of book information. Readers can download the network resource novel client from the novel market to read the corresponding various types of book information.
[0031] The business requirements may include book display features and display revenue targets corresponding to the book display features. Optionally, the book display features may include the types of books, the number of books, and the book display styles required by the users of the book reading manufacturer; the display revenue targets may include the user traffic on the book reading application, and the user reading volume (or visit volume) on the book reading application, etc., which may not be specifically limited.
[0032] As a method, business needs may include data added by book reading manufacturer users through a designated page. In this method, the business needs of book reading manufacturer users can be obtained by obtaining data from the designated page (including newly added, deleted, modified, etc.), wherein the designated page can be a background server configuration interface for the book reading application, and the designated page can be used by the book reading manufacturer users to adjust the interface of the book reading application, for example, a new interface for display (or module, layout control, etc.) can be added, or an existing display interface can be modified.
[0033] Optionally, the specific content of the business demand may change with time or the plan of the book reading manufacturer user, or may change with the actual operation of the book reading application. For example, suppose the initial business demand of book reading manufacturer user A is "100 books, 30,000 visits per week", and from the actual operation of book reading application A, it is known that it has reached 100,000 visits per week. In this way, the business demand of book reading manufacturer user A can be updated to "100 books, 100,000 visits per week", where book reading application A is the client corresponding to book reading manufacturer user A (or it can be understood as a book reading application whose business ownership belongs to book reading manufacturer user A). Then, as a way, the business demand of book reading manufacturer users within a certain period of time can be obtained, and the business demand of book reading manufacturer users can be regularly updated at a preset period, or the business demand of book reading manufacturer users can be automatically updated according to actual conditions.
[0034] Optionally, the business requirements of different book reading manufacturer users may be different, or the types of business requirements of different book reading manufacturer users may be different.
[0035] Step S120: Acquire modification parameters corresponding to the book display characteristics and the display revenue target.
[0036] It is understandable that the business needs of different book reading manufacturer users may be different. For example, book reading manufacturer user A needs to put 100 books on the shelves, needs to display them in a simple style, and expects 10,000 daily user readings; while book reading manufacturer user B needs to put 1,000 books on the shelves, needs to display them in a mixed style, and expects 100,000 daily user readings.
[0037] As a method, adjustment levels corresponding to different business needs can be pre-designed. Optionally, different adjustment levels correspond to different adjustment parameters. For example, the more adjustment parameters are adjusted, the larger the adjustment level can be. Alternatively, the correspondence between the adjustment parameters and the adjustment levels can be set according to actual needs. Optionally, the adjustment parameters are used to adjust the configuration file parameters of the preset application. In this way, after obtaining the business needs of the book reading manufacturer user, the modification parameters corresponding to the book display features and display revenue targets included in the business needs can be obtained, so that the configuration file of the preset application can be quickly modified according to the modification parameters.
[0038] Step S130: modifying the preset application configuration file based on the modification parameters to obtain a target application configuration file.
[0039] Among them, the preset application configuration file may include a development framework of a book reading application (optionally, it may be a Flutter framework) and a content setting module. After obtaining the business needs of the book reading manufacturer user, the modification parameters matching the business needs may be obtained, and then the development framework may be adjusted based on the modification parameters and the content of the content setting module may be modified to obtain the target application configuration file. Optionally, the target application configuration file in this embodiment may be understood as an application configuration file of a book reading application corresponding to the business needs of the book reading manufacturer user.
[0040] For details, please refer to Figure 3 , shows an example diagram of an interface for modifying a preset application configuration file through a content setting module in an embodiment of the present application, such as Figure 3 As shown, you can create or edit (i.e., modify) a module, and edit or modify the module's operating platform (e.g., mobile or PC), status (e.g., display or hide), module type (e.g., Banner module, IconSet module, operation configuration book module, algorithm recommendation book module, and tag module, etc.), source type (e.g., Banner source, IconSet source, configuration book source, algorithm book source, and tag source), module effective date (e.g., year, month, day, hour, minute, and second), remarks (e.g., it can be e-book-PC), display quantity (e.g., 10, 20, 30, or 50, etc., the specific value may not be limited), module subtitle (e.g., it can be e-book-PC) and the display order under the module subtitle (e.g., sequential display or random display), jump logic (e.g., jump to the reader or jump to the novel introduction page), arrangement method (e.g., 6 in a row, 3 in a row, 1 in a row, etc.), change display (e.g., it can be display or not display), and other contents. Optionally, each piece of data created or edited can be displayed in a table such as Figure 3The table shown in the figure shows the position so that you can intuitively view the modified content. You can add new content or delete existing content by clicking the Add or Delete button.
[0041] Optionally, you can Figure 3 The content setting module shown adds the display module required by the book reading application, or the book information that needs to be included, or can put in popular books to attract readers.
[0042] Optionally, the management background of the book reading application in this embodiment can view book information, display effects and data of each module of the client, and book reading data (including daily reading volume of books and specific chapters, as well as revenue generated, etc.).
[0043] Step S140: Generate an application including the target application configuration file.
[0044] Optionally, after obtaining the target application configuration file, an application including the target application configuration file, namely the book reading application, can be quickly generated based on the book reading application development framework. The generation principle and technical implementation of the specific application can refer to the relevant technology and will not be repeated here.
[0045] Step S150: Return the application to the book reading manufacturer user, so as to process the business request corresponding to the business demand based on the application.
[0046] As a method, the generated application can be returned to the book reading manufacturer user so that the business request corresponding to the business demand of the book reading manufacturer user can be processed based on the application.
[0047] The book reading application configuration method provided in this embodiment obtains the business needs of the book reading manufacturer user, then obtains the modification parameters corresponding to the book display characteristics and display revenue targets, and then modifies the preset application configuration file based on the modification parameters to obtain the target application configuration file, and then generates an application including the target application configuration file, and then returns the application to the book reading manufacturer user for processing the business request corresponding to the business needs based on the application. Thus, through the above method, it is possible to quickly generate an application corresponding to the needs of the book reading manufacturer user by directly modifying the preset application configuration file based on the modification parameters corresponding to the business needs of the book reading manufacturer user, thereby reducing the workload and thus reducing the cost of entering the novel market.
[0048] See also Figure 4, shows a flow chart of a method for configuring a book reading application provided by another embodiment of the present application. This embodiment provides a method for configuring a book reading application, which can be applied to a server. The method includes:
[0049] Step S210: Obtaining the business needs of book reading manufacturer users.
[0050] Step S220: Acquire modification parameters corresponding to the book display characteristics and the display revenue target.
[0051] Step S230: modifying the preset application configuration file based on the modification parameters to obtain a target application configuration file.
[0052] Step S240: Generate an application including the target application configuration file.
[0053] Step S250: Return the application to the book reading manufacturer user, so as to process the business request corresponding to the business demand based on the application.
[0054] Step S260: Acquire the target database corresponding to the business requirement.
[0055] In this embodiment, the target database can be used to store business data corresponding to the business requirements. Different business requirements may correspond to different target databases, or different business requirements may correspond to the same target database.
[0056] For example, in a specific application scenario, if the business requirement corresponding to user A of the book reading manufacturer is business requirement A, the business requirement corresponding to user B of the book reading manufacturer is business requirement B, and the business requirement corresponding to user C of the book reading manufacturer is business requirement C, then the target database corresponding to business requirement A can be target database A, the target database corresponding to business requirement B can be target database B, and the target database corresponding to business requirement C can be target database B, that is, the target databases corresponding to business requirements A and business requirements B are different, while the target databases corresponding to business requirements B and business requirements C are the same. There are many ways to determine the target database corresponding to the business requirements, which are described in detail as follows:
[0057] See also Figure 5 As one approach, step S260 may include:
[0058] Step S261: Obtain the demand types corresponding to the multiple sub-business demands.
[0059] Optionally, the business requirement may include multiple sub-business requirements. As a method, after obtaining the business requirements of the book reading manufacturer user, the requirement types corresponding to the multiple sub-business requirements included in the business requirements may be obtained, so as to determine the target database corresponding to the business requirements according to the requirement types. Among them, the types and quantities of sub-business requirements included in different requirement types may be different.
[0060] Optionally, a mapping relationship can be established between different sub-business requirements and corresponding requirement types, as well as the business requirement types to which they belong (which can be one or more), and then stored in the form of a table file. In this way, after obtaining the business requirements, the requirement types corresponding to multiple sub-business requirements can be quickly obtained by searching the table.
[0061] Step S262: Acquire a target database corresponding to the business requirement according to the requirement type.
[0062] The demand types in this embodiment may include a first demand type and a second demand type. The first demand type may be a demand type corresponding to private information, for example, account information of a book reading manufacturer user, and a demand type corresponding to information such as the page layout of a book reading application that the book reading manufacturer user wants. Optionally, the first demand type information of different book reading manufacturer users may be different. The second demand type may be a demand type corresponding to information shared by various manufacturers, for example, it may be a demand type corresponding to various types of book information (for example, the cover, introduction, description, chapter division, chapter content, text, etc. of the book).
[0063] As a method, if the demand type is the first demand type, the first database corresponding to the business demand can be obtained, and the first database can be used as the target database. Different business demands correspond to different first databases; and if the demand type is the second demand type, the second database corresponding to the business demand can be obtained, and the second database can be used as the target database. It should be noted that in this embodiment, the storage capacity of the first database can be greater than the storage capacity of the second database, or the adjustable storage capacity of the first database is greater than the adjustable storage capacity of the second database. Optionally, the first database can be understood as a private database, and the second database can be understood as a public database.
[0064] As another way, after obtaining the demand types corresponding to multiple sub-business demands, the number of sub-business demands included in the business demand can be obtained to determine whether the number is greater than a preset number. Optionally, if the number is greater than or equal to the preset number, the sub-business types included in different business types of the multiple sub-business demands whose number is greater than or equal to the preset number are all stored in the same database, while the sub-business types included in different business types that are different (optionally, some are the same and some are different) are stored in different databases, so as to facilitate the privatized storage of each business type whose number is greater than or equal to the preset number and whose included sub-business types are all different, so as to improve the security of information storage and avoid mutual influence between business data corresponding to different business demands.
[0065] For example, business requirement A includes 5 sub-business requirements, which are sub-business requirement 1, sub-business requirement 2, sub-business requirement 3, sub-business requirement 4 and sub-business requirement 5, business requirement B includes 3 sub-business requirements, which are sub-business requirement 1, sub-business requirement 2 and sub-business requirement 3, business requirement C includes 5 sub-business requirements, which are sub-business requirement 1, sub-business requirement 2, sub-business requirement 3, sub-business requirement 4 and sub-business requirement 5, and business requirement D includes 4 sub-business requirements, which are sub-business requirement 1, sub-business requirement 2, sub-business requirement 3 and sub-business requirement 4. Assuming that the preset number of sub-business requirements is 4, the target database corresponding to business requirement A and the target database corresponding to business requirement C may be the same, while the target database corresponding to business requirement B and the target database corresponding to business requirement D may be different.
[0066] Optionally, if the number is less than the preset number, the sub-business types included in different business types among the multiple sub-business requirements less than the preset number are different (optionally, some are the same and some are different) and stored in the same database, while the sub-business types included in different business types are the same and stored in different databases, so as to more evenly allocate storage space and save storage resources.
[0067] For example, business requirement A includes 2 sub-business requirements, which are sub-business requirement 1 and sub-business requirement 2 respectively; business requirement B includes 3 sub-business requirements, which are sub-business requirement 1, sub-business requirement 2 and sub-business requirement 3 respectively; business requirement C includes 1 sub-business requirement, which is sub-business requirement 1; business requirement D includes 2 sub-business requirements, which are sub-business requirement 1 and sub-business requirement 2 respectively; assuming that the preset number of sub-business requirements is 4, the target database corresponding to business requirement B and the target database corresponding to business requirement C may be the same, while the target database corresponding to business requirement A and the target database corresponding to business requirement D may be different.
[0068] As another method, different business requirements with the same requirement type corresponding to multiple sub-business requirements can be directly stored in the same database, while different business requirements with different requirement types corresponding to multiple sub-business requirements can be stored in different databases. By storing different business requirements with different requirement types corresponding to multiple sub-business requirements in different databases, when the amount of business data corresponding to a certain business requirement suddenly changes (for example, a sudden surge in user visits), it can be ensured that other target databases are not affected, and other target databases are not affected. By storing different business requirements with the same requirement type corresponding to multiple sub-business requirements in the same database, unified management and data sharing of small-scale business requirements can be facilitated.
[0069] It should be noted that, in this embodiment, business data corresponding to different business needs stored in the same database can be shared, and business data corresponding to different business needs stored in different databases can be isolated from each other. In this way, different business needs correspond to different target databases, and the structure of the tables between different target databases can be the same.
[0070] Optionally, the target database corresponding to different business requirements may vary according to the change in the data volume of multiple sub-business requirements included in the business requirements. For example, the larger the data volume, the larger the storage capacity of the corresponding target database may be. The specific adjustment may be made according to actual conditions.
[0071] The book reading application configuration method provided in this embodiment obtains the business needs of the book reading manufacturer user, and then obtains the modification parameters corresponding to the book display characteristics and display revenue goals, and then modifies the preset application configuration file based on the modification parameters to obtain the target application configuration file, and then generates an application including the target application configuration file, and then returns the application to the book reading manufacturer user for processing the business request corresponding to the business needs based on the application. Thus, through the above method, it is possible to quickly generate an application corresponding to the needs of the book reading manufacturer user by directly modifying the preset application configuration file based on the modification parameters corresponding to the business needs of the book reading manufacturer user, thereby reducing the workload and thus reducing the cost of entering the novel market. By obtaining the target database corresponding to the business needs, the current database corresponding to the business needs can be updated in real time, thereby improving the utilization rate of storage resources.
[0072] See also Figure 6 , shows a flowchart of a method for configuring a book reading application provided by another embodiment of the present application. This embodiment provides a method for configuring a book reading application, which can be applied to a server. Optionally, the server may include a first server and a second server. The first server may be understood as a server for configuring an application corresponding to the business needs of a book reading manufacturer user, and the second server may be understood as a server for processing a business request initiated by the application. In one embodiment, the first server and the second server may be the same server. In another embodiment, the first server and the second server may be different servers. The specific details may not be limited. The method includes:
[0073] Step S310: Obtaining the business needs of book reading manufacturer users.
[0074] Step S320: Acquire modification parameters corresponding to the book display characteristics and the display revenue target.
[0075] Step S330: modifying the preset application configuration file based on the modification parameters to obtain a target application configuration file.
[0076] Step S340: Generate an application including the target application configuration file.
[0077] Step S350: Return the application to the book reading manufacturer user, so as to process the business request corresponding to the business demand based on the application.
[0078] Step S360: receiving a service request.
[0079] The service request is a service request sent by the application when receiving a service access from a reader user, and the service request carries the identifier of the book reading manufacturer user. For example, if the reader user sends a service request to the server through the application of the book reading manufacturer user A, the service request carries the identifier of the book reading manufacturer user A. Optionally, different book reading manufacturer users have different corresponding identifiers.
[0080] Step S370: Acquire an instance of a target database corresponding to the business request based on the identifier.
[0081] Optionally, the server in this embodiment may pre-store target database instances corresponding to the business needs of different book reading manufacturer users. Among them, a configuration service may be configured, and the configuration service may include a planned configuration and a guaranteed configuration. After obtaining a business request, the proxy service may be called to preferentially obtain the planned configuration from the configuration service, and the obtained planned configuration may be used to initialize the configuration of the target database, and then obtain an instance of the target database. Optionally, if the planned configuration is not obtained, the guaranteed configuration may be obtained, and the guaranteed configuration may be used to initialize the configuration in the target database, and then obtain the corresponding instance in the target database. Among them, the proxy service may periodically obtain the runtime configuration of all processes from the configuration service, and then obtain the planned configuration from the configuration service.
[0082] Optionally, if the instance of the target database corresponding to the business request is not obtained, a specified database instance can be obtained as the instance corresponding to the business request. The specified database instance can be understood as a common instance of all process services. Optionally, in this way, an error message or warning message can be generated and sent to the developer to facilitate timely troubleshooting of process service configuration problems.
[0083] Step S380: Acquire data corresponding to the business request based on the instance.
[0084] Step S390: Return the data.
[0085] The book reading application configuration method provided in this embodiment obtains the business needs of the book reading manufacturer user, and then obtains the modification parameters corresponding to the book display features and display revenue targets included in the business needs, and then modifies the preset application configuration file based on the modification parameters to obtain the target application configuration file, and then generates an application including the target application configuration file, and then returns the application to the book reading manufacturer user for processing the business request corresponding to the business needs based on the application, and then receives the business request sent based on the above application, and then obtains the instance of the target database corresponding to the business request based on the book reading manufacturer user identifier, and then obtains the data corresponding to the business request based on the instance, and finally returns the data, so as to realize the rapid generation of the application corresponding to the needs of the book reading manufacturer user by modifying the preset application configuration file based on the modification parameters corresponding to the business needs of the book reading manufacturer user, thereby reducing the workload and thus reducing the cost of entering the novel market. By obtaining the instance of the target database corresponding to the business request based on the identifier, the processing speed of the business request can be improved.
[0086] See also Figure 7 , is a structural block diagram of an application configuration device provided in an embodiment of the present application. This embodiment provides an application configuration device 400, which can be run on a server. The device 400 includes: a business demand acquisition module 410, a modification parameter acquisition module 420, a configuration module 430, an application generation module 440 and a return module 450:
[0087] The business demand acquisition module 410 is used to acquire the business demand of the book reading manufacturer user, and the business demand includes book display features and display revenue targets corresponding to the book display features.
[0088] Optionally, the business requirement may include data added by the user of the book reading manufacturer through a designated page.
[0089] The modification parameter acquisition module 420 is used to acquire modification parameters corresponding to the book display characteristics and the display revenue target.
[0090] The configuration module 430 is used to modify the preset application configuration file based on the modification parameters to obtain a target application configuration file.
[0091] The application generation module 440 is used to generate an application including the target application configuration file.
[0092] The return module 450 is used to return the application to the book reading manufacturer user, so as to process the business request corresponding to the business demand based on the application.
[0093] Optionally, the device may also include a business request receiving unit, used to receive a business request, wherein the business request is sent when the application receives a business access from a reader user, and the business request carries an identifier of a book reading manufacturer user; an instance acquisition unit, used to acquire an instance of a target database corresponding to the business request based on the identifier; a data acquisition unit, used to acquire data corresponding to the business request based on the instance; and a data return unit, used to return the data.
[0094] The instance acquisition unit may also be configured to acquire a designated database instance as the instance corresponding to the business request if the instance of the target database corresponding to the business request is not acquired.
[0095] Optionally, the device may further include a database acquisition module, which is used to acquire a target database corresponding to the business requirement. The business requirement may include multiple sub-business requirements, and the database acquisition module may specifically include: a requirement type acquisition unit and a database acquisition unit, wherein the requirement type acquisition unit is used to acquire the requirement types corresponding to the multiple sub-business requirements; and the database acquisition unit is used to acquire the target database corresponding to the business requirement according to the requirement type.
[0096] Among them, if the demand type is the first demand type, obtain a first database corresponding to the business demand, and use the first database as the target database, and different business demands correspond to different first databases; if the demand type is the second demand type, obtain a second database corresponding to the business demand, and use the second database as the target database, and the storage capacity of the first database is greater than the storage capacity of the second database.
[0097] Optionally, in this embodiment, the order of acquiring the target database corresponding to the business demand may not be limited. For example, the target database may be acquired after the business demand of the book reading manufacturer user is acquired.
[0098] The application configuration device provided in this embodiment obtains the business needs of the book reading manufacturer user, and then obtains the modification parameters corresponding to the book display characteristics and display revenue targets, and then modifies the preset application configuration file based on the modification parameters to obtain the target application configuration file, and then generates an application including the target application configuration file, and then returns the application to the book reading manufacturer user for processing the business request corresponding to the business needs based on the application. Thus, through the above method, it is possible to quickly generate an application corresponding to the needs of the book reading manufacturer user by directly modifying the preset application configuration file based on the modification parameters corresponding to the business needs of the book reading manufacturer user, reducing the workload, thereby reducing the cost of entering the novel market.
[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0100] In several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or modules, which may be electrical, mechanical or other forms.
[0101] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0102] See also Figure 8 Based on the above-mentioned book reading application configuration method and device, the embodiment of the present application further provides a server 100 that can execute the above-mentioned book reading application configuration method. The server 100 includes a memory 102 and one or more (only one is shown in the figure) processors 104 coupled to each other, and the memory 102 and the processor 104 are connected by a communication line. The memory 102 stores a program that can execute the content of the above-mentioned embodiment, and the processor 104 can execute the program stored in the memory 102.
[0103] Among them, the processor 104 may include one or more processing cores. The processor 104 uses various interfaces and lines to connect various parts within the entire server 100, and executes various functions and processes data of the server 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 102, and calling data stored in the memory 102. Optionally, the processor 104 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 104 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 104, but may be implemented separately through a communication chip.
[0104] The memory 102 may include a random access memory (RAM) or a read-only memory (ROM). The memory 102 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the aforementioned embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the server 100 during use.
[0105] Please refer to Fig. 9 , which shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 500 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0106] The computer readable storage medium 500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 500 includes a non-transitory computer-readable storage medium. The computer readable storage medium 500 has storage space for program code 510 that performs any method step of the above method. These program codes can be read from or written to one or more computer program products. The program code 510 can be compressed, for example, in an appropriate form.
[0107] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0108] In summary, the embodiments of the present application provide a method, device, server, and storage medium for configuring a book reading application. By obtaining the business needs of the book reading manufacturer user, the modification parameters corresponding to the book display characteristics and display revenue targets are obtained, and then the preset application configuration file is modified based on the modification parameters to obtain the target application configuration file, and then an application including the target application configuration file is generated, and then the application is returned to the book reading manufacturer user for processing the business request corresponding to the business needs based on the application. Thus, through the above-mentioned method, it is possible to quickly generate an application corresponding to the needs of the book reading manufacturer user by directly modifying the preset application configuration file based on the modification parameters corresponding to the business needs of the book reading manufacturer user, thereby reducing the workload and thus reducing the cost of entering the novel market.
[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for configuring a book reading application, characterized in that: The method comprises: Acquiring business needs of book reading vendor users, the business needs including book display features and display revenue targets corresponding to the book display features, the acquiring business needs of book reading vendor users comprising: acquiring data of a specified page as the business needs of the book reading vendor user, the specified page being a background server configuration interface of a book reading application, the specified page being used by the book reading vendor user to adjust the interface of the book reading application; Acquire modification parameters corresponding to the book display characteristics and the display revenue target; Modify the preset application configuration file based on the modification parameters to obtain a target application configuration file; generating an application including the target application configuration file; Returning the application to the book reading manufacturer user, so as to process the business request corresponding to the business demand based on the application; The method further comprises: Receiving a service request, wherein the service request is a request sent by the application when receiving a service access from a reader user, and the service request carries an identifier of a book reading manufacturer user; The instance of the target database corresponding to the business request is obtained based on the identifier, and the instance of the target database corresponding to the business request is obtained based on the identifier, including: calling the proxy service to preferentially obtain the planned configuration from the configuration service, and using the obtained planned configuration to initialize the configuration of the target database, and then obtaining the instance of the target database, the configuration service includes the planned configuration and the guaranteed configuration, the proxy service periodically obtains the runtime configuration of all processes from the configuration service, and then obtains the planned configuration from the configuration service; if the planned configuration is not obtained, the guaranteed configuration is obtained, and the guaranteed configuration is used to initialize the configuration in the target database, and then obtain the corresponding instance in the target database; if the instance of the target database corresponding to the business request is not obtained, a specified database instance is obtained as the instance corresponding to the business request, and the specified database instance is a common instance of all process services; in this case, an error prompt message or an alarm message can also be generated and sent to the developer, so as to timely troubleshoot the problem of process service configuration; Acquire data corresponding to the service request based on the instance; Returns the data.
2. The method according to claim 1, characterized in that: The method further comprises: A target database corresponding to the business requirement is obtained, where the target database is used to store business data corresponding to the business requirement.
3. The method according to claim 2, characterized in that The business requirement includes a plurality of sub-business requirements, and the acquiring a target database corresponding to the business requirement includes: Obtaining demand types corresponding to the multiple sub-business demands; A target database corresponding to the business requirement is acquired according to the requirement type.
4. The method according to claim 3, characterized in that: The acquiring a target database corresponding to the business requirement according to the requirement type includes: If the requirement type is a first requirement type, obtaining a first database corresponding to the business requirement, and using the first database as a target database, wherein different business requirements correspond to different first databases; If the demand type is the second demand type, a second database corresponding to the business demand is obtained, and the second database is used as the target database. The storage capacity of the first database is greater than the storage capacity of the second database.
5. A book reading application configuration device, characterized in that: The device comprises: A business demand acquisition module is used to acquire the business demand of a book reading manufacturer user, wherein the business demand includes book display features and display revenue targets corresponding to the book display features, and the business demand of the book reading manufacturer user is acquired as the business demand of the book reading manufacturer user, wherein the designated page is a background server configuration interface of the book reading application program, and the designated page is used by the book reading manufacturer user to adjust the interface of the book reading application program; A modification parameter acquisition module, used to acquire modification parameters corresponding to the book display characteristics and the display revenue target; A configuration module, used to modify the preset application configuration file based on the modification parameters to obtain a target application configuration file; An application generation module, used to generate an application including the target application configuration file; A return module, used for returning the application to the book reading manufacturer user, so as to process the business request corresponding to the business demand based on the application; A service request receiving unit, used for receiving a service request, wherein the service request is a request sent by the application when receiving a service access from a reader user, and the service request carries an identifier of a book reading manufacturer user; An instance acquisition unit is used to acquire an instance of a target database corresponding to the business request based on the identifier, wherein the acquiring the instance of the target database corresponding to the business request based on the identifier includes: calling a proxy service to preferentially acquire a planned configuration from a configuration service, and using the acquired planned configuration to initialize the configuration of the target database, thereby acquiring an instance of the target database, wherein the configuration service includes a planned configuration and a guaranteed configuration, wherein the proxy service periodically acquires the runtime configuration of all processes from the configuration service, thereby acquiring the planned configuration from the configuration service; if the planned configuration is not acquired, acquiring the guaranteed configuration, and using the guaranteed configuration to initialize the configuration in the target database, thereby acquiring a corresponding instance in the target database; the instance acquisition unit may also be used to acquire a specified database instance as an instance corresponding to the business request if the instance of the target database corresponding to the business request is not acquired, wherein the specified database instance is a common instance for all process services; in this case, an error prompt message or an alarm message may also be generated and sent to a developer, so as to timely troubleshoot the problem of the process service configuration; A data acquisition unit, configured to acquire data corresponding to the service request based on the instance; The data returning unit is used to return the data.
6. A server, characterized in that: including memory; one or more processors; One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, wherein when the program codes are executed by a processor, the method according to any one of claims 1 to 4 is executed.
