Method and related device for notifying cloud machine application message to real machine

Log in to the cloud machine through the mini program and subscribe to application message requests, and publish messages based on preset time periods, solving the problem of inadequate notification of cloud machine application, achieving efficient and reliable message delivery, and improving user experience.

CN119135645APending Publication Date: 2024-12-13GUANGZHOU FENGZHUSHOU NETWORK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411168565.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

In the prior art, cloud machine applications cannot effectively notify real machines, resulting in poor user experience, low message timeliness and uncertain success rate, especially when the user is not logged in, the user cannot receive messages generated by cloud machine applications in a timely manner.

Method used

Log in to the cloud machine through the mini program, receive and subscribe to application message requests, count and publish messages to the mini program according to the definition template based on the preset time period, and use the WeChat API interface to realize message notification to ensure timely delivery of messages.

Benefits of technology

This improves the timeliness and success rate of message notifications. Users do not need to open the APP all the time to receive cloud application messages, reducing message loss and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135645A_ABST
    Figure CN119135645A_ABST
Patent Text Reader

Abstract

The invention discloses a method for notifying a real machine of a cloud machine application message and a related device. The method comprises the following steps: a background of a cloud machine receives a login request of an applet, and allows the applet to log in the cloud machine; the cloud machine receives an application message request of subscribing the cloud machine by the applet, and receives a defined message template of the application message by the applet; when an application message is notified to the cloud machine, the background of the cloud machine carries out statistics on the application message; and the background of the cloud machine issues the counted application messages to the applet according to the defined message template based on a preset time period. In the embodiment of the invention, the application message of the cloud machine can be received more conveniently, and the application message in the cloud machine can be received without opening an APP for streaming all the time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud machine technology, and in particular to a method and related device for notifying a real machine of a cloud machine application message. Background Art

[0002] In the existing scenario, when an application that is not on the real machine is installed in the cloud machine, when the cloud machine application receives a message, it cannot notify the real machine of how many messages have been received. The user can only check the cloud machine frequently, which affects the user experience and the timeliness of receiving messages. Therefore, this technology is very necessary to improve the user experience. In the existing technology, the real machine is notified by text messages. When the application has a new message, the cloud machine app collects the information and sends it to the account logged in to the cloud machine app via text messages. The same applies to sending emails. At this time, the timeliness is low, and the success rate of message arrival is uncertain. Messages may be lost. At the same time, when the user does not log in with the app, he cannot know the messages generated by the application in the cloud machine. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a method and related devices for notifying a real machine of a cloud machine application message, which makes it more convenient to receive the application message of the cloud machine. It is not necessary to keep the APP open for streaming, and the application message in the cloud machine can be received.

[0004] In order to solve the above technical problems, an embodiment of the present invention provides a method for notifying a real machine of a cloud machine application message, the method comprising:

[0005] The backend of the cloud machine receives the login request of the mini program and allows the mini program to log in to the cloud machine;

[0006] The cloud machine receives a request from the mini program to subscribe to an application message of the cloud machine, and receives a message template defined by the mini program for the application message;

[0007] When an application message is notified to the cloud machine, the background of the cloud machine counts the application message;

[0008] The backend of the cloud machine publishes and processes the statistically counted application messages to the mini program according to the defined message template based on a preset time period.

[0009] Optionally, the backend of the cloud machine receives a login request from the mini program and allows the mini program to log in to the cloud machine, including:

[0010] The background of the cloud machine updates the relationship between OpenID and account according to the received login request, and allows the mini program to log in to the cloud machine based on the token exchange of appID+appSecret+code; the login request is generated by the code of the current WeChat account; the code of the current WeChat account is obtained by the mini program based on the wx.login() function.

[0011] Optionally, after allowing the mini program to log in to the cloud machine, the method further includes:

[0012] The mini program uses the current WeChat account to request the mini program API interface to subscribe to the cloud machine by default, and when the mini program is exited from the login account of the cloud machine, the subscription binding relationship will be released.

[0013] Optionally, the cloud machine receives an application message request from the mini program to subscribe to the cloud machine, including:

[0014] The cloud machine receives an application message request from the mini program to subscribe to the cloud machine according to the subscription binding relationship.

[0015] Optionally, the receiving, by the mini program, a definition message template for the application message includes:

