CN108880992B - Data transmission method, computer device and storage medium - Google Patents

Data transmission method, computer device and storage medium Download PDF

Info

Publication number
CN108880992B
CN108880992B CN201810701146.7A CN201810701146A CN108880992B CN 108880992 B CN108880992 B CN 108880992B CN 201810701146 A CN201810701146 A CN 201810701146A CN 108880992 B CN108880992 B CN 108880992B
Authority
CN
China
Prior art keywords
data
transmitted
office platform
enterprise
enterprise office
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
CN201810701146.7A
Other languages
Chinese (zh)
Other versions
CN108880992A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810701146.7A priority Critical patent/CN108880992B/en
Publication of CN108880992A publication Critical patent/CN108880992A/en
Application granted granted Critical
Publication of CN108880992B publication Critical patent/CN108880992B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A data transmission method, a computer device and a storage medium, the data transmission method comprising: acquiring a data transfer instruction, wherein the data transfer instruction carries data to be transmitted and an enterprise office platform identifier; and responding to the data transfer instruction, calling a software tool development kit interface of the enterprise office platform corresponding to the enterprise office platform identification, and sending data information to the enterprise office platform, wherein the data information comprises the data to be transmitted, and the data to be transmitted is used for the enterprise office platform to transmit the data to the public storage space corresponding to the enterprise office platform. By adopting the method, the data to be transmitted can be transmitted to the enterprise office platform, and the data can be conveniently checked.

Description

