CN109348473B - Data uploading method and device, terminal and storage medium - Google Patents

Data uploading method and device, terminal and storage medium Download PDF

Info

Publication number
CN109348473B
CN109348473B CN201811392243.9A CN201811392243A CN109348473B CN 109348473 B CN109348473 B CN 109348473B CN 201811392243 A CN201811392243 A CN 201811392243A CN 109348473 B CN109348473 B CN 109348473B
Authority
CN
China
Prior art keywords
server
task
uploading
terminal
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811392243.9A
Other languages
Chinese (zh)
Other versions
CN109348473A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201811392243.9A priority Critical patent/CN109348473B/en
Publication of CN109348473A publication Critical patent/CN109348473A/en
Application granted granted Critical
Publication of CN109348473B publication Critical patent/CN109348473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a data uploading method, a data uploading device, a terminal and a storage medium, and belongs to the technical field of terminals. The method comprises the following steps: displaying a data uploading page of the target website, wherein the data uploading page comprises an uploading entry; when an operation signal corresponding to an uploading entry is received, acquiring respective corresponding equipment parameters of at least two mobile equipment, wherein the equipment parameters are used for indicating the corresponding relation between the network access license and the IMEI of the mobile equipment; and uploading the device parameters corresponding to the at least two mobile devices to a server corresponding to the target website. According to the embodiment of the application, the terminal can automatically upload the equipment parameters corresponding to the mobile equipment to the server through one operation acting on the uploading entry, the situation that the user operation is complex when the terminal uploads the IMEI corresponding relation in the related technology is avoided, and the data uploading efficiency is improved.

Description