[0016] The mini program obtains a message template of the application message, and customizes the message template based on the mini program API interface to obtain a defined message template;

[0017] The cloud machine receives the defined message template uploaded by the mini program.

[0018] Optionally, the background of the cloud machine performs statistics on the application message, including:

[0019] The background of the cloud machine performs message statistics processing based on the type of the application message to obtain the total number of statistical messages.

[0020] Optionally, the backend of the cloud machine publishes the statistical application messages to the mini program according to the defined message template based on a preset time period, including:

[0021] The backend of the cloud machine publishes the counted application messages to the mini program based on the preset time period according to the defined message template using the mini program API interface.

[0022] In addition, an embodiment of the present invention further provides a device for notifying a real machine of a cloud machine application message, the device comprising:

[0023] Allowing module: used for the background of the cloud machine to receive the login request of the mini program and allow the mini program to log in to the cloud machine;

[0024] Receiving module: used for the cloud machine to receive the application message request of the mini program to subscribe to the cloud machine, and receive the definition message template of the mini program for the application message;

[0025] Statistics module: used for counting the application messages when an application message is notified to the cloud machine;

[0026] Publishing module: used for the background of the cloud machine to publish the statistical application messages to the mini program according to the defined message template based on a preset time period.

[0027] In addition, an embodiment of the present invention further provides a cloud machine, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above methods when executing the computer program.

[0028] In addition, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of any one of the above methods are implemented.

[0029] In an embodiment of the present invention, by logging in to the cloud machine through the mini program, it is more convenient to receive application messages of the cloud machine. There is no need to open the APP all the time for streaming, and application messages in the cloud machine can be received. In addition, the message notification timeliness is high, and the success rate is also high, which effectively reduces the loss of messages. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 It is a flowchart of a method for notifying a real machine of a cloud machine application message in an embodiment of the present invention;

[0032] Figure 2 It is a schematic diagram of the structure of the device for notifying a real machine of a cloud machine application message in an embodiment of the present invention;

[0033] Figure 3 It is a schematic diagram of the structural composition of the cloud machine in an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] For example, see Figure 1 , Figure 1 It is a flowchart of a method for transmitting a cloud machine application message to a real machine in an embodiment of the present invention.

[0036] like Figure 1 As shown, a method for notifying a cloud machine of an application message to a real machine includes:

[0037] S11: The backend of the cloud machine receives a login request from the mini program and allows the mini program to log in to the cloud machine;

[0038] In the specific implementation process of the present invention, the background of the cloud machine receives the login request of the mini program and allows the mini program to log in to the cloud machine, including: the background of the cloud machine updates the relationship between OpenID and account according to the received login request, and allows the mini program to log in to the cloud machine based on the appID+appSecret+code exchange token; the login request is generated by the code of the current WeChat account; the code of the current WeChat account is obtained by the mini program based on the wx.login() function.

[0039] Furthermore, after allowing the mini program to log in to the cloud machine, it also includes: the mini program uses the current WeChat account by default to request the mini program API interface to subscribe to the cloud machine, and when exiting the mini program from the login account of the cloud machine, the subscription binding relationship will be released.

[0040] Specifically, the cloud machine first receives the login request of the mini program, and allows the mini program to log in to the cloud machine based on the login request. First, it is necessary to enter the mini program, and use the wx.login() function in the mini program to obtain the code of the WeChat account of the WeChat, and generate a login request through the code of the WeChat account; then the login request is sent to the cloud machine to request permission to log in. After receiving the login request in the background of the cloud machine, the key of the message is counted according to the relationship between OpenID and account based on the login request; and the token is exchanged for appID+appSecret+code to obtain the corresponding OpenID, and the token is returned to the mini program, so that the mini program can be allowed to log in to the cloud machine.

[0041] After the mini program logs in to the cloud machine, the cloud machine will default to the current WeChat account used by the logged-in mini program to obtain the mini program API interface, and use the mini program API interface to subscribe to the cloud machine. After the mini program logs out of the cloud machine, the cloud machine will automatically cancel the subscription binding relationship with the mini program. In this way, even if the mini program is hidden, as long as the mini program has not logged out of the cloud machine, the application messages on the cloud machine can be notified to the mini program, and corresponding reminders can be made in WeChat.

