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
user
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

一种内容提交方法及装置、电子设备Method and device for submitting content, and electronic device

技术领域technical field

本发明涉及互联网技术领域,特别是指一种内容提交方法及装置、电子设备。The present invention relates to the field of Internet technology, and in particular, to a content submission method and device, and electronic equipment.

背景技术Background technique

现有的班级管理系统,教师可进入班级评测页面,通过编辑操作,对学生进行综合评价,评价内容编辑完成点击确认向服务器提交评价内容。实际应用过程中,有时遇到学校网络不稳定的情况,导致编辑完成的评价内容无法成功提交,只能等到连接网络后重新编辑、提交,影响用户体验。In the existing class management system, teachers can enter the class evaluation page, and conduct a comprehensive evaluation of students through editing operations. After editing the evaluation content, click Confirm to submit the evaluation content to the server. In the actual application process, sometimes the school network is unstable, so that the edited evaluation content cannot be successfully submitted, and it can only be re-edited and submitted after connecting to the network, which affects the user experience.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明的目的在于提出一种内容提交方法及装置、电子设备,能够在无网状态时先将提交的内容缓存于本地,有网状态时自动提交,提升用户体验。In view of this, the purpose of the present invention is to provide a content submission method, device, and electronic device, which can cache the submitted content locally when there is no network, and automatically submit it when there is a network, so as to improve user experience.

基于上述目的,本发明提供了一种内容提交方法,包括:Based on the above purpose, the present invention provides a content submission method, comprising:

获取用户身份标识;Get user ID;

编辑并提交内容;edit and submit content;

检测网络状态,若处于联网状态,则将所述内容发送至服务器,若处于未联网状态,则将所述内容保存于本地与所述用户身份标识对应的存储位置,之后,检测网络状态,若处于联网状态,将保存的所述内容发送至所述服务器,将本地保存的所述内容删除。Detect the network status, if it is in a networked state, send the content to the server, if it is not in a networked state, save the content in a local storage location corresponding to the user identity, and then detect the network status, if In a networked state, the stored content is sent to the server, and the locally stored content is deleted.

可选的,所述方法还包括:判断所述存储位置是否存在,若存在则于联网状态,将所述存储位置下的所述内容发送至所述服务器。Optionally, the method further includes: judging whether the storage location exists, and if it exists, sending the content under the storage location to the server in a networked state.

本发明实施例还提供一种内容提交装置,包括:An embodiment of the present invention also provides a content submission device, including:

数据收发模块,用于接收从服务器发送的登录用户的用户身份标识,以及根据网络检测模块的检测结果,若处于联网状态,将提交的内容发送至服务器,以及若处于联网状态,将保存于本地的所述内容发送至所述服务器,删除本地保存的所述内容;The data transceiver module is used to receive the user identity of the logged-in user sent from the server, and according to the detection result of the network detection module, if it is in the network state, it will send the submitted content to the server, and if it is in the network state, it will be saved locally. The content is sent to the server, and the content stored locally is deleted;

网络检测模块,用于检测网络状态;The network detection module is used to detect the network status;

备份模块,用于根据所述网络检测模块的检测结果,若处于未联网状态,将所述内容保存于本地与所述用户身份标识对应的存储位置。The backup module is configured to, according to the detection result of the network detection module, save the content in a local storage location corresponding to the user identity if the network is not connected to the network.

可选的,所述装置还包括:Optionally, the device further includes:

判断模块,用于于用户登录状态下,判断本地是否存在与所述用户身份标识对应的所述存储位置,若存在则利用所述数据收发模块将所述存储位置下的所述内容发送至所述服务器。The judgment module is used to judge whether there is the storage location corresponding to the user identity in the user login state, and if there is, use the data transceiver module to send the content under the storage location to the storage location. mentioned server.

本发明实施例还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现所述方法。An embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method when executing the program.

