WO2023207788A1 - 信息处理方法、装置、电子设备和存储介质 - Google Patents

信息处理方法、装置、电子设备和存储介质 Download PDF

Info

Publication number
WO2023207788A1
WO2023207788A1 PCT/CN2023/089782 CN2023089782W WO2023207788A1 WO 2023207788 A1 WO2023207788 A1 WO 2023207788A1 CN 2023089782 W CN2023089782 W CN 2023089782W WO 2023207788 A1 WO2023207788 A1 WO 2023207788A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
link
information
service party
type
Prior art date
Application number
PCT/CN2023/089782
Other languages
English (en)
French (fr)
Inventor
杨溢哲
俞柳源
杨珺舟
赵赫
陈韬
Original Assignee
北京字跳网络技术有限公司
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 北京字跳网络技术有限公司 filed Critical 北京字跳网络技术有限公司
Publication of WO2023207788A1 publication Critical patent/WO2023207788A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to an information processing method, device, electronic equipment and storage medium.
  • Links such as web links or text links
  • the preview view usually displays a snapshot or brief information of the web page or text.
  • the preview view is usually pre-drawn and stored in the server and sent in the communication client. After obtaining a link, the communication client will send a get request to the server to obtain the preview view corresponding to the link from the server and display it.
  • the present disclosure provides an information processing method, device, electronic equipment and storage medium.
  • the present disclosure provides an information processing method, including:
  • the interaction protocol is used to specify the response mode of the service party to different information related to the link.
  • the present disclosure provides an information processing apparatus, including:
  • a registration module configured to respond to the service party's registration operation and save the registration information of the service party, where the registration information includes a link to the service party's registration;
  • a communication module configured to respond to the request information related to the target link sent by the target terminal, determine the target server of the target link according to the registration information, and send a notification to the target server so that the target service
  • the party responds to the target link according to the request information and the pre-agreed interaction protocol
  • the interaction protocol is used to specify the response mode of the service party to different information related to the link.
  • the present disclosure provides an electronic device including: at least one memory and at least one processor;
  • the memory is used to store program code
  • the processor is used to call the program code stored in the memory to execute the above method.
  • the present disclosure provides a computer-readable storage medium for storing program code, which, when executed by a processor, causes the processor to perform the above method.
  • each service party responds in compliance with the interaction protocol, instead of each service party storing data in the server of the instant messaging client in advance. This avoids the need for maintenance personnel to connect to each service party and data
  • the flow direction is from the server to the service party.
  • Each service party only needs to prepare data according to the interaction protocol, which reduces development costs and facilitates each service party to perform personalized processing according to its own needs.
  • modifying the response data there is no need to modify the response data on the server. Perform any operation and reduce communication costs.
  • Figure 1 is a flow chart of an information processing method according to an embodiment of the present disclosure.
  • FIG. 2 is a schematic diagram of interacting parties of the information processing method according to an embodiment of the present disclosure.
  • Figure 3 is an interaction diagram of an information processing method according to an embodiment of the present disclosure.
  • Figure 4 is an interaction diagram of an information processing method according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • the term “include” and its variations are open-ended, ie, “including but not limited to.”
  • the term “based on” means “based at least in part on.”
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one additional embodiment”; and the term “some embodiments” means “at least some embodiments”. Relevant definitions of other terms will be given in the description below.
  • links are often sent. After sending or receiving the link, a preview view of the link needs to be displayed to improve the user experience.
  • the preview view is usually pre-stored in the instant messaging client by a third-party service provider.
  • the service provider needs to store the preview view in the server according to the specifications provided by the server.
  • Using this method requires server maintenance personnel to connect to the service provider. When the number of service providers increases, the number of maintenance personnel and access costs will be significantly increased. It is high and difficult to meet the demand.
  • the server often stores the response method in the server of the instant messaging client, and the server of the instant messaging client responds. In this way, if the server wants to modify the response method or data, it needs to interact with the server of the instant messaging client, causing inconvenience.
  • Figure 1 is a flow chart of an information processing method according to an embodiment of the present disclosure, including the following steps.
  • the execution party of the information processing method proposed in this disclosure may be a server, specifically, it may be a server of an instant messaging client.
  • the service party may be a provider of content corresponding to the link.
  • the link is a video link
  • the service provider can be the server of the video website
  • the link is a document link
  • the service provider can be the server of the document website.
  • the registration information can include a link registered by the service provider, and the service provider can provide a preview view for the link, and the preview view is generated through the preview data.
  • S12 responds to the request information related to the target link sent by the target terminal, determines the target service party of the target link based on the registration information, and sends a notification to the target service party so that the target service party can respond to the target according to the request information and the pre-agreed interaction protocol. link to respond.
  • the interaction protocol is used to specify how the server responds to different information related to the link.
  • the target terminal may be the target terminal where the instant messaging client is located.
  • the target terminal may send request information to the server when the instant messaging client receives a target link from another terminal or the user inputs a target link in the instant messaging client. .
  • the request information can be used to obtain the preview data of the target link, or it can also be used to cause the server to perform some processing.
  • the target terminal is the terminal served by the server.
  • the service party registers the target link in the server. After receiving the request information, the server parses the target link in the request information and determines from each service party who has registered the target link based on the registration information. target service provider.
  • the method of resolution may be to obtain the main domain name of the target link, determine the target server of the target link through the main domain name, and after determining the target server, send a notification to the target server.
  • the notification can include request information, and the notification can be generated based on the request information.
  • An interaction protocol has been agreed upon in advance between the service party and the server. The interaction protocol stipulates the response method to the service party. The service party determines and requests information based on the interaction protocol. Corresponding response method and respond.
  • the server only registers on the execution end of the disclosure, and the response to the link is executed by the server.
  • the data flow used in the embodiments of the disclosure is from the execution end of the disclosure to The flow direction of the target service party, so that each service party provides data that conforms to the interaction protocol or performs operations that conform to the interaction protocol, instead of each service party storing data in advance in the execution end of the present disclosure to respond to the target link, so that It avoids the need for maintenance personnel of the execution end of the present disclosure to connect with each service party.
  • Each service party only needs to prepare data and response operations according to the interaction protocol, which reduces development costs and facilitates each service party to perform personalized processing according to its own needs. When the data returned by the response needs to be modified, there is no need to interact with the execution end of the disclosure, which reduces maintenance costs.
  • sending a notification to the target service party so that the target service party responds to the target link according to the request information and a pre-agreed interaction protocol includes: The type sends a notification to the target server so that the target server returns preview data corresponding to the type of requested information, where the type of requested information is associated with the status of the target link in the target terminal.
  • the method also includes: responding to the preview data sent by the target server, sending the preview data to the target terminal, so that the target terminal generates a preview view of the target link.
  • the request information may be request information sent by the instant messaging client to obtain a preview view of the target link.
  • the request information reaches the execution end of the disclosure, determines the target server based on the target link, and sends the request information to the target server.
  • the target server processes the target link and finally returns the preview data.
  • the target terminal receives the preview data and renders a preview of the target link. card.
  • the preview data can be directly forwarded to the target terminal.
  • the preview data may be processed and then the processed preview data may be forwarded to the target terminal.
  • the preview view template corresponding to the preview data may be determined based on the preview data, and the preview view template and preview data may be sent together. to the target terminal so that the target terminal generates a preview view according to the preview view template and preview data.
  • the status of the target link in the target terminal includes: to-be-sent status, sending status, sent status, received status, etc.
  • the target terminal can send one or more request information to the target terminal.
  • the displayed preview view can be different, and the displayed position can be different.
  • a thumbnail preview view can be displayed and can be displayed in the information input box.
  • a full preview view can be shown and can be displayed in the session interface. Because while waiting to be sent The user may not send it, which may result in wasted data transfer if the full thumbnail view is generated.
  • the type of the request information is determined.
  • the preview data corresponding to different types of request information may not be exactly the same, thereby achieving different preview views.
  • sending a notification to the target service party according to the type of the requested information, so that the target service party returns preview data of the target link includes: determining that the request information is the first type of request information, and sending a notification to the target service party. Notification, so that the target service party returns the first type of preview data of the target link, wherein the first type of request information is sent by the target terminal in response to the target message being located in the information input box, the target message includes the target link, and the first type of preview The data is used to generate a thumbnail preview view.
  • the information input box is an input box for inputting information.
  • the target message in the information input box indicates that the target message has not yet been sent, and that the target message has not been sent.
  • the message is located on the session interface.
  • the target terminal sends the first type of request information. After receiving the first type of request information, it obtains the first type of preview data from the target server, and then sends the first type of preview data to the target terminal. to cause the target terminal to generate a thumbnail preview view.
  • the first type of preview data may include icons and titles. At this time, the generated thumbnail preview view is a preview view composed of icons and titles.
  • the target link is a document link
  • a document icon and a title of the document are generated. Therefore, the user of the target terminal can directly know the type and title of the target link after inputting the target link in the information input box without triggering the target link.
  • sending a notification to the target service party according to the type of the requested information, so that the target service party returns preview data of the target link includes: determining that the request information is the second type of request information, and sending the notification to the target service party. Notification, so that the target service party returns the second type of preview data of the target link, wherein the second type of request information is sent by the target terminal in response to receiving the target message on the session interface, the target message includes the target link, and the second type of preview The data is used to generate a complete preview view.
  • the target terminal may have an instant messaging client. After the target message is sent to the conversation interface, it is no longer in the information input box. At this time, the target terminal generates the second type of request information and receives the request message from the target terminal. The second type of request information will obtain the second type of preview data from the target server.
  • the second type of preview data may include the first type of preview data and other data. In other embodiments, if the first type of preview data has been sent to the target terminal before, only the second type of preview data may be sent. data other than the first type of preview data in order to reduce the amount of data transmission. The second type of preview data is forwarded to the target terminal, so that the target terminal generates a complete preview view.
  • the difference between the complete preview view and the abbreviated preview view may be that: the complete preview view displays the corresponding content of the target link. content information.
  • the complete preview view may display the thumbnail of the content corresponding to the target link, a summary of the content, etc., while the thumbnail preview view may not display the thumbnail of the content corresponding to the target link.
  • the request information is the second type of request information. Before responding to the second type of request information related to the target link sent by the target terminal, it also includes: responding to the target link sent by the target terminal. A first link-related notification message is sent to the target server to inform the target server that it will obtain the second type of preview data of the target link, wherein the third type of request information is the target terminal's response to sending a target message including the target link. And sent.
  • the operation of sending the target message needs to be performed first, for example, when the target message is located in the information input box, click the send button or click Enter, and the target terminal sends the second type of request information before , send the third type of request information first, because the amount of second type preview data required for a complete preview view is usually large.
  • Both the sender and the receiver of the target message will need to generate a preview view, so before sending the target The message is notified in advance so that the target service party can prepare in advance and improve the speed of obtaining the second type of preview data later.
  • the target server of the target link in response to the request information related to the target link sent by the target terminal, the target server of the target link is determined based on the registration information, and a notification is sent to the target server so that the target server can
  • the request information and the pre-agreed interaction protocol respond to the target link, including: in response to the fourth type of request information including operation information sent by the target terminal, sending a notification including operation information to the target service party, so that the target service party can
  • the method further includes: receiving a processing result returned by the target server, wherein the fourth type of request information is sent by the target terminal in response to performing operation information on the target information, and the target message includes a target link.
  • the user of the target terminal can perform operation information on the target message. For example, after the target message is sent to the conversation interface, the message can be withdrawn, clicked to view, or the control on the target message can be clicked.
  • the target link is a document link, document chain
  • the permission management control can be displayed in the preview view of the connection. The user can manage the document permissions of the receiving user who receives the target message through the permission management control.
  • the fourth type of request information is sent. After receiving the fourth type of request information, the target server needs to be notified, that is, a notification is sent, so that the target server can process it.
  • the target server performs processing according to the operation information, including: reclaiming the permissions granted by the target message where the target link is located.
  • the target message is in the target terminal. After the target message is sent to the session interface, the target message may be withdrawn. While the target message is in the session interface, the user may have performed a permission operation through the target link, such as the target link. For document links, the user gives other users permission to edit or view the document through the preview view of the document link. At this time, after the target message is withdrawn, the permission operations performed through the preview view before the withdrawal will be cancelled. The relevant permissions granted will be revoked.
  • the method further includes: in response to receiving update data sent from the target server, sending update data to the target terminal so that the target terminal updates the preview view of the target link.
  • the target server may actively modify the preview view corresponding to the target link. For example, after the title of the content of the target link is changed, the target server sends update data of the target link, and after receiving the update data, sends the update data to the target terminal, so that the target terminal updates the preview view of the target link.
  • saving the registration information of the service party includes: responding to the service party's registration link request, determining the link to be registered; detecting the link to be registered, and detecting the link to be registered. After passing, it is determined that the link to be registered is registered as a service provider.
  • the service party needs to register first. Taking the information processing method proposed in this disclosure for use on the server as an example, the service party needs to register on the server first. When registering, an associated link is required. After registration, the service party can Links to view, edit, delete, etc.
  • detecting the link to be registered includes: loading the link to be processed into the memory, matching the link to be processed with the registered link, and matching it with the authority scope of the service party; if the link to be processed is If the processing link has not yet been registered and is within the scope of the service party's authority, the service party registers the link to be registered.
  • the service party registers a link it needs to be sure that the registered link is not an existing link to avoid repeated registration, and it needs to be sure that the service party has the authority to register the link. For example, for some links that are known to be from other companies, even if These other companies have not registered these links and cannot be registered without the other company's authorization to avoid malicious registration.
  • the management module, interface module, open module, and detection module in Figures 2 and 3 are modules of the server, and the interface module design link Preview the access registry, and the management module stores information related to server access, including application information, tenant information, domain names, paths, callback addresses, and other information.
  • the server can initiate access registration through the open module. After initiating the registration, the interface module will perform conflict detection. After the detection is successful, the administrator will be initiated to perform detection. After the detection passes, the registration information will be notified to the interface module and the registry information will be modified. Subsequent service providers can view/manage registered links through the open module.
  • FIG. 4 A specific process of information processing method is shown in Figure 4:
  • the target terminal When the target link is in the information input box and has not yet been sent, the target terminal will send the first type of request information to the management module of the server through the target terminal, and the server will send it to the target service.
  • Party the target server returns the first type of preview data, so that the target terminal generates a thumbnail preview view.
  • the first type of preview data includes titles and icons.
  • the target terminal generates the first type of preview data in the information input box after receiving the first type of preview data. Thumbnail preview view.
  • the third type of request information is sent to the server, and the server sends a notification message to the target server so that the server can prepare the second type of preview data in advance.
  • the target terminal sends the second type of request information to the server, and the server obtains the second type of preview data from the target server and forwards it to the target terminal, thereby generating a complete preview view.
  • the user can perform operation information on the target message containing the target link through the target terminal.
  • the fourth type of request information will be sent to the server.
  • the server will send a notification to the target server, and the server will process it and return the processing result to the server.
  • the server can inform or not inform the target terminal depending on the processing results. For example, if the user withdraws the target message, the target server can perform permission recovery, data destruction, etc. If the user deletes the target message, it can also notify the server and the target service provider.
  • a read request will be generated.
  • the request is sent to the server, the server forwards it to the target server, the target server returns the read data to the server, and the server forwards it to the target terminal.
  • the target server updates the preview view of the target link, it sends update data to the server, and the server The target terminal pushes update data to update the preview view of the target link.
  • Some embodiments of the present disclosure also provide an information processing device, including:
  • a registration module configured to respond to the service party's registration operation and save the registration information of the service party, where the registration information includes a link to the service party's registration;
  • a communication module configured to respond to the request information related to the target link sent by the target terminal, determine the target server of the target link according to the registration information, and send a notification to the target server so that the target service
  • the party responds to the target link according to the request information and the pre-agreed interaction protocol
  • the interaction protocol is used to specify the response mode of the service party to different information related to the link.
  • a notification is sent to the target service party so that the target service party responds to the target link according to the request information and the pre-agreed interaction protocol, including:
  • the communication module is also used to: respond to the preview data sent by the target server, and send the preview data to the target terminal, so that the target terminal generates a preview view of the target link.
  • a notification is sent to the target server according to the type of requested information, so that the target server returns preview data of the target link, including:
  • the request information is the first type of request information
  • send a notification to the target server so that the target server returns the first type of preview data of the target link
  • the first type of request information is the target terminal located in the information input box in response to the target message While the sent, target message includes the target link
  • the first type of preview data is used to generate a thumbnail preview view.
  • a notification is sent to the target server according to the type of requested information, so that the target server returns preview data of the target link, including:
  • the target message includes the target link, and the second type of preview data is used to generate a complete preview view.
  • the request information is the second type of request information
  • the communication module is further configured to respond to the target link-related information sent by the target terminal before responding to the second type of request information related to the target link sent by the target terminal.
  • the third type of request information is to send a notification to the target server to inform the target server that it will obtain the second type of preview data of the target link.
  • the third type of request information is sent by the target terminal in response to sending a target message including the target link. of.
  • the target service party of the target link in response to the request information related to the target link sent by the target terminal, is determined based on the registration information, and a notification is sent to the target service party, so that the target service party can complete the request according to the request information and the pre-agreed agreement.
  • the interaction protocol responds to the target link, including: responding to the fourth type of request information including operation information sent by the target terminal, sending a notification including operation information to the target server, so that the target server performs processing according to the operation information;
  • the communication module is also configured to: receive the processing result returned by the target server, wherein the fourth type of request information is sent by the target terminal in response to the operation information performed on the target information, and the target message includes the target link.
  • the target server performs processing according to the operation information, including: reclaiming the permissions granted by the target message located through the target link.
  • the communication module is also configured to send update data to the target terminal in response to receiving update data sent from the target server so that the target terminal updates the preview view of the target link.
  • the device embodiment since it basically corresponds to the method embodiment, please refer to the partial description of the method embodiment for relevant details.
  • the device embodiments described above are only illustrative, in which the modules described as separate modules may be or also It doesn't have to be separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Persons of ordinary skill in the art can understand and implement the method without any creative effort.
  • the present disclosure also provides an electronic device and a computer-readable storage medium. These electronic devices and computer-readable storage media are described below.
  • Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablets), PMPs (Portable Multimedia Players), vehicle-mounted terminals (such as Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
  • PDAs Personal Digital Assistants
  • PADs Tablets
  • PMPs Portable Multimedia Players
  • vehicle-mounted terminals such as Mobile terminals such as car navigation terminals
  • fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in the figure is only an example and should not bring any limitations to the functions and scope of use of the embodiments of the present disclosure.
  • Electronic device 800 may include a processing device (eg, central processing unit, graphics processor, etc.) 801 that may be loaded into random access memory (RAM) 803 according to a program stored in read-only memory (ROM) 802 or from storage device 808 program to perform various appropriate actions and processes. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored.
  • the processing device 801, ROM 802 and RAM 803 are connected to each other via a bus 804.
  • An input/output (I/O) interface 805 is also connected to bus 804.
  • the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 807 such as a computer; a storage device 808 including a magnetic tape, a hard disk, etc.; and a communication device 809.
  • the communication device 809 may allow the electronic device 800 to communicate wirelessly or wiredly with other devices to exchange data.
  • electronic device 800 is shown with various means, it is to be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via communication device 809, or from storage device 808, or from ROM 802.
  • the processing device 801 the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmd read-only memory (EPROM or flash memory), fiber optics, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
  • the client and server can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium.
  • Communications e.g., communications network
  • Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or developed in the future network of.
  • LAN local area networks
  • WAN wide area networks
  • the Internet e.g., the Internet
  • end-to-end networks e.g., ad hoc end-to-end networks
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs.
  • the electronic device When the above-mentioned one or more programs are executed by the electronic device, the electronic device is caused to perform the above-mentioned method of the present disclosure.
  • Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional Procedural programming language—such as "C" or a similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as an Internet service provider through Internet connection).
  • LAN local area network
  • WAN wide area network
  • Internet service provider such as an Internet service provider through Internet connection
  • each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved.
  • each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.
  • the units involved in the embodiments of the present disclosure can be implemented in software or hardware. Among them, the name of a unit does not constitute a limitation on the unit itself under certain circumstances.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs Systems on Chips
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, laptop disks, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM portable compact disk read-only memory
  • magnetic storage device or any suitable combination of the above.
  • an information processing method including:
  • the target terminal In response to the request information related to the target link sent by the target terminal, determine the target service party of the target link based on the registration information, and send a notification to the target service party so that the target service party can respond to the target link based on the request information and the pre-agreed interaction protocol. to respond;
  • the interaction protocol is used to specify how the service party responds to different information related to the link.
  • an information processing method is provided to send a notification to the target service party so that the target service party responds to the target link according to the request information and the pre-agreed interaction protocol, including:
  • the method also includes: responding to the preview data sent by the target server, sending the preview data to the target terminal, so that the target terminal generates a preview view of the target link.
  • an information processing method which sends a notification to the target service party according to the type of requested information, so that the target service party returns preview data of the target link, including:
  • the request information is the first type of request information
  • send a notification to the target server so that the target server returns the first type of preview data of the target link
  • the first type of request information is the target terminal located in the information input box in response to the target message While the sent, target message includes the target link
  • the first type of preview data is used to generate a thumbnail preview view.
  • an information processing method which sends a notification to the target service party according to the type of requested information, so that the target service party returns preview data of the target link, including:
  • the target message includes the target link, and the second type of preview data is used to generate a complete preview view.
  • an information processing method is provided.
  • the request information is the second type of request information.
  • the target terminal In response to the third type of request information related to the target link sent by the target terminal, send a notification to the target server to inform the target server that it will obtain the second type of preview data of the target link, wherein the third type of request information is the target terminal Sent in response to sending a target message that includes a link to the target.
  • an information processing method In response to the request information related to the target link sent by the target terminal, the target server of the target link is determined based on the registration information, and the target server is sent to the target server. Notification, so that the target server responds to the target link according to the request information and the pre-agreed interaction protocol, including: in response to the fourth type of request information including operation information sent by the target terminal, sending a request including operation information to the target server Notification to enable the target service party to process based on operational information;
  • the method also includes: receiving a processing result returned by the target server, wherein the fourth type of request information is sent by the target terminal in response to operating information on the target information, and the target message includes a target link.
  • an information processing method including:
  • the target server will process it according to the operation information, including: reclaiming the permissions granted by the target message through the target link.
  • an information processing method further comprising:
  • the update data is sent to the target terminal so that the target terminal updates the preview view of the target link.
  • an information processing device which includes:
  • the registration module is used to respond to the service party's registration operation and save the service party's registration information.
  • the registration information includes the service party's registration link;
  • the communication module is used to respond to the request information related to the target link sent by the target terminal, determine the target service party of the target link based on the registration information, and send a notification to the target service party so that the target service party can respond to the request information and the pre-agreed
  • the interaction protocol responds to the target link
  • the interaction protocol is used to specify how the service party responds to different information related to the link.
  • an electronic device including: at least one memory and at least one processor;
  • the at least one memory is used to store program code
  • the at least one processor is used to call the program code stored in the at least one memory to execute any one of the methods described above.
  • a computer-readable storage medium is provided.
  • the computer-readable storage medium is used to store program code.
  • the program code When the program code is run by a processor, the program code causes the processor to Execute the above method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本公开提供一种信息处理方法、装置、电子设备和存储介质。一种信息处理方法,包括:响应于服务方的注册操作,保存服务方的注册信息,注册信息包括服务方注册的链接;响应于目标终端发来的与目标链接相关的请求信息,根据注册信息确定目标链接的目标服务方,向目标服务方发送通知,以使目标服务方根据请求信息和预先约定的交互协议对目标链接进行响应;其中,交互协议用于规定服务方对链接相关的不同信息的响应方式。本公开能够降低开发成本,方便服务方接入。

