CN109150694B - Dynamic scene information sending method, dynamic scene information display method, server and mobile terminal - Google Patents

Dynamic scene information sending method, dynamic scene information display method, server and mobile terminal Download PDF

Info

Publication number
CN109150694B
CN109150694B CN201810946866.XA CN201810946866A CN109150694B CN 109150694 B CN109150694 B CN 109150694B CN 201810946866 A CN201810946866 A CN 201810946866A CN 109150694 B CN109150694 B CN 109150694B
Authority
CN
China
Prior art keywords
information
dynamic scene
scene information
terminal
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810946866.XA
Other languages
Chinese (zh)
Other versions
CN109150694A (en
Inventor
白渊玲
陈新
苏大伏
邓磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Montnets Technology Co ltd
Original Assignee
Shenzhen Montnets Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Montnets Technology Co ltd filed Critical Shenzhen Montnets Technology Co ltd
Priority to CN201810946866.XA priority Critical patent/CN109150694B/en
Publication of CN109150694A publication Critical patent/CN109150694A/en
Application granted granted Critical
Publication of CN109150694B publication Critical patent/CN109150694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention is applicable to the technical field of communication, and provides a sending method and a display method of dynamic scene information, a server and a mobile terminal. The server acquires an information pushing request sent by a first terminal, generates a corresponding dynamic scene information resource, sends the dynamic scene information resource to a second terminal, the second terminal generates dynamic scene information according to the dynamic scene information resource and displays the dynamic scene information on a preset page, if the preset page contains a state parameter, a state updating request is generated to the server, after the server receives the state updating request sent by the second terminal, the state updating request is forwarded to the first terminal, current state information corresponding to the state updating request fed back by the first terminal is received, the server sends the current state information to the second terminal, and the second terminal updates the state parameter according to the current state information, so that the sending cost is reduced, and the waste of storage resources is reduced.

Description

Dynamic scene information sending method, dynamic scene information display method, server and mobile terminal
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a sending method and a display method of dynamic scene information, a server and a mobile terminal.
Background
With the development of internet technology, mobile terminals (e.g., mobile phones) have been widely used, and have become an important channel for users to obtain information. When the content contained in the information needs to change along with the change of time, for example, the number of days left in the monthly card, the enterprise terminal needs to continuously send information to the user to achieve the purpose of updating the information content, for example, every time the number of days left in the monthly card decreases by one day, a piece of information is sent to the mobile terminal to inform the current number of days left in the monthly card. When the enterprise terminal needs to update the information content, a plurality of pieces of information need to be sent to the mobile terminal, so that the user can obtain the latest information in time, the sending cost is high, and the mobile terminal can have a plurality of pieces of information and occupy local storage resources.
Therefore, the method for updating the information content by continuously sending the information in the prior art has the problems of high sending cost and waste of storage resources.
Disclosure of Invention
In view of this, embodiments of the present invention provide a sending method and a display method for dynamic scene information, a server, and a mobile terminal, so as to solve the problems in the prior art that a sending cost is high and storage resources are wasted in a manner of continuously sending information to update information content.
A first aspect of an embodiment of the present invention provides a method for sending dynamic scene information, which is applied to a server, and the method for sending dynamic scene information includes:
receiving an information push request sent by a first terminal, and generating a dynamic scene information resource according to the information push request;
sending the dynamic scene information resource to a second terminal, wherein the dynamic scene information resource is used for indicating the second terminal to display corresponding dynamic scene information;
if a state updating request sent by the second terminal is received, sending the state updating request to the first terminal;
and receiving current state information fed back by the first terminal according to the state updating request, and sending the current state information to the second terminal, wherein the current state information is used for indicating the second terminal to correspondingly update the displayed state parameters.
A second aspect of an embodiment of the present invention provides a server, including:
the information pushing request receiving module is used for receiving an information pushing request sent by a first terminal and generating a dynamic scene information resource according to the information pushing request;
the dynamic scene information resource sending module is used for sending the dynamic scene information resource to a second terminal, and the dynamic scene information resource is used for indicating the second terminal to display corresponding dynamic scene information;
a status update request receiving module, configured to send a status update request to the first terminal if the status update request sent by the second terminal is received;
and the current state information acquisition module is used for receiving current state information fed back by the first terminal according to the state updating request and sending the current state information to the second terminal, wherein the current state information is used for indicating the second terminal to correspondingly update the displayed state parameters.
A third aspect of the embodiments of the present invention provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method for transmitting dynamic scene information as described above when executing the computer program.
A fourth aspect of the present invention provides a method for displaying dynamic scene information, which is applied to a second terminal, and the method for displaying dynamic scene information includes:
receiving dynamic scene information resources sent by a server;
generating dynamic scene information according to the dynamic scene information resources;
displaying the dynamic scene information on a preset page;
if the preset page contains the state parameters, generating a state updating request according to the state parameters, and sending the state updating request to a server;
and receiving the current state information fed back by the server, and updating the state parameters according to the current state information.
A fifth aspect of an embodiment of the present invention provides a second terminal, including:
the dynamic scene information resource receiving module is used for receiving the dynamic scene information resource sent by the server;
the dynamic scene information generating module is used for generating dynamic scene information according to the dynamic scene information resources;
the dynamic scene information display module is used for displaying the dynamic scene information on a preset page;
the updating request generating module is used for generating a state updating request according to the state parameters if the preset page contains the state parameters and sending the state updating request to a server;
and the state information updating module is used for receiving the current state information fed back by the server and updating the state parameters according to the current state information.
A sixth aspect of the embodiments of the present invention provides a second terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method for displaying dynamic scene information as described above when executing the computer program.
A seventh aspect of the embodiments of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method for transmitting dynamic scene information or the steps of the method for displaying dynamic scene information as described above.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: in the embodiment, a server acquires an information push request sent by a first terminal, generates a corresponding dynamic scene information resource, sends the dynamic scene information resource to a second terminal, the second terminal generates dynamic scene information according to the dynamic scene information resource and displays the dynamic scene information on a preset page, if the preset page contains a state parameter, a state update request is generated to the server, after receiving the state update request sent by the second terminal, the server forwards the state update request to the first terminal and receives current state information corresponding to the state update request fed back by the first terminal, the server sends the current state information to the second terminal, the second terminal updates the state parameter according to the current state information, the server only needs to send the dynamic scene information resource to the second terminal once, and when the preset page of the second terminal contains the state parameter needing to be updated, the current state information of the state parameters is continuously acquired through the server, and the state parameters are updated according to the current state information, so that the dynamic scene information is dynamically updated, the server does not need to send dynamic scene information resources to the second terminal for multiple times, the second terminal does not need to store multiple pieces of information, the sending cost is reduced, and the waste of storage resources is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an implementation of a method for sending dynamic context information according to an embodiment of the present invention;
FIG. 2 is a block diagram of a server according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an implementation of a method for displaying dynamic scene information according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a second terminal according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a server provided by one embodiment of the present invention;
fig. 6 is a schematic diagram of a second terminal according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
The terms "comprises" and "comprising," and any variations thereof, in the description and claims of this invention and the above-described drawings are intended to cover non-exclusive inclusions. For example, a process, method, or system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 shows an implementation process of a method for sending dynamic context information according to an embodiment of the present invention, where a flow execution subject according to an embodiment of the present invention may be a server, and a process thereof is detailed as follows:
in step S101, an information push request sent by a first terminal is received, and a dynamic scene information resource is generated according to the information push request.
In this embodiment, the first terminal is a terminal corresponding to an enterprise, and when the enterprise wants to push dynamic scenario information to the second terminal, by sending an information push request to the server, the server generates a corresponding dynamic scenario information resource according to the information push request and sends the dynamic scenario information resource to the second terminal.
In this embodiment, the server may include a preprocessing sub-server, a sending sub-server, a control sub-server, and a downloading sub-server, where each sub-server is responsible for different tasks, so as to avoid the problems of response delay and slow operation speed caused by the server needing to generate a dynamic scene information resource according to an information push request and to respond to the requests sent by the first terminal and the second terminal, and improve the response speed and the operation speed of the server.
Optionally, step S101 includes:
1) and acquiring the information type included in the information pushing request, and selecting a scene template corresponding to the information type.
2) And acquiring parameters included in the information pushing request, and selecting a scene control corresponding to the parameters.
3) And acquiring an initial dynamic scene information configuration file and an information position mapping table corresponding to the scene template.
4) And inserting the parameters and the scene control into the corresponding position in the initial dynamic scene information configuration file according to the information position mapping table to obtain a target dynamic scene information configuration file.
5) And running the target dynamic scene information configuration file based on the scene template to generate dynamic scene information.
6) And generating dynamic scene information resources, wherein the dynamic scene information resources comprise download addresses of the dynamic scene information.
In this embodiment, the information push request sent by the first terminal includes an information type and a parameter.
In this embodiment, each information type has a corresponding parameter, and the parameter is a content that must be included in the dynamic scene information displayed on the preset page of the second terminal.
In this embodiment, each information type has a corresponding scene template, and the corresponding scene templates are different for different application scenes, for example, the scene template corresponding to the timing reminding scene is different from the scene template corresponding to the logistics distribution. When the preprocessing sub-server receives the information pushing request, the scene template ID corresponding to the information type included in the information pushing request is searched, for example, the information type included in the information pushing request is a logistics type, and the scene template ID corresponding to the logistics type is searched. The preprocessing sub-server sends the scene template ID to the sending sub-server, and the sending sub-server downloads the scene information template corresponding to the scene template ID from the downloading sub-server, so that the dynamic scene information presented at the second terminal meets the requirements of enterprise users.
Optionally, the preprocessing sub-server may further receive a custom scene template uploaded by the enterprise user, and the enterprise user may define the template according to the own requirement, so that the finally displayed scene information at the mobile terminal better conforms to the enterprise characteristics.
In this embodiment, the preprocessing sub-server matches the parameters with preset keywords, determines whether the parameters include the preset keywords, obtains a scene control ID corresponding to the preset keywords if the parameters include the preset keywords, and does not need to obtain the scene control ID if any preset keywords are not included.
In this embodiment, the preprocessing sub-server obtains a scene control ID corresponding to a preset keyword, and sends the scene control ID to the sending sub-server, and the sending sub-server downloads a scene control corresponding to the scene control ID from the downloading sub-server.
In this embodiment, the preprocessing sub-server only needs to acquire the scene template ID and the scene control ID and send the scene template ID and the scene control ID to the sending sub-server, the sending sub-server only needs to download the corresponding file from the downloading sub-server according to the scene template ID and the scene control ID, and each sub-server is only responsible for part of work, so that the running speed of the sub-server can be increased.
In this embodiment, the information location mapping table includes parameters and locations of scene controls in the initial dynamic scene information configuration file, and each scene template has a corresponding information location mapping table.
In this embodiment, the scene control may implement a certain display effect, for example, a timing effect, and continuously update the remaining time of the monthly card.
In this embodiment, the sending sub-server downloads an initial dynamic scene information configuration file and an information position mapping table corresponding to a scene template from the downloading sub-server, and the sending sub-server inserts parameters and scene controls into corresponding positions in the initial dynamic scene information configuration file according to the information position mapping table to obtain a target dynamic scene information configuration file. For example, if the parameter includes the remaining time, the remaining time is inserted into the location of the remaining time in the initial dynamic scene information configuration file. The initial dynamic scene information configuration file includes layout configuration information of the dynamic scene information, such as a position of a picture, a size of the picture, a size of a character, a color of the character, and the like.
In this embodiment, the sending servlet runs the target dynamic scenario information configuration file based on the dynamic scenario information template, so as to obtain the dynamic scenario information, where the scenario template is equivalent to a container, the target dynamic scenario information configuration file is equivalent to a method for filling resources (i.e., parameters and scenario controls) into the container, and the dynamic scenario information is equivalent to a container already containing the required resources.
Optionally, after the sending sub-server obtains the dynamic scene information, the dynamic scene information is sent to the downloading sub-server, the downloading sub-server allocates a downloading address for the dynamic scene information, and sends the downloading address to the sending sub-server, the sending sub-server sends the downloading address to the mobile terminal, and the mobile terminal can directly download the corresponding dynamic scene information from the downloading sub-server through the downloading address.
In this embodiment, the sending sub-server generates a dynamic scene information resource based on the first preset format, where the dynamic scene information resource includes a download address of the dynamic scene information, that is, the download address of the dynamic scene information is substituted into a position of the download address in the first preset format.
Optionally, after the parameter included in the information push request is obtained and the scene control corresponding to the parameter is selected, the method includes:
1) and acquiring an initial dynamic scene information configuration file and an information position mapping table corresponding to the scene template.
2) And respectively distributing download addresses for the scene template and the scene control.
3) And generating dynamic scene information resources, wherein the dynamic scene information resources comprise parameters, an initial dynamic scene information configuration file, an information position mapping table, a downloading address of a scene template and a downloading address of a scene control.
In this embodiment, the sending sub-server sends the scene template and the scene control to the downloading sub-server, and the downloading sub-server allocates a downloading address for the scene template and the scene control respectively, where the downloading addresses of the scene template and the scene control may be the same or different.
In this embodiment, the sum of the sizes of the scene template and the scene control is calculated to obtain the total file size, if the total file size is not greater than the preset value, the same download address is allocated to the scene template and the scene control, that is, the download address of the scene template is the same as the download address of the scene control, and the second terminal can download the scene template and the scene control according to one download address, so that the operation steps required by downloading are reduced, and the downloading complexity is reduced.
In this embodiment, if the total file size is greater than the preset value, a different download address is respectively allocated to the scene template and the scene control, and the second terminal can respectively download the scene template and the scene control according to the download addresses of the scene template and the scene control, so that the problems of too long download time and link blockage caused by too large files are avoided.
In this embodiment, the sending sub-server generates a dynamic scene information resource based on a second preset format, where the dynamic scene information resource includes a parameter, an initial dynamic scene information configuration file, an information position mapping table, a download address of a scene template, and a download address of a scene control, the sending sub-server sends the dynamic scene information resource to the second terminal, the second terminal downloads the scene template and the scene control according to the download address of the scene template and the download address of the scene control, and the second terminal itself generates dynamic scene information according to the parameter, the initial dynamic scene information configuration file, the information position mapping table, the scene template, and the scene control.
In this embodiment, if the sending sub-server currently needs to generate more dynamic scene information and has a larger burden, in order to reduce the burden of the sending sub-server, the relevant file and information are sent to the second terminal, the second terminal completes the drawing of the dynamic scene information locally, and since the scene control and the scene template are larger than the set numerical value, in order to avoid the problem of link blockage caused by sending a large file, the download address of the scene control and the scene template is sent to the second terminal, and the second terminal obtains the corresponding file from the download server.
Optionally, after the parameter included in the information push request is obtained and the scene control corresponding to the parameter is selected, the method includes:
1) and acquiring an initial dynamic scene information configuration file and an information position mapping table corresponding to the scene template.
2) And generating dynamic scene information resources based on the third preset format, wherein the dynamic scene information resources comprise parameters, an initial dynamic scene information configuration file, an information position mapping table, a scene template and a scene control.
In this embodiment, the download sub-server obtains the number of the second terminals currently connected, and if the number is greater than the preset access number, it indicates that the number of the second terminals currently accessing the download sub-server is large, and the load of the download sub-server is too large.
Optionally, step S101 includes:
1) and if the information push request is detected to comprise the state parameters, judging whether the state parameters comprise preset state keywords or not.
2) And if the state parameters contain the preset state keywords, selecting a state scene control matched with the preset state keywords.
3) And generating corresponding dynamic scene information resources according to the state scene control.
In this embodiment, the parameters include state parameters, and the scene control includes a state scene control. The preprocessing sub-server judges whether the parameters include state parameters, if the parameters include the state parameters, the preprocessing sub-server judges whether the state parameters include preset state keywords, if the state parameters include the preset state keywords, the state scene control ID corresponding to the preset keywords is selected, and if the state parameters do not include the preset state keywords, the state scene control does not need to be selected.
The preset state keywords comprise an express delivery state, a takeaway delivery state or the number of people in line.
In this embodiment, the state of the state parameter changes with time, and the latest state needs to be obtained from the first terminal, and the state scene control achieves the effect of continuously obtaining the latest state from the first terminal and dynamically updating the state parameter.
In this embodiment, each status scene control ID corresponds to a status update rule for updating the status parameter. And when the preset sub-server selects the state scene control ID, acquiring a state updating rule corresponding to the selected state scene control ID, and sending the state updating rule to the control sub-server. The control sub-server is correspondingly configured according to the updating rule, so that the control sub-server can send the second state updating request to the first terminal after receiving the state updating request sent by the second terminal, and send the current state information fed back by the first terminal according to the state updating request to the second terminal, and the updating efficiency is improved.
Optionally, when the second terminal sends the status update request, the second terminal first obtains the status information of the status parameters on the preset page, and then generates the status update request to send to the control sub-server. The preprocessing sub-server sends preset termination state information corresponding to the state scene ID (namely, the state parameter) to the control sub-server, the control sub-server judges whether the state information of the state parameter contained in the state updating request sent by the second terminal is the preset termination state information of the state parameter, if the state information is the preset termination state information, the state updating request does not need to be sent to the first terminal, and if the state information is not the preset termination state information, the state updating request is forwarded to the first terminal.
Optionally, step S101 includes:
1) if the information pushing request is detected to comprise timing parameters, whether the timing parameters comprise preset timing keywords or not is judged.
2) And if the timing parameters contain the preset timing keywords, selecting timing scene controls matched with the preset timing keywords.
3) And generating corresponding dynamic scene information resources according to the timing scene control.
In this embodiment, the parameters include timing parameters, and the scene control includes a timing scene control. The preprocessing sub-server judges whether the parameters comprise timing parameters or not, if the parameters comprise the timing parameters, the preprocessing sub-server judges whether the timing parameters comprise preset timing keywords or not, if the timing parameters comprise the preset timing keywords, timing scene control IDs corresponding to the preset keywords are selected, and if the timing parameters do not comprise the preset timing keywords, timing scene controls do not need to be obtained.
The preset time keywords comprise appointment reminders or remaining time reminders (for example, the remaining time reminders of the shared bicycle monthly cards).
In this embodiment, the timing parameter changes with the change of time, but the latest time does not need to be acquired by the first terminal, and the timing scene control realizes the effect of dynamically updating the currently displayed time of the timing parameter according to the timing time.
In step S102, a dynamic scene information resource is sent to the second terminal, where the dynamic scene information resource is used to instruct the second terminal to display corresponding dynamic scene information.
In this embodiment, the sending sub-server sends the dynamic scene information resource to the second terminal, where the content that the dynamic scene information resource may contain has three conditions, the first is that the dynamic scene information resource only contains a download address of the dynamic scene information, the second is that the dynamic scene information resource only contains a parameter, an initial dynamic scene information configuration file, an information position mapping table, a download address of the dynamic scene information template, and a download address of the dynamic scene information control, and the third is that the dynamic scene information resource only includes a parameter, an initial dynamic scene information configuration file, an information position mapping table, a scene template, and a scene control. The second terminal can flexibly generate the dynamic scene information according to the content contained in the dynamic scene information resource.
In step S103, when the status update request sent by the second terminal is received, the status update request is sent to the first terminal.
In this embodiment, if the control sub-server receives a status update request sent by the second terminal, where the status update request includes a status parameter that needs to be updated, the status update request is forwarded to the first terminal, and the first terminal obtains the latest status information of the status parameter, that is, the current status information.
In step S104, current state information fed back by the first terminal according to the state update request is received and sent to the second terminal, where the current state information is used to instruct the second terminal to update the displayed state parameters correspondingly.
In this embodiment, the control sub-server receives current state information fed back by the first terminal according to the state update request, and sends the current state information to the second terminal, and after the second terminal receives the current state information, the corresponding state parameter is updated, so that a user corresponding to the second terminal can obtain the latest state information of the state parameter in time.
In this embodiment, a server obtains an information push request sent by a first terminal, generates a corresponding dynamic scene information resource, sends the dynamic scene information resource to a second terminal, the second terminal generates dynamic scene information according to the dynamic scene information resource and displays the dynamic scene information on a preset page, if the preset page contains a state parameter, a state update request is generated to the server, when the server receives the state update request sent by the second terminal, the server forwards the state update request to the first terminal and receives current state information corresponding to the state update request fed back by the first terminal, the server sends the current state information to the second terminal, the second terminal updates the state parameter according to the current state information, the server only needs to send the dynamic scene information resource to the second terminal once, and when the preset page of the second terminal contains the state parameter to be updated, the server continuously acquires the current state information of the state parameters and updates the state parameters according to the current state information, so that dynamic scene information is dynamically updated, the server does not need to send dynamic scene information resources to the second terminal for multiple times, the second terminal does not need to store multiple pieces of information, the sending cost is reduced, the waste of storage resources is reduced, the user's dislike is not easily caused, and the user experience is improved.
As shown in fig. 2, an embodiment of the present invention provides a server 100, configured to execute the method steps in the embodiment corresponding to fig. 1, where the method includes:
an information push request receiving module 110, configured to receive an information push request sent by a first terminal, and generate a dynamic scene information resource according to the information push request;
a dynamic scene information resource sending module 120, configured to send the dynamic scene information resource to a second terminal, where the dynamic scene information resource is used to instruct the second terminal to display corresponding dynamic scene information;
a status update request receiving module 130, configured to send a status update request to the first terminal if the status update request sent by the second terminal is received;
a current state information obtaining module 140, configured to receive current state information fed back by the first terminal according to the state update request, and send the current state information to the second terminal, where the current state information is used to instruct the second terminal to update the displayed state parameters correspondingly.
Optionally, the information push request receiving module 110 includes:
the first parameter determining unit is configured to determine whether the state parameter includes a preset state keyword if it is detected that the information push request includes the state parameter.
And the state control selecting unit is used for selecting a state scene control matched with the preset state keyword if the state parameter contains the preset state keyword.
And the first control processing unit is used for generating corresponding dynamic scene information resources according to the state scene control.
Optionally, the information push request receiving module 110 includes:
and the second parameter judging unit is used for judging whether the timing parameters contain preset timing keywords or not if the information pushing request is detected to comprise the timing parameters.
And the timing control selecting unit is used for selecting a timing scene control matched with the preset timing key word if the timing parameter contains the preset timing key word.
And the second control processing unit is used for generating corresponding dynamic scene information resources according to the timing scene control.
Optionally, the information push request receiving module 110 includes:
and the scene template selecting unit is used for acquiring the information type included by the information pushing request and selecting the scene template corresponding to the information type.
And the scene control selecting unit is used for acquiring the parameters included in the information pushing request and selecting the scene control corresponding to the parameters.
And the configuration file selecting unit is used for acquiring an initial dynamic scene information configuration file and an information position mapping table corresponding to the scene template.
And the target file generating unit is used for inserting the parameters and the scene control into the corresponding position in the initial dynamic scene information configuration file according to the information position mapping table to obtain a target dynamic scene information configuration file.
And the dynamic scene information generating unit is used for operating the target dynamic scene information configuration file based on the scene template to generate the dynamic scene information.
And the dynamic resource generating unit is used for generating a dynamic scene information resource, and the dynamic scene information resource comprises a download address of the dynamic scene information.
In one embodiment, the server 100 further includes other functional modules/units, which are used to implement the method steps in the embodiment corresponding to the method for sending dynamic scenario information.
Fig. 3 shows an implementation process of the display method of dynamic scene information according to an embodiment of the present invention, where a process execution main body according to an embodiment of the present invention may be a second terminal, and a process thereof is detailed as follows:
in step S201, a dynamic scene information resource transmitted by a server is received.
In this embodiment, after the sending sub-server generates the dynamic scenario information resource, an address (for example, a mobile phone number) of the second terminal is obtained, and the generated dynamic scenario information resource is sent to the second terminal corresponding to the obtained address.
Wherein the address of the second terminal is provided by the first terminal.
In step S202, dynamic scenario information is generated from the dynamic scenario information resource.
In this embodiment, after the second terminal receives the dynamic scene information resource sent by the sending sub-server, the content included in the dynamic scene information resource is detected, and if the second terminal detects that the dynamic scene information resource only includes the download address of the dynamic scene information, the corresponding dynamic scene information is directly downloaded from the downloading sub-server according to the download address. If the second terminal detects that the dynamic scene information resource comprises a parameter, an initial dynamic scene information configuration file, an information position mapping table, a downloading address of a scene template and a downloading address of a scene control, the second terminal downloads the corresponding scene template and the corresponding scene control from the downloading sub-server according to the downloading address of the scene template and the downloading address of the scene control, inserts the parameter and the scene control into the corresponding position in the initial dynamic scene information configuration file according to the information position mapping table to obtain a target dynamic scene information configuration file, and operates the target dynamic scene information configuration file based on the scene template to generate the dynamic scene information. If the second terminal detects that the dynamic scene information resource comprises a parameter, an initial dynamic scene information configuration file, an information position mapping table, a scene template and a scene control, inserting the parameter and the scene control into a corresponding position in the initial dynamic scene information configuration file according to the information position mapping table to obtain a target dynamic scene information configuration file, and operating the target dynamic scene information configuration file based on the scene template to generate dynamic scene information.
In this embodiment, if the second terminal detects that the received dynamic scene information resource does not only include the download address of the dynamic scene information, the second terminal itself generates the dynamic scene information by using the corresponding file, completes the drawing of the dynamic scene information locally, and reduces the workload of the sending sub-server.
In step S203, the dynamic scene information is displayed on a preset page.
In this embodiment, the dynamic scene information is displayed on a preset page, and the preset page may be a short message page.
In step S204, if the preset page includes the status parameter, a status update request is generated according to the status parameter, and the status update request is sent to the server.
In this embodiment, if the dynamic scene information includes the state parameter, that is, the preset page displaying the dynamic scene information includes the state parameter, the second terminal generates a state update request according to the state parameter included in the preset page, and sends the state update request to the control sub-server.
In step S205, the current state information fed back by the server is received, and the state parameters are updated according to the current state information.
In this embodiment, after receiving the state update request, the control sub-server sends the state update request to the first terminal, the first terminal extracts the state parameters from the state update request, obtains current state information corresponding to the state parameters, sends the current state information to the second terminal through the control sub-server, and the second terminal correspondingly updates the state parameters on the preset page according to the current state information.
In this embodiment, the state parameters have corresponding initial state information, and when the second terminal does not send a state update request to the control sub-server, that is, immediately after the scene resource is displayed on the preset page, the state information corresponding to the state parameters displayed on the preset page is the initial state information.
Taking a specific application scenario as an example, the state parameter is an express delivery state, the initial state information of the express delivery state does not obtain logistics information, the second terminal generates a state update request to obtain a latest state of the express delivery state, the second terminal sends the state update request to the first terminal through the control sub-server, and receives current state information of the express delivery state fed back by the first terminal, for example, the current state information is in transportation, the first terminal detects whether state information corresponding to the express delivery state displayed on a preset page is the same as the current state information, if the state information is the same as the current state information, updating is not needed, and the logistics information which is not obtained is updated to be in transportation as the express delivery state displayed on the preset page is detected by the first terminal as not obtaining logistics information, and the current state information is in transportation.
In this embodiment, the second terminal generates a state update request according to the state parameter on the preset page until the state information of the state parameter is updated to the corresponding preset termination state information. And after receiving the current state information of the state parameters fed back by the control sub-server, the second terminal detects whether the current state information is preset termination state information corresponding to the changed state parameters, and if the current state information is the preset termination state information, the second terminal stops sending the state updating request to the control sub-server after the state parameters are according to the current state information, namely the state parameters are updated, so that the waste of resources caused by continuously sending useless state updating requests is reduced.
Taking a specific application scenario as an example, the state parameter is an express delivery state, the preset termination state information corresponding to the express delivery state is signed, when the second terminal receives the current state information of the express delivery state fed back by the control sub-server for the first time, the state information corresponding to the express delivery state on the preset page is updated to be signed, and the generation of the state updating request corresponding to the express delivery state is stopped.
In this embodiment, if the dynamic scene information includes a timing parameter, that is, a preset page displaying the dynamic scene information includes a timing parameter, the second terminal automatically updates the timing parameter according to the timing time, for example, the timing parameter is monthly card remaining time, and the monthly card remaining time is continuously updated according to the timing time, for example, the monthly card remaining time is initially 30 days, and after one day elapses, the monthly card remaining time is updated to 29 days, and the timing parameter may be automatically updated by the second terminal.
In this embodiment, the second terminal may generate the dynamic scene information accordingly according to the data included in the dynamic scene information resource, that is, if the scene resource only includes the download address of the dynamic scene information resource, the second terminal directly wants to download the dynamic scene information corresponding to the download address, and if the scene resource does not include the download address but includes other data (for example, an initial dynamic scene information configuration file), the second terminal locally implements drawing of the dynamic scene information according to the data.
Optionally, if the mobile terminal presets some dynamic scene information templates, the sending sub-server only needs to send the scene information template ID to the second terminal, and the second terminal locally obtains the scene information template corresponding to the scene information template ID, so that secondary downloading is avoided.
The preset scene information template comprises a pre-stored scene information template or a previously downloaded scene information template.
As shown in fig. 4, a second terminal 200 according to an embodiment of the present invention is configured to execute the method steps in the embodiment corresponding to fig. 3, and includes:
the dynamic context information resource receiving module 210 is configured to receive a dynamic context information resource sent by a server.
The dynamic scene information generating module 220 is configured to generate dynamic scene information according to the dynamic scene information resource.
And a dynamic scene information display module 230, configured to display the dynamic scene information on a preset page.
And the update request generating module 240 is configured to generate a status update request according to the status parameters included in the preset page, and send the status update request to the server.
And a state information updating module 250, configured to receive the current state information fed back by the server, and update the state parameters according to the current state information.
In an embodiment, the second terminal 200 further includes other functional modules/units, which are used to implement the steps included in each embodiment corresponding to the above-mentioned display method for dynamic scene information.
Fig. 5 is a schematic diagram of a server provided by an embodiment of the present invention. As shown in fig. 5, the server 100 of this embodiment includes: the system comprises a processor 50, a memory 51 and a computer program 52 stored in the memory 51 and operable on the processor 50, wherein the processor 50 implements the steps in each embodiment corresponding to the method for transmitting the scene information, for example, steps S101 to S104 shown in fig. 1, when executing the computer program. Alternatively, the processor 50 implements the functions of the modules in the apparatus embodiments as described in fig. 2 when executing the computer program, and the server 100 may be a computing device such as a desktop computer, a notebook computer, a palm computer, and a cloud server. The server 100 may include, but is not limited to, a processor 50, a memory 51. For example, the server 100 may also include input output devices, network access devices, buses, and the like.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 51 may be an internal storage unit of the server 100, such as a hard disk or a memory of the server 100. The memory 51 may also be an external storage device of the server 100, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device. Further, the memory 51 may also include both an internal storage unit of the server 100 and an external storage device. The memory 51 is used for storing the computer program and other programs and data required by the server 100. The memory 51 may also be used to temporarily store data that has been output or is to be output.
Fig. 6 is a schematic diagram of a second terminal according to an embodiment of the present invention. As shown in fig. 6, the mobile terminal 200 of this embodiment includes: the system comprises a processor 60, a memory 61 and a computer program 62 stored in the memory 61 and capable of running on the processor 60, wherein the processor 60 executes the computer program to implement steps in the embodiments corresponding to the method for displaying scene information and steps in the embodiments described in embodiment 3, such as steps S201 to S205 shown in fig. 3. Alternatively, the processor 60 implements the functions of the modules in the device embodiments as shown in fig. 4 when executing the computer program, and the mobile terminal 200 may be a computing device such as a desktop computer, a notebook computer, a palm computer, and a cloud server. The mobile terminal 200 may include, but is not limited to, a processor 60, a memory 61. For example, the mobile terminal 200 may also include input-output devices, network access devices, buses, and the like.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the mobile terminal 200, such as a hard disk or a memory of the mobile terminal 200. The memory 61 may also be an external storage device of the mobile terminal 200, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device. Further, the memory 61 may also include both an internal storage unit and an external storage device of the mobile terminal 200. The memory 61 is used for storing the computer program and other programs and data required by the mobile terminal 200. The memory 61 may also be used to temporarily store data that has been output or is to be output.
An embodiment of the present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements steps of a method of transmitting scene information or steps of a method of displaying scene information, such as steps S101 to S104 shown in fig. 1 or steps S201 to S205 shown in fig. 3. Alternatively, the computer program realizes the functions of the respective modules in the respective apparatus embodiments described in fig. 2, such as the functions of the modules 110 to 140 shown in fig. 2 or the functions of the modules 210 to 250 shown in fig. 4, when executed by the processor.
The computer program may be stored in a computer readable storage medium, which when executed by a processor, may implement the steps of the various method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The modules or units in the system of the embodiment of the invention can be combined, divided and deleted according to actual needs.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (9)

