CN116738077A - Information acquisition method and device and electronic equipment - Google Patents

Information acquisition method and device and electronic equipment Download PDF

Info

Publication number
CN116738077A
CN116738077A CN202310671421.6A CN202310671421A CN116738077A CN 116738077 A CN116738077 A CN 116738077A CN 202310671421 A CN202310671421 A CN 202310671421A CN 116738077 A CN116738077 A CN 116738077A
Authority
CN
China
Prior art keywords
information
popularization
applet
local database
promotion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310671421.6A
Other languages
Chinese (zh)
Inventor
涂茜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jilin Yillion Bank Co ltd
Original Assignee
Jilin Yillion Bank Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jilin Yillion Bank Co ltd filed Critical Jilin Yillion Bank Co ltd
Priority to CN202310671421.6A priority Critical patent/CN116738077A/en
Publication of CN116738077A publication Critical patent/CN116738077A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses an information acquisition method and device and electronic equipment. The method comprises the following steps: the receiving end receives an information acquisition request sent by a user and analyzes the information acquisition request to obtain the information of the sending end of the information acquisition request; determining promotion information fed back to a user according to current display content, and acquiring the promotion information from a local database, wherein the promotion information in the local database is acquired from a management system, and the management system is used for generating or modifying the promotion information, and the current display content is the display content of a receiving end in a current moment display interface or the display content of a transmitting end; the receiving end sends the promotion information to the sending end indicated by the sending end information. The application solves the problems that in the related technology, the change of the content is carried out in the applet, the code in the applet is required to be changed, the applet can not normally run, and the workload of staff is improved.

Description