Data transmission method, computer device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data transmission method, a computer device, and a storage medium.
Background
With the continuous development of computer technology and mobile internet technology, a large number of instant messaging applications are emerging, and a lot of convenience is provided for user communication. Through the instant messaging application, the users can transmit messages, and the messages among the users can be conveniently communicated. For example, both QQ and WeChat have become personal instant messaging applications commonly used in people's daily ditches, and especially WeChat is not only convenient for users to communicate, but also can realize other functions, and is enjoyed by more and more people.
After the user logs in the personal user account in the instant messaging application, the user can chat with other people, and a large amount of chat records can be generated in the chat process, wherein the chat records can include data such as pictures, videos, files, texts and the like. During the chat communication process between a user and a client of an enterprise to which the user belongs through an instant messaging application, valuable data for the enterprise may be generated. However, the instant chat application is associated with an individual user account, and only the individual user himself can see the data generated during the chat with the client. In addition, the individual user can carry out related office processes through an enterprise office platform integrating the communication tool and the office system, and the enterprise office platform can realize instant messaging, telephone calls, mails and other office applications (such as bulletin, attendance, leave requests, reimbursement and the like) suitable for office scenes in the office processes. However, each user (including the individual user) inside the enterprise cannot access and view the personal data of the individual user on the instant messaging application through the enterprise office platform, which brings great inconvenience to the user.
Disclosure of Invention
Therefore, it is necessary to provide a data transmission method, a computer device, and a storage medium for solving the problem that the existing enterprise office platform cannot acquire personal data in source applications, which is inconvenient.
A data transmission method, comprising the steps of:
acquiring a data transfer instruction, wherein the data transfer instruction carries data to be transmitted and an enterprise office platform identifier;
and responding to the data transfer instruction, calling a software tool development kit interface of the enterprise office platform corresponding to the enterprise office platform identification, and sending data information to the enterprise office platform, wherein the data information comprises data to be transmitted, and the data to be transmitted is used for the enterprise office platform to upload the data to a public storage space corresponding to the enterprise office platform.
A data transmission method, comprising the steps of:
receiving data information sent by a source application, wherein the data information comprises data to be transmitted;
and responding to the storage operation aiming at the data to be transmitted, and sending a storage request to the server, wherein the storage request carries the data to be transmitted and a target directory of a public storage space corresponding to an enterprise office platform in the server, and the storage request is used for requesting the server to store the data to be transmitted to the target directory corresponding to the public storage space.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method when the processor executes 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 data transmission method, the computer equipment and the storage medium, the software tool development kit of the enterprise office platform is embedded in the source application, the source application can send the data information to the enterprise office platform through the interface of the software tool development kit corresponding to the enterprise office platform, the data information can be transmitted to the enterprise office platform by the source application, and information transmission among different applications is achieved. The data to be transmitted is used for the enterprise office platform to upload the data to the corresponding file disk, namely, after the enterprise office platform receives the data information, the data to be transmitted carried by the data to be transmitted is obtained, and a storage request is sent to the server, so that the server can be requested to store the data to be transmitted in a target directory of a public storage space carried in the storage request, thereby realizing that the information to be transmitted by the source application is stored in the target directory of the public storage space corresponding to the enterprise office platform in the server, and each user under the enterprise office platform can access the public storage space to access and check the data to be transmitted, so that the user can check the data conveniently.
Drawings
FIG. 1 is a diagram illustrating an exemplary data transmission method;
FIG. 2 is a flow diagram illustrating a method for data transmission according to one embodiment;
FIG. 3 is a flow chart illustrating a data transmission method according to another embodiment;
FIG. 4 is a functional block diagram of a data transfer method of one embodiment;
FIG. 5 is a WeChat side chat session interface of an embodiment;
FIG. 6 is an enterprise WeChat-side file disk entry interface, under an embodiment;
FIG. 7 is an enterprise WeChat side save directory interface of an embodiment;
FIG. 8 is an enterprise WeChat-side target directory interface of an embodiment;
FIG. 9 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 further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the detailed description and specific examples, while indicating the scope of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
The data transmission method of the embodiments provided in the present application can be applied to the application environment as shown in fig. 1, where the application environment includes a terminal 10 and a server 20, and the terminal 10 can communicate with the server 20 through a network. A source application and an enterprise office platform may be installed in the terminal 10, and a user may record data by operating on the source application. Data to be transmitted can be determined from the recorded data, a software tool development kit (i.e., SDK) of the enterprise office platform is embedded in the source application, the source application can transmit the data to be transmitted to the enterprise office platform through an interface provided by the SDK corresponding to the enterprise office platform, and the enterprise office platform in the terminal 10 receives the data to be transmitted sent by the source application, so that the data can be transferred from the source application to the enterprise office platform. In order to facilitate the checking of the data to be transmitted by each user, the enterprise office platform can respond to the storage operation aiming at the data to be transmitted and send a storage request to the server, wherein the storage request carries the data to be transmitted and the target directory of the file disk in the server, and the storage request is used for requesting the server to store the data to be transmitted into the target directory corresponding to the file disk, namely the server can transmit the data to be transmitted carried by the server to the target directory of the file disk in the server after receiving the storage request. And when each subsequent user wants to check the data to be transmitted, the user can check the data by accessing the file disk in the server.
The server 20 may be implemented as a stand-alone server or as a server cluster comprising a plurality of servers. The terminal 10 may be any device capable of implementing smart input and output and starting applications, for example, a mobile terminal, which may be a smart phone, a tablet computer, a vehicle-mounted computer, a wearable smart device, or the like.
In one embodiment, as shown in FIG. 2, a data transmission method is provided. The method is exemplified by being applied to the terminal 10 in fig. 1, and particularly, the method can be applied to a source application of the terminal 10, and includes the following steps S210 to S220.
S210: and acquiring a data transfer instruction, wherein the data transfer instruction carries the data to be transmitted and the enterprise office platform identification.
The data to be transmitted is the data to be transmitted by the source application, and in the source application, a large amount of data can be correspondingly transmitted, and the data to be transmitted can be selected according to requirements. For example, a large amount of data such as pictures, videos, and files generated by operating in the source application are recorded, and a user can select data to be transmitted, that is, data to be transmitted, from the data in the source application, for example, if picture a needs to be transmitted, picture a is selected as the data to be transmitted.
The enterprise office platform is used as an effective office communication tool, improves the communication efficiency inside an enterprise, and has a certain promoting effect on improving the productivity of the enterprise. Enterprises can use the enterprise office platform as an office communication tool to complete communication such as instant messaging (chat), telephone, mail and the like in the office process and other office applications conforming to office scenes. In one example, the enterprise office platform can be an enterprise WeChat, and the enterprise can implement efficient office through the enterprise WeChat, and the enterprise office platform has a chat function and is integrated with a public fee telephone function and a mail function, and in addition, functions of announcement, attendance checking, leave asking, reimbursement and the like can be implemented in the enterprise office platform.
The mark refers to information capable of representing the unique identity of the object, and the enterprise office platform mark is information capable of representing the unique identity of the enterprise office platform. Different enterprise office platform correspond different enterprise office platform sign, can fix a position unique enterprise office platform through enterprise office platform sign, can know source application needs will wait to transmit data to which enterprise office platform.
The source application and the enterprise office platform can be installed on the terminal, and based on different function requirements, a user can respectively operate the source application and the enterprise office platform on the terminal to realize different functions. In order to enable the data corresponding to the source application to be transmitted to the enterprise office platform, the SDK corresponding to the enterprise office platform is embedded in the source application, that is, the SDK of the enterprise office platform is installed in the source application. When the source application obtains the data transfer instruction, the subsequent process of transmitting the data to be transmitted to the enterprise office platform can be carried out.
S220: and responding to the data transfer instruction, calling a software tool development kit interface of the enterprise office platform corresponding to the enterprise office platform identification, and sending data information to the enterprise office platform.
The data information comprises data to be transmitted, and the data to be transmitted is used for the enterprise office platform to upload the data to the public storage space corresponding to the enterprise office platform.
In the enterprise office platform, a corresponding interface is opened, and data can be received or sent through the opened interface. The SDK of the enterprise office platform is embedded in the source application, the SDK corresponding to the enterprise office platform comprises an interface corresponding to the enterprise office platform, after the data transfer instruction is obtained, the interface corresponding to the SDK of the enterprise office platform can be called by responding to the data transfer instruction, the data to be transmitted can be transmitted to the enterprise office platform through the interface corresponding to the SDK of the enterprise office platform, and cross-application data transmission is achieved.
The data to be transmitted is transmitted to the enterprise office platform, and can be used for the enterprise office platform to upload the data to a corresponding public storage space (for example, for enterprise WeChat, the public storage space can be called a file disk, namely a public file disk), so that each user under the enterprise office platform can access the public storage space to view the data to be transmitted, and each user under the enterprise office platform can view the data to be transmitted generated in the source application conveniently, and the user can view the data conveniently.
According to the data transmission method, the SDK of the enterprise office platform is embedded in the source application, the source application responds to the data transfer instruction after acquiring the data transfer instruction, the interface of the SDK corresponding to the enterprise office platform is called, the data information is sent to the enterprise office platform, the source application can transmit the data information to the enterprise office platform, information transmission among different applications is achieved, the data to be transmitted is used for the enterprise office platform to transmit the data to the file disk, namely, a user corresponding to a subsequent enterprise office platform can access the file disk to check the data to be transmitted, and even if the user corresponding to the enterprise office platform subsequently accesses and checks the data to be transmitted from the source application in the enterprise office platform.
In an example, the public storage space is a public storage space of the enterprise office platform corresponding to the server, and the data to be transmitted is used for the enterprise office platform to upload the data to the public storage space of the server. In practical application, different enterprises register different enterprise identifications on the enterprise office platform respectively, so that each enterprise identification has a corresponding public storage space in the server, and only users under the enterprise can access the public storage space. It can be understood that the public storage space is a public storage space corresponding to a current enterprise into which a current user enters in the enterprise office platform.
For example, user 1 has joined 2 enterprises, namely enterprise q1 and enterprise q2, respectively, and enterprise q1 and enterprise q2 have corresponding public storage spaces in the server, respectively. After the user 1 logs in the enterprise WeChat, the user 1 can select to enter the enterprise q1 or the enterprise q2, for example, if the current enterprise selected to enter by the user 1 is the enterprise q1, the data to be transmitted from the source application is uploaded to the public storage space corresponding to the enterprise q 1.
In one embodiment, the source application may be a personal instant messaging application, such as personal WeChat (a name distinguished from enterprise WeChat, which is essentially what people commonly speak as WeChat, a free application that provides instant services to terminals, which people often use to chat, share information, pay, etc.). The enterprise office platform can be a WeChat for the enterprise, namely an efficient office platform created for the enterprise.
Namely, the SDK of the enterprise wechat is embedded in the personal wechat, and the user can select data to be transmitted in the personal wechat, for example, a picture a, and the SDK of the enterprise wechat embedded in the personal wechat can transmit the picture a to the enterprise wechat through an interface provided by the SDK. The enterprise WeChat receives the picture A through the corresponding open interface, and the enterprise WeChat can upload the picture A to a public storage disk.
In one embodiment, the data information further includes a sticker identification.
In this embodiment, sending data information to the enterprise office platform includes: sending an open link carrying the label of the pasting board to an enterprise office platform; transmitting the data to be transmitted to the pasting board corresponding to the pasting board identification; and the pasting board is used for reading the data to be transmitted by the enterprise office platform.
The sticker sheet is an area in the storage space of the terminal, and can be used for placing data contents. The pasting board mark is used for indicating the unique identity of the pasting board, and the unique corresponding pasting board can be found through the pasting board mark. Open link (OpenURL), a method for solving interoperation of different digital resource systems and performing resource integration, is also a technical standard. It will be appreciated that in order to jump to a mechanism for other applications, where a "runnable" URL (uniform resource locator) with metadata information and resource address information may be attached, which may be used to solve the problem of dynamic linking of secondary document databases to the original document service, a link parser maintained by the service provider can dynamically generate open links on the relevant service web pages.
When the source application needs to transmit data to be transmitted to the enterprise office platform, the data transmission can be shared through the pasting board. Specifically, the paste board identifier can be placed into OpenURL, OpenURL is directly transmitted to the enterprise office platform through an interface of the enterprise office platform SDK, that is, the enterprise office platform is informed of which paste board to which the data to be transmitted is placed for sharing, and the data to be transmitted is transmitted to the paste board corresponding to the paste board identifier, so that sharing of the data to be transmitted is achieved. After receiving the OpenURL, the enterprise office platform can read the corresponding pasting board to obtain the data to be transmitted based on the pasting board identifier carried by the enterprise office platform. So, realize that the less board sign of pasting of data volume passes through openURL and transmits for enterprise's office platform, the great data content of data volume promptly waits to transmit data accessible and shares for enterprise's office platform through pasting the board mode, enterprise's office platform reads data from pasting the board.
In one embodiment, transmitting data to be transmitted to a pasting board corresponding to a pasting board identifier includes: converting the data to be transmitted into corresponding binary data based on the attribute information of the data to be transmitted; and transmitting the binary data corresponding to the data to be transmitted to the pasting board corresponding to the pasting board identification. The pasting board is used for reading binary data corresponding to the data to be transmitted by the enterprise office platform.
The data to be transmitted is converted into binary data, and the binary data is transmitted to the pasting board, so that the data transmission is facilitated. In addition, different objects can perform different analyses on the same binary data, and different results are obtained. Therefore, in this embodiment, the conversion can be performed based on the attribute information corresponding to the data to be transmitted, so that when the binary data is analyzed, the binary data is analyzed based on the attribute information, and then the correct data to be transmitted can be obtained, so as to ensure the accuracy of the data to be transmitted obtained through analysis. In one example, the attribute information may include at least any one of a data size, a data type, and a name. The data types may include picture types, video types, file types, and the like, for example, the data to be transmitted is a picture, the data type corresponding to the picture is a picture type, the data to be transmitted is a video, and the data type corresponding to the video is a video type.
In this embodiment, the binary data corresponding to the data to be transmitted is put in the pasting board, and correspondingly, when the corresponding pasting board is read by the enterprise office platform based on the pasting board identifier, the binary data corresponding to the data to be transmitted is read. In one example, the source application converts the data to be transmitted into binary data via the SDK of the enterprise office platform.
In one embodiment, the open link also carries attribute information corresponding to the data to be transmitted.
In the process of transmitting data to the enterprise office platform by the source application, not only the data to be transmitted needs to be transmitted, but also the attribute information corresponding to the data to be transmitted needs to be transmitted to the enterprise office platform. That is, the data information further includes attribute information corresponding to the data to be transmitted. The attribute information is used for the enterprise office platform to analyze the binary data based on the attribute information to determine the data to be transmitted. Specifically, the attribute information is transmitted to the enterprise office platform in an OpenURL manner, that is, both the sticker board identifier and the attribute information are transmitted to the enterprise office platform in an OpenURL manner. The enterprise office platform can analyze the binary data according to the attribute information to accurately determine the data to be transmitted.
In one embodiment, the open link also carries the source application identification.
And in the process of transmitting the data to the enterprise office platform by the source application, transmitting a source application identifier to the enterprise office platform, namely the data information also comprises the source application identifier. Specifically, the source application identifier is transmitted to the enterprise office platform by means of OpenURL. The enterprise office platform can determine the source application based on the source application identifier, namely, the initiator of the data to be transmitted can be known, so that the subsequent enterprise office platform can perform corresponding processing operation based on the source application identifier. Specifically, the source application identifier is used for the enterprise office platform to detect whether the source application identifier belongs to a preset authorized application identifier set, that is, to be used as a basis for whether the enterprise office platform performs a subsequent storage process.
In one embodiment, as shown in FIG. 3, a data transmission method is provided. The method is exemplified by being applied to the terminal 10 in fig. 1, and particularly, the method can be applied to an enterprise office platform of the terminal 10, and includes the following steps S310 to S320.
S310: and receiving data information sent by the source application, wherein the data information comprises data to be transmitted.
After receiving the data information sent by the source application, the enterprise office platform can obtain the information to be transmitted carried by the enterprise office platform.
S330: and responding to the saving operation aiming at the data to be transmitted, and sending a saving request to the server.
The storage request carries the data to be transmitted and a target directory of a public storage space corresponding to an enterprise office platform in the server, and the storage request is used for requesting the server to store the data to be transmitted into the target directory of the public storage space corresponding to the enterprise office platform.
In the enterprise office platform, after the data information is received, the data information can be stored in a background, namely a server, corresponding to the enterprise office platform. Specifically, the storage operation is performed in the enterprise office platform, and the enterprise office platform responds to the storage operation for the data to be transmitted, and then sends a storage request to the server to request the server to store the data to be transmitted into the target directory corresponding to the public storage space. Namely, the enterprise office platform has a data sharing function (a function of uploading data to a public storage space of the server), and the data in the corresponding public storage space of the enterprise is shared by the enterprise. In the public storage space of the server corresponding to the enterprise office platform, the data uploaded by the enterprise office platform can be managed in a unified manner, namely, each user under the enterprise office platform can access the public storage space to view and acquire the data content in the public storage space. And in the public storage space of the server, each storage directory can be arranged, and a user can check each storage directory on the enterprise office platform and transmit data to be transmitted to any storage directory. In this embodiment, the storage request carries a target directory of a public storage space in the server, that is, a storage directory in which the user stores data to be transmitted. After receiving the storage request, the server can store the data to be transmitted into the target directory corresponding to the file disk, so that the data to be transmitted can be transferred from the source application to the public storage space, and the data can be conveniently checked by a subsequent user.
According to the data transmission method, the enterprise office platform receives the data information, when the data information is responded to the storage operation of the data to be transmitted, the storage request can be sent to the server, the server is requested to store the data to be transmitted into the target directory of the public storage space carried in the storage request, the information to be transmitted by the source application is stored into the target directory of the public storage space of the server, and each user under the enterprise office platform can access and check the public storage space subsequently through the enterprise office platform, so that the user can check the information to be transmitted conveniently.
In one embodiment, a target user identifier of an enterprise in the enterprise office platform may correspond to multiple public storage spaces, that is, the target user identifier is associated with multiple enterprises, the target user identifier may selectively enter different public storage spaces, and the public storage space in the server is a public storage space corresponding to an enterprise where the target user identifier currently logged in the enterprise office platform is currently located.
For example, the enterprise office platform is an enterprise wechat, and the target user 1 under the enterprise wechat may correspond to a plurality of public storage spaces, that is, the target user 1 joins a plurality of enterprises and becomes a user under each enterprise. It is to be appreciated that user 1 under enterprise WeChat may correspond to multiple enterprise identities. In the enterprise WeChat, the currently logged in is the target user 1, the target user 1 selects to switch into an enterprise X, that is, the currently logged in target user 1 currently selects to enter the enterprise X, and the enterprise X corresponds to the file disk W in the server, which means that the file disk corresponding to the enterprise X where the currently logged in target user 1 is currently located is the file disk W. And if the data to be transmitted by the source application is the picture A, the corresponding storage request is used for requesting the server to store the picture A into the target directory corresponding to the file disk W. In the enterprise WeChat, each user under the enterprise X can access the file disk W, and can check the stored data content. That is, each user in the enterprise X can be understood as each corresponding user in the corresponding file disk W.
In one embodiment, the source application transmits data information through an interface provided by an SDK of the enterprise office platform, and correspondingly, in the enterprise office platform, receives data information through an interface corresponding to the interface provided by the SDK of the enterprise office platform.
In one embodiment, after sending the save request to the server in response to the save operation for the data to be transmitted, the method may further include the steps of: responding to the viewing operation aiming at the public storage space, and acquiring a storage directory interface corresponding to the public storage space; responding to the selection operation acting on the selected directory in the directory storage interface, and acquiring and displaying the attribute data of each data content in the selected directory; and responding to the viewing operation of the target attribute data in the attribute data of each data content, and acquiring and displaying the target data content corresponding to the target attribute data in each data content.
Wherein each data content comprises data to be transmitted. The attribute data may include name information, etc., that is, after the user selects and stores the selected directory in the directory interface, the user may jump to the interface corresponding to the selected directory, where the interface displays name information of each data content in the selected directory, and when specific data content needs to be viewed, a viewing operation is performed (for example, a click operation may be performed at a position corresponding to the name information), that is, the corresponding data content may be obtained.
In addition, after obtaining and displaying the attribute data of each data content in the selected directory, the method may further include: and responding to the downloading operation of the target attribute data in the attribute data of each data content, and downloading the target data content corresponding to the target data. Therefore, the user can check the target data content without re-entering the enterprise office platform.
In one embodiment, the data information further includes a sticker identification.
In this embodiment, the receiving of the data information sent by the source application includes: receiving an open link which is sent by a source application and carries a pasting board identifier; and reading the pasting board corresponding to the pasting board identification to obtain the data to be transmitted.
The source application can put the paste board identifier into OpenURL, and directly transmit the OpenURL to the enterprise office platform through an interface of the SDK. After receiving the OpenURL, the enterprise office platform can read the corresponding pasting board to obtain the data to be transmitted based on the pasting board identifier carried by the enterprise office platform. So, realize that the less board sign of pasting of data volume passes through openURL and transmits for enterprise's office platform, the great data content of data volume promptly waits to transmit data accessible and shares for enterprise's office platform through pasting the board mode, enterprise's office platform reads data from pasting the board.
In one embodiment, the open link also carries attribute information corresponding to the data to be transmitted.
In this embodiment, read the pasting board that the pasting board sign corresponds, obtain and wait to transmit data, include: reading the pasting board corresponding to the pasting board identification, and determining binary data; and analyzing the binary data based on the attribute information corresponding to the data to be transmitted, and determining the data to be transmitted.
Different applications can perform different analyses on the same binary data, and further obtain different results. Therefore, in this embodiment, the conversion can be performed based on the attribute information corresponding to the data to be transmitted, and correspondingly, after the enterprise office platform receives the binary data, the enterprise office platform analyzes the binary data based on the attribute information corresponding to the data to be transmitted, so as to obtain correct data to be transmitted, so as to ensure the accuracy of the analyzed data to be transmitted.
In one embodiment, after receiving the data information sent by the source application, the method further includes: and popping up a file storage entry interface.
After receiving data information sent by a source application, an enterprise office platform in the terminal triggers login, namely the enterprise office platform pops up a login interface, a user can login by inputting a target user identifier and a password in the login interface, and then pops up a file storage entry interface, wherein the file storage entry interface comprises a file storage entry, the target user of the enterprise office platform can perform interactive operation on the file storage entry interface to store data to be transmitted, and the data is stored even if the user stores the data. In one example, when the enterprise office platform is an enterprise WeChat, the file save entry interface is a File disk entry interface and the file save entry is a Save to File disk entry.
In one example, the file saving entry is saved to an entry of a public storage space corresponding to a currently logged-in target user identifier in the enterprise office platform. Namely, the public storage space currently corresponding to the currently logged target user identifier in the enterprise office platform is the position where the data to be transmitted is stored.
In one embodiment, sending a save request to a server in response to a save operation for data to be transmitted includes: responding to the interactive operation of a file saving entry in the file saving entry interface to obtain a saving directory interface; and responding to the storage operation of the target directory in each storage directory of the storage directory interface to generate a storage request, and sending the storage request to the server.
The target user can perform interactive operation on the file saving entry in the file saving entry interface displayed by the enterprise office platform, for example, clicking operation can be performed, the enterprise office platform can obtain and display the saving directory interface, and each saving directory is included in the saving directory interface and used for indicating the position of data saved in the file disk. The target user can select one directory from all the stored directories as the directory for storing the data to be transmitted, namely the target directory. The enterprise office platform can respond to the storage operation of the target directory in each storage directory acting on the storage directory interface, generate a storage request and send the storage request to the server so as to request the server to store the data to be transmitted into the target directory of the corresponding public storage space, and data storage is realized. Each user corresponding to the public storage space under the enterprise office platform can view the data content stored in the public storage space through accessing the public storage space, and the user can view the data content conveniently.
In an example, each saved directory of the saved directory interface identifies, for a target user currently logged in the enterprise office platform, each saved directory corresponding to a currently corresponding file disk.
In one embodiment, the open link also carries the source application identification.
The data transmission method further comprises the following steps: and when the source application identifier belongs to the preset authorized application identifier set, entering a step of responding to a storage request sent to the server aiming at the data to be transmitted.
After receiving the OpenURL, the enterprise office platform can determine the source application based on the source application identifier carried by the OpenURL, and thus can know the initiator who transmits the data to be transmitted. The enterprise office platform can detect according to the source application identifier, namely detect whether the source application identifier belongs to a preset authorization application identifier set, wherein the preset authorization application identifier set comprises at least one preset authorization application identifier. When the source application identifier belongs to the preset authorized application identifier set, the source application is indicated to be authorized in the enterprise office platform to perform data transmission, and then data can be normally stored. However, when the source application identifier does not belong to the preset authorized application identifier set, it indicates that the data transmission of the source application in the enterprise office platform is not authorized, and the enterprise office platform determines that the data to be transmitted by the source application is unreasonable, and in order to ensure security, the enterprise office platform discards the data to be transmitted.
In one example, the source application may be a personal WeChat, and the enterprise office platform may be an enterprise WeChat, that is, data transmission authorization is performed on the personal WeChat in advance in the enterprise WeChat, that is, the preset authorization application identification set includes a personal WeChat identification (i.e., an identification of the WeChat application). Therefore, the personal WeChat transmits the picture A to the enterprise WeChat, and as the personal WeChat identification belongs to the preset authorization application identification set, the personal WeChat can respond to the storage operation aiming at the data to be transmitted and send a storage request to the server. If the source application is not the personal WeChat, for other applications, for example, application Y1, the enterprise WeChat does not authorize data transmission for application Y1, that is, the preset authorized application identifier set does not include the identifier corresponding to application Y1, even if the enterprise WeChat receives the picture B transmitted by the enterprise WeChat, the enterprise WeChat discards the picture B because the corresponding identifier does not belong to the preset authorized application identifier set, and does not store the picture B in the public storage space.
The above data transmission process is described in detail with an embodiment. The source application is used as WeChat, the enterprise office platform is used as enterprise WeChat, and the public storage is used as a file disk.
As shown in fig. 4, a schematic block diagram of data transmission between the wechat and the enterprise wechat is provided, where a virtual key for forwarding data to the enterprise wechat and an enterprise wechat SDK are provided at the wechat side, and the enterprise wechat SDK provides the enterprise wechat and provides the enterprise wechat to an Api Interface (Application Programming Interface) set for accessing the enterprise wechat by the wechat. After the data to be transmitted, namely the data to be transmitted, is selected, the virtual key for forwarding the data to the enterprise WeChat can be displayed through the operation on the WeChat, the data processing conversion module of the enterprise WeChat SDK in the WeChat is requested to the data processing conversion module in the enterprise WeChat SDK through the clicking operation on the virtual key by using the data request and response module, the data to be transmitted is converted to obtain binary data, and the binary data is transmitted to the enterprise WeChat through an Api interface provided by the enterprise WeChat SDK. Specifically, data transmission is performed in an OpenURL manner and a sticker board sharing manner. The data transmission channel is a channel for data exchange between the enterprise wechat and the wechat.
In addition, the wechat has an identifier corresponding to the wechat, the application registered user in fig. 4 transmits the wechat identifier to the application information management module in the SDK for the enterprise wechat, and the information management module transmits the identifier of the wechat to the enterprise wechat through the OpenURL.
At the enterprise WeChat side, after the binary data is received, the binary data can be analyzed (namely, the reverse conversion corresponding to the conversion) through the data conversion module to determine the data to be transmitted. And the data to be transmitted is distributed to a file disk module in the service module, and the file disk module can upload the data to be transmitted to a file disk corresponding to the server, so that cross-application data transfer is realized. The ApiHandler in the enterprise wechat is used for processing the enterprise wechat and distributing Api interface calls from the SDK. And a business module is also arranged at the WeChat side of the enterprise, wherein the business module comprises a chat session module, a file disk module, a collection module and the like.
The data transmission process is as follows:
first, as shown in fig. 5, in a chat session interface of the wechat side, three files (the names of which are respectively a test document, a test share and a demo) and a video are selected as data to be transmitted, then a virtual key popped up in the chat session interface and forwarded to an enterprise wechat is clicked, the wechat responds to the click operation to obtain a data transfer instruction, and the data to be transmitted can be transmitted to the enterprise wechat through an interface provided by an embedded enterprise wechat SDK. Clicking the virtual key forwarded to the enterprise WeChat jumps to a file disk entry interface of the enterprise WeChat, as shown in FIG. 6, wherein the file disk entry interface includes a portion saved to a file disk entry, i.e., the dashed-line square in FIG. 6. Clicking the file disk entry can jump to a saved directory interface corresponding to the file disk of the enterprise WeChat, as shown in FIG. 7, wherein there may be many saved directories, such as the directories of the dump test, the new and colleague photo albums, and the company data in FIG. 7. The user can select any one of the directories as a target directory for storing data to be transmitted. For example, if the unloading test directory is selected as the target directory, the unloading test directory icon is clicked. The enterprise wechat sends the target directory to the server through a storage request, and the server responds to the storage request, so that the data to be transmitted can be stored in the unloading test directory under the corresponding file disk in the server, the data to be transmitted is stored in the file disk corresponding to the enterprise wechat, and the sharing purpose is realized. The subsequent user can view the stored data content by accessing the target directory in the file disk, for example, the unloading test directory, as shown in fig. 8, in the interface of the unloading test directory in the file disk, the data to be transmitted of three files (respectively, test document. docx, test share. pdf, and demo. zip) and one video (468.mp4) selected by the user on the WeChat side are displayed.
In short, at the WeChat side, any at least one of a file, a picture or a video can be selected in a chat record of any WeChat chat session, for example, a picture A is selected, data to be transmitted is determined, the data to be transmitted is converted into binary data through an enterprise WeChat SDK embedded inside, and the binary data is forwarded to the enterprise WeChat through a data channel interface provided by the enterprise WeChat SDK. And receiving the binary data through the ApiHandler at the enterprise wechat side, analyzing the data to be transmitted at the wechat side, and popping up a file disk entry interface stored in a file disk entry by the enterprise wechat when judging that the data to be transmitted comprises data content. Then, after clicking the entry of the saved file disk, the saved directory interface is displayed, wherein each saved directory, that is, the partition directory of the file disk, is included. Any directory position which is desired to be saved can be selected, namely a target directory is selected to be used as a directory for placing data to be transmitted by a user. For example, a colleague album catalog may be selected. The enterprise WeChat uploads the data to be transmitted to the target directory in the server for storage. The user in the follow-up enterprise wechat can check the data to be transmitted, namely the picture A, by accessing the target directory in the file disk, so that the personal data in the wechat can be deposited into the public file disk of the enterprise wechat for sharing by each user, and the user can conveniently check the data in the wechat.
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 performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. 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, a computer device is provided, which may be the terminal 10 in fig. 1, and its internal structure diagram may be as shown in fig. 9. 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. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device 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. Which computer program is executed by a processor to carry out the steps of the embodiments of the methods described above. 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. 9 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, a computer device is provided, comprising a memory storing a computer program and a processor implementing the steps of the above method when the processor executes the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
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 a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. 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 examples 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 present application. 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 (11)

