CN112437150A - File transmission method and device and electronic equipment - Google Patents

File transmission method and device and electronic equipment Download PDF

Info

Publication number
CN112437150A
CN112437150A CN202011308262.6A CN202011308262A CN112437150A CN 112437150 A CN112437150 A CN 112437150A CN 202011308262 A CN202011308262 A CN 202011308262A CN 112437150 A CN112437150 A CN 112437150A
Authority
CN
China
Prior art keywords
file
user
target file
condition
file transmission
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.)
Granted
Application number
CN202011308262.6A
Other languages
Chinese (zh)
Other versions
CN112437150B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011308262.6A priority Critical patent/CN112437150B/en
Publication of CN112437150A publication Critical patent/CN112437150A/en
Application granted granted Critical
Publication of CN112437150B publication Critical patent/CN112437150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/65Telephone numbers

Abstract

The application discloses a file transmission method, a file transmission device and electronic equipment, and belongs to the technical field of communication. The method comprises the following steps: receiving a number acquisition request sent by a first user; the number acquisition request is used for indicating to acquire the mobile phone number of the second user; responding to the number acquisition request, and acquiring file transmission parameters corresponding to a target file for packaging the mobile phone number; transmitting the target file to the first user under the condition that the file transmission parameter meets a file transmission condition; and refusing to transmit the target file to the first user under the condition that the file transmission parameter does not meet the file transmission condition. According to the method and the device, the mobile phone number of the user can be protected from being revealed to the maximum extent, and the probability that the user is harassed is greatly reduced.

Description