从上面所述可以看出,本发明提供的内容提交方法及装置、电子设备,编辑内容完成后,提交内容时,先检测是否联网,若处于联网状态,则直接将内容发送至服务器,若处于未联网状态,先将内容缓存于本地与登录用户的用户身份标识对应的存储位置,联网后,将保存的内容发送至服务器。利用本发明的方法及装置,用户无需关心网络状态,提交的内容均可自动发送至服务器,保证数据的同步。It can be seen from the above that, in the content submission method, device, and electronic device provided by the present invention, after editing the content, when submitting the content, it will first detect whether it is connected to the Internet. When not connected to the Internet, the content is first cached locally in the storage location corresponding to the user ID of the logged-in user, and after connecting to the Internet, the saved content is sent to the server. By using the method and device of the present invention, the user does not need to care about the network state, and the submitted content can be automatically sent to the server to ensure data synchronization.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为本发明实施例的方法流程示意图;1 is a schematic flowchart of a method according to an embodiment of the present invention;

图2为本发明实施例的装置结构示意图。FIG. 2 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明进一步详细说明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to specific embodiments and accompanying drawings.

需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for the purpose of distinguishing two entities with the same name but not the same or non-identical parameters. It can be seen that "first" and "second" It is only for the convenience of expression and should not be construed as a limitation to the embodiments of the present invention, and subsequent embodiments will not describe them one by one.

图1为本发明实施例的方法流程示意图。如图所示,本发明实施例提供的内容提交方法,包括:FIG. 1 is a schematic flowchart 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:从服务器获取用户身份标识;S10: Obtain the user identity from the server;

S11:编辑并提交内容;S11: Edit and submit content;

S12:检测网络状态,若处于联网状态,执行步骤S16,若处于未联网状态,执行步骤S13;S12: Detect the network state, if it is in the networked state, go to step S16, if it is in the disconnected state, go to step S13;

S13:将提交的内容保存于本地与用户身份标识对应的存储位置;S13: Save the submitted content in a local storage location corresponding to the user ID;

S14:检测网络状态,若处于联网状态,执行步骤S15,若处于未联网状态,则执行步骤S14;S14: Detect the network state, if it is in the networked state, go to step S15, if it is in the disconnected state, go to step S14;

S15:将提交的内容发送至服务器,将本地保存的内容删除,结束;S15: Send the submitted content to the server, delete the locally saved content, and end;

S16:将提交的内容发送至服务器,结束。S16: Send the submitted content to the server, and end.

本发明实施例中,联网状态下,教师登录班级管理系统,进入班级评测页面,从服务器获取登录教师的用户身份标识、班级信息、学生信息、评价项信息。教师对各学生进行评价时,编辑评价内容,编辑结束后,点击确认按钮以向服务器提交评价内容。由于学校网络不稳定,若编辑结束后,点击确认按钮时无法连接服务器,则在本地建立用于保存所提交的评价内容的文件夹,且该文件夹与教师的用户身份标识相对应。In the embodiment of the present invention, in the networked state, the teacher logs in to the class management system, enters the class evaluation page, and obtains the user ID, class information, student information, and evaluation item information of the logged-in teacher from the server. When evaluating each student, the teacher edits the evaluation content, and after editing, clicks the confirmation button to submit the evaluation content to the server. Due to the instability of the school network, if you cannot connect to the server when you click the Confirm button after editing, a folder for saving the submitted evaluation content will be created locally, and the folder corresponds to the teacher's user ID.