Description

信息处理方法、装置、电子设备和存储介质
相关申请的交叉引用
本申请基于申请号为202210454957.8、申请日为2022年04月27日,名称为“信息处理方法、装置、电子设备和存储介质”的中国专利申请提出,并要求该中国专利申请的优先权,上述中国专利申请的公开内容全文以引入方式并入本文。
技术领域
本公开涉及计算机技术领域,尤其涉及一种信息处理方法、装置、电子设备和存储介质。
背景技术
链接,例如网页链接或文本链接,其具有对应的预览视图,预览视图中通常显示了网页或文本的快照或简要信息,预览视图通常为在服务器内预先绘制并存储的,在通信客户端中发送了一个链接后,通信客户端会向服务器发送获取请求,从而从服务器获取链接对应的预览视图并显示。
发明内容
本公开提供一种信息处理方法、装置、电子设备和存储介质。
本公开采用以下的技术方案。
在一些实施例中,本公开提供一种信息处理方法,包括:
响应于服务方的注册操作,保存所述服务方的注册信息,所述注册信息包括所述服务方注册的链接;
响应于目标终端发来的与目标链接相关的请求信息,根据所述注册信息确定所述目标链接的目标服务方,向所述目标服务方发送通知,以使所述目标服务方根据所述请求信息和预先约定的交互协议对所述目标链接进行响应;
其中,所述交互协议用于规定所述服务方对链接相关的不同信息的响应方式.
在一些实施例中,本公开提供一种信息处理装置,包括:
注册模块,用于响应于服务方的注册操作,保存所述服务方的注册信息,所述注册信息包括所述服务方注册的链接;
通信模块,用于响应于目标终端发来的与目标链接相关的请求信息,根据所述注册信息确定所述目标链接的目标服务方,向所述目标服务方发送通知,以使所述目标服务方根据所述请求信息和预先约定的交互协议对所述目标链接进行响应;
其中,所述交互协议用于规定所述服务方对链接相关的不同信息的响应方式。
在一些实施例中,本公开提供一种电子设备,包括:至少一个存储器和至少一个处理器;
其中,存储器用于存储程序代码,处理器用于调用所述存储器所存储的程序代码执行上述的方法。
在一些实施例中,本公开提供一种计算机可读存储介质,所述计算机可读存储介质用于存储程序代码,所述程序代码在被处理器运行时,促使所述处理器执行上述方法。
本公开实施例提供的信息处理方法,由各个服务方进行符合交互协议的响应,而不是由各个服务方预先在即时通信客户端的服务器中存储数据,这样避免了需要维护人员对接各个服务方,数据流向是从服务器到服务方,各个服务方只需要根据交互协议准备数据即可,降低了开发成本,并且方便各个服务方能够根据自己需求进行个性化处理,在修改响应的数据时,无需在服务器进行任何操作,降低了沟通成本。
附图说明
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,元件和元素不一定按照比例绘制。
图1是本公开实施例的信息处理方法的流程图。
图2是本公开实施例的信息处理方法的交互方的示意图。
图3是本公开实施例的信息处理方法的交互图。
图4是本公开实施例的信息处理方法的交互图。
图5是本公开实施例的电子设备的结构示意图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
应当理解,本公开的方法实施方式中记载的各个步骤可以按和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
以下将结合附图,对本公开实施例提供的方案进行详细描述。
在即时通信客户端中,常常会发送链接,在发送或接收到链接之后,需要展示链接的预览视图,从而提高用户的使用体验,预览视图通常是第三方的服务方预先存储在即使通信客户端的服务器上的,服务方需要按照服务器提供的规范,在服务器中存储预览视图,采用这种方法,需要服务器的维护人员对接服务方,服务方增多时会显著提高维护人员的个数,接入成本较高,难以满足需求,此外,用户通过客户端对链接进行的操作,也往往是由服务方在即时通信客户端的服务器中存储响应方式,由即时通信客户端的服务器进行响应。这种方式,服务方如果想要修改响应方式或数据等,需要与即时通信客户端的服务器进行交互,造成不便。
如图1所示,图1是本公开实施例的信息处理方法的流程图,包括如下步骤。
S11:响应于服务方的注册操作,保存服务方的注册信息。
一些实施例中,本公开提出的信息处理方法的执行方可以是服务器,具体可以是即时通信客户端的服务器,一些实施例中,服务方可以是链接对应的内容的提供者。例如链接为视频链接的,服务方可以是视频网站的服务器,链接为文档的,服务方可以是文档网站的服务器。注册信息可以包括服务方注册的链接,服务方可以为链接提供预览视图,预览视图通过预览数据生成。
S12响应于目标终端发来的与目标链接相关的请求信息,根据注册信息确定目标链接的目标服务方,向目标服务方发送通知,以使目标服务方根据请求信息和预先约定的交互协议对目标链接进行响应。
一些实施例中,交互协议用于规定服务方对链接相关的不同信息的响应方式。目标终端可以是即时通信客户端所在的目标终端,目标终端可以是在即时通信客户端接收到其他终端发来的目标链接或者用户在即时通信客户端输入目标链接的情况下,向服务器发送请求信息。请求信息可以用于获取目标链接的预览数据,也可以用于使得服务方进行一些处理。目标终端是服务器服务的终端,服务方在服务器中注册了目标链接,服务器接收到请求信息之后,对请求信息中的目标链接进行解析,根据注册信息从各个服务方中确定出注册了该目标链接的目标服务方。解析的方式可以是获取目标链接的主域名,通过主域名确定目标链接的目标服务方,在确定出目标服务方后,向目标服务方发送通知。通知中可以包括请求信息,通知可以是根据请求信息生成的,服务方和服务器之间预先约定了交互协议,交互协议中规定了对服务方的响应方式,服务方根据交互协议,确定与请求信息对应的响应方式并进行响应。
在本公开的一些实施例中,服务方在本公开的执行端上仅进行注册,而对于链接的响应由服务方进行执行,本公开实施例中采用的数据流向是从本公开的执行端到目标服务方的流向,这样,由各个服务方提供符合交互协议的数据或进行符合交互协议的操作,而不是由各个服务方预先在本公开的执行端中存储数据进行对目标链接的响应,这样避免了需要本公开的执行端的维护人员对接各个服务方,各个服务方只需要根据交互协议准备数据和响应操作即可,降低了开发成本,并且方便各个服务方能够根据自己需求进行个性化处理,在需要对因响应返回的数据进行修改时,无需与本公开的执行端进行交互,降低了维护成本。
在本公开的一些实施例中,向所述目标服务方发送通知,以使所述目标服务方根据所述请求信息和预先约定的交互协议对所述目标链接进行响应,包括:根据请求信息的类型向目标服务方发送通知,以使目标服务方返回与请求信息的类型对应的预览数据,其中,请求信息的类型与目标链接在目标终端中的状态相关联。方法还包括:响应于目标服务方发来的预览数据,向目标终端发送预览数据,以使目标终端生成目标链接的预览视图。
在本公开的一些实施例中,请求信息可以是即时通信客户端发送获取目标链接的预览视图的请求信息。请求信息到达本公开的执行端,根据目标链接确定目标服务方,将请求信息发送到目标服务方,目标服务方处理目标链接,最终返回预览数据,目标终端收到预览数据渲染出目标链接的预览卡片。一些实施例中,从目标服务方获取到预览数据之后,可以将预览数据直接转发给目标终端。另一些实施例中,也可以是对预览数据进行加工后,将加工后的预览数据转发给目标终端,例如可以根据预览数据确定预览数据对应的预览视图模板,将预览视图模板和预览数据一起发给目标终端从而使得目标终端根据预览视图模板和预览数据生成预览视图。
在本公开的一些实施例中,目标链接在目标终端中的状态包括:待发送状态、发送状态,已发送状态、已接收状态等,目标链接在目标终端中的状态不同时,可以发送不同类型的请求信息,因此,目标终端向发送的请求信息可以有一个或多个,目标终端中的目标链接的状态不同时,所显示的预览视图可以不同,且显示的位置可以不同,例如在待发送时,可以显示缩略的预览视图,且可以显示在信息输入框中。在已发送时,可以显示完整的预览视图,并可以显示在会话界面中。因为在待发送时 用户可能会不发送,如果生成完整的缩略视图可能会造成数据传输的浪费。在接收到目标终端发送的请求信息之后,确定请求信息的类型,不同类型的请求信息对应的预览数据可以不完全相同,从而实现预览视图的不同。
在本公开的一些实施例中,根据请求信息的类型向目标服务方发送通知,以使目标服务方返回目标链接的预览数据,包括:确定请求信息为第一类请求信息,向目标服务方发送通知,以使目标服务方的返回目标链接的第一类预览数据,其中,第一类请求信息为目标终端响应于目标消息位于信息输入框而发送的,目标消息包括目标链接,第一类预览数据用于生成缩略的预览视图。
一些实施例中,当目标消息为目标终端中的含有目标链接的消息,信息输入框为用于输入信息的输入框,目标消息在信息输入框中表示目标消息还未发送出去,被发送出去的消息位于会话界面,此时目标终端发送第一类请求信息,在接收到第一类请求信息之后,从目标服务方中获取第一类预览数据,然后将第一类预览数据发送给目标终端,以使目标终端生成缩略的预览视图。一些实施例中,第一类预览数据可以包括图标和标题,此时生成的缩略的预览视图为图标和标题组成的预览视图,例如目标链接为文档链接时,生成文档图标和文档的标题,从而使得目标终端的用户在信息输入框中输入目标链接之后可以直接得知该目标链接的类型和标题,而无需触发该目标链接。
在本公开的一些实施例中,根据请求信息的类型向目标服务方发送通知,以使目标服务方返回目标链接的预览数据,包括:确定请求信息为第二类请求信息,向目标服务方发送通知,以使目标服务方返回目标链接的第二类预览数据,其中,第二类请求信息为目标终端响应于在会话界面接收到目标消息而发送的,目标消息包括目标链接,第二类预览数据用于生成完整的预览视图。
一些实施例中,目标终端中可以有即时通信客户端,目标消息被发送到会话界面后,不再位于信息输入框内,此时目标终端生成第二类请求信息,接收到目标终端发来的第二类请求信息,将从目标服务方获取第二类预览数据。一些实施例中,第二类预览数据可以包括第一类预览数据和其他数据,另一些实施例中,如果之前已经为目标终端发送过第一类预览数据,则可以只发送第二类预览数据中除了第一类预览数据以外的其他数据,以减少数传输量。将第二类预览数据转发给目标终端,从而使得目标终端生成完整的预览视图,完整的预览视图相比于缩略的预览视图,其区别可以在于:完整的预览视图中显示了目标链接对应的内容的信息。例如完整的预览视图可以显示目标链接对应的内容的缩略图、内容的摘要等,而缩略的预览视图可以没有显示目标链接对应的内容的缩略图。
在本公开的一些实施例中,所述请求信息为第二类请求信息,响应于目标终端发来的与目标链接相关的第二类请求信息之前,还包括:响应于目标终端发来的目标链接相关的第一通知消息,向目标服务方发送通知,以告知目标服务方将获取目标链接的第二类预览数据,其中,第三类请求信息为目标终端响应于发送包括目标链接的目标消息而发送的。
一些实施例中,目标消息在位于会话界面以内之前,需要先执行发送目标消息的操作,例如在目标消息位于信息输入框时点击发送按钮或点击回车,目标终端在发送第二类请求信息之前,先发送第三类请求信息,因为完整的预览视图所需要的第二类预览数据的数据量通常较大,无论是目标消息的发送方还是接收方,都会需要生成预览视图,因此在发送目标消息时提前通知以使得目标服务方能够提前准备,提高之后获取第二类预览数据的速度。
在本公开的一些实施例中,响应于目标终端发来的与目标链接相关的请求信息,根据注册信息确定目标链接的目标服务方,向所述目标服务方发送通知,以使目标服务方根据请求信息和预先约定的交互协议对目标链接进行响应,包括:响应于目标终端发来的包括操作信息的第四类请求信息,向目标服务方发送包括操作信息的通知,以使目标服务方根据操作信息进行处理,所述方法还包括:接收目标服务方返回的处理结果,其中,第四类请求信息为目标终端响应于对目标信息执行操作信息而发送的,目标消息包括目标链接。
一些实施例中,目标终端的用户可以对目标消息执行操作信息。例如目标消息被发送到会话界面后,可以撤回消息,可以点击查看,可以点击目标消息上的控件。例如目标链接为文档链接,文档链 接的预览视图中可以显示权限管理控件,用户可以通过权限管理控件管理接收到该目标消息的接收用户对于文档的权限。在目标终端的用户执行了该操作信息后,发送第四类请求信息,接收到第四类请求信息后,则需要告知目标服务方,即发送通知,以使目标服务方进行处理。
在本公开的一些实施例中,若操作信息为撤回目标消息的操作,目标服务方根据操作信息进行处理,包括:对通过目标链接所在的目标消息赋予的权限进行回收。
一些实施例中,目标消息为目标终端中,在目标消息被发送到会话界面之后,可以会撤回目标消息,而在目标消息位于会话界面期间,可能用户通过目标链接进行了权限操作,例如目标链接为文档链接,用户通过文档链接的预览视图赋予了其他用户编辑或查看该文档的权限,此时,在目标消息被撤回之后,通过撤回前的预览视图所进行过的权限操作将会被取消,被赋予的相关权限将会被回收。
在本公开的一些实施例中,还包括:响应于接收目标服务方发来的更新数据,向目标终端发送更新数据以使目标终端更新目标链接的预览视图。一些实施例中,对于目标服务方,其可能主动修改目标链接对应的预览视图。例如目标链接的内容的标题变更后,此时目标服务方发送目标链接的更新数据,在接收到更新数据之后向目标终端发送该更新数据,以使目标终端更新目标链接的预览视图。
在本公开的一些实施例中,响应于服务方的注册操作,保存所述服务方的注册信息,包括:响应于服务方的注册链接请求,确定待注册链接;对待注册链接进行检测,在检测通过后确定为服务方注册待注册链接。
一些实施例中,服务方需要先进行注册,以本公开提出的信息处理方法用于服务器为例,服务方需要先在服务器上进行注册,注册时需要关联链接,注册后,服务方可以对其链接进行查看、编辑、删除等操作。
在本公开的一些实施例中,对待注册链接进行检测,包括:将待处理链接加载至内存中,并将待处理链接与已注册链接进行匹配,并与服务方的权限范围进行匹配;若待处理链接尚未被注册且位于服务方的权限范围内,则为服务方注册待注册链接。一些实施例中,在服务方注册链接时,需要确定注册的链接不是已有链接,避免重复注册,并且需要确定服务方具有注册该链接的权限,例如对于一些已知为其他公司的链接,即使这些其他公司尚未注册这些链接,也不能在其他公司未授权的情况下被注册,避免恶意注册。
为了更好的说明本公开实施例中提出的方法,以下结合附图2至图4提出一个具体的实施例。以本公开提出的信息的处理方法用于目标终端中的即时通信客户端的服务器为例,图2和图3中的管理模块、接口模块、开放模块、检测模块为服务器的模块,接口模块设计链接预览接入注册表,管理模块存储服务方接入的相关信息,包括应用信息、租户信息、域名、路径、回调地址等等信息。服务方通过开放模块可以发起接入的注册,发起注册后接口模块会做冲突检测,检测成功后发起管理员进行检测,检测通过后该注册信息将会通知接口模块,修改注册表信息。后续服务方通过开放模块,可以查看/管理注册的链接。
信息的处理方法一个具体的流程如图4所示:目标终端在目标链接位于信息输入框尚未发送时,会通过目标终端向服务器的管理模块发送第一类请求信息,服务器将其发送到目标服务方,目标服务方返回第一类预览数据,从而使得目标终端生成缩略的预览视图,第一类预览数据包括标题和图标,目标终端在接收到第一类预览数据后在信息输入框中生成缩略的预览视图。在用户通过目标终端发送目标链接后,向服务器发送第三类请求信息,服务器向目标服务方发送通知息,以使服务方提前准备第二类预览数据,在目标链接被发送到会话界面后,目标终端向服务器发送第二类请求信息,服务器从目标服务方获取第二类预览数据,并转发给目标终端,从而生成完整的预览视图。用户可以通过目标终端对包含目标链接的目标消息执行操作信息,此时会向服务器发送第四类请求信息,服务器向目标服务方发送通知,服务方会对其进行处理,并将处理结果返回服务器,服务器根据处理结果的不同,可以告知或不告知目标终端。例如用户撤回目标消息,目标服务器可以进行权限回收、数据销毁等,用户删除目标消息,也可以通知服务器和目标服务方,用户点击目标链接的预览视图,将产生读取请 求发送给服务器,服务器转发给目标服务方,目标服务方返回被读取的数据给服务器,服务器转发给目标终端,在目标服务方更新目标链接的预览视图时,向服务器发送更新数据,服务器向目标终端推送更新数据以更新目标链接的预览视图。
本公开一些实施例中还提供一种信息处理装置,包括:
注册模块,用于响应于服务方的注册操作,保存所述服务方的注册信息,所述注册信息包括所述服务方注册的链接;
通信模块,用于响应于目标终端发来的与目标链接相关的请求信息,根据所述注册信息确定所述目标链接的目标服务方,向所述目标服务方发送通知,以使所述目标服务方根据所述请求信息和预先约定的交互协议对所述目标链接进行响应;
其中,所述交互协议用于规定所述服务方对链接相关的不同信息的响应方式。
一些实施例中,向目标服务方发送通知,以使目标服务方根据请求信息和预先约定的交互协议对目标链接进行响应,包括:
根据请求信息的类型向目标服务方发送通知,以使目标服务方返回请求信息的类型对应的预览数据,其中,请求信息的类型与目标链接在目标终端中的状态相关联;
通信模块还用于:响应于目标服务方发来的预览数据,向目标终端发送预览数据,以使目标终端生成目标链接的预览视图。
一些实施例中,根据请求信息的类型向目标服务方发送通知,以使目标服务方返回目标链接的预览数据,包括:
确定请求信息为第一类请求信息,向目标服务方发送通知,以使目标服务方返回目标链接的第一类预览数据,其中,第一类请求信息为目标终端响应于目标消息位于信息输入框而发送的,目标消息包括目标链接,第一类预览数据用于生成缩略的预览视图。
一些实施例中,根据请求信息的类型向目标服务方发送通知,以使目标服务方返回目标链接的预览数据,包括:
确定请求信息为第二类请求信息,向目标服务方发送通知,以使目标服务方返回目标链接的第二类预览数据,其中,第二类请求信息为目标终端响应于在会话界面接收到目标消息而发送的,目标消息包括目标链接,第二类预览数据用于生成完整的预览视图。
一些实施例中,请求信息为第二类请求信息,通信模块还用于在响应于目标终端发来的与目标链接相关的第二类请求信息之前,响应于目标终端发来的目标链接相关的第三类请求信息,向目标服务方发送通知,以告知目标服务方将获取目标链接的第二类预览数据,其中,第三类请求信息为目标终端响应于发送包括目标链接的目标消息而发送的。
一些实施例中,响应于目标终端发来的与目标链接相关的请求信息,根据注册信息确定目标链接的目标服务方,向目标服务方发送通知,以使目标服务方根据请求信息和预先约定的交互协议对目标链接进行响应,包括:响应于目标终端发来的包括操作信息的第四类请求信息,向目标服务方发送包括操作信息的通知,以使目标服务方根据操作信息进行处理;
通信模块还用于:接收目标服务方返回的处理结果,其中,第四类请求信息为目标终端响应于对目标信息执行操作信息而发送的,目标消息包括目标链接。
一些实施例中,若操作信息为撤回目标消息的操作,目标服务方根据操作信息进行处理,包括:对通过目标链接所在的目标消息赋予的权限进行回收。
一些实施例中,通信模块还用于响应于接收目标服务方发来的更新数据,向目标终端发送更新数据以使目标终端更新目标链接的预览视图。
对于装置的实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离模块说明的模块可以是或者也 可以不是分开的。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
以上,基于实施例和应用例说明了本公开的方法及装置。此外,本公开还提供一种电子设备及计算机可读存储介质,以下说明这些电子设备和计算机可读存储介质。
下面参考图5,其示出了适于用来实现本公开实施例的电子设备(例如终端设备或服务器)800的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图中示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
电子设备800可以包括处理装置(例如中央处理器、图形处理器等)801,其可以根据存储在只读存储器(ROM)802中的程序或者从存储装置808加载到随机访问存储器(RAM)803中的程序而执行各种适当的动作和处理。在RAM803中,还存储有电子设备800操作所需的各种程序和数据。处理装置801、ROM 802以及RAM 803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。
通常,以下装置可以连接至I/O接口805:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置806;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置807;包括例如磁带、硬盘等的存储装置808;以及通信装置809。通信装置809可以允许电子设备800与其他设备进行无线或有线通信以交换数据。虽然图中示出了具有各种装置的电子设备800,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置809从网络上被下载和安装,或者从存储装置808被安装,或者从ROM 802被安装。在该计算机程序被处理装置801执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述的本公开的方法。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开的一个或多个实施例,提供了一种信息处理方法,包括:
响应于服务方的注册操作,保存服务方的注册信息,注册信息包括服务方注册的链接;
响应于目标终端发来的与目标链接相关的请求信息,根据注册信息确定目标链接的目标服务方,向目标服务方发送通知,以使目标服务方根据请求信息和预先约定的交互协议对目标链接进行响应;
其中,交互协议用于规定服务方对链接相关的不同信息的响应方式。
根据本公开的一个或多个实施例,提供了一种信息处理方法,向目标服务方发送通知,以使目标服务方根据请求信息和预先约定的交互协议对目标链接进行响应,包括:
根据请求信息的类型向目标服务方发送通知,以使目标服务方返回请求信息的类型对应的预览数据,其中,请求信息的类型与目标链接在目标终端中的状态相关联;
方法还包括:响应于目标服务方发来的预览数据,向目标终端发送预览数据,以使目标终端生成目标链接的预览视图。
根据本公开的一个或多个实施例,提供了一种信息处理方法,根据请求信息的类型向目标服务方发送通知,以使目标服务方返回目标链接的预览数据,包括:
确定请求信息为第一类请求信息,向目标服务方发送通知,以使目标服务方返回目标链接的第一类预览数据,其中,第一类请求信息为目标终端响应于目标消息位于信息输入框而发送的,目标消息包括目标链接,第一类预览数据用于生成缩略的预览视图。
根据本公开的一个或多个实施例,提供了一种信息处理方法,根据请求信息的类型向目标服务方发送通知,以使目标服务方返回目标链接的预览数据,包括:
确定请求信息为第二类请求信息,向目标服务方发送通知,以使目标服务方返回目标链接的第二类预览数据,其中,第二类请求信息为目标终端响应于在会话界面接收到目标消息而发送的,目标消息包括目标链接,第二类预览数据用于生成完整的预览视图。
根据本公开的一个或多个实施例,提供了一种信息处理方法,请求信息为第二类请求信息,响应于目标终端发来的与目标链接相关的第二类请求信息之前,还包括:
响应于目标终端发来的目标链接相关的第三类请求信息,向目标服务方发送通知,以告知目标服务方将获取目标链接的第二类预览数据,其中,第三类请求信息为目标终端响应于发送包括目标链接的目标消息而发送的。
根据本公开的一个或多个实施例,提供了一种信息处理方法,响应于目标终端发来的与目标链接相关的请求信息,根据注册信息确定目标链接的目标服务方,向目标服务方发送通知,以使目标服务方根据请求信息和预先约定的交互协议对目标链接进行响应,包括:响应于目标终端发来的包括操作信息的第四类请求信息,向目标服务方发送包括操作信息的通知,以使目标服务方根据操作信息进行处理;
方法还包括:接收目标服务方返回的处理结果,其中,第四类请求信息为目标终端响应于对目标信息执行操作信息而发送的,目标消息包括目标链接。
根据本公开的一个或多个实施例,提供了一种信息处理方法,包括:
若操作信息为撤回目标消息的操作,目标服务方根据操作信息进行处理,包括:对通过目标链接所在的目标消息赋予的权限进行回收。
根据本公开的一个或多个实施例,提供了一种信息处理方法,还包括:
响应于接收目标服务方发来的更新数据,向目标终端发送更新数据以使目标终端更新目标链接的预览视图。
根据本公开的一个或多个实施例,提供了一种信息处理装置,其包括:
注册模块,用于响应于服务方的注册操作,保存服务方的注册信息,注册信息包括服务方注册的链接;
通信模块,用于响应于目标终端发来的与目标链接相关的请求信息,根据注册信息确定目标链接的目标服务方,向目标服务方发送通知,以使目标服务方根据请求信息和预先约定的交互协议对目标链接进行响应;
其中,交互协议用于规定服务方对链接相关的不同信息的响应方式。
根据本公开的一个或多个实施例,提供了一种电子设备,包括:至少一个存储器和至少一个处理器;
其中,所述至少一个存储器用于存储程序代码,所述至少一个处理器用于调用所述至少一个存储器所存储的程序代码执行上述中任一项所述的方法。
根据本公开的一个或多个实施例,提供了一种计算机可读存储介质,所述计算机可读存储介质用于存储程序代码,所述程序代码在被处理器运行时,促使所述处理器执行上述方法。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱 离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。

