CN110177039B - Message sharing method and device, computer equipment and storage medium - Google Patents

Message sharing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110177039B
CN110177039B CN201910423002.4A CN201910423002A CN110177039B CN 110177039 B CN110177039 B CN 110177039B CN 201910423002 A CN201910423002 A CN 201910423002A CN 110177039 B CN110177039 B CN 110177039B
Authority
CN
China
Prior art keywords
sharing
text
application
image
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910423002.4A
Other languages
Chinese (zh)
Other versions
CN110177039A (en
Inventor
许剑勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201910423002.4A priority Critical patent/CN110177039B/en
Publication of CN110177039A publication Critical patent/CN110177039A/en
Application granted granted Critical
Publication of CN110177039B publication Critical patent/CN110177039B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Abstract

The present application relates to the field of mobile research and development technologies, and in particular, to a method and an apparatus for sharing a message, a computer device, and a storage medium. The method comprises the following steps: if an operation instruction for sharing a target page through a social application is detected, acquiring a sharing mode for sharing the target page through the social application; if the sharing mode is sharing to an interactive community through the social application, acquiring the information parameters of the target page; judging whether the sharing type of the target page is a sub-application sharing type of the social application or not according to the information parameters; and if the sharing type is a sub-application sharing type, generating a picture-text sharing message based on the information parameter, and sharing the picture-text sharing message to the interactive community through the social application. The method can improve the application message spreading universality.

Description

Message sharing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for sharing a message, a computer device, and a storage medium.
Background
With the rapid development of internet technology, in daily life, information content for communication and sharing is diversified, and various information such as videos, pictures, voices and web pages can be interacted. In addition, the way of information sharing is more and more abundant, for example, information sharing can be performed through social platform applications such as microblog and wechat.
Because of the characteristics of convenient and light interaction, sub-applications of the social platform, such as WeChat applets, are increasingly used by application programs as a way of information sharing. However, in order to prevent the virus sub-applications from being rapidly spread in the current social application, the spread range of the sub-application messages is strictly limited, the sub-application messages can only be sent to friends or group chat of the social application, and cannot be shared with the interactive community of the social application, and the interactive community can be a WeChat friend circle, so that the virus sub-applications are prevented from locally hacking, stealing local resources and the like on the mobile terminal, and therefore, the spread of the sub-application messages is limited.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a message sharing method, device, computer device and storage medium for improving the message dissemination.
A method of information sharing, the method comprising:
if an operation instruction for sharing a target page through a social application is detected, acquiring a sharing mode for sharing the target page through the social application;
if the sharing mode is sharing to an interactive community through the social application, acquiring the information parameters of the target page;
judging whether the sharing type of the target page is a sub-application sharing type of the social application or not according to the information parameters;
and if the sharing type is a sub-application sharing type, generating a picture-text sharing message based on the information parameter, and sharing the picture-text sharing message to the interactive community through the social application.
In one embodiment, the determining, according to the information parameter, whether the sharing type of the target page is a sub-application sharing type of the social application includes:
acquiring a preset sub-application information field;
searching whether sharing parameters matched with the preset sub-application information fields exist in the information parameters or not;
and when the matched sharing parameters are found, judging that the sharing type is a sub-application sharing type.
In one embodiment, the generating of the teletext message based on the information parameter includes:
extracting image-text parameters from the information parameters;
judging the type of the shared pictures and texts according to the picture and text parameters;
establishing a first social application object corresponding to the sharing image-text type;
and carrying out object attribute assignment on the first social application object according to the image-text parameters and generating an image-text sharing message.
In one embodiment, the sharing graphics-text type is a picture type, and the assigning an object attribute to the first social application object according to the graphics-text parameter and generating a graphics-text sharing message include:
acquiring preset picture format parameters;
extracting picture information parameters from the image-text parameters;
and carrying out object attribute assignment on the first social application object according to the preset picture format parameter and the picture information parameter and generating a picture-text sharing picture.
In one embodiment, the generating of the teletext message based on the information parameter includes:
acquiring a preset image-text type;
extracting message parameters corresponding to the preset image-text type from the information parameters, and establishing a second social application object corresponding to the preset image-text type;
and assigning the attribute of the second social object line object according to the message parameter and generating the image-text sharing message.
In one embodiment, the generating of the teletext message based on the information parameter includes:
when the image-text type is judged to be the shared image according to the information parameters, extracting the sub-application address and the image information parameters from the information parameters;
establishing a social application picture object, and assigning the social application picture object according to the picture information parameters to generate a basic sharing picture;
generating a sub-application two-dimensional code according to the sub-application address;
and synthesizing the basic sharing picture and the sub-application two-dimensional code to generate a picture-text sharing message.
An information sharing apparatus, the apparatus comprising:
the instruction detection module is used for acquiring a sharing mode of sharing a target page through a social application if an operation instruction for sharing the target page through the social application is detected;
the parameter acquisition module is used for acquiring the information parameters of the target page if the sharing mode is that the information parameters are shared to an interactive community through the social application;
the sharing type judging module is used for judging whether the sharing type of the target page is a sub-application sharing type of the social application or not according to the information parameters;
and the message generation module is used for generating a picture-text sharing message based on the information parameter and sharing the picture-text sharing message to the interactive community through the social application if the sharing type is a sub-application sharing type.
In one embodiment, the message generation module includes:
the parameter extraction unit is used for extracting the image-text parameters from the information parameters;
the image-text type judging unit is used for judging the image-text type sharing according to the image-text parameters;
the first object establishing unit is used for establishing a first social application object corresponding to the sharing image-text type;
and the first assignment unit is used for assigning the object attribute to the first social application object according to the image-text parameters and generating an image-text sharing message.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the above method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
According to the information sharing method, the information sharing device, the computer equipment and the storage medium, when a user wants to share target page information of an application and judges that the information sharing way is to be shared to an interactive community, whether the preset sharing type of the target page is shared by sub-application information is detected, and when the sharing is detected to be shared by the sub-application information, a common image-text sharing message is generated according to the information parameters of the target page, so that the target page information of the application can be degraded from the sub-application message to a common image-text form to be shared to an interactive community, the sharing content can be adjusted in a self-adaptive mode afterwards, and the information spreading universality is improved.
Drawings
Fig. 1 is a diagram illustrating an application scenario of a message sharing method according to an embodiment;
FIG. 2 is a flow diagram illustrating a message sharing method according to an embodiment;
FIG. 3 is a flow diagram illustrating the message generation step in one embodiment;
FIG. 4 is a block diagram of a message sharing apparatus according to an embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The message sharing method provided by the application can be applied to the application environment shown in fig. 1. The user may operate the terminal 102, for example, an application program may be opened on the terminal 102, when browsing interested information, the user may perform sharing operation on the information and generate an information sharing instruction, and when the terminal 102 detects an operation instruction for sharing a target page through a social application, the user acquires a sharing mode for sharing the target page through the social application; if the sharing mode is sharing to the interactive community through the social application, acquiring the information parameters of the target page; judging whether the sharing type of the target page is a sub-application sharing type of the social application or not according to the information parameters; and if the sharing type is the sub-application sharing type, generating the image-text sharing message based on the information parameters, and sharing the image-text sharing message to the interactive community through the social application. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
In an embodiment, as shown in fig. 2, a message sharing method is provided, which is described by taking the application of the method to the terminal 102 in fig. 1 as an example, in other embodiments, the method may also be applied to a server, and the method includes the following steps:
step 210, if an operation instruction for sharing a target page through a social application is detected, acquiring a sharing mode for sharing the target page through the social application.
The user can operate the opened application program and share the target page where the information interested in the application program is located. The target page to be shared of the application program can provide an information sharing function, such as a sharing function button, voice control and the like.
The user can share the current application page through the information sharing function, and when the terminal detects that the user selects to share the current application page, a sharing mode selection option is generated so that the user can select the sharing mode. The sharing mode may include various social sharing modes such as sharing to friends, group chat, interactive communities and the like in various social applications. The social application can comprise a plurality of social platforms such as WeChat, microblog and nailing, wherein the interactive community is a community in which a user and social friends can perform operations such as message comment and approval, for example, a friend circle in WeChat, and after the user selects a sharing mode desired by the user, the application program obtains sharing mode information corresponding to the sharing mode option selected by the user and generates an operation instruction carrying the sharing mode information and sharing through the social application, and the terminal receives the operation instruction through an application page. The terminal extracts the sharing mode information from the received operation instruction, and determines the sharing mode according to the sharing mode information, wherein the sharing mode information can be an identifier, a code, a number and the like of the sharing mode.
Step 220, if the sharing mode is sharing to the interactive community through the social application, obtaining the information parameters of the target page.
When the terminal judges through the sharing mode information that the sharing mode selected by the user is shared to the interactive community through the social application, the terminal obtains the information parameters of the current application page. The information sharing parameters may include parameters such as a page title, page content, a successful callback mode, a failed callback mode, and the like, and may further include parameters such as a page website, a picture address, a picture pixel value, and the like of the target page. When the sharing mode of the target page comprises a sub-application message sharing mode, the information sharing parameters comprise sub-application related parameters, and meanwhile, related parameters of common web page or picture sharing are reserved. The sub-application is a lightweight applet attached to the social application, and may be, for example, a wechat applet in wechat or similar sub-applications in other social platforms.
And step 230, judging whether the sharing type of the target page is a sub-application sharing type of the social application or not according to the information parameters.
And the terminal judges whether the information parameters contain parameters related to the sub-application or not, and the message sharing type of the current target page to be shared is the sub-application sharing type of the social application or the common image-text sharing type.
And 240, if the sharing type is the sub-application sharing type, generating an image-text sharing message based on the information parameters, and sharing the image-text sharing message to the interactive community through social application.
When the terminal judges that the sharing type of the target page is the sub-application sharing type, the terminal extracts parameters required for sharing the target page into a common webpage or a picture from the information parameters. The terminal generates a corresponding type of image-text sharing message according to the extracted image-text parameters, wherein the image-text sharing message can be a common webpage or a picture file, and the like, and the terminal publishes the generated image-text sharing message to an interactive community. Specifically, the terminal can load the content of the image-text sharing message into the media message of the social application, and share the media message to the interactive community. For example, in wechat, the content of the image sharing message is loaded into WXMediaMessage (wechat media message), and the wechat media message is shared to the circle of friends through sendmessage towx.
According to the message sharing method, when a user wants to share target page information and judges that the information sharing way is interactive community sharing, whether the preset sharing type of the target page is sub-application sharing or not is detected, when the sub-application sharing is detected, the sharing parameters also include parameters shared in a common form, the parameters are extracted, and common image-text sharing messages are generated according to the parameters, so that the information of the target page can be degraded from the sub-application sharing form to the common image-text sharing form to be shared to the interactive community, the self-adaptive adjustment of the shared content can be achieved, and the universality of information transmission is improved. In addition, the social platform prohibits sharing the social sub-application to the interactive community because the social sub-application can perform many program hacker works such as obtaining local resources of a terminal, and the like, while the ordinary webpage or picture content is managed by the browser sandbox, so that the webpage is safer in transmission, and the security of information transmission can be improved by degrading and sharing the target webpage of the application.
In an embodiment, the step of determining whether the sharing type of the target page is a sub-application sharing type of the social application according to the information parameter may include: acquiring a preset sub-application information field; searching whether sharing parameters matched with preset sub-application information fields exist in the information parameters or not; and when the matched sharing parameter is found, judging that the sharing type is the sub-application sharing type.
When the target page of the application program is shared, the target page is an H5 page, the H5 page transmits the information parameters of the page to be shared to the local terminal through a js-native method, namely a method for bridging the communication between the H5 page and the local terminal, and the terminal can receive the information parameters sent by the application program through an application program interface.
The terminal acquires a preset sub-application information field, wherein the preset sub-application information field can comprise information fields such as a webpage URL (uniform resource locator) of a sub-application, a sub-application ID (identity) and a sub-application starting page path. Each preset sub-application information field is represented in a character string form, for example, webPageURL represents sub-application web page URL, path represents sub-application start page path, and the like. And the terminal identifies whether the sharing parameters matched with the preset sub-application fields exist in the information parameters, if the parameter names of the information parameters can be compared with the preset sub-application information fields one by one, and if the parameter names are consistent with the preset sub-application information fields, the matching is successful. It should be noted that the information parameters of the sub-applications included in different target pages may be different, and as long as the matched information parameter is identified, the information sharing type of the target page is determined to be the sub-application sharing type. Otherwise, when the matched sharing parameter is not found, the sharing type of the target page is judged to be the common image-text sharing type.
In an embodiment, as shown in fig. 3, the step of generating the image-text sharing message according to the image-text parameter may specifically include:
and 242, extracting the image-text parameters from the information parameters.
The image-text parameters are parameters such as a webpage address, a webpage title, a picture address and a picture pixel value required for sharing the application page into a common webpage or a picture. And the terminal extracts the image-text parameters from the information parameters.
Step 244, determining the sharing type according to the graphics parameters.
The sharing graphics and text types are generally divided into common web page types and picture types, and can also include other types, and different graphics and text parameters are required to be adopted when graphics and text sharing messages of different sharing graphics and text types are generated. For example, the graphics parameters required by the general web page type may be parameters such as a page URL, a web page title, and the like. In this embodiment, only one type of teletext is set in the target page of each application, and thus the teletext parameters only include a teletext parameter corresponding to one type of teletext.
The terminal can pre-store parameter names of parameters of various image-text types, the parameter names can be in the form of character strings and the like, the terminal obtains the preset parameter names of the image-text types, identifies whether parameters with parameter names consistent with the preset parameter names exist in the image-text parameters, judges whether the parameter values are empty when the parameters with parameter names consistent with the preset parameter names are searched, and judges that the shared image-text type is the image-text type corresponding to the consistent preset parameter names when the parameter values are not empty.
Step 246, a first social application object corresponding to the sharing graph-text type is established.
The terminal establishes a first social application object corresponding to the determined sharing image-text type according to the determined sharing image-text type, establishes a webpage object of the social application when the sharing image-text type is determined to be a common webpage type, establishes a picture object of the social application when the sharing image-text type is determined to be a picture type, and establishes other corresponding social application objects when the sharing image-text type is determined to be other types. To explain by taking the WeChat as an example, the WeChat webpage object WXWebpageObject is established, the WeChat picture object WXImageObject is established,
and step 248, performing object attribute assignment on the first social application object according to the image-text parameters and generating an image-text sharing message.
The established social application object comprises a plurality of object attributes, for example, the object attributes in the WeChat graphics object may include bitmap, imageurl, title, content, and the like. And the terminal extracts corresponding image-text parameter values from the image-text parameters according to the object attributes in the established WeChat object, assigns the corresponding object attributes according to the extracted image-text parameter values, and generates an image-text sharing message according to the assigned social application object.
In one embodiment, the sharing of the teletext type is a picture type, and performing object attribute assignment on the first social application object according to the teletext parameter and generating the teletext sharing message may include: acquiring a preset picture format parameter and extracting a picture information parameter from a picture-text parameter; and carrying out object attribute assignment on the first social application object according to the preset image format parameter and the image information parameter and generating an image-text sharing image.
When the image-text sharing type is the image type, the user can set the image format of the shared image in the application program, and the image format can include image resolution, file size and the like. The object attributes of the social application picture object established by the terminal also include the attributes of the picture format. The terminal obtains the attribute value of the picture format set by the user, and if the user does not set the attribute value, the terminal obtains the default picture format attribute value of the application. And the terminal extracts corresponding image-text parameter values from the image-text parameters according to the object attributes in the established social application image objects, and copies the corresponding object attributes in the social application image objects according to the image-text parameter values and the image format attribute values to generate the image sharing message.
In one embodiment, generating the teletext message according to the information-based parameter may comprise: acquiring a preset image-text type; extracting message parameters corresponding to the preset image-text type from the information parameters, and establishing a second social application object corresponding to the preset image-text type; and assigning the attribute of the second social application object line object according to the message parameter and generating the image-text sharing message.
And the terminal extracts the image-text parameters from the information parameters. In this embodiment, the target page may set a plurality of teletext types, and therefore, the teletext parameters include teletext parameters corresponding to all teletext types set by the target page. For example, the graphic parameters may include related parameters of a common shared web page and related parameters of a shared picture.
When the target page has various image-text sharing forms, the user can set the priority of the image-text sharing type in the application program, and when the user does not set the priority of the image-text sharing type, the default priority of the application is adopted. The terminal obtains the priority of the image-text sharing type of the application program, and extracts the image-text sharing type with higher priority as a preset image-text type. The terminal obtains a preset parameter name corresponding to the preset image-text type, extracts a message parameter consistent with the preset parameter name from the image-text parameter, and establishes a second social application object corresponding to the preset image-text type. For example, when the obtained preset image-text type is a common web page type, the established second social contact object is a social contact application web page object.
And the terminal extracts corresponding image-text parameter values from the image-text parameters according to the object attributes in the established second social contact object, assigns the corresponding object attributes according to the extracted image-text parameter values, and generates an image-text sharing message according to the assigned second social contact application object.
In one embodiment, the step of generating the teletext message based on the information parameter may comprise: when the image-text type is judged to be the shared image according to the information parameters, extracting the sub-application address and the image information parameters from the information parameters; establishing a social application picture object, and assigning the social application picture object according to the picture information parameters to generate a basic sharing picture; generating a sub-application two-dimensional code according to the sub-application address; and synthesizing the basic sharing picture and the sub-application two-dimensional code to generate a picture-text sharing message.
And the terminal extracts the image-text parameters from the information parameters. In this embodiment, the application page of the application program may support one or more types of the teletext type, and may simultaneously support the teletext type and the sub-application sharing type. When the target page supports an image-text sharing type, the terminal acquires preset parameter names of the image-text types, identifies whether parameters with parameter names consistent with the preset parameter names exist in the image-text parameters, judges whether parameter values of the parameters are empty when the parameters with parameter names consistent with the preset parameter names are found, and judges that the image-text sharing type is the image-text type corresponding to the consistent preset parameter names when the parameter values are not empty. When the target page supports multiple image-text sharing types, the user can set the priority of the image-text sharing types in the application program, and when the user does not set the priority of the image-text sharing types, the default priority of the application is adopted. The terminal obtains the priority of the image-text sharing type of the application program, and extracts the image-text sharing type with higher priority as the image-text type of the application page.
When the terminal judges that the image-text type is the shared picture, the terminal extracts a sub-application address from sub-application related parameters in the image-text parameters and extracts picture information parameters from the picture-sharing related parameters, wherein the picture information parameters can comprise a picture pixel value matrix, a picture format parameter and the like, the terminal establishes a social application picture object, extracts a corresponding picture parameter value from the picture information parameters according to object attributes in the established social application picture object, and copies the corresponding object attributes in the social application picture object according to the picture parameter value to generate a basic shared picture.
And the terminal generates the sub-application two-dimensional code according to the extracted sub-application address, and the generation work of the sub-application two-dimensional code can be carried out at the terminal or at the server side of the application program. When the sub-application two-dimensional code is generated at the terminal, the terminal can obtain a two-dimensional code coding rule preset by the application program, and the sub-application address is coded according to the preset two-dimensional code coding rule to generate the sub-application two-dimensional code. When the two-dimension code generation work is carried out at the server side, the terminal generates a two-dimension code acquisition request carrying a sub-application address, sends the two-dimension code acquisition request to a server corresponding to the application program, and receives a sub-application two-dimension code which is returned by the server and corresponds to the sub-application address.
The terminal synthesizes the basic sharing picture and the sub-application two-dimensional code, the sub-application two-dimensional code can be added to a preset position of the basic sharing picture during synthesis, blank position recognition can also be carried out on the basic sharing picture, the blank position of the basic sharing picture is recognized, the sub-application two-dimensional code is added to the blank position of the basic sharing picture, and the terminal can also adopt other modes to carry out picture synthesis to generate the image-text sharing message.
In this embodiment, the sub-application two-dimensional code is added to the sharing picture shared to the interactive community, so that the user can intuitively know the sharing message by browsing the sharing picture, and can jump to access the sub-application by identifying or scanning the two-dimensional code in a friend circle and simultaneously retain the sub-application information.
It should be understood that although the various steps in the flow charts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a message sharing apparatus, including: an instruction detection module 410, a parameter acquisition module 420, a sharing type determination module 430, and a message generation module 440, wherein:
the instruction detection module 410 is configured to, if an operation instruction for sharing a target page through a social application is detected, obtain a sharing manner for sharing the target page through the social application.
A parameter obtaining module 420, configured to obtain an information parameter of the target page if the sharing manner is sharing to an interactive community through the social application.
The sharing type determining module 430 is configured to determine, according to the information parameter, whether the sharing type of the target page is a sub-application sharing type of the social application.
The message generating module 440 is configured to generate a picture-text sharing message based on the information parameter if the sharing type is a sub-application sharing type, and share the picture-text sharing message to the interactive community through the social application.
In one embodiment, the sharing type determining module 430 may include:
and the field acquisition unit is used for acquiring the preset sub-application information field.
And the field matching unit is used for searching whether the sharing parameters matched with the preset sub-application information fields exist in the information sharing parameters.
And the type judging unit is used for judging the information sharing type to be the sub-application type when the matched sharing parameter is found.
In one embodiment, the message generation module 440 may include:
and the parameter extraction unit is used for extracting the image-text parameters from the information parameters.
And the image-text type judging unit is used for judging the image-text sharing type according to the image-text parameters.
And the first object establishing unit is used for establishing a first social application object corresponding to the sharing image-text type.
And the first assignment unit is used for assigning the object attribute to the first social application object according to the image-text parameters and generating an image-text sharing message.
In one embodiment, the first assignment unit may include:
and the format parameter acquiring subunit is used for acquiring preset picture format parameters.
And the information parameter extraction subunit is used for extracting the picture information parameters from the image-text parameters.
And the attribute assignment subunit is used for performing object attribute assignment on the first social contact object according to the preset picture format parameter and the picture information parameter and generating a picture-text sharing picture.
In one embodiment, the message generation module 440 may include:
and the image-text type acquisition unit is used for acquiring the preset image-text type.
And the second object establishing unit is used for extracting the message parameters corresponding to the preset image-text type from the image-text parameters and establishing a second social application object corresponding to the preset image-text type.
And the second assignment unit is used for assigning the attributes of the second social application object row object according to the message parameters and generating the image-text sharing message.
In one embodiment, the message generation module 440 may include:
and the information extraction unit is used for extracting the sub-application address and the picture information parameter from the information parameter when the image-text type is judged to be the shared picture according to the information parameter.
And the basic picture generating unit is used for establishing a social application picture object and assigning values to the social application picture object according to the picture information parameters to generate a basic sharing picture.
And the two-dimension code generating unit is used for generating the sub-application two-dimension code according to the sub-application address.
And the picture synthesis unit is used for synthesizing the basic sharing picture and the sub-application two-dimensional code to generate the image-text sharing message.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an information sharing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: if an operation instruction for sharing a target page through a social application is detected, acquiring a sharing mode for sharing the target page through the social application; if the sharing mode is sharing to an interactive community through the social application, acquiring the information parameters of the target page; judging whether the sharing type of the target page is a sub-application sharing type of the social application or not according to the information parameters; and if the sharing type is a sub-application sharing type, generating a picture-text sharing message based on the information parameter, and sharing the picture-text sharing message to the interactive community through the social application.
In an embodiment, when the processor executes the computer program, the step of determining whether the sharing type of the target page is a sub-application sharing type of the social application according to the information parameter is further configured to: acquiring a preset sub-application information field; searching whether sharing parameters matched with the preset sub-application information fields exist in the information parameters or not; and when the matched sharing parameters are found, judging that the sharing type is a sub-application sharing type.
In one embodiment, the processor when executing the computer program further performs the step of generating the teletext message based on the information parameter, for: judging the type of the shared pictures and texts according to the picture and text parameters; establishing a first social application object corresponding to the sharing image-text type; and carrying out object attribute assignment on the first social application object according to the image-text parameters and generating an image-text sharing message.
In one embodiment, the processor, when executing the computer program, is further configured to implement that the shared graph-text type is a picture type, and perform object attribute assignment on the first social application object according to the graph-text parameter and generate the graph-text sharing message: acquiring preset picture format parameters; extracting picture information parameters from the image-text parameters; and carrying out object attribute assignment on the first social application object according to the preset image format parameter and the image information parameter and generating an image-text sharing image.
In one embodiment, the processor when executing the computer program further performs the step of generating the teletext message based on the information parameter by: acquiring a preset image-text type; extracting message parameters corresponding to the preset image-text type from the image-text parameters, and establishing a second social application object corresponding to the preset image-text type; and assigning the attribute of the second social application object line object according to the message parameter and generating the image-text sharing message.
In one embodiment, the processor when executing the computer program further performs the step of generating the teletext message based on the information parameter by: when the image-text type is judged to be the shared image according to the information parameters, extracting the sub-application address and the image information parameters from the information parameters; establishing a social application picture object, and assigning the social application picture object according to the picture information parameters to generate a basic sharing picture; generating a sub-application two-dimensional code according to the sub-application address; and synthesizing the basic sharing picture and the sub-application two-dimensional code to generate a picture-text sharing message.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: if an operation instruction for sharing a target page through a social application is detected, acquiring a sharing mode for sharing the target page through the social application; if the sharing mode is sharing to an interactive community through the social application, acquiring the information parameters of the target page; judging whether the sharing type of the target page is a sub-application sharing type of the social application or not according to the information parameters; and if the sharing type is a sub-application sharing type, generating a picture-text sharing message based on the information parameter, and sharing the picture-text sharing message to the interactive community through the social application.
In an embodiment, when being executed by a processor, the computer program further performs the step of determining whether the sharing type of the target page is a sub-application sharing type of the social application according to the information parameter, and is further configured to: acquiring a preset sub-application information field; searching whether sharing parameters matched with the preset sub-application information fields exist in the information parameters or not; and when the matched sharing parameters are found, judging that the sharing type is a sub-application sharing type.
In one embodiment, the computer program when executed by the processor performs the step of generating a teletext message based on the information parameter further for: judging the type of the shared pictures and texts according to the picture and text parameters; establishing a first social application object corresponding to the shared image-text type; and carrying out object attribute assignment on the first social application object according to the image-text parameters and generating an image-text sharing message.
In one embodiment, the computer program when executed by the processor is further configured to implement the step of sharing the teletext type to the picture type, assigning an object attribute to the first social application object in accordance with the teletext parameter, and generating the teletext sharing message, further configured to: acquiring preset picture format parameters; extracting picture information parameters from the image-text parameters; and carrying out object attribute assignment on the first social application object according to the preset image format parameter and the image information parameter and generating an image-text sharing image.
In one embodiment, the computer program when executed by the processor performs the step of generating a teletext message based on the information parameter is further configured to: acquiring a preset image-text type; extracting message parameters corresponding to the preset image-text type from the image-text parameters, and establishing a second social application object corresponding to the preset image-text type; and assigning the attribute of the second social application object line object according to the message parameter and generating the image-text sharing message.
In one embodiment, the computer program when executed by the processor performs the step of generating a teletext message based on the information parameter is further configured to: when the image-text type is judged to be the shared image according to the information parameters, extracting the sub-application address and the image information parameters from the information parameters; establishing a social application picture object, and assigning the social application picture object according to the picture information parameters to generate a basic sharing picture; generating a sub-application two-dimensional code according to the sub-application address; and synthesizing the basic sharing picture and the sub-application two-dimensional code to generate a picture-text sharing message.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of message sharing, the method comprising:
if an operation instruction for sharing a target page through a social application is detected, acquiring a sharing mode for sharing the target page through the social application;
if the sharing mode is sharing to an interactive community through the social application, acquiring the information parameters of the target page;
judging whether the sharing type of the target page is a sub-application sharing type of the social application or not according to the information parameters;
and if the sharing type is a sub-application sharing type, generating an image-text sharing message based on the information parameter, loading the image-text sharing message into the media information of the social application, and sharing the media information to an interactive community.
2. The method according to claim 1, wherein the determining whether the sharing type of the target page is a sub-application sharing type of the social application according to the information parameter includes:
acquiring a preset sub-application information field;
searching whether sharing parameters matched with the preset sub-application information fields exist in the information parameters or not;
and when the matched sharing parameters are found, judging that the sharing type is a sub-application sharing type.
3. The method of claim 1, wherein generating the teletext message based on the information parameter comprises:
extracting image-text parameters from the information parameters;
judging the type of the shared pictures and texts according to the picture and text parameters;
establishing a first social application object corresponding to the shared image-text type;
and carrying out object attribute assignment on the first social application object according to the image-text parameters and generating an image-text sharing message.
4. The method of claim 3, wherein the shared teletext type is a picture type, and wherein assigning an object attribute to the first social application object according to the teletext parameter and generating a teletext message comprises:
acquiring preset picture format parameters;
extracting picture information parameters from the image-text parameters;
and carrying out object attribute assignment on the first social application object according to the preset picture format parameter and the picture information parameter and generating a picture-text sharing picture.
5. The method of claim 1, wherein generating the teletext message based on the information parameter comprises:
acquiring a preset image-text type;
extracting message parameters corresponding to the preset image-text type from the information parameters, and establishing a second social application object corresponding to the preset image-text type;
and assigning the attribute of the second social application object line object according to the message parameter and generating the image-text sharing message.
6. The method of claim 1, wherein generating the teletext message based on the information parameter comprises:
when the image-text type is judged to be the shared image according to the information parameters, extracting the sub-application address and the image information parameters from the information parameters;
establishing a social application picture object, and assigning the social application picture object according to the picture information parameters to generate a basic sharing picture;
generating a sub-application two-dimensional code according to the sub-application address;
and synthesizing the basic sharing picture and the sub-application two-dimensional code to generate a picture-text sharing message.
7. An information sharing apparatus, the apparatus comprising:
the instruction detection module is used for acquiring a sharing mode of sharing a target page through a social application if an operation instruction for sharing the target page through the social application is detected;
the parameter acquisition module is used for acquiring the information parameters of the target page if the sharing mode is that the information parameters are shared to an interactive community through the social application;
the sharing type judging module is used for judging whether the sharing type of the target page is a sub-application sharing type of the social application or not according to the information parameters;
and the message generation module is used for generating an image-text sharing message based on the information parameter if the sharing type is a sub-application sharing type, loading the image-text sharing message into the media information of the social application, and sharing the media information to an interactive community.
8. The apparatus of claim 7, wherein the message generation module comprises:
the parameter extraction unit is used for extracting the image-text parameters from the information parameters;
the image-text type judging unit is used for judging the image-text sharing type according to the image-text parameters;
the first object establishing unit is used for establishing a first social application object corresponding to the sharing image-text type;
and the first assignment unit is used for assigning the object attribute to the first social application object according to the image-text parameters and generating an image-text sharing message.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201910423002.4A 2019-05-21 2019-05-21 Message sharing method and device, computer equipment and storage medium Active CN110177039B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910423002.4A CN110177039B (en) 2019-05-21 2019-05-21 Message sharing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910423002.4A CN110177039B (en) 2019-05-21 2019-05-21 Message sharing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110177039A CN110177039A (en) 2019-08-27
CN110177039B true CN110177039B (en) 2022-06-07

Family

ID=67691636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910423002.4A Active CN110177039B (en) 2019-05-21 2019-05-21 Message sharing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110177039B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110827059B (en) * 2019-09-30 2023-09-01 深圳市嘀哒知经科技有限责任公司 Sharing method, sharing system and computer readable storage medium
CN112925987A (en) * 2019-11-20 2021-06-08 浙江大搜车软件技术有限公司 Page sharing method and device, computer equipment and storage medium
CN114358098A (en) * 2020-09-30 2022-04-15 京东方科技集团股份有限公司 Information sharing method and device, electronic equipment and readable storage medium
CN114844860B (en) * 2022-04-28 2023-09-26 中国联合网络通信集团有限公司 WeChat enterprise signal processing method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107102880A (en) * 2017-05-11 2017-08-29 腾讯科技(深圳)有限公司 Message treatment method, device, storage medium and computer equipment
CN108494661A (en) * 2018-02-27 2018-09-04 北京安云世纪科技有限公司 The processing method of sharing information, device and mobile terminal in circle of friends
CN109583968A (en) * 2018-12-12 2019-04-05 汉中斯巴达科技有限公司 A kind of comment platform based on wechat small routine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107102880A (en) * 2017-05-11 2017-08-29 腾讯科技(深圳)有限公司 Message treatment method, device, storage medium and computer equipment
CN108494661A (en) * 2018-02-27 2018-09-04 北京安云世纪科技有限公司 The processing method of sharing information, device and mobile terminal in circle of friends
CN109583968A (en) * 2018-12-12 2019-04-05 汉中斯巴达科技有限公司 A kind of comment platform based on wechat small routine

Also Published As

Publication number Publication date
CN110177039A (en) 2019-08-27

Similar Documents

Publication Publication Date Title
US11252203B2 (en) Method for processing message in group session, storage medium, and computer device
CN110177039B (en) Message sharing method and device, computer equipment and storage medium
US10902232B2 (en) Service process starting method and apparatus
CN108959384B (en) Webpage data acquisition method and device, computer equipment and storage medium
CN111182065A (en) Message processing method and device based on MQTT protocol and computer equipment
CN112423281B (en) Wireless module upgrading method, device, computer equipment and storage medium
CN106487662B (en) Information sharing method and device
CN114168869A (en) Information display method, device, system and storage medium
CN113742601A (en) Content sharing method and device, computer equipment and storage medium
CN108418797B (en) Webpage access method and device, computer equipment and storage medium
CN108418809B (en) Chat data processing method and device, computer equipment and storage medium
CN114385382A (en) Light application access method and device, computer equipment and storage medium
CN112769674B (en) Mailbox signature generation method and device, readable storage medium and computer equipment
CN111241438B (en) Cartoon picture display method, cartoon picture display device, cartoon picture display computer readable storage medium and cartoon picture display computer equipment
CN110929129A (en) Information detection method, equipment and machine-readable storage medium
CN111817944A (en) Picture sharing method and device and electronic equipment
CN111901383A (en) Data request processing method and device, computer equipment and storage medium
CN111026988A (en) Page loading method, device and system and computer equipment
CN111222153A (en) Application program authority management method and device and storage medium
CN113992784B (en) Audio and video call method, device, computer equipment and storage medium
CN108388463B (en) Icon processing method and device, computer equipment and storage medium
CN113873450A (en) Short message configuration method and device, computer equipment and storage medium
CN115297105A (en) File transmission method and device, computer equipment and storage medium
CN113722589A (en) Information generation method, device, server and storage medium
CN112257000A (en) Picture generation method and device, computer equipment and storage medium

Legal Events

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