CN111382130A - Content submission method and device and electronic equipment - Google Patents

Content submission method and device and electronic equipment Download PDF

Info

Publication number
CN111382130A
CN111382130A CN201811561945.5A CN201811561945A CN111382130A CN 111382130 A CN111382130 A CN 111382130A CN 201811561945 A CN201811561945 A CN 201811561945A CN 111382130 A CN111382130 A CN 111382130A
Authority
CN
China
Prior art keywords
content
state
server
network
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811561945.5A
Other languages
Chinese (zh)
Inventor
周振洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitevision Co Ltd
Original Assignee
Hitevision 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 Hitevision Co Ltd filed Critical Hitevision Co Ltd
Priority to CN201811561945.5A priority Critical patent/CN111382130A/en
Publication of CN111382130A publication Critical patent/CN111382130A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a content submission method and device and electronic equipment, wherein the content submission method comprises the following steps: acquiring a user identity; editing and submitting the content; and detecting a network state, if the network state is in a networking state, sending the content to a server, if the network state is not in the networking state, saving the content in a local storage position corresponding to the user identity, then detecting the network state, if the network state is in the networking state, sending the saved content to the server, and deleting the locally saved content. By using the method and the device, the user can normally edit and submit the evaluation content without concerning the networking state, and the evaluation content can be automatically sent to the server to store the synchronization of the data content no matter whether the network is connected or not.

Description