Claims (11)

  1. 一种信息处理方法,其特征在于,包括:
    响应于服务方的注册操作,保存所述服务方的注册信息,所述注册信息包括所述服务方注册的链接;
    响应于目标终端发来的与目标链接相关的请求信息,根据所述注册信息确定所述目标链接的目标服务方,向所述目标服务方发送通知,以使所述目标服务方根据所述请求信息和预先约定的交互协议对所述目标链接进行响应;
    其中,所述交互协议用于规定所述服务方对链接相关的不同信息的响应方式。
  2. 根据权利要求1所述的方法,其特征在于,向所述目标服务方发送通知,以使所述目标服务方根据所述请求信息和预先约定的交互协议对所述目标链接进行响应,包括:
    根据所述请求信息的类型向所述目标服务方发送通知,以使所述目标服务方返回所述请求信息的类型对应的预览数据,其中,所述请求信息的类型与所述目标链接在所述目标终端中的状态相关联;
    所述方法还包括:响应于所述目标服务方发来的所述预览数据,向所述目标终端发送所述预览数据,以使所述目标终端生成所述目标链接的预览视图。
  3. 根据权利要求2所述的方法,其特征在于,根据所述请求信息的类型向所述目标服务方发送通知,以使所述目标服务方返回所述目标链接的预览数据,包括:
    确定所述请求信息为第一类请求信息,向所述目标服务方发送通知,以使所述目标服务方返回所述目标链接的第一类预览数据,其中,所述第一类请求信息为所述目标终端响应于目标消息位于信息输入框而发送的,所述目标消息包括所述目标链接,所述第一类预览数据用于生成缩略的预览视图。
  4. 根据权利要求2或3所述的方法,其特征在于,根据所述请求信息的类型向所述目标服务方发送通知,以使所述目标服务方返回所述目标链接的预览数据,包括:
    确定所述请求信息为第二类请求信息,向所述目标服务方发送通知,以使所述目标服务方返回所述目标链接的第二类预览数据,其中,所述第二类请求信息为所述目标终端响应于在会话界面接收到目标消息而发送的,所述目标消息包括所述目标链接,所述第二类预览数据用于生成完整的预览视图。
  5. 根据权利要求4所述的方法,其特征在于,所述请求信息为第二类请求信息,响应于目标终端发来的与目标链接相关的第二类请求信息之前,还包括:
    响应于所述目标终端发来的所述目标链接相关的第三类请求信息,向所述目标服务方发送通知,以告知所述目标服务方将获取所述目标链接的第二类预览数据,其中,所述第三类请求信息为所述目标终端响应于发送包括所述目标链接的目标消息而发送的。
  6. 根据权利要求1所述的方法,其特征在于,响应于目标终端发来的与目标链接相关的请求信息, 根据所述注册信息确定所述目标链接的目标服务方,向所述目标服务方发送通知,以使所述目标服务方根据所述请求信息和预先约定的交互协议对所述目标链接进行响应,包括:响应于所述目标终端发来的包括操作信息的第四类请求信息,向所述目标服务方发送包括所述操作信息的通知,以使所述目标服务方根据所述操作信息进行处理;
    所述方法还包括:接收所述目标服务方返回的处理结果,其中,所述第四类请求信息为所述目标终端响应于对目标信息执行所述操作信息而发送的,所述目标消息包括所述目标链接。
  7. 根据权利要求6所述的方法,其特征在于,包括:
    若所述操作信息为撤回所述目标消息的操作,所述目标服务方根据所述操作信息进行处理,包括:对通过所述目标链接所在的目标消息赋予的权限进行回收。
  8. 根据权利要求1或2所述的方法,其特征在于,还包括:
    响应于接收所述目标服务方发来的更新数据,向所述目标终端发送所述更新数据以使所述目标终端更新所述目标链接的预览视图。
  9. 一种信息处理装置,其特征在于,包括:
    注册模块,用于响应于服务方的注册操作,保存所述服务方的注册信息,所述注册信息包括所述服务方注册的链接;
    通信模块,用于响应于目标终端发来的与目标链接相关的请求信息,根据所述注册信息确定所述目标链接的目标服务方,向所述目标服务方发送通知,以使所述目标服务方根据所述请求信息和预先约定的交互协议对所述目标链接进行响应;
    其中,所述交互协议用于规定所述服务方对链接相关的不同信息的响应方式。
  10. 一种电子设备,包括:
    至少一个存储器和至少一个处理器;
    其中,所述至少一个存储器用于存储程序代码,所述至少一个处理器用于调用所述至少一个存储器所存储的程序代码执行权利要求1至8中任一项所述的方法。
  11. 一种计算机可读存储介质,所述计算机可读存储介质用于存储程序代码,所述程序代码在被处理器运行时,促使所述处理器执行权利要求1至8中任一项所述的方法。