教师登录状态下,实时检测网络状态,联网状态下,将本地保存的与教师的用户身份标识对应的文件夹下的评价内容提交发送至服务器,同时删除本地保存的评价内容。若一直未联网,而教师退出登录,则于教师下次登录时,获取教师的用户身份标识,判断本地是否存在与该用户身份标识对应的文件夹,若存在则在联网状态下,先将文件夹下的评价内容同步提交发送至服务器,而对用户来说,无需执行重新提交保存的操作,无论是否联网,评价内容均会自动提交至服务器,提高用户体验。When the teacher is logged in, the network status is detected in real time. In the networked state, the evaluation content stored locally in the folder corresponding to the teacher's user ID is submitted and sent to the server, and the locally stored evaluation content is deleted at the same time. If the teacher has been disconnected from the Internet, and the teacher logs out, the teacher's user ID will be obtained when the teacher logs in next time, and it will be determined whether there is a folder corresponding to the user ID locally. The evaluation content under the folder is submitted and sent to the server synchronously, and for the user, there is no need to perform the operation of resubmitting and saving, and the evaluation content will be automatically submitted to the server regardless of whether it is connected to the Internet, improving the user experience.

本发明实施例中,通过用户身份标识区分不同用户的操作内容与提交内容,方便不同用户的使用。In the embodiment of the present invention, the operation content and the submitted content of different users are distinguished by the user identification, so as to facilitate the use of different users.

图2为本发明实施例的装置结构示意图。如图所示,本发明实施例提供的内容提交装置,包括:FIG. 2 is a schematic structural diagram of an apparatus according to an embodiment of the present invention. As shown in the figure, the content submission device provided by the embodiment of the present invention includes:

数据收发模块,用于接收从服务器发送的登录用户的用户身份标识,以及根据网络检测模块的检测结果,若处于联网状态,将提交的内容发送至服务器,以及若处于联网状态,将保存于本地的内容发送至服务器,删除本地保存的内容;The data transceiver module is used to receive the user identity of the logged-in user sent from the server, and according to the detection result of the network detection module, if it is in the network state, it will send the submitted content to the server, and if it is in the network state, it will be saved locally. The content is sent to the server, and the locally saved content is deleted;

网络检测模块,用于检测网络状态;The network detection module is used to detect the network status;

备份模块,用于根据网络检测模块的检测结果,若处于未联网状态,将提交的内容保存于本地与用户身份标识对应的存储位置。The backup module is configured to save the submitted content in a local storage location corresponding to the user identity if it is not connected to the Internet according to the detection result of the network detection module.

教师登录班级管理系统后,进入班级评测页面,对学生进行评价,评价内容编辑结束后,提交评价内容,若由于网络不稳定而无法成功提交服务器,则于本地建立与登录教师的用户身份标识相对应的文件夹,将评价内容保存于该文件夹下,然后利用网络检测模块检测网络状态,若处于联网状态,则将文件夹下保存的评价内容经数据收发模块发送至服务器。After the teacher logs in to the class management system, he enters the class evaluation page and evaluates the students. After editing the evaluation content, he submits the evaluation content. If the server cannot be successfully submitted due to the unstable network, a user ID corresponding to the logged-in teacher's user ID will be created locally. The corresponding folder, save the evaluation content in the folder, and then use the network detection module to detect the network status, if it is in the network state, send the evaluation content saved in the folder to the server through the data transceiver module.

所述内容提交装置还包括:The content submission device further includes:

判断模块,用于于用户登录状态下,判断本地是否存在与用户身份标识对应的存储位置,若存在则利用数据收发模块将该存储位置下保存的内容发送至服务器。The judging module is used for judging whether there is a local storage location corresponding to the user's identity in the user's login state, and if so, using the data transceiver module to send the content stored in the storage location to the server.

教师登录状态下,经网络检测模块检测一直未联网而未成功向服务器提交评价内容,则教师退出登录,于教师下次登录时,联网状态下,先将本地保存的与登录教师的用户身份标识对应的文件夹下保存的评价内容经数据收发模块提交发送至服务器,实现数据内容同步。这样,用户无需关心联网状态,可正常进行评价内容的编辑与提交操作,无论是否联网,评价内容均可自动发送至服务器,保存数据内容的同步。In the teacher's login state, if the network detection module detects that it has not been connected to the Internet and fails to submit the evaluation content to the server, the teacher will log out. When the teacher logs in next time, in the online state, the user identity stored locally and the logged-in teacher's user ID will be stored first. The evaluation content saved in the corresponding folder is submitted and sent to the server through the data transceiver module to realize data content synchronization. In this way, the user does not need to care about the network status, and can normally edit and submit the evaluation content. Regardless of whether the user is connected to the Internet, the evaluation content can be automatically sent to the server, and the synchronization of the data content can be saved.

