CN117992258A - IM card message circulation method, electronic equipment and readable storage medium - Google Patents

IM card message circulation method, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117992258A
CN117992258A CN202410406495.1A CN202410406495A CN117992258A CN 117992258 A CN117992258 A CN 117992258A CN 202410406495 A CN202410406495 A CN 202410406495A CN 117992258 A CN117992258 A CN 117992258A
Authority
CN
China
Prior art keywords
card
link
scene
receiving end
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410406495.1A
Other languages
Chinese (zh)
Inventor
琚超琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Foreign Travel Network Technology Co ltd
Original Assignee
Beijing Foreign Travel Network 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 Beijing Foreign Travel Network Technology Co ltd filed Critical Beijing Foreign Travel Network Technology Co ltd
Priority to CN202410406495.1A priority Critical patent/CN117992258A/en
Publication of CN117992258A publication Critical patent/CN117992258A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application relates to an IM card message circulation method, electronic equipment and a readable storage medium, which belong to the technical field of information communication, wherein a sending end obtains at least one of a title, a subheading, a picture and description information of a card to be generated and a sending end link of a jump page, and the sending end link comprises a jump page path, parameters required by the jump page and a parameter conversion rule; generating a card and sending the card to a server; the server maps the sending end links in the card into public links; determining parameters required by the jump page in each scene according to the parameter conversion rule, and generating a public link mapping table; transmitting the card and the public link mapping table to a receiving end; the receiving terminal acquires a scene value of the receiving terminal; judging whether the receiving end can jump to a jump page corresponding to the card; if yes, determining the receiving end link of the jump page based on the public link, the public link mapping table and the receiving end scene value, and updating the card instead of the public link in the card. The application optimizes the convenience of card message communication.

Description