[0042] S12: The cloud machine receives a request from the mini program to subscribe to an application message of the cloud machine, and receives a message template defined by the mini program for the application message;

[0043] In the specific implementation process of the present invention, the cloud machine receives the application message request of the mini program to subscribe to the cloud machine, including: the cloud machine receives the application message request of the mini program to subscribe to the cloud machine according to the subscription binding relationship.

[0044] Furthermore, the receiving of the defined message template for the application message by the mini program includes: the mini program obtaining the message template of the application message, and customizing the message template based on the mini program API interface to obtain the defined message template; the cloud machine receiving the defined message template uploaded by the mini program.

[0045] Specifically, the mini program will generate a corresponding application message request based on specific needs, and then upload the application message request to the cloud machine based on the subscription binding relationship. The cloud machine can then receive the application message request from the cloud machine based on the subscription binding relationship.

[0046] The mini program first needs to obtain the message template of the application message from the message template database on the cloud machine, and then customize the obtained message template according to the specific needs of the customer based on the mini program API interface to obtain the defined message template, and then upload the defined message template to the cloud machine. At this time, the cloud machine can accept the defined message template uploaded by the mini program.

[0047] S13: When an application message is notified to the cloud machine, the background of the cloud machine counts the application message;

[0048] In the specific implementation process of the present invention, the background of the cloud machine counts the application messages, including: the background of the cloud machine performs message statistics processing based on the type of the application messages to obtain the total number of statistical messages.

[0049] Specifically, when an application message is notified to the cloud machine, the background of the cloud machine will count the application messages, that is, the background of the cloud machine performs message statistics processing according to the type of application messages, and the total number of statistical messages can be obtained.

[0050] S14: The backend of the cloud machine publishes the counted application messages to the mini program according to the defined message template based on a preset time period.

[0051] During the specific implementation of the present invention, the background of the cloud machine publishes and processes the statistical application messages to the mini program according to the defined message template based on a preset time period, including: the background of the cloud machine publishes and processes the statistical application messages to the mini program according to the defined message template based on a preset time period using the mini program API interface.

[0052] Specifically, the backend of the cloud machine will publish the counted application messages to the mini program according to the defined message template based on the preset time period using the mini program API interface.

[0053] In an embodiment of the present invention, by logging in to the cloud machine through the mini program, it is more convenient to receive application messages of the cloud machine. There is no need to open the APP all the time for streaming, and application messages in the cloud machine can be received. In addition, the message notification timeliness is high, and the success rate is also high, which effectively reduces the loss of messages.

[0054] For example 2, please refer to Figure 2 , Figure 2 It is a schematic diagram of the structural composition of the device for notifying a real machine of a cloud machine application message in an embodiment of the present invention.

[0055] like Figure 2 As shown, a device for notifying a real machine of a cloud machine application message, the device comprising:

[0056] Allowing module 21: used for the background of the cloud machine to receive the login request of the mini program and allow the mini program to log in to the cloud machine;

[0057] In the specific implementation process of the present invention, the background of the cloud machine receives the login request of the mini program and allows the mini program to log in to the cloud machine, including: the background of the cloud machine updates the relationship between OpenID and account according to the received login request, and allows the mini program to log in to the cloud machine based on the appID+appSecret+code exchange token; the login request is generated by the code of the current WeChat account; the code of the current WeChat account is obtained by the mini program based on the wx.login() function.

[0058] Furthermore, after allowing the mini program to log in to the cloud machine, it also includes: the mini program uses the current WeChat account by default to request the mini program API interface to subscribe to the cloud machine, and when exiting the mini program from the login account of the cloud machine, the subscription binding relationship will be released.

[0059] Specifically, the cloud machine first receives the login request of the mini program, and allows the mini program to log in to the cloud machine based on the login request. First, it is necessary to enter the mini program, and use the wx.login() function in the mini program to obtain the code of the WeChat account of the WeChat, and generate a login request through the code of the WeChat account; then the login request is sent to the cloud machine to request permission to log in. After receiving the login request in the background of the cloud machine, the key of the message is counted according to the relationship between OpenID and account based on the login request; and the token is exchanged for appID+appSecret+code to obtain the corresponding OpenID, and the token is returned to the mini program, so that the mini program can be allowed to log in to the cloud machine.