基于上述目的,本发明实施例还提出了一种执行所述内容提交方法的装置的一个实施例。所述装置包括:Based on the above objective, an embodiment of the present invention also provides an embodiment of an apparatus for executing the content submission method. The device includes:

一个或多个处理器以及存储器。One or more processors and memory.

所述执行所述内容提交方法的装置还可以包括:输入装置和输出装置。The device for performing the content submission method may further include: an input device and an output device.

处理器、存储器、输入装置和输出装置可以通过总线或者其他方式连接。The processor, memory, input devices, and output devices may be connected by a bus or otherwise.

存储器作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本发明实施例中的所述内容提交方法对应的程序指令/模块。处理器通过运行存储在存储器中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例的内容提交方法。As a non-volatile computer-readable storage medium, the memory can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, such as programs corresponding to the content submission method in the embodiments of the present invention Directive/Module. The processor executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory, that is, the content submission method of the above method embodiments is implemented.

存储器可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据执行所述内容提交方法的装置的使用所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至会员用户行为监控装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory may include a stored program area and a stored data area, wherein the stored 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 the use of the apparatus for executing the content submission method Wait. Additionally, the memory may include high speed random access memory, and may also include nonvolatile memory, such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some embodiments, the memory may optionally include memory located remotely 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, an intranet, a local area network, a mobile communication network, and combinations thereof.

输入装置可接收输入的数字或字符信息,以及产生与执行所述内容提交方法的装置的用户设置以及功能控制有关的键信号输入。输出装置可包括显示屏等显示设备。The input device may receive input numerical or character information, and generate key signal input related to user settings and function control of the device 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 submission method in any of the above method embodiments. The technical effect of the embodiment of the apparatus for executing the content submission method is the same as or similar to any of the foregoing method embodiments.

本发明实施例还提供了一种非暂态计算机存储介质,所述计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中的列表项操作的处理方法。所述非暂态计算机存储介质的实施例,其技术效果与前述任意方法实施例相同或者类似。Embodiments of the present invention further provide a non-transitory computer storage medium, where the computer storage medium stores computer-executable instructions, where the computer-executable instructions can execute the method for processing list item operations in any of the foregoing method embodiments. The technical effect of the embodiment of the non-transitory computer storage medium is the same as or similar to that of any of the foregoing method embodiments.

最后需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。所述计算机程序的实施例,其技术效果与前述任意方法实施例相同或者类似。Finally, it should be noted that those of ordinary skill in the art can understand that all or part of the process in the method of the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage In the medium, when the program is executed, it may include the processes of the foregoing method embodiments. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like. The technical effects of the computer program embodiments are the same as or similar to any of the foregoing method embodiments.

此外,典型地,本公开所述的装置、设备等可为各种电子终端设备,例如手机、个人数字助理(PDA)、平板电脑(PAD)、智能电视等,也可以是大型终端设备,如服务器等,因此本公开的保护范围不应限定为某种特定类型的装置、设备。本公开所述的客户端可以是以电子硬件、计算机软件或两者的组合形式应用于上述任意一种电子终端设备中。In addition, typically, the apparatuses, devices, etc. described in the present disclosure can be various electronic terminal devices, such as mobile phones, personal digital assistants (PDAs), tablet computers (PADs), smart TVs, etc., and can also be large-scale terminal devices, such as Servers, etc. Therefore, the protection scope of the present disclosure should not be limited to a certain type of apparatus or equipment. The client described in the present disclosure may be applied to any of the above electronic terminal devices in the form of electronic hardware, computer software, or a combination of the two.