IM card message circulation method, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of information communication technologies, and in particular, to an IM card message transfer method, an electronic device, and a readable storage medium.
Background
With the development of the IM (INSTANT MESSAGING) technology, the IM software can also carry application services through the interactive card based on the traditional instant messaging function, so as to meet the use requirements of users in different scenes such as collaborative office, life service and the like. By setting interactive cards for different application services, IM software can provide a user with a scenic, immersive experience at the different application services.
Card messages are defined by the system, and users or systems automatically populate the content with certain limitations. Therefore, the business has multi-terminal and multi-language scenes, and the card information needs to be displayed on the receiving terminal to meet the requirements of the corresponding terminal.
At present, card information is opened in other scenes, a transmitting end is displayed instead of language and interaction logic of the scene, and experience is poor.
Disclosure of Invention
In order to optimize card message communication convenience, the application provides an IM card message circulation method, electronic equipment and a readable storage medium.
In a first aspect, the present application provides an IM card information transfer method, applied to a transmitting end, and adopts the following technical scheme:
Acquiring at least one of a title, a subtitle, a picture and descriptive information of a card to be generated;
Acquiring a transmitting end link of a jump page, wherein the transmitting end link comprises a jump page path, parameters required by the jump page and a parameter conversion rule;
Generating a card based on at least one of the title, the subtitle, the picture, and the description information, and the sender link;
And sending the card to a server.
By adopting the technical scheme, the sending end obtains the related information of the card to be generated, generates the card according to the link of the sending end of the skip page and the related information of the card, and sends the card to the server. The link of the sending end is conveniently processed by the server and the receiving end because the connection of the sending end comprises the path of the skip page, parameters required by the skip page and parameter conversion rules, so that the receiving end is convenient for opening a card and skipping to a corresponding page.
Further, the generating a card based on at least one of the title, the subtitle, the picture, and the description information, and the sender link includes:
Determining a corresponding card template based on the categories of the title, the subtitle, the picture and the description information;
and filling at least one item of the corresponding title, the subtitle, the picture and the description information into the corresponding card template, and generating a card according to the transmitting end link.
Through adopting above-mentioned technical scheme, the sender confirms corresponding card template according to the relevant information that constitutes the card, and then fills relevant information into the card template, generates the card, is convenient for select suitable template according to the content fast, improves card generation efficiency.
Further, if the card template includes a title area and a subtitle area, before filling at least one item of the corresponding title, subtitle, picture and description information into the corresponding card template, the method includes:
performing word segmentation processing on the title and the subtitle respectively, and determining a first word segmentation corresponding to the title and a second word segmentation corresponding to the subtitle;
determining a first number of second tokens;
determining the same words in the first word segmentation and the second word segmentation and the number of the same words;
calculating a first ratio of the number of the same words to the first number;
judging whether the first ratio reaches a preset ratio or not; if yes, deleting the subtitle region; otherwise, splicing the sub-title area with the title area.
By adopting the technical scheme, before relevant information is filled into a card template, the title and the subtitle are subjected to word segmentation processing to obtain a first word segmentation and a second word segmentation, the number of the same words in the first word segmentation and the second word segmentation and the first number of the second word segmentation are calculated, a first ratio of the number of the same words to the first number is calculated, the first ratio is compared with a preset ratio, if the preset ratio is reached, the similarity of the subtitle and the title is higher, the subtitle can be deleted, if the preset ratio is not reached, the title and the subtitle can be simultaneously displayed, and the two areas are spliced, so that continuous display is facilitated.
Further, if the card template includes a picture area and a description area, before filling at least one of the corresponding title, the subtitle, the picture and the description information into the corresponding card template, the method includes:
acquiring the word number of the descriptive information corresponding to each picture;
determining a main graph based on the word number of the description information corresponding to each picture;
determining the association degree of the description information corresponding to the main graph and the title;
adjusting the picture region and the description region based on the association degree, including:
if the association degree reaches a preset value, determining the sizes of the picture area and the description area according to a preset proportion;
If the association degree does not reach the preset value, deleting the description area;
The determining the association degree of the description information corresponding to the main graph and the title comprises the following steps:
Judging whether the description information corresponding to the main diagram comprises words of the title or not; if yes, determining the association degree as a first preset association degree;
Otherwise, performing word segmentation and duplication removal on the description information corresponding to the main graph, and determining a plurality of third word segments;
Obtaining a similar word stock corresponding to each first word;
Judging whether the third segmentation word belongs to any similar word stock; if the third word segment belongs to the group, a preset value is overlapped until all the third word segments are compared, and an association value is determined;
and determining the ratio of the association value to the number of the third segmentation words as the association degree.
By adopting the technical scheme, when the card is generated, the sending end adjusts the picture area and the description area according to the association degree of the description information corresponding to the main picture and the title, if the association degree reaches a preset value, the proportion is adjusted, if the association degree does not reach the preset value, the description area cannot better explain the title, and the description area is deleted, so that the internal and external information of the card is unified, and misunderstanding is avoided.
On the other hand, when determining the association degree, the transmitting end firstly sets a first preset association degree as the association degree for words including the title in the description information, if the words including the title are not included, the words are divided into a plurality of third segmentation words, whether the third segmentation words belong to the same class as the first segmentation words of the title or not is judged, a preset value is overlapped, an association value is determined, and the association degree is determined according to the number ratio of the association value to the third segmentation words, so that the association degree is determined more accurately by attaching the description information.
The application provides a method for transferring IM card information, which is applied to a server and comprises the following technical scheme:
receiving a card sent by a sending end, mapping a sending end link in the card into a public link, wherein the original sending end link comprises a jump page path, parameters required by the jump page and a parameter conversion rule;
Determining parameters required by the jump page in each scene according to the parameter conversion rule, and generating a public link mapping table according to a preset path of the jump page in each scene, the parameters required by the jump page in each scene and a preset scene with the jump page;
And sending the card and the public link mapping table to a receiving end.
By adopting the technical scheme, the server determines the public link according to the link of the sending end, the public link is suitable for reading various scenes, and the public link mapping table and the public link are sent to the receiving end together, so that the receiving end can conveniently analyze.
Further, the receiving the card sent by the sending end maps the sending end link in the card to a public link, which includes:
Splitting the link of the transmitting end, and determining scene values of the transmitting end, a path of the skip page, parameters required by the skip page and parameter conversion rules;
and determining a public link according to the jump page path, the parameters required by the jump page and the parameter conversion rule.
By adopting the technical scheme, the server splits the link of the sending end to obtain the scene value of the sending end, the path of the jump page, parameters required by the jump page and the parameter conversion rule, and then the public link is obtained by recombination.
In a third aspect, the present application provides an IM card information circulation method, applied to a receiving end, including the following technical schemes:
Receiving a card and a public link mapping table sent by a server; the card comprises a public link based on at least one of title, subtitle, picture and descriptive information; the public link mapping table comprises paths of the jump pages in each scene, parameters required by the jump pages in each scene and the scene where the jump pages exist;
Acquiring a scene value of a receiving end;
judging whether the receiving end can jump to the jump page corresponding to the card or not based on the scene value of the receiving end and the scene with the jump page;
If yes, determining a receiving end link of a skip page based on the public link, the public link mapping table and the receiving end scene value, and replacing the public link in the card with the receiving end link to update the card; responding to the card clicking operation of the user, and jumping to the receiving end link;
Otherwise, the card is displayed in response to the card clicking operation of the user, and prompt information for downloading the scene with the jump page is generated.
By adopting the technical scheme, the receiving end receives the card, further obtains the public link, the public link mapping table and the receiving end scene value, compares the receiving end scene value with the public link mapping table, judges whether the receiving end can jump to the jump page corresponding to the card information, generates the receiving end link which can be clicked and jumped according to the related information if the receiving end link can be clicked, does not jump to the jump page if the receiving end link can not be clicked by the user, displays the prompt information for downloading the scene which can be opened to the jump page, and is convenient for the user to download and view.
Further, the determining the receiving end link of the jump page based on the public link, the public link mapping table and the receiving end scene value includes:
Splitting the public links, and determining scene values of a transmitting end, a skip page path and parameters required by a skip page;
Searching a jump page path corresponding to the receiving end scene and parameters required by the jump page in the receiving end scene in the public link mapping table;
and generating a receiving end link according to the receiving end scene value, the skip page path corresponding to the receiving end scene and parameters required by the skip page in the receiving end scene.
By adopting the technical scheme, when the receiving end generates the receiving end link, the common link is split to obtain the skip page path and the parameters required by the skip page, the parameters required by the skip page are updated, and then the receiving end scene value, the skip page path and the updated parameters required by the skip page are obtained to obtain the receiving end link, so that the receiving end can open the card.
In a fourth aspect, the present application provides an electronic device, which adopts the following technical scheme:
an electronic device, comprising:
At least one processor;
A memory;
at least one computer program, wherein the at least one computer program is stored in the memory and configured to be executed by the at least one processor, the at least one computer program configured to: performing the method of any one of the first to third aspects.
By adopting the technical scheme, the processor executes the computer program in the memory, the electronic equipment is applied to the transmitting end, the related information of the card to be generated is acquired, the card is generated according to the link of the transmitting end of the skip page and the related information of the card, and the card is transmitted to the server. The connection of the sending end comprises a skip page path, parameters required by the skip page and parameter conversion rules, so that the server and the receiving end can conveniently process the link of the sending end, and the receiving end can conveniently open a card and skip to a corresponding page; the electronic equipment is applied to the server, determines a public link according to the link of the sending end, and sends the public link mapping table and the public link to the receiving end together, so that the receiving end can conveniently analyze the public link; the electronic equipment is applied to the receiving end, receives the card, further obtains a public link, a public link mapping table and a receiving end scene value, compares the receiving end scene value with the public link mapping table, judges whether the receiving end can jump to a jump page corresponding to card information, generates the receiving end link which can be clicked and jumped according to the related information if the receiving end link can be clicked, does not jump to the jump page if the receiving end link can not be clicked by a user, displays prompt information for downloading the scene which can open the jump page, and is convenient for the user to download and view.
In a fifth aspect, the present application provides a computer readable storage medium, which adopts the following technical scheme:
a computer readable storage medium storing a computer program capable of being loaded by a processor and executing the method according to any one of the first to third aspects.
By adopting the technical scheme, the processor executes the computer program in the computer readable storage medium, the electronic equipment is applied to the transmitting end, the related information of the card to be generated is acquired, the card is generated according to the link of the transmitting end of the skip page and the related information of the card, and the card is transmitted to the server. The connection of the sending end comprises a skip page path, parameters required by the skip page and parameter conversion rules, so that the server and the receiving end can conveniently process the link of the sending end, and the receiving end can conveniently open a card and skip to a corresponding page; the electronic equipment is applied to the server, determines a public link according to the link of the sending end, and sends the public link mapping table and the public link to the receiving end together, so that the receiving end can conveniently analyze the public link; the electronic equipment is applied to the receiving end, receives the card, further obtains a public link, a public link mapping table and a receiving end scene value, compares the receiving end scene value with the public link mapping table, judges whether the receiving end can jump to a jump page corresponding to card information, generates the receiving end link which can be clicked and jumped according to the related information if the receiving end link can be clicked, does not jump to the jump page if the receiving end link can not be clicked by a user, displays prompt information for downloading the scene which can open the jump page, and is convenient for the user to download and view.
In summary, the present application includes at least one of the following beneficial technical effects:
1. The sending end obtains the related information of the card to be generated, generates the card according to the link of the sending end of the skip page and the related information of the card, and sends the card to the server. The connection of the sending end comprises a skip page path, parameters required by the skip page and parameter conversion rules, so that the server and the receiving end can conveniently process the link of the sending end, and the receiving end can conveniently open a card and skip to a corresponding page;
2. The server determines a public link according to the link of the transmitting end, and transmits the public link mapping table and the public link to the receiving end together, so that the receiving end can conveniently analyze the public link;
3. The receiving end receives the card, further obtains a public link, a public link mapping table and a receiving end scene value, compares the receiving end scene value with the public link mapping table, judges whether the receiving end can jump to a jump page corresponding to card information, if so, generates the receiving end link which can be clicked to jump according to the related information, and if not, does not jump to the jump page when the user clicks, displays prompt information for downloading the scene of which the jump page can be opened, and is convenient for the user to download and view.
Drawings
Fig. 1 is a flow chart of an IM card information transfer method according to an embodiment of the present application.
Fig. 2 is a block diagram of an electronic device in an embodiment of the application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In addition, the term "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In this context, unless otherwise specified, the term "/" generally indicates that the associated object is an "or" relationship.
The embodiment of the application discloses an IM card information transfer method. Referring to fig. 1, the method is performed by a transmitting end, and the transmitting end may be a server or a terminal device, where the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides cloud computing services. The terminal device may be, but is not limited to, a smart phone, a tablet computer, a desktop computer, etc. Comprising (steps S101 to S104):
Step S101: and acquiring at least one of the title, the subtitle, the picture and the description information of the card to be generated.
Specifically, after the session is opened, the title, subtitle, picture, and description information of the card may be filled in by the user or automatically. When the sender is required to automatically fill in, the sender acquires the content of the page to be shared, and acquires at least one of the title, the subheading, the picture and the description information.
When the user is required to fill in, the user selects the content in the page to be shared, when the user selects the title, the subtitle, the picture and the description information, the page to be shared is switched to the selectable mode, each part is displayed according to the module, and the user clicks the module in the page to be shared, and then the sending end obtains the content of the generated card.
Step S102: and acquiring a transmitting end link of the jump page, wherein the transmitting end link comprises a jump page path, parameters required by the jump page and a parameter conversion rule.
Specifically, the sender link includes a sender scene value, a jump page path, parameters required for the jump page, and a parameter conversion rule. The scenes comprise an app end, an applet end, a PC end and the like, and each scene corresponds to a scene value. The current sender scene value is thus included in the sender link.
The parameters required for jumping pages are different according to different scenes, and the corresponding parameters are also different, so that the parameters can be converted by referring to the parameter conversion rules when aiming at different scenes.
Step S103: generating a card based on at least one of the title, the subtitle, the picture, and the description information, and the sender link, includes (step S1031 to step S10332):
step S1031: based on the categories of the title, subtitle, picture, and description information, a corresponding card template is determined.
Specifically, the card template includes a plurality of types, for example, the card template includes a plurality of types of templates with at least one of a title area, a subtitle area, a picture area, and a description information area.
For example, when including a title, a subtitle, a picture, and descriptive information, the corresponding card template includes a title region, a subtitle region, a picture region, and a descriptive information region; when only the picture is included, only the picture area is included in the corresponding card template.
Step S1032: and filling at least one item of corresponding title, subtitle, picture and description information into a corresponding card template, and generating a card according to the link of the transmitting end.
Specifically, the transmitting end correspondingly fills the title, the subtitle, the picture and the description information into the corresponding position of the card template. In another possible implementation manner, if the card template includes a header area, a subtitle area, a picture area, and a description information area, before filling the corresponding header, subtitle, picture, and description information into the card template, the transmitting end corrects the card template, including (steps S11 to S17):
Step S11: and respectively performing word segmentation processing on the title and the subtitle, and determining a first word segmentation corresponding to the title and a second word segmentation corresponding to the subtitle.
Specifically, the transmitting end performs word segmentation processing on the title and the subtitle, and further determines a first word segment corresponding to the title and a second word segment corresponding to the subtitle.
Step S12: a first number of second tokens is determined.
Step S13: the same words and the number of the same words in the first word segment and the second word segment are determined.
Specifically, the title and the subtitle may be contents related to the same subject, and if the meanings of the expressions are similar, the subtitle may not be displayed on the card, and if the meanings of the subtitle and the title are greatly different, the subtitle and the subtitle may be displayed together.
In order to determine the degree of correlation between the headline and the subtitle, the transmitting end determines by the number of identical words.
Step S14: calculating a first ratio of the number of the same words to the first number;
Step S15: judging whether the first ratio reaches a preset ratio or not; if yes, step S16 is executed: deleting the subtitle region; otherwise, step S17 is performed: the sub-header area is spliced with the header area.
Specifically, the preset ratio is set according to actual needs, when the first ratio reaches the preset ratio, the similarity between the subtitles and the titles is higher, and the titles and the subtitles are not required to be displayed, so that the subtitle areas in the card template can be deleted; and when the first ratio does not reach the preset ratio, the subtitle is greatly different from the title, so that the subtitle region is spliced with the title region, and the title and the subtitle are displayed at the same time, so that a user can quickly acquire the page content.
Further, when the picture and the description information exist in the page to be shared, the content which can summarize the theme of the page is required to be displayed for the sake of brevity of the card. Therefore, the analysis of the picture and the description information includes (step S21 to step S24):
step S21: and acquiring the word number of the descriptive information corresponding to each picture.
Specifically, the text below each picture and before the next picture is determined as the description information corresponding to the picture. If only one picture exists and the picture is at the last, determining the text above the picture as the description information corresponding to the picture.
Step S22: the main map is determined based on the number of pictures and the number of words of the description information.
Specifically, when the page to be skipped is a house renting page, most of pictures in the house renting page are house photos, so that the house photos are placed in the card information, and users can directly know the page content conveniently.
When the page to be jumped has one picture, the unique picture is taken as a main picture.
When more than two pictures are arranged on the page to be skipped, determining the word number of the description information corresponding to each picture, and determining the picture with the largest word number of the corresponding description information as the main picture.
Step S23: determining the association degree of the description information corresponding to the main graph and the title, wherein the association degree comprises the following steps of:
Step Sa: judging whether the description information corresponding to the main diagram comprises words of the title or not; if yes, execute step Sb: and determining the association degree as a first preset association degree.
Specifically, when the description information corresponding to the main diagram includes words of the title, the description information is expansion of the title, and the association with the title is strongest. Therefore, the transmitting end presets the first preset association degree, and when the association degree is the first preset association degree, the association degree between the descriptive information and the title is maximum. The first preset association degree may be 1.
Otherwise, step Sc: and performing word segmentation processing and duplication removal processing on the description information corresponding to the main graph, and determining a plurality of third words.
Specifically, in order to quickly and simply compare, the accuracy of data is improved, and the duplication removing treatment is performed after word segmentation.
Step Sd: and obtaining the similar word stock corresponding to each first segmentation word.
Specifically, the similar word stock includes the paraphrasing of the first word. The same class word stock can be preset by a transmitting end, and can also be searched according to the Internet.
Step Se: comparing each third word with each similar word stock, and executing the steps Sf and Sg if the third word belongs to any similar word stock.
Step Sf: superposing a preset value until all third segmentation words are compared, and determining a correlation value;
Step Sg: and determining the ratio of the association value to the number of the third segmentation words as the association degree.
Specifically, the preset value is preset and may be 1. And when any third word belongs to one of the similar word libraries, overlapping a preset value. And then obtaining the association value after accumulating the preset value after comparing all the third segmentation words. When the preset value is 1, the more the third segmentation words with consistent contrast are, the larger the association value is. The ratio of the association value to the number of the third segmentation words can show the association degree, and the greater the ratio is, the stronger the association degree is, namely the higher the association degree is.
Step S24: adjusting the picture region and the description region based on the association degree comprises:
if the association degree reaches a preset value, determining the sizes of the picture area and the description area according to a preset proportion;
and if the association degree does not reach the preset value, deleting the description area.
Specifically, if the association degree reaches a preset value, the description area is displayed, so that the information content of the card is unified. Wherein the preset proportion is preset, for example, the picture area: description area = 7:3.
And if the association degree does not reach the preset value, the association between the descriptive information content and the title is smaller, and the descriptive information can not be displayed.
Step S104: and sending the card to a server.
The application also provides an IM card information circulation method which is applied to the server, wherein the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and a cloud server for providing cloud computing service. The terminal device may be, but is not limited to, a smart phone, a tablet computer, a desktop computer, etc. Referring to fig. 1, the method includes (step S201 to step S203):
Step S201: and receiving the card sent by the sending end, mapping the sending end link in the card into a public link, wherein the original sending end link comprises a jump page path, parameters required by the jump page and a parameter conversion rule.
Step S201 includes (step S2011 to step S2012).
Step S2011: splitting a link of a transmitting end, obtaining a path of a skip page and parameters required by the skip page, and obtaining a scene value of the transmitting end.
Step S2012: and combining the scene value of the transmitting end, the path of the skip page and the parameters required by the skip page to obtain the transmitting end link in the common link format.
Specifically, since the common link format can intuitively include the source of the scene of the sender, and information required for jumping pages is displayed in the sender link, such as a path of jumping pages, parameters required for jumping pages, and the like.
Step S202: and determining parameters required by the jump page in each scene according to the parameter conversion rule, and generating a public link mapping table according to the preset path of the jump page in each scene, the parameters required by the jump page in each scene and the preset scene with the jump page.
Specifically, the path of the jump page in the public link mapping table in each scene and the scene where the jump page exists are preset by a user, and parameters required by the jump page in each scene are respectively analyzed and determined by a server according to the parameter conversion rules. After the server is combined to obtain the public link mapping table, the receiving end can conveniently convert the links according to the scene of the receiving end.
Step S203: and sending the card and the public link mapping table to a receiving end.
Specifically, the server sends the card and the public link list to the receiving end together, and the receiving end converts the card and the public link list.
The embodiment of the application also provides an IM card information circulation method which is applied to a receiving end, wherein the receiving end can be a server or terminal equipment, the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and a cloud server for providing cloud computing service. The terminal device may be, but is not limited to, a smart phone, a tablet computer, a desktop computer, etc. Referring to fig. 1, the method includes (step S301 to step S305):
Step S301: receiving a card and a public link mapping table sent by a server; the card comprises a common link based on at least one of title, subtitle, picture and descriptive information; the common link mapping table comprises the path of the jump page in each scene, parameters required by the jump page in each scene and the scene in which the jump page exists.
Step S302: and acquiring a scene value of the receiving end.
Step S303: and judging whether the receiving end can jump to the jump page corresponding to the card or not based on the scene value of the receiving end and the scene where the jump page exists.
Specifically, after receiving the card, the receiving end obtains a public link from the card, and further obtains a public link mapping table, wherein the public link mapping table comprises a plurality of scene values with the skip page. Then the receiving end obtains the scene value of the receiving end and searches whether the scene value of the receiving end exists or not.
If yes, step S304 is executed: determining a receiving end link of the skip page based on the public link, the public link mapping table and the receiving end scene value, replacing the public link in the card with the receiving end link, and updating the card; responding to card clicking operation of a user, and jumping to a receiving end link;
otherwise, step S305 is performed: and responding to the card clicking operation of the user, displaying the card, and generating prompt information for downloading the scene in which the jump page exists.
If the receiving end scene value exists in the public link mapping table, regenerating a receiving end link of the skip page by referring to the public link mapping table, and further automatically skipping to the receiving end link after a user clicks the card, so that the method and the device can be suitable for viewing related contents in the link by the receiving end scene; when the corresponding skip page of the card does not exist in the scene in the public link mapping table, the card is directly displayed and cannot skip to the corresponding page when the user clicks. And displaying a download link in the prompt message, and downloading a scene capable of opening the jump page.
Further, determining a recipient link of a jump page based on the common link, the common link map and the recipient scene value, includes (steps S31 to S33):
Step S31: splitting the public links, and determining scene values of a transmitting end, a skip page path and parameters required by a skip page;
Step S32: searching a jump page path corresponding to the receiving end scene and parameters required by the jump page in the receiving end scene in the public link mapping table;
step S33: and generating a receiving end link according to the receiving end scene value, the skip page path corresponding to the receiving end scene and parameters required by the skip page in the receiving end scene.
Specifically, the receiving end uses the public link mapping table to search parameters required by the skip page in the current scene, and combines the scene value of the receiving end and the skip page path to obtain the link of the receiving end, so that the card can be opened in the current scene.
To better implement the above method, an embodiment of the present application provides an electronic device, referring to fig. 2, an electronic device 400 includes: a processor 401, a memory 403 and a display 405. Wherein the memory 403 and the display 405 are both coupled to the processor 401, such as via a bus 402. Optionally, the electronic device 400 may also include a transceiver 404. It should be noted that, in practical applications, the transceiver 404 is not limited to one, and the structure of the electronic device 400 is not limited to the embodiment of the present application.
The Processor 401 may be a CPU (Central Processing Unit ), general purpose Processor, DSP (DIGITAL SIGNAL Processor, data signal Processor), ASIC (Application SPECIFIC INTEGRATED Circuit), FPGA (Field Programmable GATE ARRAY ) or other programmable logic device, transistor logic device, hardware component or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. Processor 401 may also be a combination that implements computing functionality, such as a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 402 may include a path to transfer information between the components. Bus 302 may be a PCI (PERIPHERAL COMPONENT INTERCONNECT, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. Bus 402 may be divided into an address bus, a data bus, a control bus, and the like.
The Memory 303 may be, but is not limited to, a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, an EEPROM (ELECTRICALLY ERASABLE PROGRAMMABLE READ ONLY MEMORY ), a CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 403 is used for storing application program codes for executing the inventive arrangements and is controlled to be executed by the processor 401. The processor 401 is arranged to execute application code stored in the memory 403 for implementing what is shown in the foregoing method embodiments.
The electronic device 400 shown in fig. 2 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium which stores a computer program, when the program is executed by a processor, the method for transferring the IM card information provided by the embodiment is realized, the processor executes the computer program in the computer readable storage medium, the electronic equipment is applied to a transmitting end, related information of a card to be generated is acquired, the card is generated according to a transmitting end link of a skip page and the related information of the card, and the card is transmitted to a server. The connection of the sending end comprises a skip page path, parameters required by the skip page and parameter conversion rules, so that the server and the receiving end can conveniently process the link of the sending end, and the receiving end can conveniently open a card and skip to a corresponding page; the electronic equipment is applied to the server, determines a public link according to the link of the sending end, and sends the public link mapping table and the public link to the receiving end together, so that the receiving end can conveniently analyze the public link; the electronic equipment is applied to the receiving end, receives the card, further obtains a public link, a public link mapping table and a receiving end scene value, compares the receiving end scene value with the public link mapping table, judges whether the receiving end can jump to a jump page corresponding to card information, generates the receiving end link which can be clicked and jumped according to the related information if the receiving end link can be clicked, does not jump to the jump page if the receiving end link can not be clicked by a user, displays prompt information for downloading the scene which can open the jump page, and is convenient for the user to download and view.
In this embodiment, the computer-readable storage medium may be a tangible device that holds and stores instructions for use by the instruction execution device. The computer readable storage medium may be, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any combination of the preceding. In particular, the computer readable storage medium may be a portable computer disk, hard disk, USB flash disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), podium random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital Versatile Disk (DVD), memory stick, floppy disk, optical disk, magnetic disk, mechanical coding device, and any combination of the foregoing.
The computer program in this embodiment contains program code for executing all the methods described above, and the program code may include instructions corresponding to the execution of the steps of the methods provided in the embodiments described above. The computer program may be downloaded from a computer readable storage medium to the respective computing/processing device or to an external computer or external storage device via a network (e.g., the internet, a local area network, a wide area network, and/or a wireless network). The computer program may execute entirely on the user's computer and as a stand-alone software package.
The above embodiments are not intended to limit the scope of the present application, so: all equivalent changes in structure, shape and principle of the application should be covered in the scope of protection of the application.
In addition, it is to be understood that relational terms such as first and second are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.