PCT/CN2023/089782 2022-04-27 2023-04-21 信息处理方法、装置、电子设备和存储介质 WO2023207788A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210454957.8A CN114861106A (zh) 2022-04-27 2022-04-27 信息处理方法、装置、电子设备和存储介质
CN202210454957.8 2022-04-27

Publications (1)

Publication Number Publication Date
WO2023207788A1 true WO2023207788A1 (zh) 2023-11-02

Family

ID=82632969

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/089782 WO2023207788A1 (zh) 2022-04-27 2023-04-21 信息处理方法、装置、电子设备和存储介质

Country Status (2)

Country Link
CN (1) CN114861106A (zh)
WO (1) WO2023207788A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114861106A (zh) * 2022-04-27 2022-08-05 北京字跳网络技术有限公司 信息处理方法、装置、电子设备和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009836A (zh) * 2016-11-01 2018-05-08 上海掌门科技有限公司 一种广告信息加载的方法及设备
CN113688417A (zh) * 2020-05-19 2021-11-23 永中软件股份有限公司 一种控制预览页面次数的方法
CN114168869A (zh) * 2021-11-25 2022-03-11 北京字跳网络技术有限公司 一种信息显示方法、装置、系统及存储介质
CN114861106A (zh) * 2022-04-27 2022-08-05 北京字跳网络技术有限公司 信息处理方法、装置、电子设备和存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009836A (zh) * 2016-11-01 2018-05-08 上海掌门科技有限公司 一种广告信息加载的方法及设备
CN113688417A (zh) * 2020-05-19 2021-11-23 永中软件股份有限公司 一种控制预览页面次数的方法
CN114168869A (zh) * 2021-11-25 2022-03-11 北京字跳网络技术有限公司 一种信息显示方法、装置、系统及存储介质
CN114861106A (zh) * 2022-04-27 2022-08-05 北京字跳网络技术有限公司 信息处理方法、装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN114861106A (zh) 2022-08-05