1. A method for sending dynamic scene information is applied to a server, and the method for sending dynamic scene information comprises the following steps:
receiving an information push request sent by a first terminal, acquiring an information type included in the information push request, and selecting a scene template corresponding to the information type;
acquiring parameters included in the information pushing request, and selecting a scene control corresponding to the parameters;
acquiring an initial dynamic scene information configuration file and an information position mapping table corresponding to the scene template;
inserting the parameters and the scene control into the corresponding position in the initial dynamic scene information configuration file according to the information position mapping table to obtain a target dynamic scene information configuration file;
running the target dynamic scene information configuration file based on the scene template to generate the dynamic scene information;
generating the dynamic scene information resource, wherein the dynamic scene information resource comprises a download address of the dynamic scene information;
sending the dynamic scene information resource to a second terminal, wherein the dynamic scene information resource is used for indicating the second terminal to display corresponding dynamic scene information;
if a state updating request sent by the second terminal is received, sending the state updating request to the first terminal;
and receiving current state information fed back by the first terminal according to the state updating request, and sending the current state information to the second terminal, wherein the current state information is used for indicating the second terminal to correspondingly update the displayed state parameters.
2. The method for sending dynamic scene information according to claim 1, wherein the obtaining of the parameter included in the information push request and the selecting of the scene control corresponding to the parameter include:
acquiring parameters included in the information pushing request;
if the parameters comprise state parameters, judging whether the state parameters comprise preset state keywords or not;
and if the state parameters contain preset state keywords, selecting a state scene control matched with the preset state keywords.
3. The method for sending dynamic scene information according to claim 1, wherein the obtaining of the parameter included in the information push request and the selecting of the scene control corresponding to the parameter include:
acquiring parameters included in the information pushing request;
if the parameters comprise timing parameters, judging whether the timing parameters contain preset timing keywords or not;
and if the timing parameters contain preset timing keywords, selecting timing scene controls matched with the preset timing keywords.
4. A server, comprising:
the information pushing request receiving module is used for receiving an information pushing request sent by a first terminal, acquiring an information type included in the information pushing request, and selecting a scene template corresponding to the information type; acquiring parameters included in the information pushing request, and selecting a scene control corresponding to the parameters; acquiring an initial dynamic scene information configuration file and an information position mapping table corresponding to the scene template; inserting the parameters and the scene control into the corresponding position in the initial dynamic scene information configuration file according to the information position mapping table to obtain a target dynamic scene information configuration file; running the target dynamic scene information configuration file based on the scene template to generate the dynamic scene information; generating the dynamic scene information resource, wherein the dynamic scene information resource comprises a download address of the dynamic scene information;
the dynamic scene information resource sending module is used for sending the dynamic scene information resource to a second terminal, and the dynamic scene information resource is used for indicating the second terminal to display corresponding dynamic scene information;
a status update request receiving module, configured to send a status update request to the first terminal if the status update request sent by the second terminal is received;
and the current state information acquisition module is used for receiving current state information fed back by the first terminal according to the state updating request and sending the current state information to the second terminal, wherein the current state information is used for indicating the second terminal to correspondingly update the displayed state parameters.
5. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method for transmitting dynamic scene information according to any one of claims 1 to 3 when executing the computer program.
6. A method for displaying dynamic scene information is applied to a second terminal, and the method for displaying dynamic scene information comprises the following steps:
receiving dynamic scene information resources sent by a server, wherein the dynamic scene information resources are generated by the server according to an information push request sent by a first terminal; the server acquires the information type included in the information pushing request, and selects a scene template corresponding to the information type; acquiring parameters included in the information pushing request, and selecting a scene control corresponding to the parameters; acquiring an initial dynamic scene information configuration file and an information position mapping table corresponding to the scene template; inserting the parameters and the scene control into the corresponding position in the initial dynamic scene information configuration file according to the information position mapping table to obtain a target dynamic scene information configuration file; running the target dynamic scene information configuration file based on the scene template to generate the dynamic scene information; generating the dynamic scene information resource, wherein the dynamic scene information resource comprises a download address of the dynamic scene information;
generating dynamic scene information according to the dynamic scene information resources;
displaying the dynamic scene information on a preset page;
if the preset page contains the state parameters, generating a state updating request according to the state parameters, and sending the state updating request to a server;
and receiving the current state information fed back by the server, and updating the state parameters according to the current state information.
7. A second terminal, comprising:
the system comprises a dynamic scene information resource receiving module, a dynamic scene information resource sending module and a dynamic scene information resource sending module, wherein the dynamic scene information resource is used for receiving a dynamic scene information resource sent by a server, and the dynamic scene information resource is generated by the server according to an information pushing request sent by a first terminal; the server acquires the information type included in the information pushing request, and selects a scene template corresponding to the information type; acquiring parameters included in the information pushing request, and selecting a scene control corresponding to the parameters; acquiring an initial dynamic scene information configuration file and an information position mapping table corresponding to the scene template; inserting the parameters and the scene control into the corresponding position in the initial dynamic scene information configuration file according to the information position mapping table to obtain a target dynamic scene information configuration file; running the target dynamic scene information configuration file based on the scene template to generate the dynamic scene information; generating the dynamic scene information resource, wherein the dynamic scene information resource comprises a download address of the dynamic scene information;
the dynamic scene information generating module is used for generating dynamic scene information according to the dynamic scene information resources;
the dynamic scene information display module is used for displaying the dynamic scene information on a preset page;
the updating request generating module is used for generating a state updating request according to the state parameters if the preset page contains the state parameters and sending the state updating request to a server;
and the state information updating module is used for receiving the current state information fed back by the server and updating the state parameters according to the current state information.
8. A second terminal comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor implements the steps of the method for displaying dynamic scene information according to claim 6 when executing said computer program.
9. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for transmitting dynamic scene information according to any one of claims 1 to 3 or the steps of the method for displaying dynamic scene information according to claim 6.
CN201810946866.XA 2018-08-20 2018-08-20 Dynamic scene information sending method, dynamic scene information display method, server and mobile terminal Active CN109150694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810946866.XA CN109150694B (en) 2018-08-20 2018-08-20 Dynamic scene information sending method, dynamic scene information display method, server and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810946866.XA CN109150694B (en) 2018-08-20 2018-08-20 Dynamic scene information sending method, dynamic scene information display method, server and mobile terminal