Data uploading method and device, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a data uploading method, a data uploading device, a terminal and a storage medium.
Background
The data uploading method according to the embodiment of the present application is a method for uploading a corresponding relationship of an International Mobile Equipment Identity (IMEI) to a server. The IMEI correspondence relationship comprises a correspondence relationship between a network access license of the mobile equipment and the IMEI.
In the related art, the data uploading method comprises the following steps: the method comprises the steps that after a terminal successfully logs in a website corresponding to a telecommunication equipment authentication center, an uploading page of the website is displayed, a pop-up box is displayed when clicking operation of an uploading button in the uploading page is received, a user needs to select a path in the pop-up box and select a file to be uploaded under the path, and correspondingly, the terminal obtains the file selected in the pop-up box and uploads the file to a server.
Disclosure of Invention
The embodiment of the application provides a data uploading method, a data uploading device, a terminal and a storage medium, which can be used for solving the problem of low data uploading efficiency caused by complex user operation when the terminal uploads the IMEI corresponding relation. The technical scheme is as follows:
according to a first aspect of the embodiments of the present application, there is provided a data uploading method, used in a terminal, the method including:
displaying a data uploading page of a target website, wherein the data uploading page comprises an uploading entry;
when receiving an operation signal corresponding to the upload entry, acquiring device parameters corresponding to at least two mobile devices, where the device parameters are used to indicate a correspondence between a network access license of the mobile device and an IMEI;
and uploading the device parameters corresponding to the at least two mobile devices to a server corresponding to the target website.
According to a second aspect of the embodiments of the present application, there is provided a data uploading apparatus, for use in a terminal, the apparatus including:
the display module is used for displaying a data uploading page of a target website, and the data uploading page comprises an uploading entry;
an obtaining module, configured to obtain, when an operation signal corresponding to the upload entry is received, a device parameter corresponding to each of at least two mobile devices, where the device parameter is used to indicate a correspondence between a network access license of the mobile device and an IMEI;
and the uploading module is used for uploading the equipment parameters corresponding to the at least two mobile equipments to a server corresponding to the target website.
According to a third aspect of embodiments of the present application, there is provided a terminal, where the terminal includes a processor and a memory, where the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the data uploading method according to any one of the first aspect and the optional embodiments of the present application.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium, in which at least one instruction is stored, where the instruction is loaded and executed by a processor to implement the data uploading method according to any one of the first aspect and the optional embodiments of the present application.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
a data uploading method, used in a terminal, the method comprising:
the method comprises the steps that a data uploading page of a target website is displayed, wherein the data uploading page comprises an uploading entry, when an operation signal corresponding to the uploading entry is received, equipment parameters corresponding to at least two pieces of mobile equipment are obtained, the equipment parameters are used for indicating the corresponding relation between a network access license of the mobile equipment and an IMEI (international mobile equipment), and the equipment parameters corresponding to the at least two pieces of mobile equipment are uploaded to a server corresponding to the target website; namely, the terminal can automatically upload the equipment parameters corresponding to the mobile equipment to the server through an operation acting on the upload entry, so that the situation that the user operation is complicated when the terminal uploads the IMEI corresponding relation in the related technology is avoided, and the data upload efficiency is improved.
Drawings
Fig. 1 is a schematic structural diagram of a terminal provided in an exemplary embodiment of the present application;
FIG. 2 is a flowchart of a data upload method provided by an exemplary embodiment of the present application;
FIG. 3 is a flow chart of a data upload method provided by another exemplary embodiment of the present application;
FIG. 4 is a flowchart of a data upload method provided by another exemplary embodiment of the present application;
fig. 5 is a schematic structural diagram of a data uploading device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "connected" and "connected" are to be interpreted broadly, e.g., as being fixed or detachable or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In the related technology, after a terminal successfully logs in a website corresponding to a telecommunication equipment authentication center, an uploading page of the website is displayed, a pop-up box is displayed when a click operation of an uploading button in the uploading page is received, a user needs to select a path in the pop-up box and select a file to be uploaded under the path, and correspondingly, the terminal acquires the file selected in the pop-up box and uploads the file to a server. If the files need to be uploaded in batches, the uploading step needs to be repeated for multiple times manually, and the user operation is complex. In addition, missed or retransmitted situations may occur. At present, a convenient and reliable data uploading method is not provided.
The embodiment of the application provides a data uploading method, a data uploading device, a terminal and a storage medium, which can be used for solving the problems in the related art. According to the technical scheme, the terminal can automatically upload the device parameters corresponding to the mobile devices to the server through one operation acting on the uploading entrance, and the data uploading efficiency is improved.
Before explaining the embodiments of the present application, an application scenario of the embodiments of the present application is explained. Fig. 1 shows a schematic structural diagram of a terminal provided in an exemplary embodiment of the present application.
The terminal 100 is an electronic device mounted with a web browser. The web browser is used for displaying a web page of a target website. Optionally, the target website is a website corresponding to the telecommunication device authentication center.
Optionally, the terminal 100 is also referred to as a development device, and is an electronic device for data development corresponding to an enterprise. The terminal 100 is, for example, a desktop computer.
Optionally, the terminal 100 includes: a processor 120 and a memory 140.
Processor 120 may include one or more processing cores. The processor 120 connects various parts within the overall terminal 100 using various interfaces and lines, and performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 140 and calling data stored in the memory 140. Optionally, the processor 120 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 120 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 120, but may be implemented by a single chip.
The Memory 140 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 140 includes a non-transitory computer-readable medium. The memory 140 may be used to store instructions, programs, code sets, or instruction sets. The memory 140 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like; the storage data area may store data and the like referred to in the following respective method embodiments.
Referring to fig. 2, a flowchart of a data uploading method according to an exemplary embodiment of the present application is shown. The present embodiment is exemplified by applying the data uploading method to the terminal shown in fig. 1. The data uploading method comprises the following steps:
step 201, displaying a data uploading page of the target website, wherein the data uploading page comprises an uploading entry.
Optionally, the target website is a website corresponding to the telecommunication device authentication center.
Optionally, the data uploading page is a page for transmitting data to a server corresponding to the target website. The server corresponding to the target website is a server corresponding to the telecommunication equipment authentication center.
The upload entry is an operable control provided in the data upload page. Optionally, the type of upload entry includes at least one of a button, a manipulable item, and a slider. The present embodiment does not limit the location and type of the upload entry.
Step 202, when receiving an operation signal corresponding to the upload entry, obtaining device parameters corresponding to at least two mobile devices, where the device parameters are used to indicate a correspondence between a network access license of the mobile device and an IMEI.
The operation signal corresponding to the upload entry is a user operation signal for triggering acquisition of device parameters corresponding to the at least two mobile devices. Optionally, the operation signal corresponding to the upload entry includes any one or a combination of a click operation signal, a slide operation signal, a press operation signal, and a long press operation signal.
Optionally, the operation signal corresponding to the upload entry further includes other possible implementation manners. In one possible implementation, the operation signal is implemented in the form of speech. For example, a user inputs a voice signal corresponding to an upload entry in a voice form in a terminal, after the terminal acquires the voice signal, the terminal analyzes the voice signal to acquire voice content, and when a keyword matched with preset information of the upload entry exists in the voice content, the terminal determines that the upload entry is triggered.
And when the terminal receives the operation signal corresponding to the uploading entrance, acquiring the respective corresponding device parameters of at least two mobile devices.
The at least two mobile devices are mobile devices which leave the factory within a preset time period and/or leave the factory again after being repaired. For example, the mobile device is a mobile phone. The preset time period is set by a user or by a default of the terminal. For example, the preset time period is one day.
The device parameter of the mobile device is used for indicating the corresponding relation between the network access license and the IMEI of the mobile device.
Step 203, uploading the device parameters corresponding to the at least two mobile devices to a server corresponding to the target website.
Optionally, the terminal uploads the device parameters corresponding to the at least two mobile devices to the server corresponding to the target website. Illustratively, the device parameters corresponding to at least two mobile devices are uploaded to the server sequentially or simultaneously or in batches.
Correspondingly, the server receives and stores the device parameters which are uploaded by the terminal and correspond to the at least two mobile devices respectively.
In summary, in this embodiment, by displaying a data upload page of a target website, where the data upload page includes an upload entry, when an operation signal corresponding to the upload entry is received, device parameters corresponding to at least two mobile devices are obtained, where the device parameters are used to indicate a correspondence between an access license of the mobile device and an IMEI, and upload the device parameters corresponding to the at least two mobile devices to a server corresponding to the target website; namely, the terminal can automatically upload the equipment parameters corresponding to the mobile equipment to the server through an operation acting on the upload entry, so that the situation that the user operation is complicated when the terminal uploads the IMEI corresponding relation in the related technology is avoided, and the data upload efficiency is improved.
Referring to fig. 3, a flowchart of a data uploading method according to an exemplary embodiment of the present application is shown. The present embodiment is exemplified by applying the data uploading method to the terminal shown in fig. 1. The data uploading method comprises the following steps:
step 301, the terminal displays a login page of the target website, wherein the login page comprises a login entry.
Optionally, the login page is a page for logging in the target website through a preset registered account. And the telecommunication equipment authenticates the website corresponding to the center.
The login portal is an operable control provided in the login page. Optionally, the type of login entry includes at least one of a button, a manipulable entry, and a slider. In this embodiment, neither the location nor the type of the login entry is limited.
Step 302, when the terminal receives an operation signal corresponding to the login entry, the terminal sends authentication information to the server.
The operation signal corresponding to the login entry is a user operation signal for triggering the transmission of the authentication information to the server. Optionally, the operation signal corresponding to the login entry includes any one or a combination of a click operation signal, a slide operation signal, a press operation signal, and a long press operation signal.
It should be noted that, the implementation manner of the operation signal corresponding to the login entry may refer to the above description of the operation signal corresponding to the upload entry, and is not described herein again.
The identity authentication information is used for indicating the server to send authentication success information to the terminal when the identity authentication information passes authentication.
Optionally, when the terminal receives an operation signal corresponding to the login entry, the terminal sends authentication information to the server, where the authentication information includes: when an operation signal corresponding to a login entry is received, acquiring authentication information, wherein the authentication information comprises an account identifier, an account password and a serial number of an electronic network disk of a terminal; and sending the authentication information to the server.
The account number identification of the terminal is an identification corresponding to a target account number applied when the terminal is registered in the telecommunication equipment authentication center. For example, the account id is the account name of the target account. The account password is the account password of the target account.
The electronic network disk is a network disk applied when the terminal registers in the telecommunication equipment authentication center. The serial number of the electronic network disk is used for uniquely identifying the electronic network disk in the server. The server is a server corresponding to the telecommunication equipment authentication center.
Optionally, the terminal and the server perform data transmission through an Application Programming Interface (API) of the server, where the API is an Interface provided for the server by the telecommunication device authentication center.
In a possible implementation manner, the terminal and the server perform data transmission in a POST manner based on a HyperText Transfer Protocol (HTTP) through an API of the server.
Optionally, the terminal uploads the authentication information to an API of the server. Illustratively, the terminal sends the authentication information to the API of the server in a POST manner based on the HTTP protocol.
Step 303, the server verifies whether the authentication information passes.
Optionally, the server verifies whether the authentication information passes, and sends a verification result to the terminal. The verification result includes one of verification success information, verification failure information, and expiration information. The verification success information is used for indicating that the authentication information passes verification, the verification failure information is used for indicating that the authentication information fails verification, and the expiration information is used for indicating that the serial number of the electronic network disk expires.
Optionally, the server stores in advance a correspondence between the account identifier of the terminal, the account password, and the serial number of the electronic network disk. The account number identification, the account number password and the serial number of the electronic network disk of the terminal have a one-to-one correspondence relationship.
Optionally, the server further stores a corresponding relationship between the serial number of the electronic network disk and an effective time period, where the effective time period is used to indicate a term for validity of the serial number of the electronic network disk.
In a possible implementation manner, the server verifies whether the corresponding relationship among the account number identifier of the terminal, the account number password and the serial number of the electronic network disk is matched, if not, the server determines that the authentication of the authentication information is failed, the server sends authentication failure information to the terminal, if so, the server detects whether the valid time period corresponding to the serial number of the electronic network disk is expired, if not, the server determines that the authentication of the authentication information is passed, and step 304 is executed; and if the serial number is expired, sending the serial number expiration information to the terminal.
Illustratively, the "RspCode value" is used to represent the verification result, the verification success information is represented when the RspCode value is "0000", the verification failure information is represented when the RspCode value is "0001", and the expiration information is represented when the RspCode value is "0002".
And step 304, when the identity authentication information passes the authentication, the server sends authentication success information to the terminal.
Optionally, when the correspondence between the account identifier of the server verification terminal, the account password, and the serial number of the electronic network disk matches and the valid time period corresponding to the serial number of the electronic network disk is not expired, it is determined that the authentication of the authentication information is passed, and authentication success information is sent to the terminal.
And 305, displaying a data uploading page of the target website when the terminal receives the verification success information.
Correspondingly, when the terminal receives the verification success information sent by the server, the terminal switches and displays the login page into a data uploading page, and the data uploading page comprises an uploading entry.
And step 306, when the click signal corresponding to the upload entry is received, acquiring device parameters corresponding to at least two mobile devices.
Optionally, when the terminal receives a click signal corresponding to an upload entry in the data upload page, device parameters corresponding to at least two mobile devices are obtained.
Optionally, the device parameter of the mobile device includes a file value of the target file. The target file is a file used for storing the corresponding relation between the network access license of the mobile equipment and the IMEI, and the file value is a character string obtained by coding the address of the target file to obtain a preset coding format. Illustratively, the predetermined encoding format is a BASE64 encoding format.
Optionally, the device parameter further includes a file name value and a repair value of the target file, where the file name value is used to indicate a file name of the target file, and the repair value is used to indicate whether the terminal device is a repair machine.
For example, the File name value of the target File is represented by a "FileName value", the File value of the target File is represented by a "File value", and the rework value is represented by an "isRework value". And when the isRework value is '0', indicating that the terminal equipment is not a repair machine, and when the isRework value is '1', indicating that the terminal equipment is a repair machine.
In an illustrative example, when the terminal receives a click signal corresponding to an upload entry in a data upload page, device parameters corresponding to five mobile devices are obtained. The device parameters corresponding to the five mobile devices are shown in table one. The device parameters corresponding to the mobile device 1 include: FileName value "001", File value "aHR 0cDovL3d3dy5zb29wYXQuY29 tLw" and isRework value "0"; the device parameters corresponding to the mobile device 2 include: FileName value "002", File value "aHR 0cHM6Ly9qaW5neWFuLmJhaWR1LmNvbS9hcnRp5 ODRkYjFiytliMWNmIwYmZLYi 5odG1 s" and isRework value "0"; the device parameters corresponding to the mobile device 3 include: FileName value "003", File value "aHR 0cHM6Ly9oYW8uMzYwLmNulz9 hMTAwNA" and isRework value "0"; the device parameters corresponding to the mobile device 4 include: FileName value "004", File value "aHR 0cHM6Ly9iYWlrZS5iYWl20vaXR9iYXNlNjQ0NTc3NT9mcj1 hbGFkZGlu" and isRework value "1"; the device parameters corresponding to the mobile device 5 include: FileName value "005", File value "aHR 0cHM6Ly9qaW5neWFuLmJhaWR1LmNvbS9hcnRpy2xlLzQ1NjNiMzkyMjk3MGE1ODMxNi5odG1 s" and isRework value "0".
Watch 1
Figure BDA0001874288330000091
Step 307, uploading the device parameters corresponding to the at least two mobile devices to an application programming interface API of the server.
Wherein, the API is an interface provided by the telecommunication equipment authentication center to the server.
Optionally, the terminal uploads the device parameters corresponding to the at least two mobile devices to the API of the server.
Illustratively, the terminal sends the device parameters corresponding to the at least two mobile devices to the API of the server in a POST manner based on the HTTP protocol.
And 308, when the server receives the device parameters corresponding to the at least two mobile devices, the server sends the task identifier to the terminal.
And the server receives the device parameters which are uploaded by the terminal and respectively correspond to the at least two mobile devices. After all the receiving is finished, the task identifier is sent to the terminal; correspondingly, the terminal receives the task identifier returned by the server, so that the terminal can subsequently inquire the data processing result corresponding to the uploaded data through the task identifier.
The task identifier is used for indicating that the uploading of the device parameters corresponding to the at least two mobile devices is successful. Optionally, the task identifier includes a time parameter corresponding to successful uploading, and the task identifier is represented by a jobID.
In an illustrative example, when the terminal receives a click signal corresponding to a login entry in a login page of a target website, identity authentication information is sent to the server, the identity authentication information comprises an account identifier "XX" of the terminal, an account password "123456" and a serial number "WD 7K9D 3A" of an electronic network disk, and the server verifies that the identity authentication information passes through and sends an RspCode value "0000" to the terminal. After the terminal receives the RspCode value "0000", that is, the verification success information, when the terminal receives a click signal corresponding to an upload entry in the data upload page, the device parameters corresponding to the five mobile devices shown in table one are obtained. And the terminal sends the device parameters corresponding to the five mobile devices to the API of the server by adopting a POST mode based on the HTTP protocol. Correspondingly, after all the APIs are received, the server returns the jobID '20181115' corresponding to the data processing result to the terminal.
In summary, in this embodiment, the corresponding relationship between the network access license of the mobile device and the IMEI is stored in the target file in advance, and the address of the target file is encoded to obtain the character string in the preset encoding format, that is, the file value, because the data volume of the file value is much smaller than that of the target file, the data volume carried when the terminal uploads the file value of the terminal to the server as the device parameter is greatly reduced, which is convenient for data transmission, and further improves the efficiency of data uploading.
The embodiment also displays a login page of the target website through the terminal, wherein the login page comprises a login entry; when an operation signal corresponding to a login entry is received, acquiring authentication information, wherein the authentication information comprises an account number identifier, an account number password and a serial number of an electronic network disk of a terminal, and sending the authentication information to a server and sending the authentication information to the server; the terminal can acquire the authentication information through an operation acting on the login entrance and send the authentication information to the server, so that the condition that the account name and the account password need to be manually input when the terminal logs in the target website in the related technology is avoided, and the account login efficiency is improved.
It should be noted that the terminal uploads device parameters corresponding to at least two mobile devices to the server, and after receiving the task identifier returned by the server, the terminal may subsequently query a data processing result corresponding to the uploaded data through the task identifier. The above step 305 further includes the following steps, as shown in fig. 4:
step 401, when receiving an operation signal corresponding to a query entry in a target website, sending a query request carrying a task identifier to a server.
And the query request is used for indicating the server to return a data processing result corresponding to the task identifier.
Optionally, the terminal displays a query page of the target website, where the query page includes a query entry. When the terminal receives an operation signal corresponding to a query entry in a query page, a query request carrying a task identifier is generated, and the generated query request is sent to the server.
Optionally, the query page is a page for querying a server corresponding to the target website for the data processing result. The query entry is an actionable control provided in the query page. Optionally, the type of query entry includes at least one of a button, a manipulable entry, and a slider. The present embodiment does not limit the location and type of the query entry.
It should be noted that, the terminal displays the query page of the target website, and the process of the terminal receiving the operation signal corresponding to the query entry in the query page may refer to the data upload page of the target website displayed by the terminal, and the process of receiving the operation signal corresponding to the upload entry, which are not described herein again.
Step 402, the server obtains a data processing result corresponding to the task identifier according to the task identifier in the received query request.
Optionally, the server receives an inquiry request sent by the terminal, reads the task identifier from the inquiry request, and obtains a data processing result corresponding to the task identifier.
The server obtains a data processing result corresponding to the task identifier, which includes but is not limited to the following two possible implementation manners:
in a possible implementation manner, the server obtains a data processing result corresponding to the task identifier according to a stored first corresponding relationship, where the first corresponding relationship includes a corresponding relationship between the task identifier and the data processing result.
The first correspondence in the server is updated in real time or every preset time period.
In another possible implementation manner, the server determines a task state identifier corresponding to the task identifier, acquires other parameters to be transmitted according to the task state identifier, and determines the task state identifier and the other parameters as a data processing result corresponding to the task identifier.
The data processing result is used for indicating the task state and the parameter characteristics of the processing task corresponding to the device parameters respectively corresponding to the at least two mobile devices.
Optionally, the data processing result includes a task state identifier, where the task state identifier is used to indicate a task state of a processing task corresponding to a device parameter corresponding to each of the at least two mobile devices. The task state identifier comprises one of a first task state identifier, a second task state identifier and a third task state identifier.
The first task state identifier is used for indicating that the processing task is in a to-be-processed state, the second task state identifier is used for indicating that the processing task is in a finished state and all equipment parameters in the processing task are correct, and the third task state identifier is used for indicating that the processing task is in a finished state and equipment parameters with import failure exist in the processing task.
Illustratively, a task state identifier is represented by a "Result value", a first task state identifier is represented by a "Result value" of "1", a second task state identifier is represented by a "Result value" of "3", and a third task state identifier is represented by a "Result value" of "9".
Optionally, the data processing result further includes at least one of a total number of parameters, a success number, an error reason parameter, and a problem report file parameter, and is used to indicate a parameter characteristic of a processing task corresponding to a device parameter corresponding to each of the at least two mobile devices.
Optionally, the total number of the parameters is the total number of the device parameters in the processing task, the successful number is the number of the device parameters successfully imported into the processing task, and the error number is the number of the device parameters unsuccessfully imported into the processing task. The error reason parameter is used for indicating the description information of the reason of the equipment parameter which fails to be imported, and the problem report file parameter is the link address information of the problem report file corresponding to the processing task.
Optionally, the data processing result includes, but is not limited to, the following three possible data processing results:
first data processing result: the first task state identification and the total number of parameters.
Second data processing result: the second task state identification, the total number of parameters, the success number and the error number.
Optionally, when the task state identifier is the second task state identifier, the task state identifier is used to indicate that the processing task is in a complete state and parameters of each device in the processing task are correct, the successful number is the total number of the parameters, and the error number is zero. That is, the second quantity of processing results includes: and the second task state identification and the total number of the parameters are only needed.
Third data processing results: third task state identification, total number of parameters, success number, error reason parameter and problem report file parameter.
The number of the error reason parameters can be one, namely, the error reason parameters are used for indicating a set of error reasons corresponding to all the equipment parameters which fail to be imported in the processing task; the number of error cause parameters may also be consistent with the number of errors, that is, each device parameter that fails to be imported corresponds to one error cause parameter.
For convenience of data transmission, in one possible implementation, the error cause parameter is a character string obtained by encoding a link address of description information of the error cause. And the problem report file parameter is a character string obtained by coding the link address of the problem report file corresponding to the processing task.
Optionally, the server encodes the link address of the description information of the error cause to obtain a character string, and encodes the link address of the problem report file corresponding to the processing task to obtain the character string, so that the process of encoding the address of the target file to obtain the character string in the preset encoding format can be performed by analogy with the process of encoding the address of the target file by the terminal, which is not described herein again.
Schematically, the total number of parameters is represented by a "SumAmount value", the success number is represented by a "Success Amount value", the error number is represented by a "FailAmount value", the error reason parameter is represented by a "Remark value", and the problem report file parameter is represented by a "FileName value".
In step 403, the server returns the acquired data processing result to the terminal.
Optionally, the server returns the data processing result to the terminal through an API of the server. The data processing result is used for indicating the task state and the parameter characteristics of the processing task corresponding to the device parameters respectively corresponding to the at least two mobile devices.
And step 404, the terminal receives the data processing result returned by the server.
Correspondingly, the terminal receives a data processing result returned by the API of the server.
In an illustrative example, when the terminal receives a click signal corresponding to a query entry in a target website, a query request carrying a jobID of "20181115" is sent to the server, and the server returns a data processing result corresponding to the jobID of "20181115" to the terminal according to the jobID of "20181115" in the received query request, where the data processing result includes: the SumAmount value is "5", the SuccessAmount value is "4", the FailAmount value is "1", the Remark value is "RpY 4FllzC 6", and the FileName value is "JIsdfKIrt 3U69HYsYwS4 EddS 1". Correspondingly, the terminal receives the data processing result returned by the server.
To sum up, the embodiment of the application also receives the task identifier returned by the server through the terminal, and when receiving the operation signal corresponding to the query entry in the target website, sends the query request carrying the task identifier to the server, and receives the data processing result returned by the server; the terminal can check the task state and the parameter characteristics of the processing task corresponding to the device parameters respectively corresponding to the at least two mobile devices in time according to the task identifier, and query the processing task after data uploading is facilitated.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Please refer to fig. 5, which illustrates a schematic structural diagram of a data uploading apparatus according to an embodiment of the present application. The data uploading device can be implemented by a dedicated hardware circuit, or a combination of hardware and software, as all or a part of the terminal in fig. 1, and includes: a display module 510, an acquisition module 520, and an upload module 530.
A display module 510, configured to display a data upload page of a target website, where the data upload page includes an upload entry;
an obtaining module 520, configured to obtain, when an operation signal corresponding to an upload entry is received, device parameters corresponding to at least two mobile devices, where the device parameters are used to indicate a correspondence between a network access license of the mobile device and an IMEI;
the uploading module 530 is configured to upload the device parameters corresponding to the at least two mobile devices to a server corresponding to the target website.
Optionally, the obtaining module 520 is further configured to obtain device parameters corresponding to the at least two mobile devices when the click signal corresponding to the upload entry is received, where the device parameters include a file value of the target file;
the target file is a file used for storing the corresponding relation between the network access license of the mobile equipment and the IMEI, and the file value is a character string obtained by coding the address of the target file to obtain a preset coding format.
Optionally, the device parameter further includes a file name value and a repair value of the target file, where the file name value is used to indicate a file name of the target file, and the repair value is used to indicate whether the terminal device is a repair machine.
Optionally, the target website is a website corresponding to the telecommunication device authentication center, and the uploading module 530 is further configured to upload the device parameters corresponding to the at least two mobile devices to an application programming interface API of the server, where the API is an interface provided by the telecommunication device authentication center to the server.
Optionally, the display module 510 further includes: the device comprises a first display unit, a sending unit and a second display unit.
The first display unit is used for displaying a login page of a target website, and the login page comprises a login entry;
the sending unit is used for sending authentication information to the server when receiving an operation signal corresponding to the login entry, and the authentication information is used for indicating the server to send authentication success information to the terminal when the authentication information passes;
and the second display unit is used for displaying the data uploading page of the target website when the verification success information is received.
Optionally, the sending unit is further configured to obtain, when an operation signal corresponding to the login entry is received, authentication information, where the authentication information includes an account identifier, an account password, and a serial number of an electronic network disk, and the electronic network disk is a network disk applied when the terminal registers in the telecommunication equipment authentication center; and sending the authentication information to the server.
Optionally, the apparatus further comprises: the device comprises a receiving module and a sending module.
The receiving module is used for receiving a task identifier returned by the server, and the task identifier is used for indicating that the uploading of the device parameters corresponding to the at least two mobile devices is successful;
the sending module is used for sending a query request carrying a task identifier to the server when receiving an operation signal corresponding to a query entry in the target website, wherein the query request is used for indicating the server to return a data processing result corresponding to the task identifier;
the receiving module is further configured to receive a data processing result returned by the server, where the data processing result is used to indicate a task state and parameter characteristics of a processing task corresponding to a device parameter corresponding to each of the at least two mobile devices.
Optionally, the data processing result includes:
the first task state identification is used for indicating that the processing task is in a to-be-processed state, and the total number of the parameters is the total number of equipment parameters in the processing task; alternatively, the first and second electrodes may be,
the second task state identification is used for indicating that the processing task is in a completion state and all the equipment parameters in the processing task are correct, the success quantity is the quantity of the equipment parameters which are successfully imported into the processing task, and the error quantity is the quantity of the equipment parameters which are failed to be imported into the processing task.
Optionally, the data processing result includes:
third task status identification, total number of parameters, success number, error cause parameter and problem report file parameter,
the third task state identifier is used for indicating that the processing task is in a finished state and the processing task has device parameters which are failed to be imported, the total number of the parameters is the total number of the device parameters in the processing task, the success number is the number of the device parameters which are successfully imported in the processing task, the error number is the number of the device parameters which are failed to be imported in the processing task, the error reason parameter is used for indicating description information of reasons for the device parameters which are failed to be imported, and the problem report file parameter is link address information of a problem report file corresponding to the processing task.
The relevant details may be combined with the method embodiments described with reference to fig. 2-4. The display module 510 is further configured to implement any other implicit or disclosed functions related to the display step in the foregoing method embodiments; the obtaining module 520 is further configured to implement any other implicit or disclosed functionality related to the obtaining step in the above method embodiments; the uploading module 530 is further configured to implement any other implicit or disclosed function related to the uploading step in the foregoing method embodiment.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
The present application also provides a computer readable medium, on which program instructions are stored, and when the program instructions are executed by a processor, the data uploading method provided by the above method embodiments is implemented.
The present application also provides a computer program product containing instructions, which when run on a computer, causes the computer to perform the data uploading method described in the above embodiments.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps in the data uploading method for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing associated hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, or the like. The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (11)

