Data asynchronous sharing processing method, device and system
By asynchronous downloading and processing data sharing of large files or network resources, the interface freezing caused by synchronous operations is solved, and the efficiency and user experience of data sharing are improved.
Patent Information
- Application Number
- CN202410854934.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-11-12
AI Technical Summary
When existing data sharing controllers process large files or network resources, synchronous operations may cause the user interface to freeze, block the main thread, affecting the response rate and user experience.
Using the data asynchronous sharing method, convert the data to be shared into a download task, generate user activity arrays and sharing item providers through asynchronous download task parameters, create target sharing view controller, generate sharing display interfaces and complete data sharing, and reduce thread blockage .
It improves data sharing processing efficiency, reduces thread blockage, and improves the user interface response efficiency and the sharing interface usage experience.
Smart Images

Figure CN118945152A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data sharing, and in particular to a method, device and system for asynchronous data sharing processing. Background Art
[0002] Existing data sharing controllers (such as UI Activity View Controller) generally process data sharing operations synchronously, that is, the sharing task needs to be completed before the control of the main thread is returned to the caller. However, it is found through practice that if the user needs to share a large file or request a large network resource, the synchronous operation may temporarily freeze other operations of the user interface and block the main thread until the current operation is completed or times out. This will cause the user interface to be unable to update and it is difficult to improve the response rate of the application, thereby affecting the user experience of the sharing interface. It can be seen that it is particularly important to provide a method that can improve the data sharing processing rate. Summary of the invention
[0003] The present invention provides a method, device and system for asynchronous data sharing processing, which improves data sharing processing efficiency, reduces the occurrence of thread blocking, and further improves the response efficiency of the user interface, thereby enhancing the user experience of the sharing interface.
[0004] In order to solve the above technical problems, the first aspect of the present invention discloses a method for asynchronous data sharing, the method comprising:
[0005] Convert the model array corresponding to the data to be shared into a download task, and determine the task parameters of the download task; the data to be shared includes at least one of the image data, video data, text data and audio data to be shared, and the task parameters include task size parameters and / or task type parameters;
[0006] Generate a user activity array for sharing control according to the task parameters of the download task, and create a sharing item provider for sharing download according to the model array corresponding to the data to be shared, so as to perform a download operation on the download task corresponding to the data to be shared through the sharing item provider to obtain a download file corresponding to the data to be shared;
[0007] Creating a target sharing view controller that matches the data to be shared according to the user activity array and the sharing item provider, and generating a sharing display interface for the data to be shared through the target sharing view controller;
[0008] The sharing operation of the data to be shared is completed through the sharing display interface and the downloaded file.
[0009] As an optional implementation, in the first aspect of the present invention, before generating a user activity array for sharing control according to the task parameters of the download task, the method further includes:
[0010] Acquire sharing requirement parameters of the data to be shared; the sharing requirement parameters include at least one of a data receiving object parameter, a sharing identification requirement parameter, a data sharing content requirement parameter, and a data sharing configuration requirement parameter;
[0011] The step of generating a user activity array for sharing control according to the task parameters of the download task includes:
[0012] According to the sharing requirement parameters of the data to be shared and the task parameters of the download task, a corresponding target activity instance is created for each preset sharing control component, and the target activity instances corresponding to all the sharing control components are added to the initialized user activity array to generate a user activity array for sharing control.
[0013] As an optional implementation, in the first aspect of the present invention, the sharing item provider includes a plurality of asynchronous sharing content providers;
[0014] The step of creating a sharing item provider for sharing and downloading according to the model array corresponding to the data to be shared, so as to perform a download operation on the download task corresponding to the data to be shared through the sharing item provider to obtain a download file corresponding to the data to be shared includes:
[0015] The model array corresponding to the data to be shared is traversed to obtain the traversal result of the model data, and based on the traversal result, a plurality of the asynchronous sharing content providers corresponding to the data to be shared are created, so as to perform a download operation on the download task corresponding to the data to be shared through all the asynchronous sharing content providers to obtain a download file corresponding to the data to be shared; the traversal result includes an array length parameter and / or an array type parameter of each array element contained in the model array, and each of the array elements has a corresponding asynchronous sharing content provider.
[0016] As an optional implementation manner, in the first aspect of the present invention, the downloading operation is performed on the download task corresponding to the data to be shared by all the asynchronous sharing content providers to obtain the download file corresponding to the data to be shared, including:
[0017] Obtaining a thread parameter of at least one predetermined thread; the thread parameter includes at least one of a current task execution parameter, a historical task execution parameter, and a resource access type parameter;
[0018] Determining creation parameters of a plurality of semaphores matching the download task according to the thread parameters of all the threads and the task parameters of the download task; the creation parameters include creation size parameters and / or creation time parameters;
[0019] According to the creation parameters of all the semaphores, all the semaphores are created, and download parameters of the download task are determined; the download parameters include download position parameters and / or download callback parameters;
[0020] According to the download parameters of the download task, all the semaphores are called, and the download task corresponding to the data to be shared is downloaded through all the semaphores and all the asynchronous sharing content providers in the call to obtain the download file corresponding to the data to be shared.
[0021] As an optional embodiment, in the first aspect of the present invention, the method further comprises:
[0022] Performing a file verification operation on the downloaded file to obtain a verification result of the downloaded file, and judging whether the downloaded file meets a preset sharing condition according to the verification result; the verification result includes a file location parameter and / or a file damage degree parameter;
[0023] When it is determined that the downloaded file meets the sharing condition, a cache file uniform resource locator of the downloaded file is obtained, and according to the cache file uniform resource locator, the downloaded file is copied to a pre-created temporary directory to obtain the downloaded file copied to the temporary directory;
[0024] The step of completing the sharing operation of the data to be shared through the sharing display interface and the download file includes:
[0025] The sharing operation of the data to be shared is completed through the sharing display interface and the downloaded file copied in the temporary directory.
[0026] As an optional implementation, in the first aspect of the present invention, creating a target sharing view controller matching the data to be shared according to the user activity array and the sharing item provider includes:
[0027] Initializing a preset sharing view controller according to the user activity array and the sharing item provider to obtain an initialized sharing view controller;
[0028] Determine reference parameters according to preset properties, configure the property parameters of the initialized sharing view controller, and obtain a target sharing view controller that matches the data to be shared; the property determination reference parameters include at least one of a sharing pop-up window style parameter, an exclusion activity type parameter, and a sharing post-processing logic parameter.
[0029] As an optional implementation, in the first aspect of the present invention, the post-sharing processing logic parameter is determined in the following manner:
[0030] Acquire a post-sharing processing requirement parameter associated with a target object of the data to be shared; the target object includes a sharing object and / or a receiving object, and the post-sharing processing requirement parameter includes at least one of a sharing success processing requirement parameter, a sharing cancellation processing requirement parameter, and a sharing error processing requirement parameter;
[0031] Determine, according to the post-sharing processing requirement parameters, a post-sharing processing execution mode that matches the target object and execution parameters under the post-sharing processing execution mode; the post-sharing processing execution mode includes at least one of a post-sharing notification mode, a post-sharing sharing interface change mode, and a post-sharing log recording mode;
[0032] According to the post-sharing processing execution mode and the execution parameters under the post-sharing processing execution mode, a post-sharing processing logic parameter is determined.
[0033] A second aspect of the present invention discloses a data asynchronous sharing processing device, the device comprising:
[0034] A conversion module, used to convert the model array corresponding to the data to be shared into a download task; the data to be shared includes at least one of the image data, video data, text data and audio data to be shared;
[0035] A determination module, used to determine task parameters of the download task; the task parameters include task size parameters and / or task type parameters;
[0036] A generating module, used for generating a user activity array for sharing control according to the task parameters of the download task;
[0037] A first creation module, used to create a sharing item provider for sharing and downloading according to the model array corresponding to the data to be shared, so as to perform a download operation on the download task corresponding to the data to be shared through the sharing item provider to obtain a download file corresponding to the data to be shared;
[0038] A second creation module, configured to create a target sharing view controller matching the data to be shared according to the user activity array and the sharing item provider;
[0039] The generating module is further used to generate a sharing display interface of the data to be shared through the target sharing view controller;
[0040] The sharing module is used to complete the sharing operation of the data to be shared through the sharing display interface and the downloaded file.
[0041] As an optional implementation, in the second aspect of the present invention, the device further includes:
[0042] An acquisition module, used to acquire sharing requirement parameters of the data to be shared; the sharing requirement parameters include at least one of a data receiving object parameter, a sharing identification requirement parameter, a data sharing content requirement parameter, and a data sharing configuration requirement parameter;
[0043] The method in which the generating module generates the user activity array for sharing control according to the task parameters of the download task specifically includes:
[0044] According to the sharing requirement parameters of the data to be shared and the task parameters of the download task, a corresponding target activity instance is created for each preset sharing control component, and the target activity instances corresponding to all the sharing control components are added to the initialized user activity array to generate a user activity array for sharing control.
[0045] As an optional implementation, in the second aspect of the present invention, the sharing item provider includes a plurality of asynchronous sharing content providers;
[0046] The first creation module creates a sharing item provider for sharing download according to the model array corresponding to the data to be shared, so as to perform a download operation on the download task corresponding to the data to be shared through the sharing item provider, and the method of obtaining the download file corresponding to the data to be shared specifically includes:
[0047] The model array corresponding to the data to be shared is traversed to obtain the traversal result of the model data, and based on the traversal result, a plurality of the asynchronous sharing content providers corresponding to the data to be shared are created, so as to perform a download operation on the download task corresponding to the data to be shared through all the asynchronous sharing content providers to obtain a download file corresponding to the data to be shared; the traversal result includes an array length parameter and / or an array type parameter of each array element contained in the model array, and each of the array elements has a corresponding asynchronous sharing content provider.
[0048] As an optional implementation, in the second aspect of the present invention, the method of performing a download operation on the download task corresponding to the data to be shared by the sharing item provider to obtain a download file corresponding to the data to be shared specifically includes:
[0049] Obtaining a thread parameter of at least one predetermined thread; the thread parameter includes at least one of a current task execution parameter, a historical task execution parameter, and a resource access type parameter;
[0050] Determining creation parameters of a plurality of semaphores matching the download task according to the thread parameters of all the threads and the task parameters of the download task; the creation parameters include creation size parameters and / or creation time parameters;
[0051] According to the creation parameters of all the semaphores, all the semaphores are created, and download parameters of the download task are determined; the download parameters include download position parameters and / or download callback parameters;
[0052] According to the download parameters of the download task, all the semaphores are called, and the download task corresponding to the data to be shared is downloaded through all the semaphores and all the asynchronous sharing content providers in the call to obtain the download file corresponding to the data to be shared.
[0053] As an optional implementation, in the second aspect of the present invention, the device further includes:
[0054] A verification module, used to perform a file verification operation on the downloaded file to obtain a verification result of the downloaded file;
[0055] A judgment module, used to judge whether the downloaded file meets the preset sharing condition according to the verification result; the verification result includes a file location parameter and / or a file damage degree parameter;
[0056] The acquisition module is further configured to acquire a cache file uniform resource locator of the downloaded file when the determination module determines that the downloaded file meets the sharing condition;
[0057] A copy module, used for copying the downloaded file to a pre-created temporary directory according to the cache file uniform resource locator, to obtain the downloaded file copied to the temporary directory;
[0058] The sharing module uses the sharing display interface and the downloaded file to complete the sharing operation of the data to be shared, which specifically includes:
[0059] The sharing operation of the data to be shared is completed through the sharing display interface and the downloaded file copied in the temporary directory.
[0060] As an optional implementation, in the second aspect of the present invention, the second creation module creates a target sharing view controller matching the data to be shared according to the user activity array and the sharing item provider, specifically including:
[0061] Initializing a preset sharing view controller according to the user activity array and the sharing item provider to obtain an initialized sharing view controller;
[0062] Determine reference parameters according to preset properties, configure the property parameters of the initialized sharing view controller, and obtain a target sharing view controller that matches the data to be shared; the property determination reference parameters include at least one of a sharing pop-up window style parameter, an exclusion activity type parameter, and a sharing post-processing logic parameter.
[0063] As an optional implementation, in the second aspect of the present invention, the post-sharing processing logic parameter is determined in the following manner:
[0064] Acquire a post-sharing processing requirement parameter associated with a target object of the data to be shared; the target object includes a sharing object and / or a receiving object, and the post-sharing processing requirement parameter includes at least one of a sharing success processing requirement parameter, a sharing cancellation processing requirement parameter, and a sharing error processing requirement parameter;
[0065] Determine, according to the post-sharing processing requirement parameters, a post-sharing processing execution mode that matches the target object and execution parameters under the post-sharing processing execution mode; the post-sharing processing execution mode includes at least one of a post-sharing notification mode, a post-sharing sharing interface change mode, and a post-sharing log recording mode;
[0066] According to the post-sharing processing execution mode and the execution parameters under the post-sharing processing execution mode, a post-sharing processing logic parameter is determined.
[0067] A third aspect of the present invention discloses an electronic device, comprising:
[0068] A memory storing executable program code;
[0069] a processor coupled to the memory;
[0070] The processor calls the executable program code stored in the memory to execute the data asynchronous sharing processing method disclosed in the first aspect of the present invention.
[0071] A fourth aspect of the present invention discloses a computer storage medium, wherein the computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the data asynchronous sharing processing method disclosed in the first aspect of the present invention.
[0072] A fifth aspect of the present invention discloses a data asynchronous sharing processing system, the system comprising the data asynchronous sharing processing device disclosed in the second aspect of the present invention, and a NAS device connected to the device for communication; or,
[0073] The system comprises the electronic device disclosed in the third aspect of the present invention, and a NAS device communicatively connected to the electronic device.
[0074] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0075] In the embodiment of the present invention, data to be shared is prepared through asynchronous downloading, and then the sharing process of the data to be shared is displayed to the user, which improves the data sharing processing efficiency, reduces the occurrence of thread blocking, and further improves the response efficiency of the user interface, thereby improving the user experience of the sharing interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0077] Figure 1 It is a flowchart of a data asynchronous sharing processing method disclosed in an embodiment of the present invention;
[0078] Figure 2 It is a flowchart of another data asynchronous sharing processing method disclosed in an embodiment of the present invention;
[0079] Figure 3 It is a structural diagram of a data asynchronous sharing processing device disclosed in an embodiment of the present invention;
[0080] Figure 4 It is a structural schematic diagram of another data asynchronous sharing processing device disclosed in an embodiment of the present invention;
[0081] Figure 5 is a structural schematic diagram of an electronic device disclosed in an embodiment of the present invention;
[0082] Figure 6 It is a structural diagram of a data asynchronous sharing processing system disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0083] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0084] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.
[0085] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0086] The present invention discloses a method, device and system for asynchronous data sharing processing, which improves data sharing processing efficiency, reduces the occurrence of thread blocking, and further improves the response efficiency of the user interface, thereby enhancing the user experience of the sharing interface.
[0087] Embodiment 1
[0088] See also Figure 1 , Figure 1 : is a flow chart of a data asynchronous sharing processing method disclosed in an embodiment of the present invention. Figure 1 The described data asynchronous sharing processing method can be applied to data asynchronous sharing processing in various systems, such as iOS system, Android system, distributed system, etc., and the embodiments of the present invention do not limit this. Optionally, the method can be implemented by a data asynchronous sharing processing device, and the data asynchronous sharing processing device can be integrated in a data asynchronous sharing processing device (such as a smart phone, tablet computer, desktop computer, etc.), or it can be a local server or cloud server for processing the data asynchronous sharing processing flow, and the embodiments of the present invention do not limit this. Figure 1 As shown, the data asynchronous sharing processing method may include the following operations:
[0089] 101. Convert the model array corresponding to the data to be shared into a download task, and determine the task parameters of the download task.
[0090] In the embodiment of the present invention, optionally, the data to be shared includes at least one of image data, video data, text data and audio data to be shared, and the task parameters include task size parameters and / or task type parameters.
[0091] Furthermore, when the acquired data to be shared is an empty set, that is, there is no task that needs to be shared, `add Tasks.count == 0` can be directly returned without executing subsequent operations.
[0092] 102. Generate a user activity array for sharing control according to the task parameters of the download task, and create a sharing item provider for sharing download according to the model array corresponding to the data to be shared, so as to perform a download operation on the download task corresponding to the data to be shared through the sharing item provider to obtain a download file corresponding to the data to be shared.
[0093] In the embodiment of the present invention, specifically, the sharing item provider includes multiple asynchronous sharing content providers, wherein each asynchronous sharing content provider has an array element of a corresponding model array, that is, each array element creates a corresponding asynchronous sharing content provider.
[0094] 103. Create a target sharing view controller that matches the data to be shared according to the user activity array and the sharing item provider, and generate a sharing display interface for the data to be shared through the target sharing view controller.
[0095] In the embodiment of the present invention, further, generating a sharing display interface of the data to be shared through the target sharing view controller includes:
[0096] Through the target sharing view controller, the display parameters required for interface generation are determined, and based on the display parameters, a sharing display interface for the data to be shared is generated, wherein the display parameters include one or more of interface size parameters, interface position parameters, interface identification parameters, interface style parameters, arrow size parameters, arrow style parameters, and arrow position parameters.
[0097] 104. Complete the sharing operation of the shared data by sharing the display interface and downloading the file.
[0098] In an embodiment of the present invention, the downloaded file can be copied to a created temporary directory, and then the data to be shared can be shared through a sharing display interface and the downloaded file copied to the temporary directory, so as to provide timely feedback on the data sharing process to the user.
[0099] It can be seen that the implementation of the embodiment of the present invention can prepare the data to be shared through asynchronous downloading, and then display the sharing process of the data to be shared to the user, thereby improving the data sharing processing efficiency, reducing the occurrence of thread blocking, and thus ensuring that the user interface will not be frozen, improving the response efficiency of the user interface, and thus enhancing the user experience of the sharing interface; at the same time, through the personalized configuration of the sharing display interface and its extensibility with third-party services, the configuration range and flexibility of the sharing interface are also improved, which is conducive to improving the interaction performance between the user and the sharing interface, so as to facilitate the wide promotion of the data asynchronous sharing processing device.
[0100] In an optional embodiment, before generating a user activity array for sharing control according to the task parameters of the download task in the above step 102, the method further includes:
[0101] Get the sharing requirement parameters of the data to be shared.
[0102] Further, as an optional implementation, a user activity array for sharing control is generated according to the task parameters of the download task, including:
[0103] According to the sharing requirement parameters of the data to be shared and the task parameters of the download task, a corresponding target activity instance is created for each preset sharing control component, and the target activity instances corresponding to all sharing control components are added to the initialized user activity array to generate a user activity array for sharing control.
[0104] In this optional embodiment, the sharing requirement parameters may include at least one of a data receiving object parameter, a sharing identification requirement parameter, a data sharing content requirement parameter, and a data sharing configuration requirement parameter. Further, the data receiving object parameters may include a data receiving object type parameter (such as an email management platform or social software that needs to receive the data to be shared), a data receiving object receiving configuration parameter (such as a data receiving time of the data receiving object), etc.
[0105] For example, when a user wants to share the data to be shared to social software A, and the user believes that the icon of social software A does not meet his or her visual effect requirements, the user can set the sharing identification requirement parameters, and then the data asynchronous sharing processing device can create the corresponding `UGActivity` instance (i.e., the target activity instance) for the preset icon display component (i.e., the sharing control component) according to the sharing identification requirement parameters, and add the instance to the `custom Activities` array (i.e., the initialized user activity array), and then obtain the user activity array for sharing control, thereby displaying the icon of the social software A required by the user.
[0106] It can be seen that this optional embodiment can create a target activity instance for the sharing control component according to the sharing requirement parameters of the data to be shared and the task parameters of the download task, and add the target activity instance to the initialized user activity array to generate a user activity array for sharing control. In this way, the generation intelligence of the user activity array is improved, and the generation reliability and accuracy of the user activity array are improved, so that the subsequent sharing control process can adapt to various sharing services and meet the sharing needs of users.
[0107] In another optional embodiment, the step 102 creates a sharing item provider for sharing and downloading according to the model array corresponding to the data to be shared, so as to perform a download operation on the download task corresponding to the data to be shared through the sharing item provider to obtain a download file corresponding to the data to be shared, including:
[0108] The model array corresponding to the data to be shared is traversed to obtain the traversal result of the model data, and multiple asynchronous sharing content providers corresponding to the data to be shared are created according to the traversal result, so as to perform download operations on the download tasks corresponding to the data to be shared through all asynchronous sharing content providers to obtain the download files corresponding to the data to be shared.
[0109] In this optional embodiment, it can be understood that after traversing the model data corresponding to the data to be shared, a corresponding `UG AsyncActivity Item Provider` instance (i.e., asynchronous sharing content provider) is created for each array element according to the array length / array type of each array element, and then each instance can handle the asynchronous download and preparation of the corresponding sharing item. Among them, each array element has a corresponding asynchronous sharing content provider. Optionally, the traversal result includes the array length parameter and / or array type parameter of each array element contained in the model array.
[0110] It can be seen that this optional embodiment can create multiple asynchronous sharing content providers corresponding to the data to be shared according to the traversal results of the model array corresponding to the data to be shared, and then download the download task through all asynchronous sharing content providers to obtain the download file corresponding to the data to be shared. In this way, the creation reliability and accuracy of the asynchronous sharing content provider are improved, and then the download reliability, accuracy and efficiency of the download task are improved, which is conducive to improving the sharing reliability, accuracy and efficiency of the data to be shared based on the download file.
[0111] In yet another optional embodiment, in the above step, the downloading operation is performed on the downloading tasks corresponding to the data to be shared by all asynchronous sharing content providers to obtain the download file corresponding to the data to be shared, including:
[0112] Obtaining a predetermined thread parameter of at least one thread;
[0113] Determine creation parameters of multiple semaphores matching the download task according to thread parameters of all threads and task parameters of the download task;
[0114] Create all semaphores according to the creation parameters of all semaphores, and determine the download parameters of the download task;
[0115] According to the download parameters of the download task, all semaphores are called, and the download task corresponding to the data to be shared is performed through all semaphores in the call and all asynchronous sharing content providers to obtain the download file corresponding to the data to be shared.
[0116] In this optional embodiment, the thread parameters may include at least one of the current task execution parameters, the historical task execution parameters, and the resource access type parameters. Further optionally, the creation parameters may include the creation size parameters and / or the creation time parameters. Still further optionally, the download parameters may include the download location parameters and / or the download callback parameters (such as the success Handler callback after the file is successfully downloaded, the failure Handler callback, the progress Handler callback, the cancel Handler callback, the start Handler callback, etc.).
[0117] For example, when the user clicks to share, based on the current task execution parameters of thread A and the size parameters of the download task, the creation size and creation time of the semaphore can be determined, and the semaphore can be created (so that the semaphore can be used later to make thread A wait or resume execution, and the semaphore can be released to share the data to be shared). Then, according to the download parameters of the download task, the wait method can be called on the semaphore to make the semaphore wait until the asynchronous download is completed. At the same time, the download tasks corresponding to the data to be shared are downloaded through all asynchronous sharing content providers (this process can display a download progress bar) to obtain the downloaded file.
[0118] It can be seen that this optional embodiment can create a semaphore according to the thread parameters of the thread and the task parameters of the download task, and download the download task corresponding to the shared data based on the semaphore in the call and the asynchronous sharing content provider to obtain the download file. In this way, the execution reliability and accuracy of the semaphore creation / call operation are improved, thereby improving the download reliability, accuracy and efficiency of the download task, which is beneficial to improve the subsequent sharing accuracy and effectiveness of the shared data.
[0119] In yet another optional embodiment, the method further comprises:
[0120] Perform file verification on the downloaded file to obtain a verification result of the downloaded file, and determine whether the downloaded file meets the preset sharing conditions based on the verification result;
[0121] When it is determined that the downloaded file meets the sharing condition, the cache file uniform resource locator of the downloaded file is obtained, and the downloaded file is copied to a pre-created temporary directory according to the cache file uniform resource locator to obtain the copied downloaded file in the temporary directory.
[0122] In this optional embodiment, further, as an optional implementation, the sharing operation of the data to be shared by sharing the display interface and downloading the file in the above step 104 includes:
[0123] The sharing operation of the data to be shared is completed by sharing the display interface and the downloaded files copied to the temporary directory.
[0124] In this optional embodiment, corresponding file operations are performed on the downloaded file, such as verifying the existence of the file, obtaining the cache file uniform resource locator (cache file URL) of the downloaded file, creating a temporary directory, etc., so as to facilitate the subsequent sharing process of the data to be shared. Optionally, the verification result includes a file location parameter and / or a file damage degree parameter.
[0125] Furthermore, when it is determined that the downloaded file does not meet the preset sharing conditions, such as the file does not exist, the file is severely damaged, the cache file URL is invalid, etc., a preset placeholder object is returned.
[0126] It can be seen that this optional embodiment can determine whether the downloaded file meets the sharing conditions based on the verification result of the downloaded file. If so, the downloaded file is copied to a temporary directory through the cache file uniform resource locator of the downloaded file to complete the sharing operation of the shared data. This is conducive to improving the sharing reliability and accuracy of the shared data, and is also conducive to improving the sharing efficiency of the shared data, reducing the occurrence of threads being occupied, and thus helping to improve the response efficiency of the user interface.
[0127] Embodiment 2
[0128] See also Figure 2 , Figure 2 is a flow chart of another method for asynchronous data sharing processing disclosed in an embodiment of the present invention. Figure 2 The described data asynchronous sharing processing method can be applied to data asynchronous sharing processing in various systems, such as iOS system, Android system, distributed system, etc., and the embodiments of the present invention do not limit this. Optionally, the method can be implemented by a data asynchronous sharing processing device, and the data asynchronous sharing processing device can be integrated in a data asynchronous sharing processing device (such as a smart phone, tablet computer, desktop computer, etc.), or it can be a local server or cloud server for processing the data asynchronous sharing processing flow, and the embodiments of the present invention do not limit this. Figure 2 As shown, the data asynchronous sharing processing method may include the following operations:
[0129] 201. Convert the model array corresponding to the data to be shared into a download task, and determine the task parameters of the download task.
[0130] 202. Generate a user activity array for sharing control according to the task parameters of the download task, and create a sharing item provider for sharing download according to the model array corresponding to the data to be shared, so as to perform a download operation on the download task corresponding to the data to be shared through the sharing item provider to obtain a download file corresponding to the data to be shared.
[0131] 203. Initialize the preset sharing view controller according to the user activity array and the sharing item provider to obtain an initialized sharing view controller.
[0132] In the embodiment of the present invention, the user activity array and the corresponding parameters of the sharing item provider are passed into the preset sharing view controller to initialize the sharing view controller to obtain the preset sharing view controller.
[0133] 204. Determine reference parameters according to preset properties, configure property parameters of the initialized sharing view controller, obtain a target sharing view controller that matches the data to be shared, and generate a sharing display interface for the data to be shared through the target sharing view controller.
[0134] In the embodiment of the present invention, optionally, the attribute determination reference parameter includes at least one of a sharing pop-up window style parameter, an exclusion activity type parameter, and a sharing post-processing logic parameter.
[0135] Further, as an optional implementation, the post-sharing processing logic parameter is determined by:
[0136] Obtaining post-sharing processing requirement parameters associated with a target object of the data to be shared;
[0137] Determine the post-sharing processing execution mode and execution parameters of the post-sharing processing execution mode that match the target object according to the post-sharing processing requirement parameters;
[0138] The post-sharing processing logic parameters are determined according to the post-sharing processing execution mode and the execution parameters under the post-sharing processing execution mode.
[0139] In this optional embodiment, optionally, the target object includes a sharing object and / or a receiving object, and the post-sharing processing requirement parameters include at least one of a sharing success processing requirement parameter, a sharing cancellation processing requirement parameter, and a sharing error processing requirement parameter. Further optionally, the post-sharing processing execution method includes at least one of a post-sharing notification method, a post-sharing sharing interface change method, and a post-sharing log recording method. Further, the execution parameters under the post-sharing processing execution method may include a notification time parameter, a notification style parameter, a change time parameter, a change size parameter, a recording time parameter, a recording content parameter, and the like under the post-sharing log recording method.
[0140] 205. Complete the sharing operation of the shared data by sharing the display interface and downloading the file.
[0141] In the embodiment of the present invention, for other descriptions of step 201, step 202 and step 205, please refer to the detailed description of step 101, step 102 and step 104 in the first embodiment, and the embodiment of the present invention will not be repeated.
[0142] It can be seen that the implementation of the embodiment of the present invention can initialize the sharing view controller according to the user activity array and the sharing item provider, determine the reference parameters based on the preset properties, configure the property parameters of the sharing view controller after initialization, and obtain the target sharing view controller for displaying the sharing interface. This is conducive to improving the reliability and accuracy of creating the target sharing view controller, and further conducive to improving the reliability and accuracy of subsequent control of the sharing display interface, thereby helping to improve the user experience of the sharing display interface.
[0143] Embodiment 3
[0144] See also Figure 3 , Figure 3 Schematic diagram of a data asynchronous sharing processing device disclosed in an embodiment of the present invention. Figure 3 As shown, the data asynchronous sharing processing device may include:
[0145] A conversion module 301, used to convert the model array corresponding to the data to be shared into a download task;
[0146] Determination module 302, used to determine the task parameters of the download task;
[0147] A generating module 303, used to generate a user activity array for sharing control according to the task parameters of the download task;
[0148] A first creation module 304 is used to create a sharing item provider for sharing and downloading according to the model array corresponding to the data to be shared, so as to perform a download operation on the download task corresponding to the data to be shared through the sharing item provider to obtain a download file corresponding to the data to be shared;
[0149] The second creation module 305 is used to create a target sharing view controller matching the data to be shared according to the user activity array and the sharing item provider;
[0150] The generating module 303 is further used to generate a sharing display interface of the data to be shared through the target sharing view controller;
[0151] The sharing module 306 is used to complete the sharing operation of the data to be shared by sharing the display interface and downloading files.
[0152] In the embodiment of the present invention, the data to be shared includes at least one of image data, video data, text data and audio data to be shared; the task parameter includes a task size parameter and / or a task type parameter.
[0153] It can be seen that implementation Figure 3The described data asynchronous sharing processing device can prepare the data to be shared through asynchronous downloading, and then display the sharing process of the data to be shared to the user, thereby improving the data sharing processing efficiency and reducing the occurrence of thread blocking, thereby ensuring that the user interface will not be frozen, improving the response efficiency of the user interface, and thus enhancing the user experience of the sharing interface; at the same time, through the personalized configuration of the sharing display interface and its extensibility with third-party services, the configuration range and flexibility of the sharing interface are also improved, which is conducive to improving the interaction performance between the user and the sharing interface, so as to facilitate the widespread promotion of the data asynchronous sharing processing device.
[0154] In an optional embodiment, the device further comprises:
[0155] An acquisition module 307 is used to acquire sharing requirement parameters of the data to be shared;
[0156] The method in which the generating module 303 generates the user activity array for sharing control according to the task parameters of the download task specifically includes:
[0157] According to the sharing requirement parameters of the data to be shared and the task parameters of the download task, a corresponding target activity instance is created for each preset sharing control component, and the target activity instances corresponding to all sharing control components are added to the initialized user activity array to generate a user activity array for sharing control.
[0158] In this optional embodiment, the sharing requirement parameters include at least one of a data receiving object parameter, a sharing identification requirement parameter, a data sharing content requirement parameter, and a data sharing configuration requirement parameter.
[0159] It can be seen that implementation Figure 4 The described data asynchronous sharing processing device can create a target activity instance for the sharing control component according to the sharing requirement parameters of the data to be shared and the task parameters of the download task, and add the target activity instance to the initialized user activity array to generate a user activity array for sharing control. In this way, the generation of the user activity array is improved in terms of intelligence, and the generation reliability and accuracy of the user activity array is further improved, so that the subsequent sharing control process can adapt to various sharing services and meet the sharing needs of users.
[0160] In another optional embodiment, the sharing item provider includes a plurality of asynchronous sharing content providers;
[0161] The first creation module 304 creates a sharing item provider for sharing and downloading according to the model array corresponding to the data to be shared, so as to perform a download operation on the download task corresponding to the data to be shared through the sharing item provider, and obtains the download file corresponding to the data to be shared in the following manner:
[0162] The model array corresponding to the data to be shared is traversed to obtain the traversal result of the model data, and multiple asynchronous sharing content providers corresponding to the data to be shared are created according to the traversal result, so as to perform download operations on the download tasks corresponding to the data to be shared through all asynchronous sharing content providers to obtain the download files corresponding to the data to be shared.
[0163] In this optional embodiment, the traversal result includes an array length parameter and / or an array type parameter of each array element included in the model array, and each array element has a corresponding asynchronous sharing content provider.
[0164] It can be seen that implementation Figure 4 The described data asynchronous sharing processing device can create multiple asynchronous sharing content providers corresponding to the data to be shared according to the traversal results of the model array corresponding to the data to be shared, and then download the download task through all asynchronous sharing content providers to obtain the download file corresponding to the data to be shared. In this way, the creation reliability and accuracy of the asynchronous sharing content provider are improved, and then the download reliability, accuracy and efficiency of the download task are improved, which is conducive to improving the sharing reliability, accuracy and efficiency of the data to be shared based on the download file.
[0165] In another optional embodiment, the method of performing a download operation on the download task corresponding to the data to be shared by the sharing item provider to obtain the download file corresponding to the data to be shared specifically includes:
[0166] Obtaining a predetermined thread parameter of at least one thread;
[0167] Determine creation parameters of multiple semaphores matching the download task according to thread parameters of all threads and task parameters of the download task;
[0168] Create all semaphores according to the creation parameters of all semaphores, and determine the download parameters of the download task;
[0169] According to the download parameters of the download task, all semaphores are called, and the download task corresponding to the data to be shared is performed through all semaphores in the call and all asynchronous sharing content providers to obtain the download file corresponding to the data to be shared.
[0170] In this optional embodiment, the thread parameters include at least one of current task execution parameters, historical task execution parameters, and resource access type parameters; the creation parameters include creation size parameters and / or creation time parameters; and the download parameters include download location parameters and / or download callback parameters.
[0171] It can be seen that implementation Figure 4The described data asynchronous sharing processing device can create a semaphore according to the thread parameters of the thread and the task parameters of the download task, and download the download task corresponding to the shared data based on the semaphore in the call and the asynchronous sharing content provider to obtain the download file. In this way, the execution reliability and accuracy of the semaphore creation / calling operation are improved, thereby improving the download reliability, accuracy and efficiency of the download task, which is conducive to improving the subsequent sharing accuracy and effectiveness of the shared data.
[0172] In yet another optional embodiment, the device further comprises:
[0173] Verification module 308, used to perform file verification operation on the downloaded file and obtain the verification result of the downloaded file;
[0174] The judgment module 309 is used to judge whether the downloaded file meets the preset sharing conditions according to the verification result;
[0175] The acquisition module 307 is further used to acquire the cache file uniform resource locator of the downloaded file when the determination module 309 determines that the downloaded file meets the sharing condition;
[0176] The copy module 310 is used to copy the downloaded file to a pre-created temporary directory according to the cache file uniform resource locator, and obtain the copied downloaded file in the temporary directory;
[0177] The sharing module 306 performs the sharing operation of the shared data by sharing the display interface and downloading the file, and the specific method includes:
[0178] The sharing operation of the data to be shared is completed by sharing the display interface and the downloaded files copied to the temporary directory.
[0179] In this optional embodiment, the verification result includes a file location parameter and / or a file damage degree parameter.
[0180] It can be seen that implementation Figure 4 The described data asynchronous sharing processing device can determine whether the downloaded file meets the sharing conditions based on the verification result of the downloaded file. If so, the downloaded file is copied to a temporary directory through the cache file uniform resource locator of the downloaded file to complete the sharing operation of the shared data. This is conducive to improving the sharing reliability and accuracy of the shared data, and is also conducive to improving the sharing efficiency of the shared data, reducing the occurrence of threads being occupied, and thus helping to improve the response efficiency of the user interface.
[0181] In yet another optional embodiment, the second creation module 305 creates a target sharing view controller matching the data to be shared according to the user activity array and the sharing item provider, specifically including:
[0182] Initialize the preset sharing view controller according to the user activity array and the sharing item provider to obtain the initialized sharing view controller;
[0183] The reference parameters are determined according to the preset properties, and the property parameters of the initialized sharing view controller are configured to obtain a target sharing view controller that matches the data to be shared.
[0184] In this optional embodiment, the attribute determination reference parameter includes at least one of a sharing pop-up window style parameter, an exclusion activity type parameter, and a sharing post-processing logic parameter.
[0185] Further, as an optional implementation, the post-sharing processing logic parameter is determined by:
[0186] Obtaining post-sharing processing requirement parameters associated with a target object of the data to be shared;
[0187] Determine the post-sharing processing execution mode and execution parameters of the post-sharing processing execution mode that match the target object according to the post-sharing processing requirement parameters;
[0188] The post-sharing processing logic parameters are determined according to the post-sharing processing execution mode and the execution parameters under the post-sharing processing execution mode.
[0189] In this optional embodiment, the target object includes a sharing object and / or a receiving object, the post-sharing processing requirement parameters include at least one of a sharing success processing requirement parameter, a sharing cancellation processing requirement parameter, and a sharing error processing requirement parameter; the post-sharing processing execution method includes at least one of a post-sharing notification method, a post-sharing sharing interface change method, and a post-sharing log recording method.
[0190] It can be seen that implementation Figure 4 The described data asynchronous sharing processing device can initialize the sharing view controller according to the user activity array and the sharing item provider, determine the reference parameters based on the preset properties, configure the property parameters of the initialized sharing view controller, and obtain the target sharing view controller for displaying the sharing interface. This is conducive to improving the reliability and accuracy of creating the target sharing view controller, and then to improving the reliability and accuracy of the subsequent control of the sharing display interface, thereby helping to improve the user experience of the sharing display interface.
[0191] Embodiment 4
[0192] See also Figure 5 , Figure 5 Schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. Figure 5 As shown, the electronic device may include:
[0193] A memory 401 storing executable program codes;
[0194] a processor 402 coupled to the memory 401;
[0195] The processor 402 calls the executable program code stored in the memory 401 to execute the steps of the data asynchronous sharing processing method described in the first embodiment of the present invention or the second embodiment of the present invention.
[0196] Embodiment 5
[0197] An embodiment of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps of the data asynchronous sharing processing method described in Embodiment 1 or Embodiment 2 of the present invention.
[0198] Embodiment 6
[0199] See also Figure 6 , Figure 6 Schematic diagram of a data asynchronous sharing processing system disclosed in an embodiment of the present invention. Figure 6 As shown, the system includes the data asynchronous sharing processing device 501 disclosed in the third embodiment of the present invention, and a NAS device 502 connected to the device for communication; or,
[0200] The system includes the electronic device 501 disclosed in the fourth embodiment of the present invention, and a NAS device 502 communicatively connected to the electronic device.
[0201] Embodiment 7
[0202] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps in the data asynchronous sharing processing method described in Embodiment 1 or Embodiment 2.
[0203] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0204] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0205] Finally, it should be noted that the data asynchronous sharing processing method, device and system disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data asynchronous sharing processing method, characterized in that: The method comprises: Convert the model array corresponding to the data to be shared into a download task, and determine the task parameters of the download task; the data to be shared includes at least one of the image data, video data, text data and audio data to be shared, and the task parameters include task size parameters and / or task type parameters; Generate a user activity array for sharing control according to the task parameters of the download task, and create a sharing item provider for sharing download according to the model array corresponding to the data to be shared, so as to perform a download operation on the download task corresponding to the data to be shared through the sharing item provider to obtain a download file corresponding to the data to be shared; Creating a target sharing view controller that matches the data to be shared according to the user activity array and the sharing item provider, and generating a sharing display interface for the data to be shared through the target sharing view controller; The sharing operation of the data to be shared is completed through the sharing display interface and the downloaded file.
2. The data asynchronous sharing processing method according to claim 1, characterized in that: Before generating a user activity array for sharing control according to the task parameters of the download task, the method further includes: Acquire sharing requirement parameters of the data to be shared; the sharing requirement parameters include at least one of a data receiving object parameter, a sharing identification requirement parameter, a data sharing content requirement parameter, and a data sharing configuration requirement parameter; The step of generating a user activity array for sharing control according to the task parameters of the download task includes: According to the sharing requirement parameters of the data to be shared and the task parameters of the download task, a corresponding target activity instance is created for each preset sharing control component, and the target activity instances corresponding to all the sharing control components are added to the initialized user activity array to generate a user activity array for sharing control.
3. The data asynchronous sharing processing method according to claim 2, characterized in that: The sharing item provider includes a plurality of asynchronous sharing content providers; The step of creating a sharing item provider for sharing and downloading according to the model array corresponding to the data to be shared, so as to perform a download operation on the download task corresponding to the data to be shared through the sharing item provider to obtain a download file corresponding to the data to be shared includes: The model array corresponding to the data to be shared is traversed to obtain the traversal result of the model data, and based on the traversal result, a plurality of the asynchronous sharing content providers corresponding to the data to be shared are created, so as to perform a download operation on the download task corresponding to the data to be shared through all the asynchronous sharing content providers to obtain a download file corresponding to the data to be shared; the traversal result includes an array length parameter and / or an array type parameter of each array element contained in the model array, and each of the array elements has a corresponding asynchronous sharing content provider.
4. The data asynchronous sharing processing method according to claim 3, characterized in that: The downloading operation is performed on the download task corresponding to the data to be shared by all the asynchronous sharing content providers to obtain a download file corresponding to the data to be shared, including: Obtaining a thread parameter of at least one predetermined thread; the thread parameter includes at least one of a current task execution parameter, a historical task execution parameter, and a resource access type parameter; Determining creation parameters of a plurality of semaphores matching the download task according to the thread parameters of all the threads and the task parameters of the download task; the creation parameters include creation size parameters and / or creation time parameters; According to the creation parameters of all the semaphores, all the semaphores are created, and download parameters of the download task are determined; the download parameters include download position parameters and / or download callback parameters; According to the download parameters of the download task, all the semaphores are called, and the download task corresponding to the data to be shared is downloaded through all the semaphores and all the asynchronous sharing content providers in the call to obtain the download file corresponding to the data to be shared.
5. The data asynchronous sharing processing method according to claim 4, characterized in that: The method further comprises: Performing a file verification operation on the downloaded file to obtain a verification result of the downloaded file, and judging whether the downloaded file meets a preset sharing condition according to the verification result; the verification result includes a file location parameter and / or a file damage degree parameter; When it is determined that the downloaded file meets the sharing condition, a cache file uniform resource locator of the downloaded file is obtained, and according to the cache file uniform resource locator, the downloaded file is copied to a pre-created temporary directory to obtain the downloaded file copied to the temporary directory; The step of completing the sharing operation of the data to be shared through the sharing display interface and the download file includes: The sharing operation of the data to be shared is completed through the sharing display interface and the downloaded file copied in the temporary directory.
6. The data asynchronous sharing processing method according to any one of claims 1 to 5, characterized in that: The step of creating a target sharing view controller matching the data to be shared according to the user activity array and the sharing item provider includes: Initializing a preset sharing view controller according to the user activity array and the sharing item provider to obtain an initialized sharing view controller; Determine reference parameters according to preset properties, configure the property parameters of the initialized sharing view controller, and obtain a target sharing view controller that matches the data to be shared; the property determination reference parameters include at least one of a sharing pop-up window style parameter, an exclusion activity type parameter, and a sharing post-processing logic parameter.
7. The data asynchronous sharing processing method according to claim 6, characterized in that: The post-sharing processing logic parameters are determined in the following manner: Acquire a post-sharing processing requirement parameter associated with a target object of the data to be shared; the target object includes a sharing object and / or a receiving object, and the post-sharing processing requirement parameter includes at least one of a sharing success processing requirement parameter, a sharing cancellation processing requirement parameter, and a sharing error processing requirement parameter; Determine, according to the post-sharing processing requirement parameters, a post-sharing processing execution mode that matches the target object and execution parameters under the post-sharing processing execution mode; the post-sharing processing execution mode includes at least one of a post-sharing notification mode, a post-sharing sharing interface change mode, and a post-sharing log recording mode; According to the post-sharing processing execution mode and the execution parameters under the post-sharing processing execution mode, a post-sharing processing logic parameter is determined.
8. A data asynchronous sharing processing device, characterized in that: The device comprises: A conversion module, used to convert the model array corresponding to the data to be shared into a download task; the data to be shared includes at least one of the image data, video data, text data and audio data to be shared; A determination module, used to determine task parameters of the download task; the task parameters include task size parameters and / or task type parameters; A generating module, used for generating a user activity array for sharing control according to the task parameters of the download task; A first creation module, used to create a sharing item provider for sharing and downloading according to the model array corresponding to the data to be shared, so as to perform a download operation on the download task corresponding to the data to be shared through the sharing item provider to obtain a download file corresponding to the data to be shared; A second creation module, configured to create a target sharing view controller matching the data to be shared according to the user activity array and the sharing item provider; The generating module is further used to generate a sharing display interface of the data to be shared through the target sharing view controller; The sharing module is used to complete the sharing operation of the data to be shared through the sharing display interface and the downloaded file.
9. An electronic device, characterized in that: The electronic device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the data asynchronous sharing processing method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: The computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the data asynchronous sharing processing method according to any one of claims 1 to 7.
11. A data asynchronous sharing processing system, characterized in that: The system comprises the data asynchronous sharing processing device as claimed in claim 8, and a NAS device connected to the device for communication; or, The system comprises the electronic device as claimed in claim 9, and a NAS device communicatively connected to the electronic device.
