CN112364272B - Interaction method, system and computing equipment - Google Patents

Interaction method, system and computing equipment Download PDF

Info

Publication number
CN112364272B
CN112364272B CN202110039413.0A CN202110039413A CN112364272B CN 112364272 B CN112364272 B CN 112364272B CN 202110039413 A CN202110039413 A CN 202110039413A CN 112364272 B CN112364272 B CN 112364272B
Authority
CN
China
Prior art keywords
interaction
client
content information
request
segment
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
CN202110039413.0A
Other languages
Chinese (zh)
Other versions
CN112364272A (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.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202110039413.0A priority Critical patent/CN112364272B/en
Publication of CN112364272A publication Critical patent/CN112364272A/en
Application granted granted Critical
Publication of CN112364272B publication Critical patent/CN112364272B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Abstract

The invention discloses an interaction method, which is executed at a server and comprises the following steps: receiving an interactive request sent by a mobile terminal through an identification code generated by a scanning client, wherein the interactive request comprises format information and the content information; determining whether the current interaction request is the first interaction request of the client side based on the interaction sequence number and judging whether the subsequent interaction is needed; if so, generating a second interaction serial number corresponding to the client and displaying the second interaction serial number on the mobile terminal so that the client generates a new identification code based on the second interaction serial number, and then receiving a subsequent interaction request sent by the mobile terminal through scanning the new identification code; if not, splicing the current segment of content information with the previous segment of content information based on the interactive serial number, and returning a splicing result to the mobile terminal for display after splicing is completed. The invention also discloses a corresponding interactive system and a corresponding computing device. According to the technical scheme of the invention, code scanning interaction of long information can be realized.

Description

Interaction method, system and computing equipment
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to an interaction method, an interaction system, and a computing device.
Background
Currently, for a web model of a client and a server, the client and the server need to perform information interaction, so that a service is performed.
When the client does not access the internet, the client cannot send information to the server for interaction, so that the service cannot be performed. Under the condition, the mobile phone can be used for scanning a code (a bar code or a two-dimensional code) to interact with the server in the Web application, namely, the mobile phone is used as an intermediate bridge, and the interaction between the client and the server is completed through the mobile Internet, so that the service is smoothly performed.
In the prior art, code scanning interaction is performed by generating a URL address for information to be interacted, generating a two-dimensional code based on the URL address, scanning the two-dimensional code through a mobile phone to obtain URL information contained in the two-dimensional code, and accessing the corresponding URL address through a browser, so that the interaction information is transmitted to a server for interaction.
The code scanning interaction is usually one-time, that is, after one code scanning, the whole interaction process is completed, so that the length of information transmitted through the code scanning interaction of the mobile phone is very limited. Specifically, in practical applications, the server and the mobile phone browser usually limit the length of the URL address, for example, each browser limits the length of the URL that can be accepted by the browser address bar in specific implementation; the server typically uses proxy servers such as Nginx, Apache, etc., which also limit the URL length when deployed. The Http protocol does not limit the length of the URL address. Therefore, when the interactive information to be transmitted by the client is too long, the interaction of the long information cannot be completed by scanning the code once, so that the service cannot be performed.
Therefore, an interactive method and an interactive system are needed to solve the problems in the above technical solutions.
Disclosure of Invention
To this end, the present invention provides an interaction method, an interaction system and a computing device to solve or at least alleviate the above existing problems.
According to an aspect of the present invention, there is provided an interaction method, executed in a server, comprising the steps of: receiving an interactive request sent by a mobile terminal through an identification code generated by a scanning client, wherein the interactive request comprises format information and the segment content information, and the format information comprises an interactive sequence number, a segment number n and a segment number; determining the identity of a client based on the interaction serial number, and determining whether the current interaction request is the first interaction request of the client; if the request is the first interaction request of the client and the number n of the segments is greater than 1, acquiring the content information of the segment, generating a second interaction serial number corresponding to the client, returning the second interaction serial number to the mobile terminal, so that a user can input the second interaction serial number into the client, and the client generates a new identification code based on the second interaction serial number; if the request is not the first interaction request of the client and the number n of the segments is greater than 1, acquiring the segment of content information, splicing the segment of content information with the previous segment of content information, and returning a second interaction serial number corresponding to the client to the mobile terminal, so that a user can input the second interaction serial number into the client, and the client generates a new identification code based on the second interaction serial number; and receiving a next interactive request sent by the mobile terminal by scanning the new identification code.
Optionally, in the interaction method according to the present invention, the method further includes the steps of: if it is determined that the request is not a first interactive request, the number n of segments is greater than 1, and the segment number is equal to n, then: and returning a second interaction serial number corresponding to the client and a message of interaction request completion to the mobile terminal, so that the user can input the second interaction serial number into the client, and an interaction completion page is generated and displayed at the client.
Optionally, in the interaction method according to the invention, the client is adapted to generate the identification code according to the following steps: determining content information to be acquired by a server, and segmenting the content information based on a preset data length to generate n segments of content information; adding corresponding format information in the head of the content information; and generating a corresponding identification code based on the format information, the current piece of content information and the access address.
Optionally, in the interaction method according to the present invention, the generating, by the client, a new identification code based on the second interaction sequence number includes: the client generates a new identification code based on the second interaction sequence number, the number of segments n, the next segment number, the next segment content information, and the access address.
Optionally, in the interaction method according to the present invention, the present piece of content information includes an access identifier corresponding to the client, and after the present piece of content information is obtained, the method includes the steps of: and storing the content information in a cache corresponding to the access identifier so as to splice the content information in the cache corresponding to the access identifier of the client.
Optionally, in the interaction method according to the present invention, the mobile terminal is adapted to, after receiving the second interaction sequence number: judging whether the interactive request is completed or not, if the interactive request is determined to be not completed, determining the times of the current interactive request and the times of the residual interactive request, displaying the times, and starting a scanning identification code state; and if the interactive request is determined to be completed, displaying the second interactive serial number.
Optionally, in the interaction method according to the present invention, determining whether the current interaction request is the first interaction request of the client includes: and when the interaction serial number is a character string in a first preset format, determining that the interaction serial number is a first interaction request of the client.
Optionally, in the interaction method according to the present invention, the method further includes the steps of: and if the request is the first interactive request of the client and the number n of the segments is 1, acquiring the content information of the segment and returning a message of finishing the interactive request to the mobile terminal.
According to an aspect of the present invention, there is provided an interactive system comprising: a server adapted to perform the method as described above; the client is suitable for generating the identification code, acquiring a second interaction serial number and generating a new identification code based on the second interaction serial number; and the mobile terminal is suitable for scanning the identification code generated by the client to send an interaction request to the server and receiving a second interaction serial number returned by the server, wherein the interaction request comprises format information and the content information of the segment, and the format information comprises the fixed interaction serial number, the segment number n and the segment number.
According to an aspect of the invention, there is provided a computing device comprising: at least one processor; a memory storing program instructions, wherein the program instructions are configured to be suitable for execution by the at least one processor, the program instructions comprising instructions for performing the interaction method as described above.
According to an aspect of the present invention, there is provided a readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the interaction method as described above.
According to the technical scheme of the invention, the client can generate the identification code based on the interactive information, and when the length of the interactive information required to be transmitted by the client exceeds the preset length, the interactive information can be segmented to generate a plurality of segments of interactive information and generate the segmented identification code, and under the condition that the client does not access the Internet, the mobile terminal is utilized to scan the identification code corresponding to each segment of interactive information to perform information interaction with the server for a plurality of times. The server can splice the content information in the interactive information transmitted by the mobile terminal each time to obtain complete interactive information. Therefore, according to the technical scheme of the invention, under the condition that the client does not access the Internet, the information interaction with the server can be indirectly realized by scanning the identification code by using the mobile terminal, and the code scanning interaction of long information can be realized.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram of an interactive system 100 according to one embodiment of the present invention;
FIG. 2 shows a schematic diagram of a computing device 200, according to one embodiment of the invention;
FIG. 3 shows a flow diagram of an interaction method 300 according to one embodiment of the invention; and
fig. 4 shows a schematic diagram of the interaction steps between a mobile terminal, a client and a server according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 shows a schematic diagram of an interactive system 100 according to one embodiment of the present invention.
As shown in fig. 1, the interactive system 100 includes a mobile terminal 110, a client 150, and a server 200. The client 150 may establish a communication connection with the server 200 in an internet access state, and may not establish a communication connection with the server 200 when not accessing the internet, so that information interaction with the server 200 may not be directly performed. The mobile terminal 110 may establish a communication connection with the server 200 based on the mobile internet.
The client 150 is a terminal device used by a user, and may specifically be a personal computer such as a desktop computer and a notebook computer, but is not limited thereto.
The mobile terminal 110 is a mobile terminal device used by a user, and may specifically be a mobile terminal such as a mobile phone and a tablet computer, and may also be a multimedia device, a smart wearable device, and the like, but is not limited thereto.
The server 200 may be a device that provides information services to users, and may be a web server, for example. In the case of accessing the internet, the client 150 and the mobile terminal 110 may access the corresponding resources in the server 200 based on the corresponding access addresses (URLs). The server 200 may be implemented as a computing device such as a desktop computer, a notebook computer, a processor chip, a mobile phone, a tablet computer, or a system composed of a plurality of computing devices.
In the implementation of the present invention, the client 150 can indirectly communicate with the server 200 by using the mobile terminal 110 without accessing the internet, so as to realize information interaction between the client and the server 200. For example, when the server 200 needs to acquire the interaction information from the client 150 for interaction, the client 150 cannot communicate with the server 200 because of not accessing the internet, and at this time, the client 150 may generate a corresponding identification code, scan the identification code generated by the client by using the mobile terminal 110 accessing the mobile internet to communicate with the server 200, and send the interaction information of the client 150 to the server 200, thereby indirectly implementing the interaction between the client 150 and the server 200.
Specifically, the client 150 may generate an identification code, such as, but not limited to, a two-dimensional code or a barcode, based on the interaction information and the access address corresponding to the server 200. The access address is, for example, a URL address. The mobile terminal 110 may scan the identification code generated by the client 150 to acquire the interaction information and the access address contained in the identification code, access the server 200 based on the access address, and transmit the interaction information to the server 200. In other words, the mobile terminal 110 may send an interaction request to the server 200 by scanning the identification code generated by the client, and the interaction request includes corresponding interaction information (i.e., the interaction information that the client 150 needs to deliver to the server 200).
In the implementation according to the present invention, when the length of the interactive information that the client 150 needs to transmit exceeds a predetermined length, the interactive information may be divided into multiple segments to be transmitted to the server 200 to interact with the server 200 multiple times.
Specifically, the client 150 may perform segmentation processing on the complete interaction information to generate one or more pieces of interaction information. Each piece of interaction information after segmentation processing respectively comprises format information and content information of a corresponding segment. The section of interactive information acquired from the identification code comprises the format information and the content information of the section. The format information comprises a fixed interaction sequence number, a segment number n and a segment number. Here, the content information is specific information, such as user information, that the client 150 needs to transfer to the server 200.
In one embodiment, the client 150 generates one or more pieces of content information, for example, n pieces of content information (n ≧ 1), by segmenting the content information based on a predetermined data length when generating the identification code after the segmentation process on the interactive information. The method adds the format information of the segment to the header of the content information, namely adds the corresponding interactive sequence number, the segment number n and the segment number (the format information of the segment) to the header of each segment of the content information, thereby obtaining the interactive information of the segment. The interactive information of this segment is shown in the following table:
interactive serial number Number of segments n Number of this paragraph The content information
Further, the client 150 generates an identification code corresponding to the segment based on the interaction information (the interaction sequence number, the number of segments n, the segment number, and the segment content information) of the segment and the access address (URL). That is, the client 150 generates the identification code corresponding to the present segment based on the present segment format information, the present segment content information, and the access address. In this way, when the mobile terminal scans the identification code corresponding to the segment, it can acquire the access address, the format information of the segment, and the content information of the segment, and then send an interaction request to the server 200 based on the access address to send the format information of the segment and the content information of the segment to the server 200.
It should be noted that, when n pieces of content information are generated by segmenting the content information, the segment number corresponding to each piece of content information is determined according to the sequence of segmenting the content information. The identification code generated at the client 150 and the identification code scanned by the mobile terminal 110 to interact with the server 200 are both in the order of the segment numbers (from small to large).
In this way, the mobile terminal 110 may send an interactive request to the server 200 by scanning the identification code generated by the client 150, where the interactive request includes the format information and the content information of the segment. The format information comprises an interaction sequence number, a segment number n, a segment number and content information of the segment.
The server 200 may determine the identity of the client 150 based on the interaction serial number in the interaction request, determine whether the current interaction request is the first interaction request of the client 110, and determine whether a subsequent interaction is required. Here, the first interactive request corresponds to the interactive information with the segment number of 1. The interaction sequence number is a feature code that can identify the client identity and is related to the number of interactions.
When it is determined that the request is the first interaction request of the client 150, the corresponding segment number is 1, and the segment number n is greater than 1, the server 200 may obtain the content information of the segment, generate a unique second interaction serial number corresponding to the client 150, and return the second interaction serial number to the mobile terminal 110. Thus, by inputting the second interaction serial number into the client 150, the client 150 can generate a new identification code based on the second interaction serial number and the interaction information and access address of the next segment (second segment). That is, the client 150 may generate a new identification code, which is an identification code corresponding to the segment number 2, based on the second interaction sequence number, the number of segments n, the next segment number (segment number 2), the next segment content information, and the access address.
When it is determined that the request is not the first interaction request of the client 150, and accordingly, 1 < segment number < n, and the number n of segments is greater than 1, the server 200 may obtain the segment content information and the segment format information from the current interaction request, and determine the segment number and the second interaction sequence number according to the segment format information. Furthermore, the current piece of content information is spliced with the previous piece of content information based on the second interaction serial number, and then the previously generated second interaction serial number corresponding to the client 150 is returned to the mobile terminal 110 and displayed on the screen of the mobile terminal. Moreover, the splicing result of the content information may also be returned to the mobile terminal 110 for displaying, so as to continue to generate the identification code of the subsequent interaction, and send the next interaction request to the server 200. Specifically, by inputting the second interaction serial number into the client 150, the client 150 may generate a new identification code based on the second interaction serial number and the interaction information of the next segment. That is, the client 150 may generate a new identification code based on the second interaction sequence number, the number of segments n, the next segment number, the next segment content information, and the access address.
After the client 150 generates a new identification code, the mobile terminal 110 may send a next interaction request to the server 200 by scanning the new identification code. It should be understood that the format information and the content information of the next segment are included in the next interactive request. The format information of the next segment includes an interaction sequence number (i.e., a second interaction sequence number), the number n of segments, a next segment number, and next segment content information.
In addition, according to the embodiment of the present invention, if it is determined that the request is not the first interactive request, the number n of segments is greater than 1, and the segment number is equal to n, the server 200 may determine that the request is the last interactive request, and no subsequent interaction is required. In this case, the server also synchronously returns a message of the completion of the interaction request when returning the second interaction sequence number corresponding to the client to the mobile terminal 110. In this way, the mobile terminal 110 may determine that the interaction is completed according to the message that the interaction request is completed. The user may then enter the second interaction sequence number into the client 150, and the client 150 generates and displays a page of completed interactions.
It should be noted that, when the server 200 determines that the interaction request is the last interaction request, after the last piece of content information is obtained from the interaction request, the last piece of content information is spliced with the previously obtained content information, so that complete content information can be obtained. Therefore, the purpose of acquiring the long information by scanning the code for multiple times is achieved.
In one embodiment, the server 200 in the present invention is adapted to perform an interaction method. The interaction method 300 of the present invention will be described in detail below.
In one embodiment, the server 200 of the present invention may be implemented as a computing device, so that the interaction method of the present invention can be executed in the computing device.
FIG. 2 shows a block diagram of a computing device 200, according to one embodiment of the invention. As shown in FIG. 2, in a basic configuration 202, a computing device 200 typically includes a system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between the processor 204 and the system memory 206.
Depending on the desired configuration, the processor 204 may be any type of processing, including but not limited to: a microprocessor (UP), a microcontroller (UC), a digital information processor (DSP), or any combination thereof. The processor 204 may include one or more levels of cache, such as a level one cache 210 and a level two cache 212, a processor core 214, and registers 216. Example processor cores 214 may include Arithmetic Logic Units (ALUs), Floating Point Units (FPUs), digital signal processing cores (DSP cores), or any combination thereof. The example memory controller 218 may be used with the processor 204, or in some implementations the memory controller 218 may be an internal part of the processor 204.
Depending on the desired configuration, system memory 206 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 106 may include an operating system 220, one or more applications 222, and program data 224. The application 222 is actually a plurality of program instructions that direct the processor 204 to perform corresponding operations. In some embodiments, application 222 may be arranged to cause processor 204 to operate with program data 224 on an operating system.
Computing device 200 also includes storage device 232, storage device 232 including removable storage 236 and non-removable storage 238.
Computing device 200 may also include a storage interface bus 234. The storage interface bus 234 enables communication from the storage devices 232 (e.g., removable storage 236 and non-removable storage 238) to the basic configuration 202 via the bus/interface controller 230. At least a portion of the operating system 220, applications 222, and data 224 may be stored on removable storage 236 and/or non-removable storage 238, and loaded into system memory 206 via storage interface bus 234 and executed by the one or more processors 204 when the computing device 200 is powered on or the applications 222 are to be executed.
Computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to the basic configuration 202 via the bus/interface controller 230. The example output device 242 includes a graphics processing unit 248 and an audio processing unit 250. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 252. Example peripheral interfaces 244 can include a serial interface controller 254 and a parallel interface controller 256, which can be configured to facilitate communications with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 258. An example communication device 246 may include a network controller 260, which may be arranged to facilitate communications with one or more other computing devices 262 over a network communication link via one or more communication ports 264.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in a manner that encodes information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
In a computing device 200 according to the present invention, the application 222 includes a plurality of program instructions that execute the interaction method 300, which may instruct the processor 204 to perform the interaction method 300 of the present invention such that the computing device 200 enables indirect interaction with the client by performing the interaction method 300 of the present invention.
FIG. 3 shows a flow diagram of an interaction method 300 according to one embodiment of the invention. The method 300 is suitable for execution in a server 200, such as the aforementioned computing device 200.
Fig. 4 shows a schematic diagram of the interaction steps between the mobile terminal 110, the client 150 and the server 200 according to an embodiment of the invention.
As shown in fig. 3, the method 300 begins at step S310.
In step S310, the server 200 receives an interaction request sent by the mobile terminal 110 by scanning the identification code generated by the client, where the interaction request includes the interaction information of the client 150 (i.e., the interaction information that the client 150 needs to transfer to the server). Here, the interactive information includes format information and the content information of the segment, and the format information includes a fixed interactive sequence number, a segment number n, and a segment number of the segment.
It should be noted that the client 150 may generate an identification code based on the interaction information and the access address of the server, and the identification code is, for example, a two-dimensional code or a barcode, but is not limited thereto. The access address is, for example, a URL address. The mobile terminal 110 may scan the identification code generated by the client 150 to acquire the interaction information and the access address contained in the identification code, access the server 200 based on the access address, and transmit the interaction information to the server 200. In other words, the mobile terminal 110 may transmit an interaction request to the server 200 by scanning the identification code generated by the client, the interaction request including corresponding interaction information.
In an embodiment according to the present invention, when the length of the interactive information that the client 150 needs to transmit exceeds a predetermined length, the interactive information may be divided into multiple segments and transmitted to the server 200 to interact with the server 200 multiple times. For example, the client 150 may segment the complete interaction information to generate one or more pieces of interaction information, and generate an identification code corresponding to each piece of interaction information based on the segmented interaction information and the URL address. Thus, when the mobile terminal scans the identification code generated after segmentation, the interaction information corresponding to the segment is acquired from the identification code.
Specifically, each piece of interaction information after the segmentation processing respectively includes format information and content information of the corresponding segment. The section of interactive information acquired from the identification code comprises the format information and the content information of the section. The format information comprises a fixed interaction sequence number, a segment number n and a segment number. Here, the content information is specific information, such as user information, that the client 150 needs to transfer to the server 200. It should be noted that the interaction sequence number is a feature code that can identify the client identity and is related to the number of interactions, and the server 200 may splice the segmented content information based on the interaction sequence number.
In one embodiment, the client 150 generates one or more pieces of content information, for example, n pieces of content information (n ≧ 1), by segmenting the content information based on a predetermined data length when generating the identification code after the segmentation process on the interactive information. The method adds the format information of the segment to the header of the content information, namely adds the corresponding interactive sequence number, the segment number n and the segment number (the format information of the segment) to the header of each segment of the content information, thereby obtaining the interactive information of the segment. The interactive information of this segment is shown in the following table:
interactive serial number Number of segments n Number of this paragraph The content information
Further, the client 150 generates an identification code corresponding to the segment based on the interaction information (the interaction sequence number, the number of segments n, the segment number, and the segment content information) of the segment and the access address (URL). That is, the client 150 generates the identification code corresponding to the present segment based on the present segment format information, the present segment content information, and the access address. In this way, when the mobile terminal scans the identification code corresponding to the segment, it can acquire the access address, the format information of the segment, and the content information of the segment, and then send an interaction request to the server 200 based on the access address to send the format information of the segment and the content information of the segment to the server 200.
It should be noted that, when n pieces of content information are generated by segmenting the content information, the segment number corresponding to each piece of content information is determined according to the sequence of segmenting the content information. The identification code generated at the client 150 and the identification code scanned by the mobile terminal 110 to interact with the server 200 are both in the order of the segment numbers (from small to large).
Subsequently, in step S320, the server 200 may determine the identity of the client based on the interaction serial number, determine whether the current interaction request is the first interaction request of the client 110, and determine whether a subsequent interaction is required. Here, the first interactive request corresponds to the interactive information with the segment number of 1.
It should be noted that if it is determined that the request is the first interaction request of the client 150, the corresponding segment number is 1, and the number n of segments is greater than 1, it may be determined that the subsequent interaction is required, and the following steps S330 and S350 are performed; if it is determined that it is not the first interactive request of the client 150, 1 < segment number < n, and the number of segments n is greater than 1, the following steps S340 and S350 are performed. In step S330, when it is determined that the request is a first interaction request of the client 150, the corresponding segment number is 1, and the segment number n is greater than 1, the current segment of content information is acquired, a unique second interaction serial number corresponding to the client 150 is generated, and the second interaction serial number is returned to the mobile terminal 110. Thus, by inputting the second interaction serial number into the client 150, the client 150 can generate a new identification code based on the second interaction serial number and the interaction information and access address of the next segment (second segment). That is, the client 150 may generate a new identification code, which is an identification code corresponding to the segment number 2, based on the second interaction sequence number, the number of segments n, the next segment number (segment number 2), the next segment content information, and the access address.
In step S340, when it is determined that the request is not the first interaction request of the client 150, and accordingly, 1 < segment number < n, and the number of segments n is greater than 1, the content information and the format information of the segment are obtained from the current interaction request, and the segment number and the second interaction sequence number are determined according to the format information of the segment. Furthermore, the current piece of content information is spliced with the previous piece of content information based on the second interaction serial number, and then the previously generated second interaction serial number corresponding to the client 150 is returned to the mobile terminal 110 and displayed on the screen of the mobile terminal. Moreover, the splicing result of the content information may also be returned to the mobile terminal 110 for displaying. In this way, the user is prompted to input the second interaction serial number to the client, continue to generate the identification code for the subsequent interaction, and send the next interaction request to the server 200. Specifically, by inputting the second interaction serial number into the client 150, the client 150 may generate a new identification code based on the second interaction serial number and the interaction information of the next segment. Specifically, the client 150 may generate a new identification code based on the second interaction sequence number, the number of segments n, the next segment number, the next segment content information, and the access address.
Finally, in step S320, the next interactive request sent by the mobile terminal 110 by scanning the new identification code generated at the client 150 is received. It should be understood that the format information and the content information of the next segment are included in the next interactive request. The format information of the next segment includes an interaction sequence number (i.e., a second interaction sequence number), the number n of segments, a next segment number, and next segment content information.
According to one embodiment, each piece of content information generated by segmentation further includes an access identifier (Token) when the client 150 communicates with the server 200, and the mobile terminal 110 carries the access identifier corresponding to the client 200 when sending the interaction request to the server 200, so that the server 200 permits the mobile terminal 110 to perform information interaction with the identity of the client 150. Accordingly, the piece of content information includes an access identifier (Token) corresponding to the client 150. In steps S330 and S340, after acquiring the local piece of content information of the client 150 from the interaction request with the mobile terminal 110, the server 200 may determine the identity of the client 150 according to the access identifier in the local piece of content information, and then store the local piece of content information in the cache corresponding to the access identifier of the client 150, in other words, store the local piece of content information of the client 150 in the cache marked by Token. In this way, the content information may be spliced in the cache corresponding to the access identifier of the client 150, for example, when the piece of content information is not the first piece of content information, the piece of content information may be spliced with the previously acquired content information based on the interaction sequence number.
Accordingly, when a next interactive request sent by the mobile terminal 110 is received, the next piece of content information of the client 150 is obtained from the interactive request, and the next piece of content information of the client 150 is stored in the cache marked by Token. In this way, the next piece of content information may be spliced with the previously acquired content information in the cache corresponding to the access identification of the client 150.
According to the embodiment of the invention, the interaction sequence number corresponding to the first interaction request is the first interaction sequence number. When a plurality of pieces of content information (that is, the number n of pieces is greater than 1) are generated by segmenting the content information, after receiving an interaction request sent by the mobile terminal each time, the interaction sequence number returned to the mobile terminal 100 by the server 200 is a second interaction sequence number, where the second interaction sequence number is different from the first interaction sequence number. Specifically, when receiving the first interaction request, the server 200 generates a second interaction serial number corresponding to the client 150 and returns the second interaction serial number to the mobile terminal 110, so that the client 150 generates a new identification code based on the second interaction serial number. And, the server 200 stores the generated second interaction sequence number locally. When the mobile terminal 110 subsequently sends a second interaction request (including a second interaction serial number) to the server 200 by scanning a new identification code, the server 200 may determine the identity of the client 150 according to the second interaction serial number carried in the interaction request, and perform content information splicing based on the second interaction serial number. And, the server 200 continues to return the previously generated second interaction sequence number to the mobile terminal 110, so that the client 150 generates a new identification code based on the second interaction sequence number and other interaction information of the next segment. The third, fourth and subsequent interactive requests are all to return the second interactive sequence number to the mobile terminal 110, which is not described herein again.
It can be understood that, in the embodiment of the present invention, the interaction sequence numbers corresponding to each piece of interaction information whose segment number is greater than 1 are all the same and are all different from the interaction sequence number corresponding to the first interaction request.
For example, the first interaction sequence number corresponding to the first interaction request is a character string in a first predetermined format. And the second interactive serial number corresponding to each piece of interactive information with the segment number larger than 1 is a character string in a second preset format. It should be understood that the second predetermined format is different from the first predetermined format, such that each piece of interaction information having a segment number greater than 1 corresponds to an interaction sequence number that is also different from the interaction sequence number corresponding to the first-time interaction request having a segment number of 1.
Thus, after the server 200 obtains the corresponding format information and the current piece of content information from the interactive request, the interactive sequence number in the format information can be determined, and the format of the interactive sequence number can be determined. When the interaction sequence number is in the first predetermined format, it may be determined that the present interaction request is the first interaction request of the client 150; when the interaction sequence number is in the second predetermined format, it is determined that the current interaction request is not the first interaction request of the client 150.
In addition, according to the embodiment of the present invention, if it is determined that the request is not the first interactive request, the number n of segments is greater than 1, and the segment number is equal to n, the server 200 may determine that the request is the last interactive request, and no subsequent interaction is required. In this case, the server also synchronously returns a message of the completion of the interaction request when returning the second interaction sequence number corresponding to the client to the mobile terminal 110. In this way, the mobile terminal 110 may determine that the interaction is completed according to the message that the interaction request is completed. The user may then enter the second interaction sequence number into the client 150, and the client 150 generates and displays a page of completed interactions.
It should be noted that, when the server 200 determines that the interaction request is the last interaction request, after the last piece of content information is acquired from the interaction request, the last piece of content information is stored in the buffer marked with Token, and the last piece of content information is spliced with the previously acquired content information in the buffer, so that complete content information can be obtained. Therefore, the purpose of acquiring the long information by scanning the code for multiple times is achieved.
According to an embodiment, after receiving the second interaction sequence number and the splicing result returned by the server 200, the mobile terminal 110 determines whether the interaction request is completed, and specifically, may determine whether the interaction request is completed by determining whether a message of completing the interaction request is synchronously received. And when the message of the interactive request completion is received, the interactive request completion is determined, otherwise, the interactive request completion is not completed. If the interactive request is determined not to be completed, the mobile terminal 110 further determines the number of times of the interactive request and the remaining number of times of the interactive request, and displays the determined number of times of the interactive request on a screen of the mobile terminal for a user to view, and the mobile terminal 110 starts a state of scanning the identification code so as to scan a new identification code generated by the client 150. If it is determined that the interaction request is completed, only the second interaction sequence number is displayed on the screen.
In addition, according to the embodiment of the present invention, if it is determined that the current interaction request is the first interaction request of the client 110, and the number n of segments is 1, the server 200 may determine that subsequent interactions are no longer needed. In this way, the server 200 only needs to obtain the content information of the segment, take the content information of the segment as the final complete interactive content information, and return the message of completing the interactive request to the mobile terminal 110. In the case where the number of segments n is 1, the server 200 does not need to generate the second interaction sequence number.
According to the interaction method 300 of the present invention, the client 150 may generate the identification code based on the interaction information, and when the length of the interaction information that the client 150 needs to transmit exceeds a predetermined length, the interaction information may be segmented to generate a plurality of segments of interaction information, and the segmented identification code may be generated. In the case that the client does not access the internet, the mobile terminal 110 may be utilized to scan the identification code corresponding to each piece of interaction information to perform multiple information interactions with the server 200. The server 200 may splice content information in the interaction information delivered by the mobile terminal 110 each time to obtain complete interaction information. Therefore, according to the technical scheme of the invention, under the condition that the client does not access the Internet, the information interaction with the server can be indirectly realized by scanning the identification code by using the mobile terminal, and the code scanning interaction of long information can be realized.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the mobile terminal generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to perform the interaction method of the invention according to instructions in said program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense with respect to the scope of the invention, as defined in the appended claims.

Claims (7)

1. An interaction method, executed in a server, comprising the steps of:
receiving an interactive request sent by a mobile terminal through an identification code generated by a scanning client, wherein the interactive request comprises format information and the segment content information, and the format information comprises an interactive sequence number, a segment number n and a segment number; the client is suitable for determining content information to be acquired by the server, segmenting the content information based on a preset data length to generate n segments of content information, and adding corresponding format information to the head of the segment of content information so as to generate a corresponding identification code based on the format information, the segment of content information and the access address;
determining the identity of a client based on the interaction serial number, determining the format of the interaction serial number, and judging whether the current interaction request is the first interaction request of the client according to the format of the interaction serial number, wherein when the interaction serial number is a character string of a first preset format, the current interaction request is determined to be the first interaction request of the client, and when the interaction serial number is a character string of a second preset format, the current interaction request is determined not to be the first interaction request of the client;
if the interaction request is the first interaction request of the client, and the number n of the segments is greater than 1, acquiring the content information of the segment, generating a second interaction serial number corresponding to the client, wherein the second interaction serial number is a character string in a second preset format, returning the second interaction serial number to the mobile terminal, so that a user can input the second interaction serial number into the client, generating a new identification code by the client based on the second interaction serial number, the number n of the segments, the number of the next segment, the content information of the next segment and the access address s, and receiving the next interaction request containing the second interaction serial number sent by the mobile terminal through scanning the new identification code;
if the interaction request is not the first interaction request of the client and the number n of the segments is greater than 1, acquiring the segment of content information, determining the identity of the client according to a second interaction serial number in the interaction request, splicing the segment of content information with the previous segment of content information based on the second interaction serial number, returning the second interaction serial number corresponding to the client to the mobile terminal so that a user can input the second interaction serial number into the client, and generating a new identification code by the client based on the second interaction serial number, the number n of the segments, the number of the next segment, the next segment of content information and the access address; and
and receiving a next interactive request sent by the mobile terminal by scanning the new identification code.
2. The interactive method of claim 1, further comprising the steps of:
if it is determined that the request is not a first interactive request, the number n of segments is greater than 1, and the segment number is equal to n, then:
and returning a second interaction serial number corresponding to the client and a message of interaction request completion to the mobile terminal, so that the user can input the second interaction serial number into the client, and an interaction completion page is generated and displayed at the client.
3. The interaction method according to any one of claims 1-2, wherein the piece of content information includes an access identifier corresponding to the client, and after acquiring the piece of content information, the method includes the steps of:
and storing the content information in a cache corresponding to the access identifier so as to splice the content information in the cache corresponding to the access identifier of the client.
4. The interaction method according to any of claims 1-2, wherein the mobile terminal, after receiving the second interaction sequence number, is adapted to:
it is determined whether the interactive request is complete,
if the interactive request is determined to be not completed, determining and displaying the times of the interactive request and the times of the residual interactive requests, and starting a scanning identification code state;
and if the interactive request is determined to be completed, displaying the second interactive serial number.
5. An interactive system, comprising:
a server adapted to perform the method of any one of claims 1-4;
the client is suitable for determining content information to be acquired by the server, segmenting the content information based on a preset data length to generate n segments of content information, adding corresponding format information to the head of the segment of content information, and generating an identification code based on the format information, the segment of content information and an access address, wherein the format information comprises a fixed interaction serial number, a segment number n and a segment number; the method comprises the steps of obtaining a second interaction serial number, and generating a new identification code based on the second interaction serial number, the number n of segments, the number of the next segment, the content information of the next segment and an access address; and
and the mobile terminal is suitable for scanning the identification code generated by the client to send an interactive request to the server, wherein the interactive serial number in the first interactive request is a character string with a first preset format, and is suitable for receiving a second interactive serial number returned by the server, the second interactive serial number is a character string with a second preset format, and is suitable for scanning the new identification code to send a next interactive request containing the second interactive serial number to the server, and the interactive request comprises format information and the current piece of content information.
6. A computing device, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-4.
7. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-4.
CN202110039413.0A 2021-01-13 2021-01-13 Interaction method, system and computing equipment Active CN112364272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110039413.0A CN112364272B (en) 2021-01-13 2021-01-13 Interaction method, system and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110039413.0A CN112364272B (en) 2021-01-13 2021-01-13 Interaction method, system and computing equipment

Publications (2)

Publication Number Publication Date
CN112364272A CN112364272A (en) 2021-02-12
CN112364272B true CN112364272B (en) 2021-07-16

Family

ID=74534896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110039413.0A Active CN112364272B (en) 2021-01-13 2021-01-13 Interaction method, system and computing equipment

Country Status (1)

Country Link
CN (1) CN112364272B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107454038A (en) * 2016-05-30 2017-12-08 北京军源合众科技发展有限责任公司 A kind of method that Data Encryption Transmission is carried out by Quick Response Code
CN112182550A (en) * 2020-11-30 2021-01-05 统信软件技术有限公司 Authorization method, authorization system, activation device and computing equipment for application program

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140020055A (en) * 2012-08-07 2014-02-18 주식회사 케이티 Payment method and system
US9049567B2 (en) * 2013-10-07 2015-06-02 Google Inc. Hazard detection unit facilitating user-friendly setup experience
CN104050567B (en) * 2014-05-30 2017-11-28 深圳天珑无线科技有限公司 Data interactive method, terminal and server under off-line mode
CN105049425B (en) * 2015-06-28 2018-04-06 南威软件股份有限公司 A kind of physical isolation transmission method based on Quick Response Code
CN109447632A (en) * 2018-09-26 2019-03-08 平安国际融资租赁有限公司 Electronic transaction tracking processing method, system, computer equipment and storage medium
CN109376818A (en) * 2018-10-09 2019-02-22 杭州收盈科技有限公司 A kind of encryption time synchronization method based on offline dynamic two-dimension code
CN111083119B (en) * 2019-11-28 2022-03-04 四川观想科技股份有限公司 Two-dimensional code-based large-capacity information transmission method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107454038A (en) * 2016-05-30 2017-12-08 北京军源合众科技发展有限责任公司 A kind of method that Data Encryption Transmission is carried out by Quick Response Code
CN112182550A (en) * 2020-11-30 2021-01-05 统信软件技术有限公司 Authorization method, authorization system, activation device and computing equipment for application program

Also Published As

Publication number Publication date
CN112364272A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
US10212244B2 (en) Information push method, server, user terminal and system
US11086962B2 (en) Webpage loading method, client and server
CN111177664B (en) Watermark information adding method, server and system
CN110533464B (en) Advertisement monitoring method, device and system and computing equipment
CN112995131B (en) Page login method, system and computing device
CN111427766A (en) Request processing method and device and proxy server
US11455365B2 (en) Data processing method and apparatus
US11080322B2 (en) Search methods, servers, and systems
CN113329069A (en) Instant messaging method, system and computing equipment
CN110795343A (en) Test system, test method and computing device
CN112699321A (en) Page loading method, computing equipment and storage medium
CN109753424B (en) AB test method and device
CN109495553A (en) A kind of webpage display control method, system and Reverse Proxy
JP2015531518A (en) Method and apparatus for processing electronic transaction information
CN112364272B (en) Interaction method, system and computing equipment
WO2020233223A1 (en) Payment method, apparatus and system, device, and storage medium
CN114780266B (en) Resource access method, system and computing equipment
CN113300895A (en) Cable processing method and system and computing device
CN111444448B (en) Data processing method, server and system
CN110516169B (en) Data display method, device and system and computing equipment
CN110995574B (en) User information management method, acquisition method and system
CN111144977B (en) Stock order processing method and device
CN112988310A (en) Online experiment method based on multi-split-screen browser
CN113256338B (en) Creative generation method, system and computing equipment
CN111814029A (en) Data query method, system and computing device

Legal Events

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