1. A data uploading method, used in a terminal, the method comprising:
displaying a data uploading page of a target website, wherein the data uploading page comprises an uploading entry;
when an operation signal corresponding to the uploading entry is received, acquiring respective corresponding equipment parameters of at least two mobile equipment, wherein the equipment parameters are used for indicating the corresponding relation between the network access license of the mobile equipment and the International Mobile Equipment Identity (IMEI);
uploading the device parameters corresponding to the at least two mobile devices to a server corresponding to the target website;
receiving a task identifier returned by the server, wherein the task identifier is used for indicating that the device parameters corresponding to the at least two mobile devices are uploaded successfully;
when an operation signal corresponding to a query entry in the target website is received, sending a query request carrying the task identifier to a server, wherein the query request is used for indicating the server to return a data processing result corresponding to the task identifier;
and receiving the data processing result returned by the server, wherein the data processing result is used for indicating the task state and the parameter characteristics of the processing task corresponding to the equipment parameters corresponding to the at least two mobile equipment.
2. The method according to claim 1, wherein the obtaining device parameters corresponding to each of at least two mobile devices when receiving the operation signal corresponding to the upload entry comprises:
when a click signal corresponding to the uploading entry is received, acquiring the equipment parameters corresponding to the at least two mobile equipments respectively, wherein the equipment parameters comprise file values of a target file;
the target file is a file used for storing a corresponding relation between the network access license of the mobile equipment and the IMEI, and the file value is a character string obtained by coding an address of the target file to obtain a preset coding format.
3. The method of claim 2, wherein the device parameters further include a file name value and a rework value for the target file, the file name value indicating a file name of the target file, the rework value indicating whether the terminal device is a rework machine.
4. The method of claim 1, wherein the target website is a website corresponding to a telecommunication equipment authentication center, and the uploading the device parameters corresponding to the at least two mobile devices to a server corresponding to the target website comprises:
and uploading the device parameters corresponding to the at least two mobile devices to an Application Programming Interface (API) of the server, wherein the API is an interface provided for the telecommunication device authentication center to the server.
5. The method of claim 1, wherein displaying the data upload page of the target website comprises:
displaying a login page of the target website, wherein the login page comprises the login entry;
when an operation signal corresponding to the login entry is received, identity authentication information is sent to the server, and the identity authentication information is used for indicating the server to send authentication success information to the terminal when the identity authentication information passes authentication;
and displaying the data uploading page of the target website when the verification success information is received.
6. The method according to claim 5, wherein the sending authentication information to the server when receiving the operation signal corresponding to the login entry comprises:
when an operation signal corresponding to the login entry is received, acquiring the identity verification information, wherein the identity verification information comprises an account number identifier, an account number password and a serial number of an electronic network disk, and the electronic network disk is a network disk applied when the terminal is registered in a telecommunication equipment authentication center;
and sending authentication information to the server.
7. The method of claim 1, wherein the data processing results comprise:
a first task state identifier and a total number of parameters, wherein the first task state identifier is used for indicating that the processing task is in a state to be processed, and the total number of parameters is the total number of the device parameters in the processing task; alternatively, the first and second electrodes may be,
the processing task management method comprises a second task state identification, a parameter total number, a success number and an error number, wherein the second task state identification is used for indicating that the processing task is in a completion state and each device parameter in the processing task is correct, the success number is the number of device parameters which are successfully imported into the processing task, and the error number is the number of device parameters which are failed to import into the processing task.
8. The method of claim 1, wherein the data processing results further comprise:
third task status identification, total number of parameters, success number, error cause parameter and problem report file parameter,
the third task state identifier is used for indicating that the processing task is in a finished state and that the processing task has device parameters which are failed to be imported, the total number of the parameters is the total number of the device parameters in the processing task, the success number is the number of the device parameters which are successfully imported into the processing task, the error number is the number of the device parameters which are failed to be imported into the processing task, the error reason parameter is used for indicating description information of reasons for the device parameters which are failed to be imported, and the problem report file parameter is link address information of a problem report file corresponding to the processing task.
9. A data uploading apparatus, for use in a terminal, the apparatus comprising:
the display module is used for displaying a data uploading page of a target website, and the data uploading page comprises an uploading entry;
an obtaining module, configured to obtain, when an operation signal corresponding to the upload entry is received, a device parameter corresponding to each of at least two mobile devices, where the device parameter is used to indicate a correspondence between a network access license of the mobile device and an international mobile equipment identity IMEI;
the uploading module is used for uploading the equipment parameters corresponding to the at least two mobile equipments to a server corresponding to the target website;
a receiving module, configured to receive a task identifier returned by the server, where the task identifier is used to indicate that the device parameters corresponding to the at least two mobile devices are uploaded successfully;
the sending module is used for sending a query request carrying the task identifier to a server when receiving an operation signal corresponding to a query entry in the target website, wherein the query request is used for indicating the server to return a data processing result corresponding to the task identifier;
the receiving module is further configured to receive the data processing result returned by the server, where the data processing result is used to indicate a task state and a parameter feature of a processing task corresponding to the device parameter corresponding to each of the at least two mobile devices.
10. A terminal, characterized in that the terminal comprises a processor, a memory connected to the processor, and program instructions stored on the memory, which when executed by the processor implement the data uploading method according to any of claims 1 to 8.
11. A computer-readable storage medium, having stored thereon program instructions, which when executed by a processor, implement the data upload method of any of claims 1 to 8.
CN201811392243.9A 2018-11-21 2018-11-21 Data uploading method and device, terminal and storage medium Active CN109348473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811392243.9A CN109348473B (en) 2018-11-21 2018-11-21 Data uploading method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811392243.9A CN109348473B (en) 2018-11-21 2018-11-21 Data uploading method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109348473A CN109348473A (en) 2019-02-15
CN109348473B true CN109348473B (en) 2021-08-03