Claims (10)

1. The IM card information circulation method is characterized by being applied to a transmitting end and comprising the following steps:
Acquiring at least one of a title, a subtitle, a picture and descriptive information of a card to be generated;
Acquiring a transmitting end link of a jump page, wherein the transmitting end link comprises a jump page path, parameters required by the jump page and a parameter conversion rule;
Generating a card based on at least one of the title, the subtitle, the picture, and the description information, and the sender link;
And sending the card to a server.
2. The method of claim 1, wherein the generating a card based on at least one of the title, the subtitle, the picture, and the description information, and the sender-side link comprises:
Determining a corresponding card template based on the categories of the title, the subtitle, the picture and the description information;
and filling at least one item of the corresponding title, the subtitle, the picture and the description information into the corresponding card template, and generating a card according to the transmitting end link.
3. The method of claim 1, wherein if the card template includes a header area and a subtitle area, before filling at least one of the corresponding header, the subtitle, the picture, and the description information into the corresponding card template, comprising:
Performing word segmentation processing on the title and the subtitle respectively, and determining a first word segmentation corresponding to the title and a second word segmentation corresponding to the subtitle;
determining a first number of the second segmentation words;
determining the same words in the first word segmentation and the second word segmentation and the number of the same words;
calculating a first ratio of the number of the same words to the first number;
judging whether the first ratio reaches a preset ratio or not; if yes, deleting the subtitle region; otherwise, splicing the sub-title area with the title area.
4. The method of claim 3, wherein if the card template includes a picture area and a description area, before filling at least one of the corresponding title, the subtitle, the picture, and the description information into the corresponding card template, comprising:
acquiring the word number of the descriptive information corresponding to each picture;
determining a main graph based on the word number of the description information corresponding to each picture;
Determining the association degree of the description information corresponding to the main graph and the title;
adjusting the picture region and the description region based on the association degree, including:
if the association degree reaches a preset value, determining the sizes of the picture area and the description area according to a preset proportion;
If the association degree does not reach the preset value, deleting the description area;
The determining the association degree of the description information corresponding to the main graph and the title comprises the following steps:
Judging whether the description information corresponding to the main diagram comprises words of the title or not; if yes, determining the association degree as a first preset association degree;
Otherwise, performing word segmentation and duplication removal on the description information corresponding to the main graph, and determining a plurality of third word segments;
Obtaining a similar word stock corresponding to each first word;
judging whether the third segmentation word belongs to any similar word stock; if the third word segment belongs to the group, a preset value is overlapped until all the third word segments are compared, and an association value is determined;
and determining the ratio of the association value to the number of the third segmentation words as the association degree.
5. The IM card information circulation method is characterized by being applied to a server and comprising the following steps:
receiving a card sent by a sending end, and mapping a sending end link in the card into a public link; the original sending-end link comprises a jump page path, parameters required by the jump page and a parameter conversion rule;
Determining parameters required by the jump page in each scene according to the parameter conversion rule, and generating a public link mapping table according to a preset path of the jump page in each scene, the parameters required by the jump page in each scene and a preset scene with the jump page;
And sending the card and the public link mapping table to a receiving end.
6. The method of claim 5, wherein the receiving the card sent by the sender, mapping the sender link in the card to a common link, comprises:
splitting a link of a transmitting end to obtain a path of a skip page and parameters required by the skip page, and obtaining a scene value of the transmitting end;
and combining the scene value of the transmitting end, the path of the skip page and parameters required by the skip page to obtain a public link.
7. The IM card information circulation method is characterized by being applied to a receiving end and comprising the following steps:
Receiving a card and a public link mapping table sent by a server; the card comprises a public link based on at least one of title, subtitle, picture and descriptive information; the public link mapping table comprises paths of the jump pages in each scene, parameters required by the jump pages in each scene and the scene where the jump pages exist;
Acquiring a scene value of a receiving end;
judging whether the receiving end can jump to the jump page corresponding to the card or not based on the scene value of the receiving end and the scene with the jump page;
If yes, determining a receiving end link of a skip page based on the public link, the public link mapping table and the receiving end scene value, and replacing the public link in the card with the receiving end link to update the card; responding to the card clicking operation of the user, and jumping to the receiving end link;
Otherwise, the card is displayed in response to the card clicking operation of the user, and prompt information for downloading the scene with the jump page is generated.
8. The method of claim 7, wherein the determining the recipient link for the jumped page based on the common link, the common link map, and the recipient scene value comprises:
Splitting the public links, and determining scene values of a transmitting end, a skip page path and parameters required by a skip page;
Searching a jump page path corresponding to the receiving end scene and parameters required by the jump page in the receiving end scene in the public link mapping table;
and generating a receiving end link according to the receiving end scene value, the skip page path corresponding to the receiving end scene and parameters required by the skip page in the receiving end scene.
9. An electronic device, comprising:
At least one processor;
A memory;
At least one computer program, wherein the at least one computer program is stored in the memory and configured to be executed by the at least one processor, the at least one computer program configured to: performing the method of any one of claims 1 to 8.
10. A computer readable storage medium, characterized in that a computer program is stored which can be loaded by a processor and which performs the method according to any of claims 1 to 8.
CN202410406495.1A 2024-04-07 2024-04-07 IM card message circulation method, electronic equipment and readable storage medium Pending CN117992258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410406495.1A CN117992258A (en) 2024-04-07 2024-04-07 IM card message circulation method, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410406495.1A CN117992258A (en) 2024-04-07 2024-04-07 IM card message circulation method, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117992258A true CN117992258A (en) 2024-05-07