Publications (2)

Publication Number Publication Date
CN109150694A CN109150694A (en) 2019-01-04
CN109150694B true CN109150694B (en) 2021-01-05

Family

ID=64790305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810946866.XA Active CN109150694B (en) 2018-08-20 2018-08-20 Dynamic scene information sending method, dynamic scene information display method, server and mobile terminal

Country Status (1)

Country Link
CN (1) CN109150694B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430233B (en) * 2019-06-28 2023-01-10 平安科技(深圳)有限公司 Scene file uploading method and device, computer equipment and storage medium
CN111416760B (en) * 2020-03-30 2022-11-08 京东方科技集团股份有限公司 Information synchronization method, terminal and information synchronization system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1786173A2 (en) * 2003-01-22 2007-05-16 Nec Corporation Dynamic buddy list generation method
CN102957748A (en) * 2012-11-07 2013-03-06 广东威创视讯科技股份有限公司 Dynamic update method and system for three-dimensional scene
CN105791291A (en) * 2016-03-02 2016-07-20 腾讯科技(深圳)有限公司 Display control method for network application and real-time display update method and device
CN106649518A (en) * 2016-10-17 2017-05-10 腾讯科技(深圳)有限公司 Method and apparatus for processing dynamic information data
CN107800761A (en) * 2017-09-04 2018-03-13 武汉票据交易中心有限公司 Client dynamic refresh method and system in a kind of bill business

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1786173A2 (en) * 2003-01-22 2007-05-16 Nec Corporation Dynamic buddy list generation method
CN102957748A (en) * 2012-11-07 2013-03-06 广东威创视讯科技股份有限公司 Dynamic update method and system for three-dimensional scene
CN105791291A (en) * 2016-03-02 2016-07-20 腾讯科技(深圳)有限公司 Display control method for network application and real-time display update method and device
CN106649518A (en) * 2016-10-17 2017-05-10 腾讯科技(深圳)有限公司 Method and apparatus for processing dynamic information data
CN107800761A (en) * 2017-09-04 2018-03-13 武汉票据交易中心有限公司 Client dynamic refresh method and system in a kind of bill business