Family

ID=65316830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811392243.9A Active CN109348473B (en) 2018-11-21 2018-11-21 Data uploading method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109348473B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790917A (en) * 2011-05-19 2012-11-21 上海贝尔股份有限公司 Method and apparatus for transmission of interactive multi-screen business contents
CN103607468A (en) * 2013-11-29 2014-02-26 深圳市金立通信设备有限公司 Method and terminal for uploading files
CN105025086A (en) * 2015-06-11 2015-11-04 江南大学 A cloud safe storing/retrieving method targeted at mobile intelligent terminals
CN105743966A (en) * 2015-12-28 2016-07-06 哈尔滨安天科技股份有限公司 File block multi-point uploading method and system
CN107920005A (en) * 2017-11-17 2018-04-17 南京物联传感技术有限公司 A kind of intelligent terminal quickly networking installation and debugging system and method for work

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790917A (en) * 2011-05-19 2012-11-21 上海贝尔股份有限公司 Method and apparatus for transmission of interactive multi-screen business contents
CN103607468A (en) * 2013-11-29 2014-02-26 深圳市金立通信设备有限公司 Method and terminal for uploading files
CN105025086A (en) * 2015-06-11 2015-11-04 江南大学 A cloud safe storing/retrieving method targeted at mobile intelligent terminals
CN105743966A (en) * 2015-12-28 2016-07-06 哈尔滨安天科技股份有限公司 File block multi-point uploading method and system
CN107920005A (en) * 2017-11-17 2018-04-17 南京物联传感技术有限公司 A kind of intelligent terminal quickly networking installation and debugging system and method for work