此外,根据本公开的方法还可以被实现为由CPU执行的计算机程序,该计算机程序可以存储在计算机可读存储介质中。在该计算机程序被CPU执行时,执行本公开的方法中限定的上述功能。Furthermore, the method according to the present disclosure can also be implemented as a computer program executed by a CPU, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the CPU, the above-described functions defined in the method of the present disclosure are performed.

此外,上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储介质实现。In addition, the above-mentioned method steps and system units can also be implemented by using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the functions of the above-mentioned steps or units.

此外,应该明白的是,本文所述的计算机可读存储介质(例如,存储器)可以是易失性存储器或非易失性存储器,或者可以包括易失性存储器和非易失性存储器两者。作为例子而非限制性的,非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)或快闪存储器。易失性存储器可以包括随机存取存储器(RAM),该RAM可以充当外部高速缓存存储器。作为例子而非限制性的,RAM可以以多种形式获得,比如同步RAM(DRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据速率SDRAM(DDR SDRAM)、增强SDRAM(ESDRAM)、同步链路DRAM(SLDRAM)以及直接RambusRAM(DRRAM)。所公开的方面的存储设备意在包括但不限于这些和其它合适类型的存储器。In addition, it should be understood that computer-readable storage media (eg, memory) described herein can be volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example and not limitation, nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory memory. Volatile memory may include random access memory (RAM), which may act as external cache memory. By way of example and not limitation, RAM is available in various 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 RambusRAM (DRRAM). The storage devices of the disclosed aspects are intended to include, but not be limited to, these and other suitable types of memory.

本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现所述的功能,但是这种实现决定不应被解释为导致脱离本公开的范围。Those skilled in the art will also appreciate that the various exemplary 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 generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends on the specific application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in various ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.

结合这里的公开所描述的各种示例性逻辑块、模块和电路可以利用被设计成用于执行这里所述功能的下列部件来实现或执行:通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或其它可编程逻辑器件、分立门或晶体管逻辑、分立的硬件组件或者这些部件的任何组合。通用处理器可以是微处理器,但是可替换地,处理器可以是任何传统处理器、控制器、微控制器或状态机。处理器也可以被实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、一个或多个微处理器结合DSP核、或任何其它这种配置。The various exemplary logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed using the following components designed to perform the functions described herein: general purpose processors, digital signal processors (DSPs), special purpose processors Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, 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, eg, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration.

结合这里的公开所描述的方法或算法的步骤可以直接包含在硬件中、由处理器执行的软件模块中或这两者的组合中。软件模块可以驻留在RAM存储器、快闪存储器、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动盘、CD-ROM、或本领域已知的任何其它形式的存储介质中。示例性的存储介质被耦合到处理器,使得处理器能够从该存储介质中读取信息或向该存储介质写入信息。在一个替换方案中,所述存储介质可以与处理器集成在一起。处理器和存储介质可以驻留在ASIC中。ASIC可以驻留在用户终端中。在一个替换方案中,处理器和存储介质可以作为分立组件驻留在用户终端中。The steps of a method or algorithm described in connection with the disclosures 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, removable disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. In an alternative, the storage medium may be integrated with the processor. The processor and storage medium may reside in an ASIC. The ASIC may reside in the user terminal. In an alternative, the processor and storage medium may reside in the user terminal as discrete components.

在一个或多个示例性设计中,所述功能可以在硬件、软件、固件或其任意组合中实现。如果在软件中实现,则可以将所述功能作为一个或多个指令或代码存储在计算机可读介质上或通过计算机可读介质来传送。计算机可读介质包括计算机存储介质和通信介质,该通信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何介质。存储介质可以是能够被通用或专用计算机访问的任何可用介质。作为例子而非限制性的,该计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其它光盘存储设备、磁盘存储设备或其它磁性存储设备,或者是可以用于携带或存储形式为指令或数据结构的所需程序代码并且能够被通用或专用计算机或者通用或专用处理器访问的任何其它介质。此外,任何连接都可以适当地称为计算机可读介质。例如,如果使用同轴线缆、光纤线缆、双绞线、数字用户线路(DSL)或诸如红外线、无线电和微波的无线技术来从网站、服务器或其它远程源发送软件,则上述同轴线缆、光纤线缆、双绞线、DSL或诸如红外先、无线电和微波的无线技术均包括在介质的定义。如这里所使用的,磁盘和光盘包括压缩盘(CD)、激光盘、光盘、数字多功能盘(DVD)、软盘、蓝光盘,其中磁盘通常磁性地再现数据,而光盘利用激光光学地再现数据。上述内容的组合也应当包括在计算机可读介质的范围内。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 medium can be any available medium that can be accessed by a general purpose or special purpose computer. By way of example and not limitation, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or may be used to carry or store instructions in the form of or data structures and any other medium 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 coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave are used to send software from a website, server, or other remote source, the above coaxial cable Cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. As used herein, magnetic disks and optical disks include compact disks (CDs), laser disks, optical disks, digital versatile disks (DVDs), floppy disks, blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically with lasers . Combinations of the above should also be included within the scope of computer-readable media.

公开的示例性实施例,但是应当注公开的示例性实施例,但是应当注意,在不背离权利要求限定的本公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本公开的元素可以以个体形式描述或要求,但是也可以设想多个,除非明确限制为单数。Disclosed exemplary embodiments, but it should be noted that disclosed exemplary embodiments, however, it should be noted that various changes and modifications can be made without departing from the scope of the present disclosure as defined by the 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 present disclosure may be described or claimed in the singular, the plural is also contemplated unless explicitly limited to the singular.

应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”(“a”、“an”、“the”)旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It should be understood that, as used herein, the singular forms "a" ("a", "an", "the") are intended to include the plural forms as well, unless the context clearly supports an exception. It will 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 only for description, and do not represent the advantages or disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, etc.

所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上所述的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。Those of ordinary skill in the art should understand that: the discussion of any of the above embodiments is only exemplary, and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples; under the idea of the embodiments of the present invention, the above implementation Examples or technical features in different embodiments can also be combined, and there are many other variations of the different aspects of the embodiments of the invention described above, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention should be included within the protection 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
CN107609156B (en) Page construction method and device
US9229994B2 (en) Server-side tracing of requests
CN110851308A (en) Test method, test device, electronic equipment and storage medium
CN104331369B (en) Browser-based web page detection method and device, and server
WO2016082575A1 (en) Information mining method and apparatus, and storage medium
WO2018107812A1 (en) Error detection method and apparatus for transaction system, storage medium and computer device
US8953206B2 (en) Image forming apparatus, which is connected to a server that provides a service over a network and forms an image using a microblogging function provided by the server, control method and storage medium
CN108664247A (en) A kind of method and device of Page Template data interaction
CN111291007B (en) File aggregation method, system, device and medium
CN111708664A (en) A client log management method, device and medium
CN115328759A (en) Form verification method and device
CN106021566A (en) Method, device and system for improving concurrent processing capacity of single database
CN111309553B (en) A method, system, device and medium for monitoring and storing Jbod
CN111382130A (en) Content submission method and device and electronic equipment
CN111427777B (en) SOL test method, system, equipment and medium
CN111309264B (en) Method, system, device and medium for making directory quota compatible with snapshot
CN111290747B (en) A method, system, device and medium for creating function hook
CN111294276A (en) A mailbox-based remote control method, system, device and medium
WO2021077740A1 (en) Method for querying cpld version information, device, and medium
CN111723369A (en) A file management method, device and medium of an FTP server
CN107749838B (en) A method and device for detecting network hijacking
CN117454038A (en) Page detection method and device
CN115756568A (en) Method and device for updating business rules, electronic equipment and storage medium
CN111367898B (en) Data processing method, device, system, electronic equipment and storage medium
CN111723007B (en) Test case merging method, system, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200707

RJ01 Rejection of invention patent application after publication