Family

ID=90890836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410406495.1A Pending CN117992258A (en) 2024-04-07 2024-04-07 IM card message circulation method, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117992258A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114900379A (en) * 2022-04-28 2022-08-12 北京百度网讯科技有限公司 Message notification method and device, electronic equipment and storage medium
WO2023138305A1 (en) * 2022-01-20 2023-07-27 荣耀终端有限公司 Card display method, electronic device, and computer readable storage medium
CN117237037A (en) * 2023-08-08 2023-12-15 浙江天猫技术有限公司 Information receiving page display method and electronic equipment
CN117785340A (en) * 2022-09-20 2024-03-29 华为技术有限公司 Card sharing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023138305A1 (en) * 2022-01-20 2023-07-27 荣耀终端有限公司 Card display method, electronic device, and computer readable storage medium
CN114900379A (en) * 2022-04-28 2022-08-12 北京百度网讯科技有限公司 Message notification method and device, electronic equipment and storage medium
CN117785340A (en) * 2022-09-20 2024-03-29 华为技术有限公司 Card sharing method and device
CN117237037A (en) * 2023-08-08 2023-12-15 浙江天猫技术有限公司 Information receiving page display method and electronic equipment

Similar Documents

Publication Publication Date Title
CN107844586B (en) News recommendation method and device
JP6113661B2 (en) Method and system for managing device specific content
CN112868004B (en) Resource recommendation method and device, electronic equipment and storage medium
CN109271556B (en) Method and apparatus for outputting information
CN103179093A (en) Matching system and method for video subtitles
US20090022123A1 (en) Apparatus and method for providing contents sharing service on network
CN109255037B (en) Method and apparatus for outputting information
CN109255035B (en) Method and device for constructing knowledge graph
CN109862100B (en) Method and device for pushing information
US20200409998A1 (en) Method and device for outputting information
CN110704102A (en) Page jump protocol interface document generation method, system, medium and electronic device
CN108470057B (en) Generating and pushing method, device, terminal, server and medium of integrated information
CN104866560A (en) Method for sharing resource information, and terminal device and server thereof
KR20130137332A (en) Speech recognition server for determining service type based on speech informaion of device, content server for providing content to the device based on the service type, the device, and methods thereof
US9824479B2 (en) Method of animating messages
CN112138376A (en) Cloud game archiving method and device and electronic equipment
CN110968314A (en) Page generation method and device
CN113282770A (en) Multimedia recommendation system and method
CN112052377A (en) Resource recommendation method, device, server and storage medium
US9973371B1 (en) Requesting a specific website version
CN117992258A (en) IM card message circulation method, electronic equipment and readable storage medium
CN114239501A (en) Contract generation method, apparatus, device and medium
CN111625508A (en) Information processing method and device
CN110297971B (en) Personalized resource retrieval method, device, equipment and computer readable storage medium
CN108920658B (en) Mobile device desktop moving method and device and electronic device

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