Information acquisition method and device and electronic equipment
Technical Field
The present application relates to the field of software development, and in particular, to a method and an apparatus for acquiring information, and an electronic device.
Background
When a financial institution uses an applet to perform service promotion, the sharing function in the applet is generally used to perform the service promotion of the applet, a user can call the WeChat applet function after clicking three buttons at the upper right corner of the applet interface, select and share the applet to friends to generate an applet sharing link, and the applet sharing picture and text can be displayed on the link to attract clients to click on the link access page, so that promotion operation of financial products and financial services is completed.
Because the popularization service added in the applet is gradually increased, and the specific service information of the popularization service is required to be continuously updated, the shared content page consisting of images and characters is required to be updated along with the service information, however, because each shared content is related to the display content in the applet, when the shared content is changed, the content development and the change are required to be carried out in the applet, particularly when the applet is embedded with a public number H5 (HTML 5, which is a language description mode for constructing Web content) page, an applet API (application programming interface) is required to be called in the H5 page to transmit the active page identification to the applet, and the applet develops different shared link pictures and text records according to different active identifications, so that the adaptation of the public number active page and the shared link image-text information is realized.
However, when the shared content is changed, the small program or the public number H5 page needs to be changed, so that operations such as re-commissioning test and the like are required to be performed on the small program and the public number H5 page after the change, further the workload of staff is improved, and meanwhile, the small program or the public number H5 page cannot normally run during the change, so that the use of a user is affected.
Aiming at the problems that in the related art, the shared content is changed in the applet, and the code in the applet is required to be changed, so that the applet can not normally run and the workload of staff is improved, no effective solution is proposed at present.
Disclosure of Invention
The application provides an information acquisition method, an information acquisition device and electronic equipment, and aims to solve the problems that in the related art, the shared content is changed in an applet, codes in the applet need to be changed, the applet can not normally run, and meanwhile, the workload of staff is improved.
According to one aspect of the present application, a method of acquiring information is provided. The method comprises the following steps: the receiving end receives an information acquisition request sent by a user and analyzes the information acquisition request to obtain the information of the sending end of the information acquisition request; determining promotion information fed back to a user according to current display content, and acquiring the promotion information from a local database, wherein the promotion information in the local database is acquired from a management system, the management system is used for generating or modifying the promotion information, the current display content is the display content of a receiving end in a current time display interface or the display content of a transmitting end, and the current time is the time when the receiving end receives an information acquisition request; the receiving end sends the promotion information to the sending end indicated by the sending end information.
Optionally, determining the promotion information fed back to the user according to the current display content, and acquiring the promotion information from the local database includes: identifying text information and picture information in the current display content; determining a target service to which the current display content belongs according to the text information and the picture information; judging whether popularization information corresponding to the target service exists in a local database; under the condition that promotion information corresponding to the target service exists in the local database, the promotion information is obtained from the local database.
Optionally, after judging whether the promotion information corresponding to the target service exists in the local database, the method further includes: under the condition that popularization information corresponding to the target service does not exist in the local database, service information of the target service is sent to the management system through a preset interface; receiving popularization information which is sent by a management system and is associated with a target service through a preset interface, and adding a timestamp of a first moment in the popularization information to obtain updated popularization information, wherein the first moment is the moment of receiving the popularization information; storing the target service and the updated promotion information into a local database, and sending the updated promotion information to a sending end.
Optionally, after obtaining the promotion information from the local database, the method further comprises: acquiring a target time stamp in the promotion information, and determining a first time difference between a second time and the target time stamp, wherein the second time is the time of acquiring the promotion information from a local database; judging whether the first time difference is larger than a preset time difference or not; executing the step of transmitting the promotion information to the transmitting end indicated by the transmitting end information under the condition that the first time difference is smaller than or equal to the preset time difference; under the condition that the first time difference is larger than the preset time difference, acquiring generation time of associated popularization information in the management system through a preset interface, wherein the associated popularization information is popularization information associated with a target service in the management system; and calculating a second time difference between the generation time and the second time, and changing the popularization information according to the second time difference to obtain updated popularization information.
Optionally, the promotion information is changed according to the second time difference, and obtaining updated promotion information includes: judging whether the second time difference is smaller than the first time difference or not; under the condition that the second time difference is smaller than the first time difference, acquiring associated popularization information from the management system through a preset interface; adding the second moment serving as a time stamp into the associated popularization information to obtain target popularization information, adding the target popularization information into a local database, and determining the target popularization information as updated popularization information; and under the condition that the second time difference is larger than or equal to the first time difference, executing the step of sending the promotion information to the sending end indicated by the sending end information.
Optionally, the information acquisition request further includes an identifier, and determining, according to the current display content, popularization information fed back to the user includes: under the condition that the information of the transmitting end characterizes that the transmitting end is an applet, acquiring an identifier in an information acquisition request, and determining display content of the applet according to the identifier; determining popularization information fed back to a user according to the display content of the applet; after obtaining the promotion information from the local database, the method further comprises: determining a preset display format of the popularization information, and determining whether the preset display format is the same as a target display format of the applet; under the condition that the preset display format and the target display format are different, changing the display format of the promotion information into the target display format, obtaining updated promotion information, and sending the updated promotion information to the applet.
Optionally, the method further comprises: monitoring whether the popularization information stored in the management system is changed; under the condition that the popularization information is changed, acquiring the changed popularization information, and determining a service associated with the changed popularization information to obtain an associated service; and storing the changed promotion information and the associated service in a local database in an associated manner.
Optionally, the sending end includes an applet, and after the modified promotion information and the association service are stored in the local database, the method further includes: and sending the changed promotion information and the association service to the applet, wherein the applet stores the changed promotion information and the association service in a database of the applet for storage after receiving the changed promotion information and the association service.
According to another aspect of the present application, there is provided an information acquisition apparatus. The device comprises: the receiving unit is used for receiving an information acquisition request sent by a user and analyzing the information acquisition request to obtain the information of the sending end of the information acquisition request; the first acquisition unit is used for determining popularization information fed back to a user according to the current display content and acquiring the popularization information from the local database, wherein the popularization information in the local database is acquired by the management system, the management system is used for generating or modifying the popularization information, the current display content is the display content of the receiving end in the current time display interface or the display content of the transmitting end, and the current time is the time when the receiving end receives the information acquisition request; and the first sending unit is used for sending the popularization information to the sending end indicated by the sending end information by the receiving end.
According to another aspect of the present application, there is also provided a computer storage medium for storing a program, wherein the program controls a device in which the computer storage medium is located to execute an information acquisition method when running.
According to another aspect of the present application, there is also provided an electronic device comprising one or more processors and a memory; the memory has stored therein computer readable instructions, and the processor is configured to execute the computer readable instructions, wherein the computer readable instructions when executed perform a method of obtaining information.
According to the application, the following steps are adopted: the receiving end receives an information acquisition request sent by a user and analyzes the information acquisition request to obtain the information of the sending end of the information acquisition request; determining promotion information fed back to a user according to current display content, and acquiring the promotion information from a local database, wherein the promotion information in the local database is acquired from a management system, the management system is used for generating or modifying the promotion information, the current display content is the display content of a receiving end in a current time display interface or the display content of a transmitting end, and the current time is the time when the receiving end receives an information acquisition request; the receiving end sends the promotion information to the sending end indicated by the sending end information. The method solves the problems that in the related art, the change of the content is carried out in the applet, and the code in the applet is required to be changed, so that the applet can not normally run, and the workload of staff is improved. The promotion information is generated or modified by using the management system and is stored in the local database, wherein the local database is positioned in the embedded public number H5 page of the applet, so that the promotion information can be directly obtained from the public number when the applet needs to be shared, and the promotion information can also be directly obtained from a local server of the public number when a user directly shares the applet, thereby avoiding the generation and modification of the promotion information in the public number and the applet, further achieving the effect of modifying the promotion information without modifying the applet and the public number and ensuring the normal operation of the applet and the embedded public number of the applet.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
fig. 1 is a flowchart of a method for acquiring information provided according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative information acquisition method provided in accordance with an embodiment of the present application;
FIG. 3 is a schematic diagram of an information acquisition device provided according to an embodiment of the present application;
fig. 4 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, related information (including, but not limited to, user equipment information, user personal information, etc.) and data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present disclosure are information and data authorized by a user or sufficiently authorized by each party. For example, an interface is provided between the system and the relevant user or institution, before acquiring the relevant information, the system needs to send an acquisition request to the user or institution through the interface, and acquire the relevant information after receiving the consent information fed back by the user or institution.
It should be noted that the method and apparatus for acquiring information and the electronic device determined by the present disclosure may be used in the field of software development, and may also be used in any field other than the field of software development, and the application fields of the method and apparatus for acquiring information and the electronic device determined by the present disclosure are not limited.
According to an embodiment of the present application, there is provided an information acquisition method.
Fig. 1 is a flowchart of a method for acquiring information provided according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S102, the receiving end receives an information acquisition request sent by a user and analyzes the information acquisition request to obtain the sending end information of the information acquisition request.
Specifically, since the applet is embedded with the public number H5 page, the receiving end may be the public number H5 page, and after the public number receives the information acquisition request, the information acquisition request needs to be analyzed to determine the sending end of the request, where the sending end may be the applet, that is, the information is input into the applet by the user and is transmitted to the public number by the applet through the API interface when the applet is embedded with the public number, and the sending end may also be the user, that is, the user logs in the public number directly to send the information acquisition request, so that the sending end of the information acquisition request needs to be identified after the information acquisition request is received, and popularization information to be sent needs to be determined according to the sending end.
Step S104, determining promotion information fed back to the user according to the current display content, and acquiring the promotion information from a local database, wherein the promotion information in the local database is acquired from a management system, the management system is used for generating or modifying the promotion information, the current display content is the display content of a receiving end in a current time display interface or the display content of a transmitting end, and the current time is the time when the receiving end receives an information acquisition request.
Specifically, after the sender of the information acquisition request is determined, the current display content can be determined according to the sender, that is, the current display content is the display content of the receiver in the current time display interface or the display content of the sender, where the current display content can be selected from the display content of the current time display interface or the display content of the sender according to the difference of the sender, for example, in the case that the sender is the user end, the current display content is the current display content of the public number H5 page, and in the case that the sender is the applet, the current display content is the sender, that is, the display content in the applet interface, so that interface information corresponding to popularization information that the user wants to generate is determined according to the sender information.
Further, after the current display content is determined, the promotion information required by the user can be determined according to the current display content, for example, if the current display content is the product A, the promotion information is related image-text information of the product A. After the promotion information is determined, the promotion information can be obtained from a local database, wherein the local database is a public number database and can be a public number cache or cloud storage database.
It should be noted that, the public number is connected with the management system through a preset interface, all promotion information in the database of the public number is obtained from the management system, when a worker needs to add or modify the promotion information, the promotion information can be directly operated in the management system, and after the operation is completed, the obtained promotion information is synchronized to the local database of the public number for storage, so that the promotion information cannot be generated and modified in the public number or the applet, and the modification frequency of the applet and the public number is reduced.
Step S106, the receiving end sends the promotion information to the sending end indicated by the sending end information.
Specifically, after the promotion information is obtained, the promotion information can be sent to the sending end according to the information of the sending end, so that the operation of sending the promotion information to the user is completed, the user can share the promotion information after receiving the promotion information, and under the condition that the sending end is an applet, the promotion information can be sent to the user by the applet, the applet can share the image-text information through the configuration of the management system, the public number H5 page transmits data, and the applet can share the image-text information through the processing data of the applet. Compared with the prior development of new activities, the method has the advantages that the image-text codes are shared in the small-scale public number H5 page and the small-scale program development, so that the configurability of the small-scale program to share the image-text information is realized. The developer can realize that the applet is added and modified to share the graphic information by configuring the graphic information on the back-end platform only when the developer performs primary development activities, so that the user can share the display content through the popularization information.
According to the information acquisition method provided by the embodiment of the application, the receiving end receives the information acquisition request sent by the user and analyzes the information acquisition request to obtain the sending end information of the information acquisition request; determining promotion information fed back to a user according to current display content, and acquiring the promotion information from a local database, wherein the promotion information in the local database is acquired from a management system, the management system is used for generating or modifying the promotion information, the current display content is the display content of a receiving end in a current time display interface or the display content of a transmitting end, and the current time is the time when the receiving end receives an information acquisition request; the receiving end sends the promotion information to the sending end indicated by the sending end information. The method solves the problems that in the related art, the change of the content is carried out in the applet, and the code in the applet is required to be changed, so that the applet can not normally run, and the workload of staff is improved. The promotion information is generated or modified by using the management system and is stored in the local database, wherein the local database is positioned in the embedded public number H5 page of the applet, so that the promotion information can be directly obtained from the public number when the applet needs to be shared, and the promotion information can also be directly obtained from a local server of the public number when a user directly shares the applet, thereby avoiding the generation and modification of the promotion information in the public number and the applet, further achieving the effect of modifying the promotion information without modifying the applet and the public number and ensuring the normal operation of the applet and the embedded public number of the applet.
In order to accurately determine the promotion information, optionally, in the information acquisition method provided by the embodiment of the present application, determining the promotion information fed back to the user according to the current display content, and acquiring the promotion information from the local database includes: identifying text information and picture information in the current display content; determining a target service to which the current display content belongs according to the text information and the picture information; judging whether popularization information corresponding to the target service exists in a local database; under the condition that promotion information corresponding to the target service exists in the local database, the promotion information is obtained from the local database.
Specifically, after the current display content is determined, text information and picture information in the current display content can be acquired, wherein the text information can be acquired through a text recognition program, the picture information can be recognized by an image recognition program, after the text information and the picture information in the current display content are obtained, a target service to which the current display content belongs can be determined according to the text information and the picture information in the current display content, further promotion information can be determined according to the service, whether the promotion information exists in a local database or not can be determined, and in case that the promotion information exists, the promotion information can be directly acquired from the local database, so that the acquisition of the promotion information is completed.
In order to accurately obtain the promotion information under the condition that the corresponding promotion information does not exist in the local database, optionally, in the information obtaining method provided by the embodiment of the application, after judging whether the promotion information corresponding to the target service exists in the local database, the method further comprises the following steps: under the condition that popularization information corresponding to the target service does not exist in the local database, service information of the target service is sent to the management system through a preset interface; receiving popularization information which is sent by a management system and is associated with a target service through a preset interface, and adding a timestamp of a first moment in the popularization information to obtain updated popularization information, wherein the first moment is the moment of receiving the popularization information; storing the target service and the updated promotion information into a local database, and sending the updated promotion information to a sending end.
Specifically, in the case where there is no corresponding promotion information in the local database, there may be two cases, one is that there is no promotion content in the management system, and thus the promotion content is not synchronized to the local database, and the other is that there is no promotion content in the management system, but the promotion content is not stored in the local database due to some abnormal reason, at this time, since the new addition and modification of the promotion content are performed by the management system, when there is no promotion information in the local database, service information of the target service may be sent to the management system through a preset interface, at this time, the management system determines whether there is promotion information corresponding to the service information according to the service information, and in the absence, the promotion information of the service information is newly added by a worker.
Further, after the service information of the target service is sent to the management system through the preset interface, the management system feeds back the promotion information to the public number, at this time, the public number increases the timestamp of the current time in the promotion information, that is, the time when the promotion information is received, at this time, whether the promotion information is newly added promotion information or modified promotion information, the promotion information can be distinguished from the historical data stored in the local database according to the timestamp. After adding the time stamp, the promotion information can be stored in a storage address corresponding to the target service in the local database, and the promotion information is sent to the sending end, so that the storage of the promotion information is completed, and the sending of the promotion information is completed.
In order to ensure timeliness of the promotion information, optionally, in the information acquisition method provided by the embodiment of the application, after the promotion information is acquired from the local database, the method further includes: acquiring a target time stamp in the promotion information, and determining a first time difference between a second time and the target time stamp, wherein the second time is the time of acquiring the promotion information from a local database; judging whether the first time difference is larger than a preset time difference or not; executing the step of transmitting the promotion information to the transmitting end indicated by the transmitting end information under the condition that the first time difference is smaller than or equal to the preset time difference; under the condition that the first time difference is larger than the preset time difference, acquiring generation time of associated popularization information in the management system through a preset interface, wherein the associated popularization information is popularization information associated with a target service in the management system; and calculating a second time difference between the generation time and the second time, and changing the popularization information according to the second time difference to obtain updated popularization information.
Specifically, under some circumstances, the local database in the public number may not be synchronized with the promotion content of the management system, so that the promotion content is not updated in time, and therefore, after the promotion information is acquired from the local database, a target timestamp in the promotion information needs to be acquired, and a first time difference between a second time and the target timestamp is determined, where the second time is a time when the promotion information is acquired from the local database, so that it is determined whether the promotion information is stored for too long, and the content is not timeliness.
Further, under the condition that the first time difference between the second time and the target time stamp is smaller than or equal to the preset time difference, it is determined that the promotion information stored in the local database is not out of date, and the promotion information can be normally used, namely sent to the sending end, but under the condition that the first time difference is larger than the preset time difference, the promotion information is possibly overtime, at this time, the associated promotion information needs to be obtained from the management system, whether the creation time of the associated promotion information is later than the time stamp of the promotion information stored in the local database is determined, and therefore whether the associated promotion information is determined to be the latest promotion information stored in the local database is determined.
Optionally, in the method for acquiring information provided by the embodiment of the present application, the step of changing the promotion information according to the second time difference, where obtaining updated promotion information includes: judging whether the second time difference is smaller than the first time difference or not; under the condition that the second time difference is smaller than the first time difference, acquiring associated popularization information from the management system through a preset interface; adding the second moment serving as a time stamp into the associated popularization information to obtain target popularization information, adding the target popularization information into a local database, and determining the target popularization information as updated popularization information; and under the condition that the second time difference is larger than or equal to the first time difference, executing the step of sending the promotion information to the sending end indicated by the sending end information.
Specifically, when the second time difference is smaller than the first time difference, that is, the creation time of the associated popularization information is later than the popularization information stored in the local database, the associated popularization information is stored in the local database, and the previous popularization information stored in the local database is deleted, so that the associated popularization information is fed back to the sending end, and the timeliness of the popularization information is further ensured.
In the case that the sending end is an applet, display information of the applet needs to be determined, optionally, in the information acquisition method provided by the embodiment of the present application, the information acquisition request further includes an identifier, and determining, according to the current display content, popularization information fed back to the user includes: under the condition that the information of the transmitting end characterizes that the transmitting end is an applet, acquiring an identifier in an information acquisition request, and determining display content of the applet according to the identifier; determining popularization information fed back to a user according to the display content of the applet; after obtaining the promotion information from the local database, the method further comprises: determining a preset display format of the popularization information, and determining whether the preset display format is the same as a target display format of the applet; under the condition that the preset display format and the target display format are different, changing the display format of the promotion information into the target display format, obtaining updated promotion information, and sending the updated promotion information to the applet.
Specifically, in the case that the transmitting end is the applet, because the applet needs to acquire popularization information from the embedded public number, an information acquisition request sent by the applet carries an identifier, the identifier has the function of determining information of a product or service to be popularized, which is displayed in the current display content of the applet, and the popularization information which needs to be acquired by the applet end is determined in a local database of the public number according to the identifier, so that the popularization information is transmitted to the applet end, and the effect that the applet end does not need to generate the popularization information is achieved.
It should be noted that after the popularization information is obtained from the local database, it is also necessary to determine a preset display format of the obtained popularization information, and determine whether the preset display format is the same as the target display format of the applet, so as to ensure whether the applet end can normally display and use the popularization information after the popularization information is sent to the applet end. Under the condition that the preset display format and the target display format are different, the display format of the popularization information needs to be changed into a format which can be read or compatible by the applet, and the updated popularization information is further sent to the applet, so that the effect that the applet can normally use the popularization information after receiving the popularization information is ensured.
In order to ensure timeliness of popularization information, optionally, in the information acquisition method provided by the embodiment of the application, the method further includes: monitoring whether the popularization information stored in the management system is changed; under the condition that the popularization information is changed, acquiring the changed popularization information, and determining a service associated with the changed popularization information to obtain an associated service; and storing the changed promotion information and the associated service in a local database in an associated manner.
Specifically, the public number can monitor the management system in real time through the preset interface, and under the condition that any promotion information stored in the management system is changed or newly added, the public number can acquire the changed promotion information from the management system through the preset interface, so that the updated promotion information is used for updating the promotion information with the same business information in the local database, and the promotion information is updated in time.
In order to improve the feedback speed of the promotion information of the applet, optionally, in the information acquisition method provided by the embodiment of the application, the sending end includes the applet, and after the changed promotion information and the association service are stored in the local database in an associated manner, the method further includes: and sending the changed promotion information and the association service to the applet, wherein the applet stores the changed promotion information and the association service in a database of the applet for storage after receiving the changed promotion information and the association service.
Specifically, after the public number stores the changed popularization information and the associated service in the local database in an associated mode, the changed popularization information is sent to the applet end, and the applet end can also set a storage space, such as a cloud storage space of the applet.
Fig. 2 is a flowchart of an alternative information acquisition method provided according to an embodiment of the present application, as shown in fig. 2, an operation and maintenance person develops a set of functions for adding and modifying promotion information in a management system, so that promotion information can be modified in the management system, where the promotion information is composed of a graph and a text. After the promotion information is determined, a preset interface is adopted on an embedded H5 page, the promotion information is acquired from a management system, the promotion information is stored, the acquisition party of the promotion information is determined to be a user or an applet, the user is directly sent under the condition that the promotion information is the applet, the promotion information is sent to the applet through an API, the applet stores the promotion information and sends the promotion information to the user, and therefore the promotion information is sent to the user without generating and changing the promotion information by the applet and the public number.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides an information acquisition device, and the information acquisition device of the embodiment of the application can be used for executing the information acquisition method provided by the embodiment of the application. The information acquisition device provided by the embodiment of the application is described below.
Fig. 3 is a schematic diagram of an information acquisition apparatus according to an embodiment of the present application. As shown in fig. 3, the apparatus includes: a receiving unit 31, a first acquiring unit 32, and a first transmitting unit 33.
The receiving unit 31 is configured to receive an information acquisition request sent by a user, and parse the information acquisition request to obtain sender information of the information acquisition request.
The first obtaining unit 32 is configured to determine promotion information fed back to the user according to a current display content, and obtain promotion information from a local database, where the promotion information in the local database is obtained from a management system, and the management system is configured to generate or modify promotion information, where the current display content is a display content of the receiving end in a display interface at a current time or a display content of the transmitting end, and the current time is a time when the receiving end receives an information obtaining request.
A first sending unit 33, configured to send the promotion information to a sending end indicated by the sending end information by the receiving end.
According to the information acquisition device provided by the embodiment of the application, the receiving end of the receiving unit 31 receives an information acquisition request sent by a user and analyzes the information acquisition request to obtain the information of the sending end of the information acquisition request; the first obtaining unit 32 determines promotion information fed back to the user according to the current display content, and obtains the promotion information from a local database, wherein the promotion information in the local database is obtained from a management system, and the management system is used for generating or modifying the promotion information, the current display content is the display content of the receiving end in the display interface at the current moment or the display content of the transmitting end, and the current moment is the moment when the receiving end receives the information obtaining request; the first transmitting unit 33 receives the promotion information and transmits the promotion information to the transmitting terminal indicated by the transmitting terminal information. The method solves the problems that in the related art, the change of the content is carried out in the applet, and the code in the applet is required to be changed, so that the applet can not normally run, and the workload of staff is improved. The promotion information is generated or modified by using the management system and is stored in the local database, wherein the local database is positioned in the embedded public number H5 page of the applet, so that the promotion information can be directly obtained from the public number when the applet needs to be shared, and the promotion information can also be directly obtained from a local server of the public number when a user directly shares the applet, thereby avoiding the generation and modification of the promotion information in the public number and the applet, further achieving the effect of modifying the promotion information without modifying the applet and the public number and ensuring the normal operation of the applet and the embedded public number of the applet.
Optionally, in the information acquisition device provided in the embodiment of the present application, the first acquisition unit 32 includes: the identification module is used for identifying the text information and the picture information in the current display content; the first determining module is used for determining a target service to which the current display content belongs according to the text information and the picture information; the first judging module is used for judging whether popularization information corresponding to the target service exists in the local database; the first acquisition module is used for acquiring the popularization information from the local database under the condition that the popularization information corresponding to the target service exists in the local database.
Optionally, in the information acquisition device provided in the embodiment of the present application, the device further includes: the second sending unit is used for sending the service information of the target service to the management system through a preset interface under the condition that the popularization information corresponding to the target service does not exist in the local database; the adding unit is used for receiving the promotion information related to the target service sent by the management system through a preset interface, and adding a time stamp of a first moment in the promotion information to obtain updated promotion information, wherein the first moment is the moment of receiving the promotion information; the first storage unit is used for storing the target service and the updated popularization information into a local database and sending the updated popularization information to the sending end.
Optionally, in the information acquisition device provided in the embodiment of the present application, the device further includes: the second acquisition unit is used for acquiring a target time stamp in the promotion information and determining a first time difference between a second time and the target time stamp, wherein the second time is the time for acquiring the promotion information from the local database; the judging unit is used for judging whether the first time difference is larger than a preset time difference or not; the execution unit is used for executing the step of sending the promotion information to the sending end indicated by the sending end information under the condition that the first time difference is smaller than or equal to the preset time difference; the third acquisition unit is used for acquiring the generation time of the associated popularization information in the management system through the preset interface under the condition that the first time difference is larger than the preset time difference, wherein the associated popularization information is the popularization information associated with the target service in the management system; and the calculating unit is used for calculating a second time difference between the generation time and the second time, and changing the popularization information according to the second time difference to obtain updated popularization information.
Optionally, in the information obtaining device provided by the embodiment of the present application, the changing the popularization information according to the second time difference, and obtaining updated popularization information includes: the second judging module is used for judging whether the second time difference is smaller than the first time difference or not; the second acquisition module is used for acquiring the associated popularization information from the management system through a preset interface under the condition that the second time difference is smaller than the first time difference; the adding module is used for adding the second moment serving as a time stamp into the associated popularization information to obtain target popularization information, adding the target popularization information into a local database, and determining the target popularization information as updated popularization information; and the execution module is used for executing the step of sending the promotion information to the sending end indicated by the sending end information under the condition that the second time difference is larger than or equal to the first time difference.
Optionally, in the information acquiring apparatus provided in the embodiment of the present application, the information acquiring request further includes an identifier, and the first acquiring unit 32 includes: the third acquisition module is used for acquiring the identifier in the information acquisition request and determining the display content of the applet according to the identifier under the condition that the information of the transmitting end represents that the transmitting end is the applet; the second determining module is used for determining popularization information fed back to the user according to the display content of the applet; after obtaining the promotion information from the local database, the device further comprises: the first determining unit is used for determining a preset display format of the popularization information and determining whether the preset display format is the same as a target display format of the applet; and the changing unit is used for changing the display format of the promotion information into the target display format under the condition that the preset display format and the target display format are different, obtaining updated promotion information and sending the updated promotion information to the applet.
Optionally, in the information acquisition device provided in the embodiment of the present application, the device further includes: the monitoring unit is used for monitoring whether the popularization information stored in the management system is changed or not; the second determining unit is used for acquiring the changed popularization information and determining the service associated with the changed popularization information to obtain the associated service under the condition that the popularization information is changed; and the second storage unit is used for storing the changed popularization information and the association service in a local database in an associated manner.
Optionally, in the information acquisition device provided in the embodiment of the present application, the sending end includes an applet, and the device further includes: and the third sending unit is used for sending the changed popularization information and the association service to the applet, wherein the applet stores the changed popularization information and the association service in a database of the applet in an associated manner after receiving the changed popularization information and the association service.
The information acquisition device includes a processor and a memory, the receiving unit 31, the first acquisition unit 32, the first transmission unit 33, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be set to one or more than one, and the problem that the shared content in the applet is changed in the related art and the code in the applet is required to be changed, so that the applet can not normally run and the workload of staff is improved is solved by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the application provides a computer-readable storage medium having a program stored thereon, which when executed by a processor, implements a method of acquiring information.
The embodiment of the application provides a processor which is used for running a program, wherein the program runs to execute the information acquisition method.
As shown in fig. 4, an embodiment of the present application provides an electronic device, where the electronic device 40 includes a processor, a memory, and a program stored in the memory and executable on the processor, and the steps of the above information acquisition method are implemented when the processor executes the program. The device herein may be a server, PC, PAD, cell phone, etc.
The application also provides a computer program product adapted to perform a program initializing the steps of the above-described information acquisition method when executed on a data processing device.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (10)