Content submission method and device and electronic equipment
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a content submission method and apparatus, and an electronic device.
Background
In the conventional class management system, a teacher can enter a class evaluation page, students are comprehensively evaluated through editing operation, and evaluation content is edited and clicked to confirm and submit the evaluation content to a server. In the practical application process, sometimes, the situation that the school network is unstable is encountered, so that the edited evaluation content cannot be successfully submitted, and the edited evaluation content can only be edited and submitted again after being connected with the network, so that the user experience is influenced.
Disclosure of Invention
In view of the above, the present invention provides a content submission method and apparatus, and an electronic device, which can cache submitted content in the local area in a no-network state, and automatically submit the content in a network state, so as to improve user experience.
Based on the above object, the present invention provides a content submission method, including:
acquiring a user identity;
editing and submitting the content;
and detecting a network state, if the network state is in a networking state, sending the content to a server, if the network state is not in the networking state, saving the content in a local storage position corresponding to the user identity, then detecting the network state, if the network state is in the networking state, sending the saved content to the server, and deleting the locally saved content.
Optionally, the method further includes: and judging whether the storage position exists or not, if so, sending the content in the storage position to the server in a networking state.
An embodiment of the present invention further provides a content submitting apparatus, including:
the data receiving and sending module is used for receiving the user identity of the login user sent from the server, sending the submitted content to the server if the login user is in the networking state according to the detection result of the network detection module, sending the content stored locally to the server if the login user is in the networking state, and deleting the content stored locally;
the network detection module is used for detecting the network state;
and the backup module is used for storing the content in a local storage position corresponding to the user identity according to the detection result of the network detection module if the content is in an unconnected state.
Optionally, the apparatus further comprises:
and the judging module is used for judging whether the storage position corresponding to the user identity exists locally or not in the user login state, and if so, the data transceiving module is used for sending the content in the storage position to the server.
An embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method when executing the computer program.
As can be seen from the above, according to the content submitting method and apparatus, and the electronic device provided by the present invention, after the content is edited, when the content is submitted, whether networking is performed or not is detected, if the content is in a networking state, the content is directly sent to the server, if the content is in an non-networking state, the content is cached in the local storage location corresponding to the user identity of the login user, and after networking, the stored content is sent to the server. By using the method and the device of the invention, the user does not need to care about the network state, and the submitted content can be automatically sent to the server, thereby ensuring the synchronization of the data.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to specific embodiments and the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention. As shown in the figure, the content submission method provided by the embodiment of the present invention includes:
s10: acquiring a user identity from a server;
s11: editing and submitting the content;
s12: detecting the network state, if the network state is in the networking state, executing the step S16, and if the network state is not in the networking state, executing the step S13;
s13: storing the submitted content in a local storage position corresponding to the user identity;
s14: detecting the network state, if the network state is in the networking state, executing the step S15, and if the network state is not in the networking state, executing the step S14;
s15: the submitted content is sent to a server, the locally stored content is deleted, and the operation is finished;
s16: and sending the submitted content to the server, and ending.
In the embodiment of the invention, in a networking state, a teacher logs in a class management system, enters a class evaluation page, and acquires the identity of a user logging in the teacher, class information, student information and evaluation item information from a server. When the teacher evaluates each student, the teacher edits the evaluation content, and after the editing is finished, the teacher clicks the confirmation button to submit the evaluation content to the server. Due to the fact that the school network is unstable, if the server cannot be connected when the confirmation button is clicked after the editing is finished, a folder used for storing submitted evaluation contents is established locally, and the folder corresponds to the user identity of the teacher.
And in the network connection state, submitting the evaluation content under the folder corresponding to the user identity identification of the teacher and stored locally to a server, and deleting the evaluation content stored locally. If the teacher logs out of the network and the teacher does not log in all the time, the user identity of the teacher is obtained when the teacher logs in next time, whether a folder corresponding to the user identity exists locally or not is judged, if yes, the evaluation content in the folder is synchronously submitted and sent to the server in the network connection state, for the user, the operation of re-submitting and storing is not needed, and the evaluation content can be automatically submitted to the server no matter whether the teacher logs in the network or not, so that the user experience is improved.
In the embodiment of the invention, the operation contents and the submitted contents of different users are distinguished through the user identity identifiers, so that the use of different users is facilitated.
Fig. 2 is a schematic structural diagram of an apparatus according to an embodiment of the present invention. As shown in the drawings, the content submitting apparatus provided in the embodiment of the present invention includes:
the data transceiver module is used for receiving the user identity of the login user sent from the server, sending the submitted content to the server if the login user is in the networking state according to the detection result of the network detection module, and sending the content stored locally to the server if the login user is in the networking state and deleting the content stored locally;
the network detection module is used for detecting the network state;
and the backup module is used for storing the submitted content in a local storage position corresponding to the user identity according to the detection result of the network detection module if the network detection module is in the non-networking state.
After a teacher logs in a class management system, the teacher enters a class evaluation page to evaluate students, after the evaluation content is edited, the evaluation content is submitted, if the server cannot be successfully submitted due to unstable network, a folder corresponding to the identity of the user logging in the teacher is locally established, the evaluation content is stored under the folder, then the network state is detected by using a network detection module, and if the server is in a networking state, the evaluation content stored under the folder is sent to the server through a data receiving and sending module.
The content submitting apparatus further includes:
and the judging module is used for judging whether a storage position corresponding to the user identity exists locally or not in the user login state, and if so, the data transceiving module is used for sending the content stored in the storage position to the server.
And in the networking state, the evaluation content stored under the folder corresponding to the user identity identification of the logged-in teacher and stored locally is submitted to the server through the data receiving and sending module to realize data content synchronization. Therefore, the user does not need to care about the networking state, the editing and submitting operation of the evaluation content can be normally carried out, and the evaluation content can be automatically sent to the server to store the synchronization of the data content no matter whether the networking is carried out or not.
Based on the above purpose, the embodiment of the present invention further provides an embodiment of an apparatus for executing the content submitting method. The device comprises:
one or more processors, and a memory.
The apparatus for performing the content submission method may further include: an input device and an output device.
The processor, memory, input device, and output device may be connected by a bus or other means.
The memory, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the content delivery method in the embodiments of the present invention. The processor executes various functional applications of the server and data processing by running the nonvolatile software programs, instructions and modules stored in the memory, that is, implements the content delivery method of the above-described method embodiment.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of an apparatus performing the content submission method, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory optionally includes memory remotely located from the processor, and these remote memories may be connected to the member user behavior monitoring device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means may receive input numeric or character information and generate key signal inputs related to user settings and function control of the apparatus performing the content submission method. The output device may include a display device such as a display screen.
The one or more modules are stored in the memory and, when executed by the one or more processors, perform the content delivery method of any of the method embodiments described above. The technical effect of the embodiment of the device for executing the content submission method is the same as or similar to that of any of the method embodiments.
The embodiment of the invention also provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the processing method of the list item operation in any method embodiment. Embodiments of the non-transitory computer storage medium may be the same or similar in technical effect to any of the method embodiments described above.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by a computer program that can be stored in a computer-readable storage medium and that, when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The technical effect of the embodiment of the computer program is the same as or similar to that of any of the method embodiments described above.
Furthermore, the apparatuses, devices, etc. described in the present disclosure may be various electronic terminal devices, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer (PAD), a smart television, etc., and may also be large terminal devices, such as a server, etc., and therefore the scope of protection of the present disclosure should not be limited to a specific type of apparatus, device. The client disclosed by the present disclosure may be applied to any one of the above electronic terminal devices in the form of electronic hardware, computer software, or a combination of both.
Furthermore, the method according to the present disclosure may also be implemented as a computer program executed by a CPU, which may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method of the present disclosure.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) described herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile 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), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions described herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
Disclosed exemplary embodiments should be noted, however, that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosure may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a," "an," "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The above-mentioned serial numbers of the embodiments of the present disclosure are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of an embodiment of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (5)