Also Published As

Publication number Publication date
CN109150694A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN107784086B (en) Webpage loading method, terminal equipment and computer readable storage medium
CN109347898B (en) Scene information sending method, scene information display method, server and mobile terminal
CN107491320B (en) Loading method and device based on mixed-mode mobile application
CN109947512B (en) Text adaptive display method, device, server and storage medium
US10712915B2 (en) Information presentation using a client on a terminal
EP2919440B1 (en) Advertisement processing method and device
EP2677422A1 (en) Automatic Application Updates
US11146660B2 (en) Information packet download method for preventing high concurrency, electronic device and storage medium
CN110888658B (en) Method and device for dynamically changing function modules in application program and storage medium
CN105468707A (en) Cache-based data processing method and device
CN111198685B (en) Method for generating front-end interaction page based on user state, device, system, server and storage medium thereof
CN109150694B (en) Dynamic scene information sending method, dynamic scene information display method, server and mobile terminal
CN114285906B (en) Message processing method and device, electronic equipment and storage medium
CN107864044B (en) Information processing method and device, terminal and readable storage medium
CN109656592B (en) Card management method, device, terminal and computer readable storage medium
CN108363574B (en) Front-end customization method and device based on SDK, terminal equipment and storage medium
CN111444448B (en) Data processing method, server and system
CN112905178A (en) Method, device, equipment and medium for generating business function page
CN103188324A (en) Vehicle-mounted information displaying system
CN112199132A (en) Page layout method and device
WO2017097138A1 (en) Notification message processing method and device
CN107704536B (en) Software content display method and system
CN111767074A (en) Configuration updating method, device, terminal and storage medium
CN108009226B (en) Promotion content display implementation method based on intelligent terminal application and intelligent terminal
US20180300122A1 (en) Data processing method and system, and server

Legal Events

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