1. A method of data transmission, comprising the steps of:
a source application acquires a data transfer instruction, wherein the data transfer instruction carries data to be transmitted and an enterprise office platform identifier, a software tool development kit interface corresponding to an enterprise office platform corresponding to the enterprise office platform identifier is embedded in the source application, and the source application is different from the enterprise office platform;
the source application responds to the data transfer instruction, calls a software tool development kit interface of the enterprise office platform corresponding to the enterprise office platform identification, and sends data information to the enterprise office platform, wherein the data information comprises the data to be transmitted, and the data to be transmitted is used for the enterprise office platform to upload the data to a public storage space corresponding to the enterprise office platform;
the data information also comprises a pasting board mark;
sending data information to the enterprise office platform, including:
sending an open link carrying a sticker identifier to the enterprise office platform;
transmitting the data to be transmitted to the pasting board corresponding to the pasting board identification; and the pasting board is used for the enterprise office platform to read and obtain the data to be transmitted.
2. The method of claim 1, wherein transmitting the data to be transmitted to the sticker board corresponding to the sticker board identifier comprises:
converting the data to be transmitted into corresponding binary data based on the attribute information of the data to be transmitted;
transmitting the binary data corresponding to the data to be transmitted to the pasting plate corresponding to the pasting plate identifier;
the pasting board is used for the enterprise office platform to read and obtain binary data corresponding to the data to be transmitted.
3. The method according to claim 2, wherein the open link further carries attribute information corresponding to the data to be transmitted.
4. The method of claim 1, wherein the open link further carries a source application identification.
5. A method of data transmission, comprising the steps of:
the method comprises the steps that an enterprise office platform receives data information sent by a source application, wherein the data information comprises data to be transmitted, a software tool development kit interface corresponding to the enterprise office platform corresponding to an enterprise office platform identifier is embedded in the source application, and the source application is different from the enterprise office platform;
the enterprise office platform responds to a storage operation aiming at the data to be transmitted and sends a storage request to a server, wherein the storage request carries the data to be transmitted and a target directory of a public storage space corresponding to the enterprise office platform in the server, and the storage request is used for requesting the server to store the data to be transmitted into the target directory of the public storage space;
the data information also comprises a pasting board mark;
receiving data information sent by a source application, wherein the data information comprises:
receiving an open link which is sent by the source application and carries a pasting board identifier;
and reading the pasting plate corresponding to the pasting plate identification to obtain the data to be transmitted.
6. The method according to claim 5, wherein the open link further carries attribute information corresponding to the data to be transmitted;
reading the pasting board corresponding to the pasting board identification to obtain the data to be transmitted, comprising:
reading the pasting plate corresponding to the pasting plate identification, and determining binary data;
and analyzing the binary data based on the attribute information corresponding to the data to be transmitted, and determining the data to be transmitted.
7. The method of claim 5, further comprising, after receiving the data information sent by the source application:
popping up a file storage entry interface; the file saving entry interface comprises a save to file disk entry.
8. The method of claim 7, wherein sending a save request to a server in response to a save operation for the data to be transmitted comprises:
responding to the interactive operation of a file saving entry in the file saving entry interface to obtain a saving directory interface;
and responding to the storage operation of the target directory in each storage directory of the storage directory interface to generate a storage request, and sending the storage request to the server.
9. The method of claim 5, wherein the open link further carries a source application identification;
the data transmission method further comprises the following steps:
and when the source application identifier belongs to a preset authorized application identifier set, entering a step of responding to a storage request sent to a server aiming at the storage operation of the data to be transmitted.
10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any of claims 1-9.
11. 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 9.
CN201810701146.7A 2018-06-29 2018-06-29 Data transmission method, computer device and storage medium Active CN108880992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810701146.7A CN108880992B (en) 2018-06-29 2018-06-29 Data transmission method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810701146.7A CN108880992B (en) 2018-06-29 2018-06-29 Data transmission method, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN108880992A CN108880992A (en) 2018-11-23
CN108880992B true CN108880992B (en) 2021-09-24