1. A method for obtaining information, comprising:
the method comprises the steps that a receiving end receives an information acquisition request sent by a user and analyzes the information acquisition request to obtain sending end information of the information acquisition request;
Determining popularization information fed back to the user according to current display content, and acquiring the popularization information from a local database, wherein the popularization information in the local database is acquired by a management system, the management system is used for generating or modifying the popularization information, the current display content is the display content of the receiving end in a current time display interface or the display content of the transmitting end, and the current time is the time when the receiving end receives the information acquisition request;
and the receiving end sends the promotion information to the sending end indicated by the sending end information.
2. The method of claim 1, wherein determining promotional information to be fed back to the user based on the current display content, and wherein obtaining the promotional information from a local database comprises:
identifying text information and picture information in the current display content;
determining a target service to which the current display content belongs according to the text information and the picture information;
judging whether popularization information corresponding to the target service exists in the local database;
and under the condition that promotion information corresponding to the target service exists in the local database, obtaining the promotion information from the local database.
3. The method of claim 2, wherein after determining in the local database whether there is promotional information corresponding to the target service, the method further comprises:
under the condition that promotion information corresponding to the target service does not exist in the local database, service information of the target service is sent to the management system through a preset interface;
receiving popularization information which is sent by the management system and is associated with the target service through the preset interface, and adding a time stamp of a first moment in the popularization information to obtain updated popularization information, wherein the first moment is the moment of receiving the popularization information;
and storing the target service and the updated popularization information into the local database, and sending the updated popularization information to the sending end.
4. The method of claim 2, wherein after retrieving the promotional information from a local database, the method further comprises:
acquiring a target time stamp in the promotion information, and determining a first time difference between a second time and the target time stamp, wherein the second time is the time of acquiring the promotion information from a local database;
Judging whether the first time difference is larger than a preset time difference or not;
executing the step of transmitting the promotion information to the transmitting end indicated by the transmitting end information under the condition that the first time difference is smaller than or equal to the preset time difference;
acquiring generation time of associated popularization information in the management system through a preset interface under the condition that the first time difference is larger than the preset time difference, wherein the associated popularization information is popularization information associated with the target service in the management system;
and calculating a second time difference between the generation time and the second time, and changing the popularization information according to the second time difference to obtain updated popularization information.
5. The method of claim 4, wherein altering the promotional information based on the second time difference comprises:
judging whether the second time difference is smaller than the first time difference or not;
acquiring the associated popularization information from the management system through the preset interface under the condition that the second time difference is smaller than the first time difference;
adding the second moment serving as a time stamp to the associated popularization information to obtain target popularization information, adding the target popularization information to the local database, and determining the target popularization information as the updated popularization information;
And executing the step of transmitting the promotion information to the transmitting end indicated by the transmitting end information under the condition that the second time difference is greater than or equal to the first time difference.
6. The method of claim 1, wherein the information acquisition request further includes an identifier, and determining promotion information fed back to the user according to the current display content includes:
under the condition that the information of the transmitting end characterizes the transmitting end as an applet, acquiring an identifier in the information acquisition request, and determining the display content of the applet according to the identifier;
determining popularization information fed back to the user according to the display content of the applet;
after obtaining the promotion information from the local database, the method further comprises:
determining a preset display format of the popularization information, and determining whether the preset display format is the same as a target display format of the applet;
and under the condition that the preset display format and the target display format are different, changing the display format of the promotion information into the target display format, obtaining updated promotion information, and sending the updated promotion information to the applet.
7. The method according to claim 1, wherein the method further comprises:
monitoring whether the popularization information stored in the management system is changed or not;
under the condition that the popularization information is changed, acquiring the changed popularization information, and determining a service associated with the changed popularization information to obtain an associated service;
and storing the changed promotion information and the association service in the local database in an associated mode.
8. The method of claim 7, wherein the sender comprises an applet, and wherein after storing the altered promotional information in association with the associated service in the local database, the method further comprises:
and sending the changed popularization information and the association service to the applet, wherein the applet stores the changed popularization information and the association service in a database of the applet in association after receiving the changed popularization information and the association service.
9. An information acquisition apparatus, comprising:
the receiving unit is used for receiving an information acquisition request sent by a user and analyzing the information acquisition request to obtain the sending end information of the information acquisition request;
The first acquisition unit is used for determining popularization information fed back to the user according to current display content, and acquiring the popularization information from a local database, wherein the popularization information in the local database is acquired by a management system, the management system is used for generating or modifying the popularization information, the current display content is the display content of the receiving end in a current time display interface or the display content of the transmitting end, and the current time is the time when the receiving end receives the information acquisition request;
and the first sending unit is used for sending the popularization information to the sending end indicated by the sending end information by the receiving end.
10. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of obtaining information of any of claims 1-8.
CN202310671421.6A 2023-06-07 2023-06-07 Information acquisition method and device and electronic equipment Pending CN116738077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310671421.6A CN116738077A (en) 2023-06-07 2023-06-07 Information acquisition method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310671421.6A CN116738077A (en) 2023-06-07 2023-06-07 Information acquisition method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116738077A true CN116738077A (en) 2023-09-12

