CN109710436B - Space cleaning method, device, equipment and computer readable storage medium - Google Patents

Space cleaning method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109710436B
CN109710436B CN201810951314.8A CN201810951314A CN109710436B CN 109710436 B CN109710436 B CN 109710436B CN 201810951314 A CN201810951314 A CN 201810951314A CN 109710436 B CN109710436 B CN 109710436B
Authority
CN
China
Prior art keywords
space
operation mode
space capacity
target
capacity
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
CN201810951314.8A
Other languages
Chinese (zh)
Other versions
CN109710436A (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.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201810951314.8A priority Critical patent/CN109710436B/en
Priority to PCT/CN2018/122715 priority patent/WO2020034531A1/en
Publication of CN109710436A publication Critical patent/CN109710436A/en
Application granted granted Critical
Publication of CN109710436B publication Critical patent/CN109710436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Telephonic Communication Services (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a space cleaning method, a device, equipment and a computer readable storage medium, wherein the method is based on a cloud storage technology, and comprises the following steps: when a selection instruction of a service type is received in an application interface of a preset application, determining a target service type corresponding to the selection instruction; determining a target operation mode of the target service type; extracting the space capacity required by the target operation mode, and comparing the space capacity with the current residual space capacity of the equipment sending the selection instruction; if the required space capacity is larger than the current residual space capacity, outputting prompt information for cleaning the space, and comparing the cleaned residual space capacity with the required space capacity again after cleaning the space; and when the required space capacity is smaller than the cleaned residual space capacity, executing an operation process according to the target operation mode. The space cleaning method based on the cloud storage technology improves the intelligence of operation execution.

Description

Space cleaning method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of space cleaning technologies, and in particular, to a space cleaning method, apparatus, device, and computer-readable storage medium.
Background
When the existing terminal executes the operation occupying a larger space, the phenomenon of operation interruption or halt often occurs because the storage space of the terminal is insufficient. The terminal can only interrupt operation or restart, then perform space cleaning, and then re-execute the corresponding operation process. Obviously, the existing operation execution process is easy to be carried out smoothly due to insufficient storage space, and the space cleaning mode has complex operation and lower intelligence.
Disclosure of Invention
The invention mainly aims to provide a space cleaning method, a space cleaning device, space cleaning equipment and a computer readable storage medium, and aims to solve the technical problems of complex operation and low intelligence of the existing space cleaning mode.
In order to achieve the above object, the present invention provides a space cleaning method, including:
when a selection instruction of a service type is received in an application interface of a preset application, determining a target service type corresponding to the selection instruction;
determining a target operation mode of the target service type;
extracting the space capacity required by the target operation mode from a background server through a background interface, and comparing the required space capacity with the current residual space capacity of the equipment sending the selection instruction;
if the required space capacity is larger than the current residual space capacity, outputting prompt information for cleaning the space, and comparing the cleaned residual space capacity with the required space capacity again after cleaning the space;
and when the required space capacity is smaller than the cleaned residual space capacity, executing an operation process according to the target operation mode.
Optionally, the step of determining the target operation mode of the target service type includes:
obtaining a type identifier of the target service type;
sending the type identifier of the target service type to a background server through a background interface so that the background server can search the operation mode mapped by the type identifier;
and receiving an operation mode fed back by the background server, wherein the received operation mode is determined as a target operation mode of the target service type.
Optionally, the step of extracting, in a background server through a background interface, the space capacity required by the target operation mode, and comparing the required space capacity with a current remaining space capacity of a device that sends the selection instruction includes:
acquiring a mark of the target operation mode;
sending the mark of the target operation mode to a background server through a background interface so as to extract the space capacity required by the target operation mode from the background server;
and comparing the space capacity required by the target operation mode with the current remaining space capacity of the equipment sending the selection instruction.
Optionally, before the step of determining the target service type corresponding to the selection instruction when the selection instruction of the service type is received in the application interface of the preset application, the method further includes:
classifying and sorting the operation modes according to the service types of the products, and storing the service types and the operation modes in a background server in an associated manner, wherein the operation modes comprise audio and video recording, photographing or voice guidance interface recording processes;
the step of executing the operation process according to the target operation mode comprises the following steps:
and if the operation mode is to record audio and video or record a voice guide interface, executing an audio and video recording process according to a target operation mode corresponding to the recorded audio and video or executing an interface recording process according to a target operation mode corresponding to the voice guide interface recording process.
Optionally, after the step of performing the operation procedure according to the target operation mode when the required space capacity is smaller than the cleared remaining space capacity, the method further includes:
acquiring data obtained by executing the operation process;
and compressing the acquired data according to a preset proportion to obtain compressed data.
In addition, to achieve the above object, the present invention also provides a space cleaning apparatus, including:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining a target business type corresponding to a selection instruction when the selection instruction of the business type is received in an application interface of a preset application;
the second determining module is used for determining a target operation mode of the target service type;
the processing module is used for extracting the space capacity required by the target operation mode from a background server through a background interface and comparing the required space capacity with the current residual space capacity of the equipment sending the selection instruction;
the output module is used for outputting prompt information for cleaning the space if the required space capacity is larger than the current residual space capacity;
the comparison module is also used for comparing the cleaned residual space capacity with the required space capacity again after the space is cleaned;
and the execution module is used for executing the operation process according to the target operation mode when the required space capacity is smaller than the cleaned residual space capacity.
Optionally, the second determining module includes:
a first obtaining unit, configured to obtain a type identifier of the target service type;
the first sending unit is used for sending the type identifier of the target service type to a background server through a background interface so as to enable the background server to search the operation mode mapped by the type identifier;
and the receiving unit is used for receiving the operation mode fed back by the background server, wherein the received operation mode is determined as the target operation mode of the target service type.
Optionally, the processing module includes:
a second acquisition unit configured to acquire a flag of the target operation mode;
the second sending unit is used for sending the mark of the target operation mode to a background server through a background interface so as to extract the space capacity required by the target operation mode from the background server;
and the comparison unit is used for comparing the space capacity required by the target operation mode with the current residual space capacity of the equipment sending the selection instruction.
In addition, in order to achieve the above object, the present invention further provides a space cleaning apparatus, including a memory, a processor, a communication bus, and a space cleaning program stored on the memory and operable on the processor;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute the space cleaning program to implement the steps of the space cleaning method as described above.
Furthermore, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a space cleaning program, which when executed by a processor, implements the steps of the space cleaning method as described above.
The space cleaning method provided by the invention has the advantages that when the selection instruction of the service type is received in the application interface of the preset application, firstly determining a target service type corresponding to the selection instruction, then determining a target operation mode of the target service type, then extracting the space capacity required by the target operation mode from a background server through a background interface, and comparing the required space capacity with the current remaining space capacity of the device sending the selection instruction, if the required space capacity is larger than the current remaining space capacity, outputting prompt information of cleaning the space, comparing the cleaned residual space capacity with the required space capacity again after cleaning the space, and when the required space capacity is smaller than the cleaned residual space capacity, executing an operation process according to the target operation mode. Before the operation, the space capacity required by the operation is extracted from the background server through the background interface, and if the required space capacity is larger than the current residual space capacity of the equipment, the space is cleared first so as to be smoothly executed when the operation process is executed subsequently, and the interruption caused by insufficient storage space in the operation execution process is prevented.
Drawings
FIG. 1 is a schematic structural diagram of a space cleaning device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a space cleaning method according to a first embodiment of the present invention;
FIG. 3 is a detailed flowchart of step S20 in FIG. 2;
FIG. 4 is a detailed flowchart of step S30 in FIG. 2;
FIG. 5 is a flowchart illustrating a space cleaning method according to a third embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The solution of the embodiment of the invention is mainly as follows: when a selection instruction of a service type is received in an application interface of a preset application, a target service type corresponding to the selection instruction is determined, then a target operation mode of the target service type is determined, then space capacity required by the target operation mode is extracted from a background server through a background interface, the required space capacity is compared with the current residual space capacity of equipment sending the selection instruction, if the required space capacity is larger than the current residual space capacity, prompt information for cleaning the space is output, after the space is cleaned, the cleaned residual space capacity is compared with the required space capacity again, and when the required space capacity is smaller than the cleaned residual space capacity, an operation process is executed according to the target operation mode. With solving current space clearance mode, complex operation, problem that intelligence is low.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a space cleaning apparatus in a hardware operating environment according to an embodiment of the present invention.
The space cleaning equipment in the embodiment of the invention can be a PC, and can also be equipment with a display function, such as a smart phone, a tablet personal computer, a portable computer and the like.
As shown in fig. 1, the space cleaning apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface (e.g., for connecting a wired Keyboard, a wired mouse, etc.), a wireless interface (e.g., for connecting a wireless Keyboard, a wireless mouse). The network interface 1004 may optionally include a standard wired interface (for connecting to a wired network), a wireless interface (e.g., a WI-FI interface, a bluetooth interface, an infrared interface, etc., for connecting to a wireless network). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the device may also include a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, WiFi modules, and so forth.
It will be appreciated by those skilled in the art that the space-cleaning apparatus arrangement shown in figure 1 does not constitute a limitation of the conversion apparatus and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a space cleaning program. The operating system is a program for managing and controlling the space cleaning equipment and software resources and supports the operation of a network communication module, a user interface module, a space cleaning program and other programs or software; the network communication module is used for managing and controlling the network interface 1002; the user interface module is used to manage and control the user interface 1003.
In the space cleaning apparatus shown in fig. 1, the space cleaning apparatus calls a space cleaning program stored in a memory 1005 by a processor 1001 to implement the steps of the space cleaning method as described below.
Based on the hardware structure of the space cleaning device, various embodiments of the space cleaning method are provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a space cleaning method according to a first embodiment of the invention.
In this embodiment, the space cleaning method includes:
step S10, when receiving a selection instruction of a service type in an application interface of a preset application, determining a target service type corresponding to the selection instruction;
step S20, determining the target operation mode of the target service type;
step S30, extracting the space capacity needed by the target operation mode from a background server through a background interface, and comparing the needed space capacity with the current remaining space capacity of the equipment sending the selection instruction;
step S40, if the required space capacity is larger than the current residual space capacity, outputting prompt information of cleaning the space, and comparing the cleaned residual space capacity with the required space capacity again after cleaning the space;
and step S50, when the required space capacity is smaller than the cleaned residual space capacity, executing an operation process according to the target operation mode.
In this embodiment, the space cleaning method is applied to a space cleaning apparatus, such as the space cleaning apparatus shown in fig. 1.
The following are the specific steps in this embodiment to achieve space cleaning:
step S10, when receiving a selection instruction of a service type in an application interface of a preset application, determining a target service type corresponding to the selection instruction;
in this embodiment, the space cleaning device is started according to a start instruction touched by a user, and then various service types are displayed in an application interface where a preset application is located, wherein the preset application includes, but is not limited to, an insurance application and a social application; when the preset application is an insurance application, the service types comprise various insurance product types; when the preset application is a social application, the service type comprises a chat window type and a message publishing window type. Under the condition that various service types are displayed in the application interface of the preset application, if a selection instruction of the service types is received in the application interface of the preset application, the corresponding target service type can be determined according to the area touched by the selection instruction.
Step S20, determining the target operation mode of the target service type;
and after determining the service type corresponding to the selection instruction, determining the operation mode of the service type, wherein the operation mode comprises the processes of recording audio and video, photographing or recording a voice guide interface. In this embodiment, referring to fig. 3, the step S20 includes:
step S21, obtaining the type identification of the target service type;
that is, after determining the target service type corresponding to the selection instruction, the type identifier of the target service type is obtained first, in this embodiment, the target service type may be uniquely determined by the type identifier, when the target service type is various insurance product types, the type identifier may be selected as an insurance product name or an insurance product ID number, and when the target service type is a chat window type of a social application or a message posting window type, the type identifier may be selected as a window name or a window ID number.
Step S22, the type identifier of the target service type is sent to a background server through a background interface, so that the background server can search the operation mode mapped by the type identifier;
after the type identifier of the target service type is obtained, the type identifier of the target service type is sent to a background server through a background interface so that the background server can search an operation mode mapped by the type identifier. After the background server receives the type identifier of the target service type sent by the space cleaning equipment through the background interface, the mapped operation mode, namely the above-mentioned audio and video recording, photographing or voice guidance interface recording process, can be found according to the type identifier.
And step S23, receiving the operation mode fed back by the background server, wherein the received operation mode is determined as the target operation mode of the target service type.
After the background server searches the operation mode mapped by the type identifier, feeding back the searched operation mode to the space cleaning equipment, receiving the operation mode fed back by the background server by the space cleaning equipment, and determining that the received operation mode is the target operation mode corresponding to the determined target service type.
Step S30, extracting the space capacity needed by the target operation mode from a background server through a background interface, and comparing the needed space capacity with the current remaining space capacity of the equipment sending the selection instruction;
specifically, referring to fig. 4, the step S30 includes:
step S31, acquiring a mark of the target operation mode;
that is, after the space cleaning device receives the target operation mode in the background server through the background interface, the mark of the target operation mode is obtained first, and similarly, the mark of the target operation mode is also used for determining the corresponding target operation mode.
Step S32, sending the mark of the target operation mode to a background server through a background interface so as to extract the space capacity required by the target operation mode from the background server;
after the mark of the target operation mode is obtained, the space capacity required by the target operation mode is extracted from the background server through the background interface, specifically, the target operation mode is sent to the background server through the background interface, so as to extract the space capacity required by the target operation mode from the background server.
Step S33, comparing the space capacity required by the target operation mode with the current remaining space capacity of the device sending the selection instruction.
After the space capacity required by the target operation mode is extracted from the background server through the background interface, the space capacity required by the target operation mode can be compared with the current remaining space capacity of the equipment.
Step S40, if the required space capacity is larger than the current residual space capacity, outputting prompt information of cleaning the space, and comparing the cleaned residual space capacity with the required space capacity again after cleaning the space;
after comparing the space capacity required by the target operation mode with the current residual space capacity of the equipment, if the space capacity required by the target operation mode is larger than the current residual space capacity, outputting prompt information for cleaning the space to clean the space, optionally, after outputting the prompt information for cleaning the space, directly cleaning the space by the equipment, optionally, after outputting the prompt information for cleaning the space, displaying a confirmation button, and cleaning the space when touch operation is detected at the position of the confirmation button. After the space is cleaned, the remaining space capacity after cleaning is compared again with the required space capacity.
And step S50, when the required space capacity is smaller than the cleaned residual space capacity, executing an operation process according to the target operation mode.
In this embodiment, when the required space capacity is smaller than the remaining space capacity after cleaning, the operation process may be executed according to the determined target operation mode, where the mode of executing the operation process according to the determined target operation mode includes: when the target operation mode is photographing, starting a camera according to the photographing target operation mode to photograph; when the target operation mode is to record the audio and video, executing an audio and video recording process according to the target operation mode of recording the audio and video; and when the target operation mode is a voice guide interface recording process, executing the interface recording process according to the target operation mode of the voice guide interface recording process, wherein the interface recording process can be a recording process of a file operation interface, an operation process of product use and the like.
In the space cleaning method provided in this embodiment, when the application interface of the preset application receives the selection instruction of the service type, firstly determining a target service type corresponding to the selection instruction, then determining a target operation mode of the target service type, then extracting the space capacity required by the target operation mode from a background server through a background interface, and comparing the required space capacity with the current remaining space capacity of the device sending the selection instruction, if the required space capacity is larger than the current remaining space capacity, outputting prompt information of cleaning the space, comparing the cleaned residual space capacity with the required space capacity again after cleaning the space, and when the required space capacity is smaller than the cleaned residual space capacity, executing an operation process according to the target operation mode. Before the operation, the space capacity required by the operation is extracted from the background server through the background interface, and if the required space capacity is larger than the current residual space capacity of the equipment, the space is cleared first so as to be smoothly executed when the operation process is executed subsequently, and the interruption caused by insufficient storage space in the operation execution process is prevented.
Further, a second embodiment of the space cleaning method of the present invention is proposed based on the first embodiment.
The second embodiment of the space cleaning method is different from the first embodiment of the space cleaning method in that, when the operation mode is a recording process of a recorded audio/video or voice guidance interface, before the step S10, the method further includes:
step A, classifying and sorting operation modes according to service types of products, and storing the service types and the operation modes in a background server in an associated manner, wherein the operation modes comprise audio and video recording, photographing or voice guidance interface recording processes;
the step of executing the operation process according to the target operation mode comprises the following steps:
and if the operation mode is to record audio and video or record a voice guide interface, executing an audio and video recording process according to a target operation mode corresponding to the recorded audio and video or executing an interface recording process according to a target operation mode corresponding to the voice guide interface recording process.
In this embodiment, the space cleaning device needs to classify the operation modes according to the service types of the products, then store the classified operation modes and the corresponding service types in the background server in an associated manner, store the operation modes and the service types in the background server in an associated manner, and return the operation modes to the space cleaning device according to the service types when recording of audio and video, photographing or voice guidance interface recording processes are required to be performed subsequently, so that the space cleaning device can perform recording operation according to the recording modes. That is, after the space cleaning device determines the service type in the application interface, the type identifier of the service type is sent to the background server through the background interface, the background server returns the target operation mode mapped by the type identifier, after the space cleaning device receives the target operation mode, if the operation mode is recording audio/video or voice guidance interface recording, the space capacity required by the target operation mode is extracted from the background server through the background interface, so as to compare the required space capacity with the current remaining space capacity of the device, if the space capacity required by the target operation mode is larger than the current remaining space capacity, the space cleaning is firstly carried out, after the space is cleaned, the cleaned remaining space capacity is compared with the required space capacity again, and when the required space capacity is smaller than the cleaned remaining space capacity, the operation process may be executed according to the determined target operation mode, and the specific mode of executing the operation process according to the determined target operation mode includes: and executing an audio and video recording process according to a target operation mode corresponding to the recorded audio and video, or executing an interface recording process according to a target operation mode corresponding to the voice guidance interface recording process.
In this embodiment, the configuration is performed in the background server in advance, the configured recording rule may be changed at any time, and when the space cleaning device needs to perform recording at the front end, the corresponding recording rule is queried according to the service type, that is, the recording process may be performed according to the queried recording rule.
It should be noted that, the existing recording process, such as the sale process of insurance products, generally refers to the user's own recording, and reading the text rules for recording before or during the recording process, which is cumbersome to operate and has low intelligence. In the embodiment, after the recording rule is fed back according to the service type, the space cleaning equipment prompts a user to record according to the recording rule, and the recording rule is sorted according to the service type, so that the recording rule is clearer and more accurate; the background server supports the configuration of rules, can be modified at any time and is convenient for dynamic adjustment; in addition, the recording rule is prompted to the user when recording, so that the user can refer to the recording rule conveniently to improve the recording accuracy, the repeated recording rate is reduced, the accuracy is improved, and the user experience is improved.
Further, a third embodiment of the space cleaning method of the present invention is proposed based on the first or second embodiment.
The third embodiment of the space cleaning method differs from the first or second embodiment of the space cleaning method in that, referring to fig. 5, after the step S50, the method further includes:
step S60, acquiring data obtained by executing the operation process;
and step S70, compressing the acquired data according to a preset proportion to obtain compressed data.
In this embodiment, after the space cleanup device executes the operation process according to the determined operation mode, data obtained by executing the operation process is obtained first, and then, in order to reduce the storage space occupied by the data, the obtained data is compressed according to a preset proportion to obtain compressed data, where a specific numerical value of the preset proportion is set according to actual needs without limitation.
In this embodiment, through compressing data to reduce the memory space that data occupy, prevent that the space that data occupy is too big, also reduced the many times space cleaning process of space cleaning equipment, improved the intelligence of space cleaning.
The present invention also provides a space cleaning apparatus, comprising:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining a target business type corresponding to a selection instruction when the selection instruction of the business type is received in an application interface of a preset application;
the second determining module is used for determining a target operation mode of the target service type;
the processing module is used for extracting the space capacity required by the target operation mode from a background server through a background interface and comparing the required space capacity with the current residual space capacity of the equipment sending the selection instruction;
the output module is used for outputting prompt information for cleaning the space if the required space capacity is larger than the current residual space capacity;
the comparison module is also used for comparing the cleaned residual space capacity with the required space capacity again after the space is cleaned;
and the execution module is used for executing the operation process according to the target operation mode when the required space capacity is smaller than the cleaned residual space capacity.
Specifically, the second determining module includes:
a first obtaining unit, configured to obtain a type identifier of the target service type;
the first sending unit is used for sending the type identifier of the target service type to a background server through a background interface so as to enable the background server to search the operation mode mapped by the type identifier;
and the receiving unit is used for receiving the operation mode fed back by the background server, wherein the received operation mode is determined as the target operation mode of the target service type.
Specifically, the processing module includes:
a second acquisition unit configured to acquire a flag of the target operation mode;
the second sending unit is used for sending the mark of the target operation mode to a background server through a background interface so as to extract the space capacity required by the target operation mode from the background server;
and the comparison unit is used for comparing the space capacity required by the target operation mode with the current residual space capacity of the equipment sending the selection instruction.
The specific implementation of the space cleaning apparatus of the present invention is substantially the same as that of each embodiment of the space cleaning method, and is not described herein again.
An embodiment of the present invention further provides a computer-readable storage medium, where a space cleaning program is stored on the computer-readable storage medium, and when the space cleaning program is executed by a processor, the space cleaning method is implemented as described above.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the space cleaning method described above, and will not be described herein again.
The invention also provides a space cleaning system, which comprises space cleaning equipment and a background server, wherein the space cleaning equipment is the space cleaning equipment;
the background server is used for determining various operation modes corresponding to each service type in the preset application;
configuring required space capacity aiming at various operation modes corresponding to each service type;
and associating and storing the space capacity required by various operation modes in each service type with the corresponding operation mode identification.
In this embodiment, the background server determines various operation modes corresponding to each service type in the preset application, and then configures required space capacity for the various operation modes corresponding to each service type, where the configured mode is configured in the interface by the user, and after the configuration is completed, associates and stores the space capacity required for the various operation modes in each service type with the corresponding operation mode identifier. And when the operation mode mark sent by the space cleaning equipment is received through the background interface subsequently, the required space capacity can be fed back to the space cleaning equipment.
Further, in order to improve the accuracy of the configuration of the space capacity required by each operation mode, the background server is further configured to perform a capacity test on the space capacity required by each operation mode in each service type to determine whether the tested space capacity meets the configured space capacity;
and if so, associating and storing the space capacity required by various operation modes in each service type with the corresponding operation mode identification.
That is, after configuring the space capacity for the operation manner, a capacity test is performed on the space capacity required for each operation manner in each service type to determine whether the tested space capacity satisfies the configured space capacity, and specifically, a process of each operation manner is performed to obtain an actual space capacity for each operation manner and to compare the actual space capacity for each operation manner with the configured required space capacity to determine whether the tested space capacity satisfies the configured space capacity. And if the tested space capacity meets the configured space capacity, the space capacity required by the tested operation mode and the corresponding operation mode identification are stored in a correlation mode.
In this embodiment, the accuracy of the spatial capacity configuration is improved by testing the spatial capacity required by the operation mode.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method of cleaning a space, the method comprising:
when a selection instruction of a service type is received in an application interface of a preset application, determining a target service type corresponding to the selection instruction;
determining a target operation mode of the target service type;
extracting the space capacity required by the target operation mode from a background server through a background interface, and comparing the required space capacity with the current residual space capacity of the equipment sending the selection instruction;
if the required space capacity is larger than the current residual space capacity, outputting prompt information for cleaning the space, and comparing the cleaned residual space capacity with the required space capacity again after cleaning the space;
and when the required space capacity is smaller than the cleaned residual space capacity, executing an operation process according to the target operation mode.
2. The space cleaning method according to claim 1, wherein the step of determining the target operation mode of the target traffic type comprises:
obtaining a type identifier of the target service type;
sending the type identifier of the target service type to a background server through a background interface so that the background server can search the operation mode mapped by the type identifier;
and receiving an operation mode fed back by the background server, wherein the received operation mode is determined as a target operation mode of the target service type.
3. The space cleaning method according to claim 1, wherein the step of extracting the space capacity required by the target operation mode in a background server through a background interface and comparing the required space capacity with the current remaining space capacity of the device sending the selection instruction comprises:
acquiring a mark of the target operation mode;
sending the mark of the target operation mode to a background server through a background interface so as to extract the space capacity required by the target operation mode from the background server;
and comparing the space capacity required by the target operation mode with the current remaining space capacity of the equipment sending the selection instruction.
4. The space cleaning method according to claim 1, wherein before the step of determining the target service type corresponding to the selection instruction when the selection instruction of the service type is received in the application interface of the preset application, the method further comprises:
classifying and sorting the operation modes according to the service types of the applications, and storing the service types and the operation modes in a background server in an associated manner, wherein the operation modes comprise audio and video recording, photographing or voice guidance interface recording processes;
the step of executing the operation process according to the target operation mode comprises the following steps:
and if the operation mode is to record audio and video or record a voice guide interface, executing an audio and video recording process according to a target operation mode corresponding to the recorded audio and video or executing an interface recording process according to a target operation mode corresponding to the voice guide interface recording process.
5. The space cleaning method according to claim 1, wherein after the step of performing an operation procedure in the target operation manner when the required space capacity is smaller than the remaining space capacity after the cleaning, the method further comprises:
acquiring data obtained by executing the operation process;
and compressing the acquired data according to a preset proportion to obtain compressed data.
6. A space cleaning apparatus, characterized in that the space cleaning apparatus comprises:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining a target business type corresponding to a selection instruction when the selection instruction of the business type is received in an application interface of a preset application;
the second determining module is used for determining a target operation mode of the target service type;
the processing module is used for extracting the space capacity required by the target operation mode from a background server through a background interface and comparing the required space capacity with the current residual space capacity of the equipment sending the selection instruction;
the output module is used for outputting prompt information for cleaning the space if the required space capacity is larger than the current residual space capacity;
the comparison module is also used for comparing the cleaned residual space capacity with the required space capacity again after the space is cleaned;
and the execution module is used for executing the operation process according to the target operation mode when the required space capacity is smaller than the cleaned residual space capacity.
7. The space cleaning apparatus of claim 6, wherein the second determining module comprises:
a first obtaining unit, configured to obtain a type identifier of the target service type;
the first sending unit is used for sending the type identifier of the target service type to a background server through a background interface so as to enable the background server to search the operation mode mapped by the type identifier;
and the receiving unit is used for receiving the operation mode fed back by the background server, wherein the received operation mode is determined as the target operation mode of the target service type.
8. The space cleaning apparatus of claim 6, wherein the processing module comprises:
a second acquisition unit configured to acquire a flag of the target operation mode;
the second sending unit is used for sending the mark of the target operation mode to a background server through a background interface so as to extract the space capacity required by the target operation mode from the background server;
and the comparison unit is used for comparing the space capacity required by the target operation mode with the current residual space capacity of the equipment sending the selection instruction.
9. A space cleaning apparatus comprising a memory, a processor, a communication bus, and a space cleaning program stored on the memory and executable on the processor;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute the space cleaning program to implement the steps of the space cleaning method according to any one of claims 1 to 5.
10. A computer-readable storage medium, having stored thereon a space cleaning program which, when executed by a processor, implements the steps of the space cleaning method according to any one of claims 1 to 5.
CN201810951314.8A 2018-08-17 2018-08-17 Space cleaning method, device, equipment and computer readable storage medium Active CN109710436B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810951314.8A CN109710436B (en) 2018-08-17 2018-08-17 Space cleaning method, device, equipment and computer readable storage medium
PCT/CN2018/122715 WO2020034531A1 (en) 2018-08-17 2018-12-21 Space cleaning method and apparatus, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810951314.8A CN109710436B (en) 2018-08-17 2018-08-17 Space cleaning method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109710436A CN109710436A (en) 2019-05-03
CN109710436B true CN109710436B (en) 2021-03-30

Family

ID=66253657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810951314.8A Active CN109710436B (en) 2018-08-17 2018-08-17 Space cleaning method, device, equipment and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN109710436B (en)
WO (1) WO2020034531A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538464B (en) * 2020-05-10 2021-05-07 浙江智飨科技有限公司 Data cleaning method and device based on Internet of things platform
CN113010551B (en) * 2021-03-02 2022-05-10 北京三快在线科技有限公司 Resource caching method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100392604C (en) * 2005-06-27 2008-06-04 腾讯科技(深圳)有限公司 System and method for realizing program resource sharing
CN103853610B (en) * 2012-12-07 2018-11-16 腾讯科技(深圳)有限公司 Method for optimizing resources and device
CN104077191A (en) * 2014-07-18 2014-10-01 广州金山网络科技有限公司 Method and device used for managing memory resources
CN104219561B (en) * 2014-08-20 2017-10-03 北京奇艺世纪科技有限公司 The method for cleaning and user equipment of a kind of offline video
CN104639860B (en) * 2014-12-31 2017-11-03 浙江华和万润信息科技有限公司 The storage method and device of a kind of monitoring video
CN105653582A (en) * 2015-12-21 2016-06-08 联想(北京)有限公司 File management method of electronic equipment and electronic equipment
CN106909447B (en) * 2015-12-23 2019-11-15 北京金山安全软件有限公司 Background application processing method and device and terminal
CN105740017B (en) * 2016-01-29 2019-06-04 贵阳海信电子有限公司 The upgrade method and device of cloud television system
CN107844333A (en) * 2017-09-06 2018-03-27 努比亚技术有限公司 One kind applies method for cleaning, mobile terminal and computer-readable recording medium
CN107608634A (en) * 2017-09-25 2018-01-19 四川长虹电器股份有限公司 Android system spatial processing method

Also Published As

Publication number Publication date
CN109710436A (en) 2019-05-03
WO2020034531A1 (en) 2020-02-20

Similar Documents

Publication Publication Date Title
CN108021691B (en) Answer searching method, customer service robot and computer readable storage medium
EP3188034A1 (en) Display terminal-based data processing method
CN106302996B (en) Message display method and device
CN109947771B (en) File type conversion method, apparatus, device and computer readable storage medium
CN106203459B (en) Picture processing method and device
CN110597954A (en) Garbage classification method, device and system and computer readable storage medium
CN109710436B (en) Space cleaning method, device, equipment and computer readable storage medium
CN104239445A (en) Method and device for representing search results
CN105279778A (en) Method and terminal for picture color filling
CN111859119A (en) Information processing method and device
CN111046040A (en) Method and device for determining index, electronic equipment and storage medium
CN105809162B (en) Method and device for acquiring WIFI hotspot and picture associated information
CN107747788B (en) Air conditioner parameter determination method, air conditioner equipment and readable storage medium
CN109740014B (en) Screenshot management method, terminal device and storage medium
CN109949887B (en) Consultation recording method, consultation recording device and computer readable storage medium
CN109600738B (en) User information updating method, device, equipment and storage medium
CN105425936B (en) Method and device for adapting terminal to external device and terminal
CN111553749A (en) Activity push strategy configuration method and device
CN106302821B (en) Data request method and equipment thereof
CN110891265A (en) Wireless connection control method and device, mobile terminal and storage medium
CN104202482A (en) Equipment and method for processing communication records and mobile terminal
CN113256253A (en) Data processing method, device, equipment, computer readable storage medium and product
CN111078518B (en) Data acquisition method, terminal device and computer readable storage medium
JP6850527B2 (en) Recruitment support equipment, recruitment support methods, and programs
CN109688045B (en) Mail attachment downloading method, device, equipment and readable storage 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
GR01 Patent grant
GR01 Patent grant