Also Published As

Publication number Publication date
CN109348473A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
WO2021040994A1 (en) Systems, method, and media for determining security compliance of continuous build software
CN107241336B (en) Identity verification method and device
CN104618316B (en) Safe verification method, device and system
CN104753892B (en) Network resource transmission method, device and system
CN111953642A (en) Method for uploading and downloading shared file by two-dimensional code
CN113038399A (en) Method, electronic device and storage medium for quickly verifying user identity through 5G message
US20200012573A1 (en) Data backup method and terminal
CN111506551A (en) Conference file extraction method and system and computer equipment
CN103997437A (en) Cloud server registration function testing method
CN105045801B (en) The display methods of head portrait, apparatus and system when a kind of login
CN111078437B (en) Remote calling method and device for verification codes, electronic equipment and readable storage medium
CN104079527A (en) Information processing method and electronic equipment
CN109348473B (en) Data uploading method and device, terminal and storage medium
CN112800410A (en) Multi-product login management method, device, equipment and storage medium
CN110768925B (en) Verification method and device for verification code short message
CN115801279A (en) File secure transmission method and device
US10997539B2 (en) Supplier analysis and verification system and method
CN107566422A (en) A kind of verification method of third party user
CN113626789A (en) User operation request processing method and device and electronic equipment
CN113434577A (en) Service data processing method, storage medium and equipment
CN111767200A (en) Method, device and computer equipment for processing service based on service log
CN105227518A (en) Server, client, interactive system and information method of sending and receiving
TWI779749B (en) Method and system for verifying by messaging service
CN113489623B (en) Verification code testing method, verification code testing device, electronic equipment, storage medium and program product
CN103179163A (en) System and method for remote monitoring

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