Family

ID=87918021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310671421.6A Pending CN116738077A (en) 2023-06-07 2023-06-07 Information acquisition method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116738077A (en)

Similar Documents

Publication Publication Date Title
US8204870B2 (en) Unwired enterprise platform
CN107967143B (en) Method, device and system for acquiring update indication information of source code of client application program
US20200357007A1 (en) Page data acquisition method, apparatus, server, electronic device and computer readable medium
CN107918562A (en) A kind of unified interface management method and system
CN103150513A (en) Method and device for intercepting embedded information in application program
US9128886B2 (en) Computer implemented method, computer system, electronic interface, mobile computing device and computer readable medium
CN113779422B (en) Method and device for realizing relationship chain label, electronic equipment and storage medium
CN110187877B (en) Icon acquisition method, device and system, electronic equipment and storage medium
CN111324480A (en) Large host transaction fault positioning system and method
CN114661811A (en) Data display method and device, electronic equipment and storage medium
CN114385382A (en) Light application access method and device, computer equipment and storage medium
CN113821254A (en) Interface data processing method, device, storage medium and equipment
CN110457010B (en) Method and device for batch changing task list based on collaboration platform
CN112114804A (en) Application program generation method, device and system
CN111767558A (en) Data access monitoring method, device and system
CN116738077A (en) Information acquisition method and device and electronic equipment
CN113900764A (en) Page data acquisition method, page data display method and device
CN112000618A (en) File change management method, device, equipment and storage medium for cluster nodes
CN114116730B (en) Interface management method, device, equipment and storage medium
KR102554170B1 (en) Running Advertisements Method Using Background Program Installed on User's Terminal, and Medium Being Recorded with Program for Executing the Method
CN115474071B (en) Content display method, device, equipment and storage medium
CN114285743B (en) Method, device, electronic equipment and storage medium for updating configuration information
CN110968817A (en) Page content detection method, device and system
CN114844957B (en) Link message conversion method, device, equipment, storage medium and program product
KR20170027327A (en) Method for Exchanging Data Except for Communication Load

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