Family

ID=64297415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810701146.7A Active CN108880992B (en) 2018-06-29 2018-06-29 Data transmission method, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN108880992B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109840146B (en) * 2019-01-16 2023-05-09 腾讯科技(深圳)有限公司 Service processing method, device, terminal and storage medium
CN110428320A (en) * 2019-08-06 2019-11-08 中国工商银行股份有限公司 Data processing method and system and electronic equipment and computer-readable medium
CN111490931B (en) * 2020-04-14 2021-10-15 腾讯科技(深圳)有限公司 Session management method, device, session management equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936686A (en) * 2015-12-31 2017-07-07 北京北信源软件股份有限公司 A kind of immediate communication platform for supporting safety moving to handle official business
CN107273227A (en) * 2017-06-30 2017-10-20 百度在线网络技术(北京)有限公司 Using communication means, device, equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140259028A1 (en) * 2013-03-05 2014-09-11 Google Inc. Mechanism for establishing temporary background communication between applications
CN104660678B (en) * 2015-01-16 2018-05-18 深信服科技股份有限公司 Using data sharing method and device
CN105099890A (en) * 2015-07-27 2015-11-25 阿里巴巴集团控股有限公司 File saving method of instant communication message and apparatus thereof
WO2017149533A1 (en) * 2016-03-03 2017-09-08 Aish Ofer Contact information bridge/middleware/platform
US9990128B2 (en) * 2016-06-12 2018-06-05 Apple Inc. Messaging application interacting with one or more extension applications
CN106899489A (en) * 2016-08-02 2017-06-27 阿里巴巴集团控股有限公司 A kind of information processing method and device
CN108141497B (en) * 2016-10-28 2020-06-16 华为技术有限公司 Information interaction method and device
CN106878153A (en) * 2017-03-06 2017-06-20 宇龙计算机通信科技(深圳)有限公司 A kind of message sharing method and device and mobile terminal, server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936686A (en) * 2015-12-31 2017-07-07 北京北信源软件股份有限公司 A kind of immediate communication platform for supporting safety moving to handle official business
CN107273227A (en) * 2017-06-30 2017-10-20 百度在线网络技术(北京)有限公司 Using communication means, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108880992A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN105530175B (en) Message processing method, device and system
JP6837066B2 (en) Information processing method and server, computer storage medium
CN107979632B (en) Processing method, device and system for push information
CN108880992B (en) Data transmission method, computer device and storage medium
WO2021031688A1 (en) Service parameter acquisition method and apparatus, computer device and storage medium
US20090228584A1 (en) Presence-based event driven architecture
US11445029B2 (en) Integrated workspaces on communication platform
US20140201292A1 (en) Digital business card system performing social networking commonality comparisions, professional profile curation and personal brand management
US20230396661A1 (en) Systems and methods for sharing content externally from a group-based communication platform
CN111222153B (en) Application program authority management method and device and storage medium
CN111191100B (en) Government information processing method, government information processing device and computer readable storage medium
GB2384590A (en) Document notarization
JP2018506793A (en) Method, apparatus, system and computer program for providing a rich menu of official accounts in an instant messaging service
CN114124861A (en) Message group sending method and device, computer equipment and storage medium
CN111858611A (en) Data access method and device, computer equipment and storage medium
CN113742601A (en) Content sharing method and device, computer equipment and storage medium
TW200843419A (en) Admiration letter direct management operation system and method
CN112330291A (en) Remote service auditing method and device, computer equipment and storage medium
CN116112457A (en) Method, device, computer equipment and storage medium for notifying message
US9785711B2 (en) Online location sharing through an internet service search engine
KR20230082146A (en) A smart electric contract system
CN109803017B (en) File intercommunication method and device, computing equipment and computer readable storage medium
US20170126593A1 (en) Information processing system
CN112347382A (en) Product page sharing method and device and electronic equipment
KR101170322B1 (en) Method and device for providing cloud computing service using personal computer based on web

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