1. A method of content submission, comprising:
acquiring a user identity;
editing and submitting the content;
and detecting a network state, if the network state is in a networking state, sending the content to a server, if the network state is not in the networking state, saving the content in a local storage position corresponding to the user identity, then detecting the network state, if the network state is in the networking state, sending the saved content to the server, and deleting the locally saved content.
2. The method of claim 1, further comprising: and judging whether the storage position exists or not, if so, sending the content in the storage position to the server in a networking state.
3. A content submission apparatus, comprising:
the data receiving and sending module is used for receiving the user identity of the login user sent from the server, sending the submitted content to the server if the login user is in the networking state according to the detection result of the network detection module, sending the content stored locally to the server if the login user is in the networking state, and deleting the content stored locally;
the network detection module is used for detecting the network state;
and the backup module is used for storing the content in a local storage position corresponding to the user identity according to the detection result of the network detection module if the content is in an unconnected state.
4. The apparatus of claim 3, further comprising:
and the judging module is used for judging whether the storage position corresponding to the user identity exists locally or not in the user login state, and if so, the data transceiving module is used for sending the content in the storage position to the server.
5. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 2 when executing the program.
CN201811561945.5A 2018-12-20 2018-12-20 Content submission method and device and electronic equipment Pending CN111382130A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811561945.5A CN111382130A (en) 2018-12-20 2018-12-20 Content submission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811561945.5A CN111382130A (en) 2018-12-20 2018-12-20 Content submission method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111382130A true CN111382130A (en) 2020-07-07

Family

ID=71220712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811561945.5A Pending CN111382130A (en) 2018-12-20 2018-12-20 Content submission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111382130A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194116A (en) * 2021-03-17 2021-07-30 金蝶蝶金云计算有限公司 Service data processing method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729595A (en) * 2009-11-26 2010-06-09 世导数据通讯(杭州)有限公司 Network backup device and backup method thereof
CN102254005A (en) * 2011-07-15 2011-11-23 苏州阔地网络科技有限公司 Method for transforming and displaying document on webpage
CN102456052A (en) * 2010-11-02 2012-05-16 江苏大学 Method for data synchronization between embedded device and database
CN103685338A (en) * 2012-08-31 2014-03-26 英业达科技有限公司 System and method for storing target document offline to wait online synchronization
CN104660623A (en) * 2013-11-18 2015-05-27 北大方正集团有限公司 Method and system for network file offline editing
CN105407134A (en) * 2015-10-20 2016-03-16 北京齐尔布莱特科技有限公司 Form submission equipment, form submission method and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729595A (en) * 2009-11-26 2010-06-09 世导数据通讯(杭州)有限公司 Network backup device and backup method thereof
CN102456052A (en) * 2010-11-02 2012-05-16 江苏大学 Method for data synchronization between embedded device and database
CN102254005A (en) * 2011-07-15 2011-11-23 苏州阔地网络科技有限公司 Method for transforming and displaying document on webpage
CN103685338A (en) * 2012-08-31 2014-03-26 英业达科技有限公司 System and method for storing target document offline to wait online synchronization
CN104660623A (en) * 2013-11-18 2015-05-27 北大方正集团有限公司 Method and system for network file offline editing
CN105407134A (en) * 2015-10-20 2016-03-16 北京齐尔布莱特科技有限公司 Form submission equipment, form submission method and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李红: "网页设计与制作", 31 January 2011, 东南大学出版社, pages: 183 - 187 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194116A (en) * 2021-03-17 2021-07-30 金蝶蝶金云计算有限公司 Service data processing method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US20200213362A1 (en) Policy approval layer
US20180276053A1 (en) Dynamically integrating a client application with third-party services
CN108829838B (en) Batch processing method of account information and server
US10375154B2 (en) Interchangeable retrieval of content
CN110933608A (en) Equipment registration terminal and method and electronic equipment
CN105051685A (en) System and method to enable web property access to a native application
CN104468592A (en) Login method and system
US20170142186A1 (en) Method, apparatus, and electronic device for downloading files
CN111090453B (en) Equipment configuration method, equipment and storage medium
CN111309264B (en) Method, system, device and medium for making directory quota compatible with snapshot
CN111131409B (en) Method and device for responding to request and related equipment
CN110780855A (en) Method, device and system for uniformly managing and controlling interface
CN111382130A (en) Content submission method and device and electronic equipment
CN108133026B (en) Multi-data processing method, system and storage medium
CN110929471A (en) Method and terminal for displaying rich text and electronic equipment
CN111723369A (en) File management method, equipment and medium of FTP server
CN111294276A (en) Mailbox-based remote control method, system, device and medium
CN107562790B (en) Method and system for realizing batch warehousing of data processing
CN111045989A (en) Method, device and medium for querying CPLD version information
CN110633432A (en) Method, device, terminal equipment and medium for acquiring data
CN114285657B (en) Firewall security policy change verification method and device
WO2017143931A1 (en) Method and apparatus for identifying smart card, method and apparatus for processing smart card identification data, and device
CN111367898B (en) Data processing method, device, system, electronic equipment and storage medium
CN111198810A (en) Software testing method and device and electronic equipment
CN111130976B (en) Method, equipment and medium for configuring virtual local area network of white box switch

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