[0060] After the mini program logs in to the cloud machine, the cloud machine will default to the current WeChat account used by the logged-in mini program to obtain the mini program API interface, and use the mini program API interface to subscribe to the cloud machine. After the mini program logs out of the cloud machine, the cloud machine will automatically cancel the subscription binding relationship with the mini program. In this way, even if the mini program is hidden, as long as the mini program has not logged out of the cloud machine, the application messages on the cloud machine can be notified to the mini program, and corresponding reminders can be made in WeChat.

[0061] Receiving module 22: used for the cloud machine to receive the application message request of the mini program to subscribe to the cloud machine, and receive the message template defined by the mini program for the application message;

[0062] In the specific implementation process of the present invention, the cloud machine receives the application message request of the mini program to subscribe to the cloud machine, including: the cloud machine receives the application message request of the mini program to subscribe to the cloud machine according to the subscription binding relationship.

[0063] Furthermore, the receiving of the defined message template for the application message by the mini program includes: the mini program obtaining the message template of the application message, and customizing the message template based on the mini program API interface to obtain the defined message template; the cloud machine receiving the defined message template uploaded by the mini program.

[0064] Specifically, the mini program will generate a corresponding application message request based on specific needs, and then upload the application message request to the cloud machine based on the subscription binding relationship. The cloud machine can then receive the application message request from the cloud machine based on the subscription binding relationship.

[0065] The mini program first needs to obtain the message template of the application message from the message template database on the cloud machine, and then customize the obtained message template according to the specific needs of the customer based on the mini program API interface to obtain the defined message template, and then upload the defined message template to the cloud machine. At this time, the cloud machine can accept the defined message template uploaded by the mini program.

[0066] Statistics module 23: used for counting the application messages when an application message is notified to the cloud machine by the background of the cloud machine;

[0067] In the specific implementation process of the present invention, the background of the cloud machine counts the application messages, including: the background of the cloud machine performs message statistics processing based on the type of the application messages to obtain the total number of statistical messages.

[0068] Specifically, when an application message is notified to the cloud machine, the background of the cloud machine will count the application messages, that is, the background of the cloud machine performs message statistics processing according to the type of application messages, and the total number of statistical messages can be obtained.

[0069] Publishing module 24: The backend of the cloud machine is used to publish the statistical application messages to the mini program according to the defined message template based on a preset time period.

[0070] During the specific implementation of the present invention, the background of the cloud machine publishes and processes the statistical application messages to the mini program according to the defined message template based on a preset time period, including: the background of the cloud machine publishes and processes the statistical application messages to the mini program according to the defined message template based on a preset time period using the mini program API interface.

[0071] Specifically, the backend of the cloud machine will publish the counted application messages to the mini program according to the defined message template based on the preset time period using the mini program API interface.

[0072] In an embodiment of the present invention, by logging in to the cloud machine through the mini program, it is more convenient to receive application messages of the cloud machine. There is no need to open the APP all the time for streaming, and application messages in the cloud machine can be received. In addition, the message notification timeliness is high, and the success rate is also high, which effectively reduces the loss of messages.

[0073] A computer-readable storage medium provided in an embodiment of the present invention stores an application program on the computer-readable storage medium, and when the program is executed by a processor, the method of any one of the embodiments described above is implemented. The computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the storage device includes any medium that can store or transmit information in a readable form by a device (for example, a computer, a mobile phone), which can be a read-only memory, a disk or an optical disk, etc.

[0074] An embodiment of the present invention further provides a computer application program, which runs on a computer and is used to execute the method of any one of the above embodiments.

[0075] also, Figure 3 It is a schematic diagram of the structural composition of the cloud machine in an embodiment of the present invention.

[0076] The embodiment of the present invention also provides a cloud machine, such as Figure 3 The cloud machine includes a processor 302, a memory 303, an input unit 304, a display unit 305 and other devices. Those skilled in the art will understand that Figure 3 The cloud machine structure components shown do not constitute a limitation on all devices, and may include more or fewer components than shown, or combine certain components. The memory 303 can be used to store the application 301 and various functional modules, and the processor 302 runs the application 301 stored in the memory 303, thereby executing various functional applications and data processing of the device. The memory can be an internal memory or an external memory, or include both internal and external memories. The internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a U disk, a magnetic tape, and the like. The memory disclosed in the present invention includes, but is not limited to, these types of memories. The memory disclosed in the present invention is only an example and not a limitation.