Similar Documents

Publication Publication Date Title
WO2022143855A1 (zh) 文档权限的处理方法、装置、电子设备和存储介质
WO2022135369A1 (zh) 打印方法、装置和电子设备
CN112866385B (zh) 接口调用方法、装置、电子设备和存储介质
WO2022111290A1 (zh) 展示方法、装置和电子设备
WO2022199376A1 (zh) 内容的打印方法、装置、设备及存储介质
WO2021197161A1 (zh) 图标更新方法、装置和电子设备
WO2023207788A1 (zh) 信息处理方法、装置、电子设备和存储介质
WO2022083589A1 (zh) 终端的控制方法、装置、终端和存储介质
CN112968871B (zh) 应用程序的登录方法、装置、可读介质和电子设备
US20240104671A1 (en) Method and apparatus for group management, electronic device, and storage medium
WO2021143317A1 (zh) 邀请链接信息处理方法、装置、电子设备及可读介质
WO2024032708A1 (zh) 信息处理方法、装置、电子设备和存储介质
US20230379279A1 (en) Interaction method and apparatus, and electronic device
WO2023202540A1 (zh) 信息处理方法、装置、电子设备和存储介质
WO2023185514A1 (zh) 传输消息的方法、装置、存储介质及电子设备
CN112131181A (zh) 存储路径的展示方法、装置以及电子设备
CN112256372A (zh) 信息处理方法、装置和电子设备
WO2022206287A1 (zh) 商服交互方法、装置、设备及存储介质
WO2022184037A1 (zh) 文档处理方法、装置、设备和介质
CN111444457B (zh) 数据发布方法、装置、存储介质及电子设备
CN111367590A (zh) 中断事件处理方法及其装置
CN111698242A (zh) 邮件正向代理方法、装置、系统、存储介质及电子设备
WO2023011523A1 (zh) 会话信息显示方法、装置和电子设备
WO2022222794A1 (zh) 交互方法、装置和电子设备
WO2023179739A1 (zh) 信息交互方法、装置和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23795221

Country of ref document: EP

Kind code of ref document: A1