File transmission method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a file transmission method and device and electronic equipment.
Background
With the continuous development of scientific technology, electronic devices (such as mobile phones) have become an indispensable tool in people's life and work.
In actual life and work, a user usually encounters a situation that a mobile phone number is left to others, a contact person is possibly added on the face, contact person format data are possibly transmitted by using software, and the like, and the mobile phone number is possibly leaked in the modes, so that the user is possibly harassed by a stranger user.
Disclosure of Invention
The embodiment of the application aims to provide a file transmission method, a file transmission device and electronic equipment, and the problem that a user is harassed by an unfamiliar user due to leakage of a mobile phone number caused by a mobile phone number transmission mode in the prior art can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a file transmission method, where the method includes:
receiving a number acquisition request sent by a first user; the number acquisition request is used for indicating to acquire the mobile phone number of the second user;
responding to the number acquisition request, and acquiring file transmission parameters corresponding to a target file for packaging the mobile phone number;
transmitting the target file to the first user under the condition that the file transmission parameter meets a file transmission condition;
and refusing to transmit the target file to the first user under the condition that the file transmission parameter does not meet the file transmission condition.
In a second aspect, an embodiment of the present application provides a file transfer apparatus, including:
a number acquisition request receiving module, configured to receive a number acquisition request sent by a first user; the number acquisition request is used for indicating to acquire the mobile phone number of the second user;
a file transmission parameter acquisition module, configured to respond to the number acquisition request and acquire a file transmission parameter corresponding to a target file encapsulating the mobile phone number;
the target file transmission module is used for transmitting the target file to the first user under the condition that the file transmission parameter meets a file transmission condition;
and the target file transmission rejection module is used for rejecting to transmit the target file to the first user under the condition that the file transmission parameter does not meet the file transmission condition.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or an instruction stored on the memory and executable on the processor, and when the program or the instruction is executed by the processor, the steps of the file transfer method according to the first aspect are implemented.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the steps of the file transmission method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the file transmission method according to the first aspect.
In the embodiment of the application, a number acquisition request sent by a first user is received, wherein the number acquisition request is used for indicating to acquire a mobile phone number of a second user, a file transmission parameter corresponding to a target file of a packaged mobile phone number is acquired in response to the number acquisition request, the target file is transmitted to the first user under the condition that the file transmission parameter meets a file transmission condition, and the target file is rejected to be transmitted to the first user under the condition that the file transmission parameter does not meet the file transmission condition. According to the method and the device for packaging the mobile phone number, the mobile phone number is packaged instead of being directly used, transmission is carried out between the user and the user, between the user and the website and the like, the transmission parameters of the packaged files are preset, the mobile phone number of the user can be protected to the maximum extent from being leaked, and the probability that the user is harassed is greatly reduced.
Drawings
Fig. 1 is a flowchart illustrating steps of a file transmission method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a file transfer device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes the file transmission method provided by the embodiment of the present application in detail through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Referring to fig. 1, a flowchart illustrating steps of a file transmission method provided in an embodiment of the present application is shown, and as shown in fig. 1, the file transmission method may specifically include the following steps:
step 101: receiving a number acquisition request sent by a first user; and the number acquisition request is used for indicating to acquire the mobile phone number of the second user.
The method and the device for packaging the mobile phone number can be applied to a scene of packaging the mobile phone number and transmitting the packaged mobile phone number.
The first user is the user who requests the mobile phone number of the second user.
The number acquisition request refers to a request initiated by a first user for acquiring the mobile phone number of a second user.
In this embodiment, the number obtaining request may be a request initiated by the first user to the terminal held by the second user to obtain the mobile phone number of the second user, or may also be a request initiated by the first user to the server to obtain the mobile phone number of the second user, and specifically, the number obtaining request may be determined according to a service requirement, which is not limited in this embodiment.
After receiving the number obtaining request sent by the first user, step 102 is executed.
Step 102: and responding to the number acquisition request, and acquiring file transmission parameters corresponding to a target file for packaging the mobile phone number.
The destination file is a file for encapsulating a mobile phone number, and in this example, the destination file may be a file previously stored in an electronic device held by the second user, or a file previously uploaded to the server by the second user.
The format of the file transfer parameters in the destination file (e.g., packet file) may be as follows:
{id:XXX;name:XXX;number:135XXXXXXXX;expire time:2020XXX;remaining calls count:X;remaining import count:X;version:X}
in the above format, id is an identifier of the generated data packet, where the identifier may be randomly generated, number is a mobile phone number of the second user, name is a name of the second user, expiration time is expiration time (i.e., time when the target file can be imported by other users), remaining calls count is the number of times that the user can be dialed (i.e., the number of times that the mobile phone number of the second user encapsulated in the target file can be dialed by other users), remaining calls count is the number of times that the user can be imported (i.e., the number of times that the target file can be imported by other users), and version is a version number of the target file, which is used for comparing with the current latest version of the server to update the content of the data packet. For example, the method can be used for avoiding the situation that after the user changes the mobile phone number, others do not know the new mobile phone number and other complicated operation steps that the user needs to manually store the new mobile phone number again after knowing the new mobile phone number.
In this embodiment, the second user may fill in information locally according to the format of the file transmission parameter, then package the file locally at the second user holding terminal, generate a data package file, and upload the data package file to the server, and further, the server may allocate a data package file identifier (i.e., id) to the data package file. Of course, the second user may fill in the relevant information at the local client according to the format of the file transmission parameter, and upload the filled information to the server, and the server encapsulates and packages the information to generate a data packet file and allocates a data packet file id to the data packet file. Furthermore, other users (such as the first user) can obtain the packaged data packet file from the server by using the data packet file id, that is, the user can obtain the data packet file from the server.
The generated data package file can also be stored to the local client of the terminal held by the second user, and then other users (such as the first user) can obtain the packaged data package file from the local client of the second user by using the data package file id, that is, the first user can obtain the data package file from the local client of the second user.
Certainly, after the data packet file is generated, the data packet file can be encrypted, after other users acquire the data packet file, the data packet file can be decrypted according to a preset decryption mode, and a mobile phone number in the data packet file is dialed, so that the security of the file in the transmission process can be further improved.
It should be understood that the above example is only an example listed for better understanding of the technical solution of this embodiment, and a manner that another user acquires the file of the package mobile phone number corresponding to the second user from the server or locally acquires the file of the package mobile phone number from the client of the second user may be determined according to a service requirement, which is not limited in this embodiment.
After receiving a number acquisition request sent by a first user, a target file encapsulating a mobile phone number of a second user may be acquired in response to the number acquisition request, and then, a corresponding file transmission parameter may be acquired according to the target file.
After acquiring the file transmission parameter corresponding to the target file encapsulating the mobile phone number in response to the number acquisition request, step 103 or step 104 is executed.
Step 103: and transmitting the target file to the first user under the condition that the file transmission parameter meets a file transmission condition.
Step 104: and refusing to transmit the target file to the first user under the condition that the file transmission parameter does not meet the file transmission condition.
The file transmission condition refers to a parameter preset by a service person for determining whether the file transmission parameter satisfies the file transmission.
In this example, when the file transfer parameter is a parameter of the number of times that the file has been transferred, the file transfer condition is the set number of times that the file has been transferred corresponding to the target file; and when the file transmission parameter is the parameter of the file transmission time, the file transmission condition is the file transmission time corresponding to the target file, and the like.
After the file transmission parameter corresponding to the target file is obtained, whether the file transmission parameter of the target file meets the file transmission condition can be judged.
The target file can be transmitted to the first user when the file transmission parameter meets the file transmission condition, that is, the target file is transmitted to the first user when the file transmission parameter of the target file meets the file transmission condition.
And under the condition that the file transmission parameter does not meet the file transmission condition, the target file is indicated to be not allowed to be imported to the terminals of other users, namely, the target file is refused to be transmitted to the first user when the file transmission parameter of the target file does not meet the file transmission condition.
According to the method and the device for packaging the mobile phone number, the mobile phone number is packaged instead of being directly used, transmission is carried out between the user and the user, between the user and the website and the like, the transmission parameters of the packaged files are preset, the mobile phone number of the user can be protected to the maximum extent from being leaked, and the probability that the user is harassed is greatly reduced.
The following describes the scheme of the present embodiment in detail with reference to different file transfer parameters.
In a specific implementation manner of the present application, the file transmission parameter includes a number of times that the file has been transmitted, and the step 103 may include:
substep A1: under the condition that the number of times of the transmitted files does not reach the set number of times of file transmission, transmitting the target file to the first user;
the step 104 may include:
substep B1: and refusing to transmit the target file to the first user under the condition that the transmitted times of the file reach the set file transmission times.
In this embodiment, the number of times that a file has been transmitted refers to the number of times that a target file has been transmitted, in this example, after the target file is generated, a transmission number counter corresponding to one target file may be preset, and when the target file is transmitted once, the transmission number counter +1 may be counted by the counter, and the number of times that the target file has been transmitted may be obtained.
In a specific implementation, the transmitted times corresponding to the target file may also be obtained in other manners, and specifically, may be determined according to a service requirement, which is not limited in this embodiment.
The set file transmission times refers to the number of times that the target file can be transmitted, which is preset, and as shown in step 102, the remaining import count is the number of times that the target file can be transmitted, i.e. the number of times that the target file can be imported by other users.
After the number of times that the file corresponding to the target file has been transmitted is obtained, it may be determined whether the number of times that the file of the target file has been transmitted reaches the set number of times that the file has been transmitted.
When the number of times that the file of the target file has been transferred reaches the set number of times that the file has been transferred, it indicates that the target file satisfies the condition to be transferred, and at this time, the target file may be transferred to the first user.
And under the condition that the number of times of file transmission of the target file does not reach the set number of times of file transmission, the target file does not meet the transmitted condition, and at the moment, the target file is refused to be transmitted to the first user.
According to the method and the device, the condition that the number of times of the file can be transmitted is added in the packaging file of the mobile phone number in advance and is used as the condition that the mobile phone number can be transmitted to other users, so that the mobile phone number of the user can be prevented from being acquired by other users to the maximum extent, the leakage of the mobile phone number of the user can be protected to the maximum extent, and the probability that the user is harassed is reduced.
In another specific implementation manner of the present application, the file transmission parameter includes a file transmission time, and the step 103 may include:
substep C1: and transmitting the target file to the first user under the condition that the receiving time of the number obtaining request does not exceed the file transmission time.
The step 104 may include:
substep D1: and refusing to transmit the target file to the first user under the condition that the receiving time exceeds the file transmission time.
In this embodiment, the file transfer time refers to a preset limited time for the target file to be transferred, i.e. an expiration time corresponding to the target file, such as the expiration time shown in the above example of step 102: 2020 XXXX.
In the case where the file transmission parameter of the acquired target file is the file transmission time, it may be determined whether the reception time of the number acquisition request exceeds the file transmission time.
In the case where the reception time of the number acquisition request does not exceed the file transmission time of the target file, it indicates that the target file satisfies the condition that can be transmitted, and at this time, the target file may be transmitted to the first user.
And under the condition that the receiving time of the number obtaining request exceeds the file transmission time of the target file, the target file does not meet the condition of being transmitted, and at the moment, the target file is refused to be transmitted to the first user.
According to the embodiment of the application, the time condition that the file can be transmitted is added in the packaging file of the mobile phone number in advance and is used as the condition that the mobile phone number can be transmitted to other users, so that the mobile phone number of the user can be prevented from being acquired by other users to the maximum extent, the leakage of the mobile phone number of the user can be protected to the maximum extent, and the probability that the user is harassed is reduced.
In this embodiment of the application, after the target file is transmitted to the first user, if the first user needs to dial the mobile phone number of the second user, whether the first user is operated to dial the mobile phone number of the second user may be determined according to the dialed number of times and the number threshold of times of the target file, and specifically, the following detailed description may be performed in combination with the following specific implementation manner.
In another specific implementation manner of the present application, after the step 103, the method may further include:
step M1: and after receiving the triggering operation of the first user on the target file, generating a dialing request corresponding to the mobile phone number.
In this embodiment, the triggering operation refers to an operation performed by the first user on the target file, and used for dialing a mobile phone number of the second user in the target file.
In some examples, the trigger operation may be an operation of double-clicking the target file by the user, for example, when the user needs to dial a mobile phone number of the second user, the target file encapsulating the mobile phone number of the second user may be double-clicked to form a trigger operation on the target file.
In some examples, the trigger operation may be a sliding operation performed by the user on an icon of the target file, for example, when the user needs to dial a mobile phone number of the second user, the sliding operation may be performed by the first user on the icon of the target file to form the trigger operation on the target file.
In this example, the trigger operation may be an operation of the first user on the target file received by the server, or an operation of the first user on the target file received by the second user holding terminal, specifically, when the target file is a file acquired by the first user from the server, the execution subject is the server, and at this time, the trigger operation of the first user on the target file may be an operation received by the server; and when the target file is a file acquired by the first user from the second user holding terminal, the execution main body is the second user holding terminal, and at this time, the trigger operation of the first user on the target file may be an operation received by the second user holding terminal.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
After receiving the triggering operation of the first user on the target file, a dialing request corresponding to the mobile phone number of the second user may be generated, and then step M2 is performed.
Step M2: and responding to the dialing request, and acquiring the dialed number corresponding to the mobile phone number according to the target file.
The dialed number is the number of times that the mobile phone number of the second user has been dialed, that is, the number of times that other users dial the mobile phone number of the second user through the target file after the target file is generated.
After the dialing request corresponding to the mobile phone number of the second user is generated, the dialing request may be responded, the dialed number corresponding to the mobile phone number may be obtained according to the target file, and then step M3 is performed.
Step M3: and under the condition that the dialed times do not reach a time threshold value, sending a call request to the second user, and refusing the display of the mobile phone number on a call interface of the first user holding terminal.
Step M4: and sending a request failure message to the first user under the condition that the dialed number reaches the number threshold.
The number threshold is the number of times that the mobile phone number of the second user can be dialed by other users, which is preset in the target file.
After the dialed number corresponding to the mobile phone number of the second user is obtained, whether the dialed number reaches a number threshold value or not can be judged.
Under the condition that the dialed number corresponding to the mobile phone number of the second user does not reach the number threshold, a call request can be sent to the second user, and the mobile phone number of the second user is rejected from being displayed on a call interface of the terminal held by the first user, namely, the mobile phone number of the second user is not displayed on the call interface, and only information such as the name and the like of the second user is displayed.
And under the condition that the dialed number corresponding to the mobile phone number of the second user reaches the number threshold, a request failure message can be sent to the first user, namely the first user fails to dial the mobile phone number of the second user, and the first user is refused to dial the mobile phone number of the second user.
According to the method and the device, the number of times that the mobile phone number can be dialed is added in the file for packaging the mobile phone number in advance, when the number of times that the mobile phone number is dialed reaches the set threshold value, the mobile phone number cannot be dialed even if other users acquire the file for packaging the mobile phone number, and therefore the risk that the user corresponding to the mobile phone number is harassed is reduced.
In this embodiment, if the first user needs to obtain the real mobile phone number of the second user, at this time, the question of the decoding target file may be displayed on a display interface of the terminal held by the first user, and whether to display the mobile phone number of the second user for the first user is determined by combining the answer of the first user.
In another specific implementation manner of the present application, after the step 103, the method may further include:
step N1: and receiving the number acquisition operation executed by the first user on the target file.
In this embodiment of the present application, the number obtaining request refers to a request, executed by a first user, for obtaining a mobile phone number of a second user packaged in a target file.
In some examples, the number obtaining operation may be an operation formed by double-clicking the target file by the user, for example, after the first user obtains the target file, when the first user needs to obtain a mobile phone number of a second user packaged in the target file, the first user may perform a double-click operation on the target file, and at this time, the operation of double-clicking the target file by the first user may be regarded as the number obtaining operation.
In some examples, the number obtaining operation may be a sliding operation performed by the user on an icon of the target file, for example, when the user needs to obtain a mobile phone number of the second user, the sliding operation may be performed by the first user on the icon of the target file to form the number obtaining operation on the target file.
In this example, the number obtaining operation may be an operation of the first user on the target file received by the server, or an operation of the first user on the target file received by the second user holding terminal, specifically, when the target file is a file obtained from the server by the first user, the execution main body is the server, and at this time, the number obtaining operation of the first user on the target file may be an operation received by the server; when the target file is a file acquired by the first user from the second user holding terminal, the execution main body is the second user holding terminal, and at this time, the number acquisition operation of the first user on the target file may be an operation received by the second user holding terminal.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
When the first user acquires the target file and needs to acquire the mobile phone number of the second user packaged in the target file, the first user can execute number acquisition operation on the target file.
After receiving the number obtaining operation performed by the first user on the target file, step N2 is performed.
Step N2: and responding to the number acquisition operation, and displaying the decoding problem corresponding to the target file on a display interface of the first user holding terminal.
The decoding problem refers to a problem for decoding a target file.
After receiving a number obtaining operation performed on the target file by the first user, the first user-held terminal may be controlled in response to the number obtaining operation, so that a decoding problem corresponding to the target file is displayed on a display interface of the first user-held terminal.
After the first user holds the display interface of the terminal and displays the decoding problem corresponding to the target file, step N3 is executed.
Step N3: and acquiring a question answer corresponding to the decoding question input by the first user.
The question answer refers to an answer to the decoded question input by the first user.
After the first user has a display interface of the terminal to display the decoding question corresponding to the target file, the first user may input an answer corresponding to the decoding question to obtain a question answer to the decoding question input by the first user.
In this example, the answer to the question may be an answer input by the first user and acquired by the server, or may be an answer input by the first user and acquired by the terminal held by the second user, specifically, when the target file is a file acquired by the first user from the server, the execution subject is the server, and at this time, the answer to the question input by the first user may be an answer acquired by the server; when the target file is a file acquired by the first user from the second user holding terminal, the execution main body is the second user holding terminal, and at this time, the answer to the question input by the first user may be an answer acquired by the second user holding terminal.
After the answer to the question corresponding to the decoding question input by the first user is obtained, step N4 is executed.
Step N4: and under the condition that the question answer is matched with the target answer, displaying the mobile phone number on a display interface of the first user holding terminal.
After the answer to the question corresponding to the decoding question input by the first user is obtained, the answer to the question input by the first user may be matched with a target answer to the decoding question (i.e., a standard answer to the decoding question).
When the question answer is matched with the target answer, the mobile phone number of the second user can be displayed on the display interface of the terminal held by the first user, so that the mobile phone number of the second user is acquired by the first user.
In the embodiment of the application, a user can set decoding questions and answers for each type of packaged target users (such as relatives, friends and intermediaries) and the like at a client side respectively and upload the decoding questions and the answers to a server, and the target user can obtain a real mobile phone number by answering the decoding questions, so that the real mobile phone number of the user is used.
In this embodiment, the second user is further allowed to update the file transfer parameter in the target file, and specifically, the detailed description may be given in conjunction with the following specific implementation manner.
In another specific implementation manner of the present application, the method may further include:
step P1: and receiving the update operation of the second user on the file transmission parameters.
In this embodiment, the update operation refers to an operation of updating the parameters performed by the second user on the file transfer parameters of the target file.
In some examples, the update operation may be an operation formed by the user double-clicking a file icon of the target file, for example, when the second user needs to update the file transmission parameter of the target file, the second user may click the file icon of the target file to form an update operation on the file transmission parameter of the target file.
In some examples, the update operation may be a sliding operation performed by the user on the file icon of the target file, for example, when the second user needs to update the file transfer parameter of the target file, the sliding operation may be performed by the second user on the file icon of the target file to form an update operation on the file transfer parameter of the target file.
In this example, the update operation may be an operation of the second user on the file transfer parameter of the target file received by the server, or an operation of the second user on the file transfer parameter of the target file received by the second user holding terminal, and specifically, may be determined according to a business requirement, which is not limited in this embodiment.
Optionally, the updating operation further includes updating the mobile phone number, that is, the updating operation may be performed when the second user changes the number.
After receiving the update operation of the file transfer parameter of the target file by the second user, step P2 is executed.
Step P2: and responding to the updating operation, and updating the file transmission parameters of the target file into the target file transmission parameters according to the target file transmission parameters corresponding to the updating operation.
The target file transmission parameter refers to a parameter that needs to update a file transmission parameter of a target file, and in this embodiment, the target file transmission parameter may be a certain type of parameter, such as a file transmission time parameter or a transmission frequency parameter, or may be multiple types of parameters, such as a file transmission time parameter and a transmission frequency parameter, and specifically, may be determined according to a service requirement, which is not limited in this embodiment.
After receiving the update operation of the second user on the file transmission parameter of the target file, the update operation may be responded, and the file transmission parameter of the target file may be updated to the target file transmission parameter according to the target file transmission parameter corresponding to the update operation.
Of course, in this embodiment, the server may update the file transfer parameter of the target file to the target file transfer parameter, or the second user-holding terminal may update the file transfer parameter of the target file to the target file transfer parameter, which may be determined according to actual situations, and this embodiment is not limited thereto.
The embodiment of the application supports the user to update the file of the packaged mobile phone number in real time, can inform other users in time when the user changes the mobile phone number, can update file transmission parameters and the like in real time, can enable the packaged file to better meet the requirements of the user, and improves user experience.
According to the file transmission method provided by the embodiment of the application, a number acquisition request sent by a first user is received, the number acquisition request is used for indicating to acquire the mobile phone number of a second user, the number acquisition request is responded, file transmission parameters corresponding to a target file of a packaged mobile phone number are acquired, the target file is transmitted to the first user under the condition that the file transmission parameters meet file transmission conditions, and the target file is refused to be transmitted to the first user under the condition that the file transmission parameters do not meet the file transmission conditions. According to the method and the device for packaging the mobile phone number, the mobile phone number is packaged instead of being directly used, transmission is carried out between the user and the user, between the user and the website and the like, the transmission parameters of the packaged files are preset, the mobile phone number of the user can be protected to the maximum extent from being leaked, and the probability that the user is harassed is greatly reduced.
It should be noted that, in the file transmission method provided in the embodiment of the present application, the execution main body may be a file transmission device, or a control module in the file transmission device for executing the file transmission method. In the embodiment of the present application, a file transfer device executing a file transfer method is taken as an example to describe the file transfer device provided in the embodiment of the present application.
Referring to fig. 2, a schematic structural diagram of a file transfer device provided in an embodiment of the present application is shown, and as shown in fig. 2, the file transfer device 200 may specifically include the following modules:
a number obtaining request receiving module 210, configured to receive a number obtaining request sent by a first user; the number acquisition request is used for indicating to acquire the mobile phone number of the second user;
a file transmission parameter obtaining module 220, configured to, in response to the number obtaining request, obtain a file transmission parameter corresponding to a target file encapsulating the mobile phone number;
a target file transmission module 230, configured to transmit the target file to the first user when the file transmission parameter meets a file transmission condition;
and an object file transmission rejection module 240, configured to reject to transmit the object file to the first user when the file transmission parameter does not satisfy the file transmission condition.
Optionally, the file transfer parameter includes a number of times that the file has been transferred, and the target file transfer module 230 includes:
the first target file transmission unit is used for transmitting the target file to the first user under the condition that the number of times of the transmitted file does not reach the set number of times of file transmission;
the target file rejection transmission module 240 includes:
and the first file refusing transmission unit is used for refusing to transmit the target file to the first user under the condition that the transmitted times of the file reach the set file transmission times.
Optionally, the file transfer parameter includes a file transfer time, and the target file transfer module 230 includes:
a second target file transmission unit, configured to transmit the target file to the first user when the receiving time of the number obtaining request does not exceed the file transmission time;
the target file rejection transmission module 240 includes:
and the second file rejection transmission unit is used for rejecting to transmit the target file to the first user under the condition that the receiving time exceeds the file transmission time.
Optionally, the method further comprises:
a dialing request generation module, configured to generate a dialing request corresponding to the mobile phone number after receiving a trigger operation of the first user on the target file;
a dialing frequency obtaining module, configured to respond to the dialing request and obtain a dialed frequency corresponding to the mobile phone number according to the target file;
a call request sending module, configured to send a call request to the second user and reject display of the mobile phone number on a call interface of the first user holding terminal when the dialed number does not reach a number threshold;
and the failure message sending module is used for sending a request failure message to the first user under the condition that the dialed times reach the time threshold.
Optionally, the method further comprises:
an obtaining operation receiving module, configured to receive a number obtaining operation performed on the target file by the first user;
a decoding problem display module, configured to display, in response to the number obtaining operation, a decoding problem corresponding to the target file on a display interface of the first user holding terminal;
a question answer obtaining module, configured to obtain a question answer corresponding to the decoding question input by the first user;
and the mobile phone number display module is used for displaying the mobile phone number on a display interface of the first user holding terminal under the condition that the question answer is matched with the target answer.
Optionally, the apparatus further comprises:
the updating operation receiving module is used for receiving the updating operation of the second user on the file transmission parameters;
and the file transmission parameter updating module is used for responding to the updating operation and updating the file transmission parameters of the target file into the target file transmission parameters according to the target file transmission parameters corresponding to the updating operation.
The file transmission device provided by the embodiment of the application receives a number acquisition request sent by a first user, wherein the number acquisition request is used for indicating to acquire a mobile phone number of a second user, and in response to the number acquisition request, file transmission parameters corresponding to a target file of a packaged mobile phone number are acquired. According to the method and the device for packaging the mobile phone number, the mobile phone number is packaged instead of being directly used, transmission is carried out between the user and the user, between the user and the website and the like, the transmission parameters of the packaged files are preset, the mobile phone number of the user can be protected to the maximum extent from being leaked, and the probability that the user is harassed is greatly reduced.
The file transmission device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The file transfer device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The file transmission device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 3, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and capable of being executed on the processor 301, where the program or the instruction is executed by the processor 301 to implement each process of the file transmission method embodiment, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 400 includes, but is not limited to: radio unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the electronic device 400 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The radio frequency unit 401 is configured to receive a number acquisition request sent by a first user; the number acquisition request is used for indicating to acquire the mobile phone number of the second user;
the processor 410 is configured to, in response to the number obtaining request, obtain a file transmission parameter corresponding to a target file encapsulating the mobile phone number; transmitting the target file to the first user under the condition that the file transmission parameter meets a file transmission condition; and refusing to transmit the target file to the first user under the condition that the file transmission parameter does not meet the file transmission condition.
According to the method and the device for packaging the mobile phone number, the mobile phone number is packaged instead of being directly used, transmission is carried out between the user and the user, between the user and the website and the like, the transmission parameters of the packaged files are preset, the mobile phone number of the user can be protected to the maximum extent from being leaked, and the probability that the user is harassed is greatly reduced.
Optionally, the processor 410 is further configured to transmit the target file to the first user if the number of times that the file has been transmitted does not reach a set number of times that the file has been transmitted; and refusing to transmit the target file to the first user under the condition that the transmitted times of the file reach the set file transmission times.
Optionally, the processor 410 is further configured to transmit the target file to the first user when the receiving time of the number obtaining request does not exceed the file transmission time; and refusing to transmit the target file to the first user under the condition that the receiving time exceeds the file transmission time.
Optionally, the processor 410 is further configured to generate a dialing request corresponding to the mobile phone number after receiving a trigger operation of the first user on the target file; responding to the dialing request, and acquiring the dialed number corresponding to the mobile phone number according to the target file; under the condition that the dialed times do not reach a time threshold value, sending a call request to the second user, and refusing the display of the mobile phone number on a call interface of the first user holding terminal; and sending a request failure message to the first user under the condition that the dialed number reaches the number threshold.
Optionally, the radio frequency unit 401 is further configured to receive a number obtaining operation performed by the first user on the target file;
a display unit 406, configured to display, in response to the number obtaining operation, a decoding problem corresponding to the target file on a display interface of the first user holding terminal;
the radio frequency unit 401 is further configured to obtain a question answer corresponding to the decoding question input by the first user;
the display unit 406 is further configured to display the mobile phone number on the display interface under the condition that the question answer is matched with the target answer.
Optionally, the radio frequency unit 401 is further configured to receive an update operation of the file transmission parameter by the second user;
the processor 410 is further configured to respond to the update operation, and update the file transfer parameter of the target file to the target file transfer parameter according to the target file transfer parameter corresponding to the update operation.
The embodiment of the application can also support the function that the opposite side user actively obtains the real mobile phone number of the current user by answering the question, and avoids the complicated step of directly asking for the real mobile phone number.
It should be understood that in the embodiment of the present application, the input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes a touch panel 4071 and other input devices 4072. A touch panel 4071, also referred to as a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 410 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the file transmission method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the file transmission method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application 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 (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 application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for file transfer, comprising:
receiving a number acquisition request sent by a first user; the number acquisition request is used for indicating to acquire the mobile phone number of the second user;
responding to the number acquisition request, and acquiring file transmission parameters corresponding to a target file for packaging the mobile phone number;
transmitting the target file to the first user under the condition that the file transmission parameter meets a file transmission condition;
and refusing to transmit the target file to the first user under the condition that the file transmission parameter does not meet the file transmission condition.
2. The method of claim 1, wherein the file transfer parameter comprises a number of times a file has been transferred, and wherein transferring the target file to the first user if the file transfer parameter satisfies a file transfer condition comprises:
under the condition that the number of times of the transmitted files does not reach the set number of times of file transmission, transmitting the target file to the first user;
the refusing to transmit the target file to the first user when the file transmission parameter does not satisfy the file transmission condition includes:
and refusing to transmit the target file to the first user under the condition that the transmitted times of the file reach the set file transmission times.
3. The method of claim 1, wherein the file transfer parameter comprises a file transfer time, and wherein transmitting the target file to the first user if the file transfer parameter satisfies a file transfer condition comprises:
transmitting the target file to the first user when the receiving time of the number obtaining request does not exceed the file transmission time;
the refusing to transmit the target file to the first user when the file transmission parameter does not satisfy the file transmission condition includes:
and refusing to transmit the target file to the first user under the condition that the receiving time exceeds the file transmission time.
4. The method of claim 1, further comprising, after said transmitting the target file to the first user:
after receiving the triggering operation of the first user on the target file, generating a dialing request corresponding to the mobile phone number;
responding to the dialing request, and acquiring the dialed number corresponding to the mobile phone number according to the target file;
under the condition that the dialed times do not reach a time threshold value, sending a call request to the second user, and refusing the display of the mobile phone number on a call interface of the first user holding terminal;
and sending a request failure message to the first user under the condition that the dialed number reaches the number threshold.
5. The method of claim 1, further comprising, after said transmitting the target file to the first user:
receiving a number acquisition operation executed by the first user on the target file;
responding to the number acquisition operation, and displaying a decoding problem corresponding to the target file on a display interface of the first user holding terminal;
obtaining a question answer corresponding to the decoding question input by the first user;
and under the condition that the question answer is matched with the target answer, displaying the mobile phone number on a display interface of the first user holding terminal.
6. The method of claim 1, further comprising:
receiving the updating operation of the second user on the file transmission parameters;
and responding to the updating operation, and updating the file transmission parameters of the target file into the target file transmission parameters according to the target file transmission parameters corresponding to the updating operation.
7. A file transfer apparatus, comprising:
a number acquisition request receiving module, configured to receive a number acquisition request sent by a first user; the number acquisition request is used for indicating to acquire the mobile phone number of the second user;
a file transmission parameter acquisition module, configured to respond to the number acquisition request and acquire a file transmission parameter corresponding to a target file encapsulating the mobile phone number;
the target file transmission module is used for transmitting the target file to the first user under the condition that the file transmission parameter meets a file transmission condition;
and the target file transmission rejection module is used for rejecting to transmit the target file to the first user under the condition that the file transmission parameter does not meet the file transmission condition.
8. The apparatus of claim 7, wherein the file transfer parameter comprises a number of times a file has been transferred, and wherein the target file transfer module comprises:
the first target file transmission unit is used for transmitting the target file to the first user under the condition that the number of times of the transmitted file does not reach the set number of times of file transmission;
the target file transmission rejection module comprises:
and the first file refusing transmission unit is used for refusing to transmit the target file to the first user under the condition that the transmitted times of the file reach the set file transmission times.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the file transfer method of any of claims 1-6.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the file transfer method according to any one of claims 1 to 6.
CN202011308262.6A 2020-11-19 2020-11-19 File transmission method and device and electronic equipment Active CN112437150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011308262.6A CN112437150B (en) 2020-11-19 2020-11-19 File transmission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011308262.6A CN112437150B (en) 2020-11-19 2020-11-19 File transmission method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112437150A true CN112437150A (en) 2021-03-02
CN112437150B CN112437150B (en) 2023-07-25

Family

ID=74693003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011308262.6A Active CN112437150B (en) 2020-11-19 2020-11-19 File transmission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112437150B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060168140A1 (en) * 1999-11-24 2006-07-27 Kabushiki Kaisha Sega Information processor, file server, accounting control system, accounting control method, and recording medium recording a program therefor
CN102891940A (en) * 2011-07-22 2013-01-23 上海博泰悦臻电子设备制造有限公司 Calling centre and method, requesting terminal and redirecting system for redirecting call through calling centre
CN105100523A (en) * 2015-06-26 2015-11-25 小米科技有限责任公司 Method, device and system for establishing voice channel
CN106921613A (en) * 2015-12-24 2017-07-04 华为数字技术(苏州)有限公司 The method and system of signalling
CN108307333A (en) * 2017-01-11 2018-07-20 北京嘀嘀无限科技发展有限公司 Intermediary number sending method, device and storage medium for mobile communication equipment
CN110636505A (en) * 2019-10-24 2019-12-31 王恩惠 Method and system for protecting account security

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060168140A1 (en) * 1999-11-24 2006-07-27 Kabushiki Kaisha Sega Information processor, file server, accounting control system, accounting control method, and recording medium recording a program therefor
CN102891940A (en) * 2011-07-22 2013-01-23 上海博泰悦臻电子设备制造有限公司 Calling centre and method, requesting terminal and redirecting system for redirecting call through calling centre
CN105100523A (en) * 2015-06-26 2015-11-25 小米科技有限责任公司 Method, device and system for establishing voice channel
CN106921613A (en) * 2015-12-24 2017-07-04 华为数字技术(苏州)有限公司 The method and system of signalling
CN108307333A (en) * 2017-01-11 2018-07-20 北京嘀嘀无限科技发展有限公司 Intermediary number sending method, device and storage medium for mobile communication equipment
CN110636505A (en) * 2019-10-24 2019-12-31 王恩惠 Method and system for protecting account security

Also Published As

Publication number Publication date
CN112437150B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CN109391476B (en) Network communication method, device and system
CN113285866B (en) Information sending method and device and electronic equipment
CN113315869B (en) Content display method, content display device, electronic equipment, content display system and storage medium
CN113364668A (en) Message reminding method and device and electronic equipment
CN111818469B (en) Calling method, calling device, electronic equipment and network equipment
CN110619097A (en) Two-dimensional code generation method and device, electronic equipment and storage medium
CN109428871B (en) Defense strategy determination method and device
CN112511412A (en) Information sending method and device, electronic equipment and readable storage medium
CN112312324A (en) Position information transmitting device and method
CN113993092B (en) Emergency call method and device, mobile terminal and network equipment
CN113676395B (en) Information processing method, related device and readable storage medium
WO2023241613A1 (en) Call establishment method, device and system, terminal, and readable storage medium
US20150156157A1 (en) Association method and device for communications modes
CN112437150B (en) File transmission method and device and electronic equipment
CN113364915B (en) Information display method and device and electronic equipment
CN113891441A (en) Network connection method and device and electronic equipment
CN113824627A (en) Group chat message display method and device, electronic equipment and storage medium
KR20130012235A (en) Apparatus and method for providing community service in portable terminal
CN113965640A (en) Message processing method and device
CN112785312A (en) Information sharing method and device, electronic equipment and readable storage medium
CN111600847A (en) Information processing method and electronic equipment
CN112235461B (en) Communication method and communication device
CN113691439B (en) Content sharing method and device
CN113179322B (en) Remote interaction method, device, electronic equipment and storage medium
CN111787587B (en) Data transmission method and device and electronic equipment

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