[0077] The input unit 304 is used to receive the input of the signal and the keyword input by the user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect the user's touch operation on or near it (such as the user's operation on or near the touch panel using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program; other input devices may include but are not limited to one or more of a physical keyboard, a function key (such as a playback control key, a switch key, etc.), a trackball, a mouse, a joystick, etc. The display unit 305 can be used to display the information input by the user or the information provided to the user and various menus of the terminal device. The display unit 305 can be in the form of a liquid crystal display, an organic light emitting diode, etc. The processor 302 is the control center of the terminal device, which uses various interfaces and lines to connect the various parts of the entire device, and executes various functions and processes data by running or executing software programs and / or modules stored in the memory 303, and calling the data stored in the memory.

[0078] As an embodiment, the cloud machine includes: one or more processors 302, a memory 303, and one or more applications 301, wherein the one or more applications 301 are stored in the memory 303 and are configured to be executed by the one or more processors 302, and the one or more applications 301 are configured to execute the method in any one of the above embodiments.

[0079] In an embodiment of the present invention, by logging in to the cloud machine through the mini program, it is more convenient to receive application messages of the cloud machine. There is no need to open the APP all the time for streaming, and application messages in the cloud machine can be received. In addition, the message notification timeliness is high, and the success rate is also high, which effectively reduces the loss of messages.

[0080] In addition, the above is a detailed introduction to a method and related devices for notifying a real machine of a cloud machine application message provided by an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for notifying a real machine of a cloud machine application message, characterized in that: The method comprises: The backend of the cloud machine receives the login request of the mini program and allows the mini program to log in to the cloud machine; The cloud machine receives a request from the mini program to subscribe to an application message of the cloud machine, and receives a message template defined by the mini program for the application message; When an application message is notified to the cloud machine, the background of the cloud machine counts the application message; The backend of the cloud machine publishes and processes the statistically counted application messages to the mini program according to the defined message template based on a preset time period.

2. The method according to claim 1, characterized in that: The backend of the cloud machine receives the login request of the mini program and allows the mini program to log in to the cloud machine, including: The background of the cloud machine updates the relationship between OpenID and account according to the received login request, and allows the mini program to log in to the cloud machine based on the token exchange of appID+appSecret+code; the login request is generated by the code of the current WeChat account; the code of the current WeChat account is obtained by the mini program based on the wx.login() function.

3. The method according to claim 1 or 2, characterized in that: After allowing the mini program to log in to the cloud machine, the method further includes: The mini program uses the current WeChat account to request the mini program API interface to subscribe to the cloud machine by default, and when the mini program is exited from the login account of the cloud machine, the subscription binding relationship will be released.

4. The method according to claim 1, characterized in that: The cloud machine receives an application message request from the mini program to subscribe to the cloud machine, including: The cloud machine receives an application message request from the mini program to subscribe to the cloud machine according to the subscription binding relationship.

5. The method according to claim 1, characterized in that The receiving a definition message template of the application message by the applet includes: The mini program obtains a message template of the application message, and customizes the message template based on the mini program API interface to obtain a defined message template; The cloud machine receives the defined message template uploaded by the mini program.

6. The method according to claim 1, characterized in that The background of the cloud machine counts the application messages, including: The background of the cloud machine performs message statistics processing based on the type of the application message to obtain the total number of statistical messages.

7. The method according to claim 1, characterized in that The backend of the cloud machine publishes the statistical application messages to the mini program according to the defined message template based on a preset time period, including: The backend of the cloud machine publishes the counted application messages to the mini program based on the preset time period according to the defined message template using the mini program API interface.

8. A device for notifying a real machine of a cloud machine application message, characterized in that: The device comprises: Allowing module: used for the background of the cloud machine to receive the login request of the mini program and allow the mini program to log in to the cloud machine; Receiving module: used for the cloud machine to receive the application message request of the mini program to subscribe to the cloud machine, and receive the definition message template of the mini program for the application message; Statistics module: used for counting the application messages when an application message is notified to the cloud machine; Publishing module: used for the background of the cloud machine to publish the statistical application messages to the mini program according to the defined message template based on a preset time period.

9. A cloud machine, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.