[go: up one dir, main page]

CN109819105B - Processing method of operation instruction and mobile terminal - Google Patents

Processing method of operation instruction and mobile terminal Download PDF

Info

Publication number
CN109819105B
CN109819105B CN201811610185.2A CN201811610185A CN109819105B CN 109819105 B CN109819105 B CN 109819105B CN 201811610185 A CN201811610185 A CN 201811610185A CN 109819105 B CN109819105 B CN 109819105B
Authority
CN
China
Prior art keywords
instruction
operation instruction
target
dimensional code
execution
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
CN201811610185.2A
Other languages
Chinese (zh)
Other versions
CN109819105A (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 CN201811610185.2A priority Critical patent/CN109819105B/en
Publication of CN109819105A publication Critical patent/CN109819105A/en
Application granted granted Critical
Publication of CN109819105B publication Critical patent/CN109819105B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a processing method of an operation instruction and a mobile terminal, comprising the following steps: scanning and analyzing a target two-dimensional code; the target two-dimensional code carries an instruction sequence, and the instruction sequence comprises at least one operation instruction to be executed; and executing the at least one operation instruction based on the instruction sequence obtained by analysis. According to the scheme of the embodiment of the invention, the target two-dimensional code can be scanned and recycled only by recording the operation instruction once, manual participation is not needed, the labor cost is saved, the target two-dimensional code is used in the operation instruction transmission process, the operation is rapid and accurate, and the execution efficiency of the operation instruction is improved.

Description

操作指令的处理方法和移动终端Operation instruction processing method and mobile terminal

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种操作指令的处理方法和移动终端。The present invention relates to the field of communication technologies, and in particular, to a method for processing operation instructions and a mobile terminal.

背景技术Background technique

随着智能手机的发展,伴随着更多操作指令的出现,以实现对智能手机以及其安装的APP的操作。With the development of smart phones, more operation instructions appear, so as to realize the operation of smart phones and APPs installed thereon.

以线下销售场景为例,用户在进行新机激活时,一般需要销售服务人员使用样机为其进行演示操作,由于操作指令的数量可能较多且执行顺序有要求,如果销售服务人员对操作指令不熟悉,会导致操作出错;针对每个新机可能都需要演示一次相同的操作,耗时漫长,且需要多次人工重复操作。从而,影响用户体验新机激活,且执行效率较低。Taking the offline sales scenario as an example, when a user activates a new phone, the sales and service personnel generally need to use the prototype to demonstrate the operation for them. Since the number of operation instructions may be large and the execution order is required, if the sales and service personnel are not satisfied with the operation instructions. Unfamiliarity will lead to operation errors; it may be necessary to demonstrate the same operation once for each new machine, which takes a long time and requires many manual repetitions. Therefore, the user experience of new machine activation is affected, and the execution efficiency is low.

如何快速准确的执行操作指令且提升执行效率,是本发明所要解决的技术问题。How to execute the operation instruction quickly and accurately and improve the execution efficiency is the technical problem to be solved by the present invention.

发明内容SUMMARY OF THE INVENTION

本发明实施例的目的是提供一种操作指令的处理方法和移动终端,以解决现有技术中操作指令执行繁琐且执行效率较低的问题。The purpose of the embodiments of the present invention is to provide an operation instruction processing method and a mobile terminal, so as to solve the problems of complicated execution of operation instructions and low execution efficiency in the prior art.

第一方面,提供了一种操作指令的处理方法,应用于第一终端,所述方法包括:In a first aspect, a method for processing an operation instruction is provided, which is applied to a first terminal, and the method includes:

扫描并解析目标二维码;其中,所述目标二维码携带有指令序列,所述指令序列中包含待执行的至少一个操作指令;Scanning and parsing the target two-dimensional code; wherein, the target two-dimensional code carries an instruction sequence, and the instruction sequence includes at least one operation instruction to be executed;

基于解析得到的所述指令序列,执行所述至少一个操作指令。Based on the instruction sequence obtained by parsing, the at least one operation instruction is executed.

第二方面,提供了一种移动终端,所述移动终端包括:In a second aspect, a mobile terminal is provided, the mobile terminal comprising:

解析模块,用于扫描并解析目标二维码;其中,所述目标二维码携带有指令序列,所述指令序列中包含待执行的至少一个操作指令;a parsing module for scanning and parsing a target two-dimensional code; wherein, the target two-dimensional code carries an instruction sequence, and the instruction sequence includes at least one operation instruction to be executed;

执行模块,用于基于解析得到的所述指令序列,执行所述至少一个操作指令。An execution module, configured to execute the at least one operation instruction based on the instruction sequence obtained by parsing.

第三方面,提供了一种移动终端,该移动终端包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面该的方法的步骤。In a third aspect, a mobile terminal is provided, the mobile terminal includes a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to achieve the first Aspects of the method steps.

第四方面,提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面该的方法的步骤。In a fourth aspect, a computer-readable storage medium is provided, and a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method of the first aspect are implemented.

在本发明实施例中,只需录制一次操作指令,就可以通过扫描目标二维码循环使用,无需人工参与,节省人工成本,而且,操作指令传递过程使用目标二维码,实现快速准确,提升操作指令的执行效率。In the embodiment of the present invention, it is only necessary to record the operation instruction once, and then it can be used cyclically by scanning the target two-dimensional code without manual participation, thus saving labor costs. Moreover, the operation instruction transmission process uses the target two-dimensional code to achieve fast, accurate, and improved The execution efficiency of operation instructions.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:

图1是本发明的一个实施例提供的操作指令的处理方法步骤流程图。FIG. 1 is a flowchart of steps of a processing method for an operation instruction provided by an embodiment of the present invention.

图2是本发明的一个实施例提供的目标二维码生成过程的步骤流程图。FIG. 2 is a flow chart of steps of a target two-dimensional code generation process provided by an embodiment of the present invention.

图3是本发明的再一个实施例提供的操作指令的处理方法步骤流程图。FIG. 3 is a flowchart of steps of a processing method for an operation instruction provided by yet another embodiment of the present invention.

图4是本发明的一个实施例提供的移动终端的结构示意图。FIG. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.

图5是本发明的再一个实施例提供的移动终端的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of a mobile terminal provided by still another embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

图1是本发明的一个实施例提供的操作指令的处理方法步骤流程图。图1的方法由第一终端执行。图1的方法可包括:FIG. 1 is a flowchart of steps of a processing method for an operation instruction provided by an embodiment of the present invention. The method of FIG. 1 is performed by the first terminal. The method of Figure 1 may include:

S101:扫描并解析目标二维码;其中,所述目标二维码携带有指令序列,所述指令序列中包含待执行的至少一个操作指令。S101: Scan and parse a target two-dimensional code; wherein, the target two-dimensional code carries an instruction sequence, and the instruction sequence includes at least one operation instruction to be executed.

可选地,在本发明实施例中,所述目标二维码通过以下方式生成:Optionally, in this embodiment of the present invention, the target two-dimensional code is generated in the following manner:

在第一终端上启动指令录制操作;start the command recording operation on the first terminal;

录制所述第一终端上执行的至少一个操作指令;recording at least one operation instruction executed on the first terminal;

基于录制的所述至少一个操作指令及录制顺序,生成目标二维码;其中,所述目标二维码中携带包含有所述至少一个操作指令及录制顺序的指令序列;Based on the recorded at least one operation instruction and the recording sequence, a target two-dimensional code is generated; wherein, the target two-dimensional code carries an instruction sequence including the at least one operation instruction and the recording sequence;

或者,or,

在第二终端上启动指令录制操作;start the command recording operation on the second terminal;

录制所述第二终端上执行的至少一个操作指令;recording at least one operation instruction executed on the second terminal;

基于录制的所述至少一个操作指令及录制顺序,生成目标二维码;其中,所述目标二维码中携带包含有所述至少一个操作指令及录制顺序的指令序列。Based on the recorded at least one operation instruction and the recording sequence, a target two-dimensional code is generated; wherein, the target two-dimensional code carries an instruction sequence including the at least one operation instruction and the recording sequence.

参照图2所示,具体包括以下步骤:Referring to Figure 2, it specifically includes the following steps:

S201:在移动终端上启动指令录制操作。S201: Start an instruction recording operation on the mobile terminal.

其中,所述指令录制操作在移动终端的指令录入模式下启动进行。Wherein, the instruction recording operation is started in the instruction input mode of the mobile terminal.

S202:录制所述移动终端上执行的至少一个操作指令。S202: Record at least one operation instruction executed on the mobile terminal.

应理解,移动终端上执行的至少一个操作指令可以是用户通过对移动终端的手动操作生成的操作指令。其中,所述至少一个操作指令至少包括以下之一或组合:It should be understood that the at least one operation instruction executed on the mobile terminal may be an operation instruction generated by the user through manual operation of the mobile terminal. Wherein, the at least one operation instruction includes at least one or a combination of the following:

使用移动终端硬件功能生成的操作指令,例如拍照指令,通话指令,短信指令等;Operation instructions generated by using the hardware functions of the mobile terminal, such as taking pictures, calling, SMS, etc.;

使用移动终端设置功能生成的操作指令,例如调整字体大小指令,设置手机铃声指令,登录账号指令等;Operation instructions generated by using the mobile terminal setting function, such as instructions to adjust font size, instructions to set mobile phone ringtones, instructions to log in to an account, etc.;

打开移动终端官方内置APP生成的操作指令;Open the operation instructions generated by the official built-in APP of the mobile terminal;

使用官方APP内特定功能生成的操作指令;Use the operation instructions generated by specific functions in the official APP;

使用超级APP生成的操作指令,例如使用微信内特定功能的指令。Use the operation instructions generated by the super APP, such as instructions to use specific functions in WeChat.

S203:基于录制的所述至少一个操作指令及录制顺序,生成目标二维码;其中,所述目标二维码中携带包含有所述至少一个操作指令及录制顺序的指令序列。S203: Generate a target two-dimensional code based on the recorded at least one operation instruction and the recording sequence; wherein, the target two-dimensional code carries an instruction sequence including the at least one operation instruction and the recording sequence.

具体可以按照现有的目标二维码生成方式,以所述至少一个操作指令和录制顺序作为编码信息,生成目标二维码。Specifically, the target two-dimensional code may be generated according to the existing target two-dimensional code generation method, using the at least one operation instruction and the recording sequence as the encoding information.

应理解,在本发明实施例中,生成目标二维码的移动终端可以是执行步骤S101中扫描及解析操作的第一终端,或者,可以是第一终端以外的第二终端。如果生成目标二维码的移动终端是执行步骤S101中扫描及解析操作的第一终端,那么,该第一终端可以通过本设备的摄像头扫描目标二维码并解析;如果生成目标二维码的移动终端是第二终端,那么,第二终端可以将生成的目标二维码展示给所述第一终端进行扫描解析。It should be understood that, in this embodiment of the present invention, the mobile terminal that generates the target two-dimensional code may be the first terminal that performs the scanning and parsing operations in step S101, or may be the second terminal other than the first terminal. If the mobile terminal that generates the target two-dimensional code is the first terminal that performs the scanning and parsing operations in step S101, then the first terminal can scan the target two-dimensional code through the camera of the device and analyze it; if the target two-dimensional code is generated If the mobile terminal is the second terminal, then the second terminal can display the generated target two-dimensional code to the first terminal for scanning and parsing.

一种可实现的方式,所述目标二维码中的指令序列可以被移动终端(第一终端或第二终端)上传至服务器,这样,可以基于指令序列、存储地址以及调取方式等一起写入URL,生成目标二维码。In an achievable way, the instruction sequence in the target two-dimensional code can be uploaded to the server by the mobile terminal (the first terminal or the second terminal), so that it can be written together based on the instruction sequence, storage address, and retrieval method, etc. Enter the URL to generate the target QR code.

S102:基于解析得到的所述指令序列,执行所述至少一个操作指令。S102: Execute the at least one operation instruction based on the instruction sequence obtained by parsing.

可选地,所述指令序列中还包含有校验条件;其中,所述校验条件可以是系统执行所述多个操作指令所需具备的基础设备条件,至少包括:校验是否属于同一品牌移动终端、校验是否插入SIM卡、校验是否连接网络中的至少一种或多种组合。那么,在执行S102之前,所述方法还包括:Optionally, the instruction sequence also includes verification conditions; wherein, the verification conditions may be basic equipment conditions required by the system to execute the multiple operation instructions, at least including: verifying whether they belong to the same brand At least one or more combinations of the mobile terminal, checking whether the SIM card is inserted, and checking whether the network is connected. Then, before executing S102, the method further includes:

基于解析得到的校验条件,对所述第一终端的指令执行环境进行校验;Verifying the instruction execution environment of the first terminal based on the verification conditions obtained by parsing;

相应地,S102具体包括:在所述第一终端的指令执行环境满足所述校验条件的情况下,基于解析得到的所述指令序列,执行所述至少一个操作指令。一般情况下,在系统不具备基础设备条件的情况下(即校验不通过),所述至少一个操作指令无法正常执行。Correspondingly, S102 specifically includes: in the case that the instruction execution environment of the first terminal satisfies the verification condition, executing the at least one operation instruction based on the instruction sequence obtained by parsing. In general, when the system does not have basic equipment conditions (ie, the verification fails), the at least one operation instruction cannot be executed normally.

可选地,所述指令序列中还包含至少一个预设解决方案;所述方法还包括:Optionally, the instruction sequence further includes at least one preset solution; the method further includes:

在执行所述至少一个操作指令的过程中,如果发生指令冲突,则中断执行操作,并根据所述指令冲突的类型选择相应的预设解决方案。In the process of executing the at least one operation instruction, if an instruction conflict occurs, the execution operation is interrupted, and a corresponding preset solution is selected according to the type of the instruction conflict.

应理解,在执行所述至少一个操作指令的过程中,系统支持选择后台静默执行,释放前台的工作,这样可以保证用户同步进行其它操作,不影响移动终端的其它指令执行。如果前台工作与后台自动执行的操作指令有冲突,则可以中断前台工作,并提示选择继续或中止后台执行的操作指令。It should be understood that in the process of executing the at least one operation instruction, the system supports selecting background silent execution to release the work in the foreground, which can ensure that the user can perform other operations synchronously without affecting the execution of other instructions of the mobile terminal. If the foreground work conflicts with the operation instructions automatically executed in the background, you can interrupt the foreground work and prompt you to choose to continue or abort the operation instructions executed in the background.

由此,可通过校验条件自动校验操作指令的执行环境,执行过程可后台进行,不影响前台工作;遇到指令冲突可自动识别并具备常见冲突解决方案,智能程度高,避免人工参与而发生的失误。As a result, the execution environment of the operation instruction can be automatically verified through the verification conditions, and the execution process can be performed in the background without affecting the foreground work; when encountering instruction conflicts, it can automatically identify and have common conflict resolution solutions, with a high degree of intelligence, avoiding manual participation. error occurred.

可选地,在执行所述至少一个操作指令完成后,所述方法还包括:Optionally, after the execution of the at least one operation instruction is completed, the method further includes:

接收用户的输入操作触发的反馈指令;Receive feedback instructions triggered by user input operations;

基于所述反馈指令生成执行结果,并根据所述执行结果更新所述预设解决方案。An execution result is generated based on the feedback instruction, and the preset solution is updated according to the execution result.

从而,通过人机交互形成反馈闭环,利用大数据分析学习更新得到更多解决方案,优化指令执行流程。Therefore, a closed feedback loop is formed through human-computer interaction, and more solutions are obtained by using big data analysis, learning and updating, and the instruction execution process is optimized.

通过上述技术方案,只需录制一次操作指令,就可以通过扫描目标二维码循环使用,无需人工参与,节省人工成本,而且,操作指令传递过程使用目标二维码,实现快速准确,提升操作指令的执行效率。Through the above technical solution, only one operation instruction is recorded, and the target QR code can be scanned for recycling without manual participation, thus saving labor costs. Moreover, the operation instruction transmission process uses the target QR code to achieve fast and accurate operation and improve operation instructions. execution efficiency.

下面以购机场景中通过一系列操作指令实现新机激活为例,对本发明所涉及的操作指令的处理方案进行详述。Hereinafter, the solution for processing the operation instructions involved in the present invention will be described in detail by taking the realization of the activation of a new machine through a series of operation instructions in the purchase scenario as an example.

参照图3所示,假设,该场景中使用样机将一系列操作指令生成目标二维码,并通过样机展示该目标二维码将这一系列操作指令传递给新机进行激活操作。Referring to FIG. 3 , it is assumed that in this scenario, a prototype is used to generate a target two-dimensional code from a series of operation instructions, and the target two-dimensional code is displayed through the prototype to transmit the series of operation instructions to the new machine for activation operation.

S301:在样机上启动指令录制操作,并录制该样机上执行的至少一个操作指令。S301: Start an instruction recording operation on the prototype, and record at least one operation instruction executed on the prototype.

具体地,可以是用户(例如导购人员)通过对样机的操作,使得样机进入指令录制模式,在该模式下,样机录制用户对样机的操作而触发样机执行的至少一个操作指令。例如,导购人员在用户新机换机阶段对样机实施的操作可以为:进入微信-搜索vivo关注公众号-获取专属导购-退出微信-进入手机设置-全部设置-电子保修卡-使用手机s im卡登录账号-激活保修卡-领取延保服务-返回到达官网APP首页-进入会员页-点击新机活动-领取游戏礼包等。在样机的指令录入模式下,样机可以将这些操作指令按照上述操作顺序进行录制。Specifically, it may be that a user (such as a shopping guide) operates the prototype to make the prototype enter an instruction recording mode, in which the prototype records the user's operation on the prototype to trigger at least one operation instruction executed by the prototype. For example, the operation performed by the shopping guide on the prototype during the user's new phone replacement stage can be: enter WeChat - search vivo and follow the official account - obtain exclusive shopping guide - exit WeChat - enter mobile phone settings - all settings - electronic warranty card - use mobile phone sim Log in to the account with the card - activate the warranty card - receive the extended warranty service - return to the official website APP home page - enter the membership page - click on the new machine activity - receive the game package, etc. In the command input mode of the prototype, the prototype can record these operation instructions according to the above operation sequence.

S302:样机基于录制的至少一个操作指令及录制顺序,生成目标二维码。S302: The prototype generates a target two-dimensional code based on the recorded at least one operation instruction and the recording sequence.

在样机通过用户手动操作录制完成后,开始处理录制的内容。这些内容可以包括至少一个操作指令以及录制顺序,此外,还可以记录样机品牌、样机机型、样机系统版本的版本号、所使用APP的名称及版本号、网络环境、性能消耗等基础设备数据;根据这些内容可以生成执行代码、校验条件、预设解决方案,并统一打包封装为指令序列,上传服务器或存储在样机文件中。After the prototype is recorded by the user's manual operation, it starts to process the recorded content. These contents can include at least one operation instruction and recording sequence, and can also record the prototype brand, prototype model, version number of the prototype system version, the name and version number of the APP used, network environment, performance consumption and other basic equipment data; According to these contents, execution code, verification conditions, and preset solutions can be generated, packaged and packaged as instruction sequences, uploaded to the server or stored in the prototype file.

样机会基于指令序列、存储地址、调取方式等一起写入URL,生成目标二维码。The prototype will write the URL based on the instruction sequence, storage address, retrieval method, etc. together to generate the target QR code.

S303:新机扫描并解析样机展示的目标二维码。S303: The new machine scans and parses the target QR code displayed by the prototype.

新机通过自带的扫码功能(可借助各类APP中的扫码功能,或是本设备的摄像头的扫描功能),扫描样机展示的目标二维码,并解析URL中的调取方式,从存储地址获取指令序列。The new machine scans the target QR code displayed by the prototype through the built-in scanning function (you can use the scanning function in various APPs or the scanning function of the camera of this device), and parse the calling method in the URL. Fetch a sequence of instructions from a memory address.

该指令序列中包含:至少一个操作指令、录制顺序、校验条件、预设解决方案等内容。The instruction sequence includes: at least one operation instruction, recording sequence, verification conditions, preset solutions, etc.

S304:新机基于解析得到的校验条件,对本机的指令执行环境进行校验。如果校验通过,则执行S305,否则,报错无法执行操作指令。S304: The new machine verifies the instruction execution environment of the local machine based on the verification condition obtained by parsing. If the verification is passed, execute S305; otherwise, an error is reported and the operation instruction cannot be executed.

在执行操作指令之前,先校验新机与样机是否属于同一品牌、新机是否插入SIM卡、新机是否连接网络等,其中,校验条件的先后校验顺序不做限定,例如,可以同时校验,只要有一个条件不满足就确认校验不通过。如果校验不通过,说明新机不具备设备条件,操作指令无法正常执行,可以提示用户创造合格的设备条件。Before executing the operation command, check whether the new machine and the prototype belong to the same brand, whether the new machine is inserted into the SIM card, whether the new machine is connected to the network, etc., among which, the order of the verification conditions is not limited. Verification, as long as one of the conditions is not met, the verification is confirmed to fail. If the verification fails, it means that the new machine does not have the equipment conditions, and the operation instructions cannot be executed normally, and the user can be prompted to create qualified equipment conditions.

S305:新机基于解析得到的指令序列,执行至少一个操作指令。S305: The new machine executes at least one operation instruction based on the instruction sequence obtained by parsing.

校验通过后,新机可以执行至少一个操作指令;具体实现时,新机进入自动操作模式,将获取到的至少一个操作指令按录制顺序在本机上执行,前台无需手动参与。After the verification is passed, the new machine can execute at least one operation instruction; in the specific implementation, the new machine enters the automatic operation mode, and executes the obtained at least one operation instruction on the machine in the order of recording, and the front desk does not need to manually participate.

例如,新机通过扫描样机展示的目标二维码,即可将样机中录制的至少一个操作指令在新机上自动还原执行,无需用户实施指令操作即可完成关注公众号、使用手机sim卡登录账号、激活保修卡、领取延保和礼包等一系列操作。For example, the new phone can automatically restore and execute at least one operation instruction recorded in the prototype by scanning the target QR code displayed by the prototype, without the need for the user to implement the instruction operation to complete the follow public account and log in with the mobile phone sim card A series of operations, such as account number, activation of warranty card, collection of extended warranty and gift package, etc.

S306:新机实时检测是否发生指令冲突,如果是,则执行S307,否则,执行S310。S306: The new machine detects in real time whether an instruction conflict occurs, and if yes, executes S307, otherwise, executes S310.

在新机执行操作指令过程中,可实时检测是否遇到指令冲突,常见指令冲突可以包括:手机设置无此功能、无找到对应APP、未升级至APP最新版本等。In the process of executing the operation instructions of the new phone, it can detect in real time whether it encounters an instruction conflict. Common instruction conflicts can include: the mobile phone setting does not have this function, the corresponding APP cannot be found, and the APP has not been upgraded to the latest version.

S307:新机提示是否按常见冲突解决方案处理,如果是,则执行S308,否则,执行S309。S307: Whether the new machine prompt is processed according to the common conflict resolution solution, if yes, execute S308, otherwise, execute S309.

新机可中断所有工作,并提示用户是否按常见冲突解决方案处理。The new machine interrupts all work and prompts the user whether to follow common conflict resolution.

S308:新机按照预设解决方案自动执行相应指令,以使得系统可以继续执行操作指令。S308: The new machine automatically executes the corresponding command according to the preset solution, so that the system can continue to execute the operation command.

具体地,可以自动升级新机系统至指定版本、安装指定APP指定版本等指令。Specifically, instructions such as automatically upgrading the new machine system to the specified version, installing the specified version of the specified APP, etc. can be performed.

S309:新机接收并记录用户输入的操作指令,以使得系统可以继续执行操作指令。S309: The new machine receives and records the operation instruction input by the user, so that the system can continue to execute the operation instruction.

S310:新机接收用户的输入操作触发的反馈指令,基于所述反馈指令生成执行结果,并根据所述执行结果更新所述预设解决方案。S310: The new machine receives a feedback instruction triggered by an input operation of the user, generates an execution result based on the feedback instruction, and updates the preset solution according to the execution result.

待新机指令执行完成后,可通过用户的参与反馈此次操作指令执行情况,例如,让用户主观判断本次指令操作是否达成结果,在哪一环节遇到问题,并结合操作过程是否遇到指令冲突,是否选择常见冲突解决方案,是否手动协助操作等数据,生成执行结果。或者,新机也可以通过在执行过程中记录的数据进行自动分析,生成执行结果。这些执行结果可以上报给服务器,作为指令案例数据库。这样,通过不断的反馈闭环,针对某个常见问题修正或优化操作指令,形成更多预设解决方案,以更新预设解决方案,从而提供给操作指令生成目标二维码的封装内容,提升指令执行的成功率。After the execution of the new machine instruction is completed, the user's participation can be used to feedback the execution of the operation instruction. For example, let the user subjectively judge whether the instruction operation has achieved the result, in which link the problem is encountered, and whether it has encountered any problems in the operation process. Instruction conflict, whether to choose a common conflict solution, whether to manually assist the operation and other data to generate the execution result. Alternatively, the new machine can automatically analyze the data recorded during execution to generate execution results. These execution results can be reported to the server as an instruction case database. In this way, through the continuous feedback loop, the operation instructions are corrected or optimized for a common problem, and more preset solutions are formed to update the preset solutions, so as to provide the operation instructions to generate the package content of the target QR code, and improve the instructions. success rate of execution.

图4是本申请的一个实施例提供的移动终端400的结构示意图。应理解,移动终端400可以包括:FIG. 4 is a schematic structural diagram of a mobile terminal 400 provided by an embodiment of the present application. It should be understood that the mobile terminal 400 may include:

解析模块401,用于扫描并解析目标二维码;其中,所述目标二维码携带有指令序列,所述指令序列中包含待执行的至少一个操作指令;The parsing module 401 is used for scanning and parsing the target two-dimensional code; wherein, the target two-dimensional code carries an instruction sequence, and the instruction sequence includes at least one operation instruction to be executed;

执行模块402,用于基于解析得到的所述指令序列,执行所述至少一个操作指令。The execution module 402 is configured to execute the at least one operation instruction based on the instruction sequence obtained by parsing.

一种可实现的方案,所述目标二维码通过以下方式生成:An achievable solution, the target two-dimensional code is generated in the following manner:

在本终端上启动指令录制操作;Start the command recording operation on this terminal;

录制本终端上执行的至少一个操作指令;Record at least one operation command executed on the terminal;

基于录制的所述至少一个操作指令及录制顺序,生成目标二维码;其中,所述目标二维码中携带包含有所述至少一个操作指令及录制顺序的指令序列;Based on the recorded at least one operation instruction and the recording sequence, a target two-dimensional code is generated; wherein, the target two-dimensional code carries an instruction sequence including the at least one operation instruction and the recording sequence;

或者,or,

在其它终端上启动指令录制操作;Start command recording operation on other terminals;

录制所述其它终端上执行的至少一个操作指令;recording at least one operation instruction executed on the other terminal;

基于录制的所述至少一个操作指令及录制顺序,生成目标二维码;其中,所述目标二维码中携带包含有所述至少一个操作指令及录制顺序的指令序列。Based on the recorded at least one operation instruction and the recording sequence, a target two-dimensional code is generated; wherein, the target two-dimensional code carries an instruction sequence including the at least one operation instruction and the recording sequence.

一种可实现的方案,所述指令序列中还包含有校验条件;An achievable solution, the instruction sequence also includes a check condition;

所述移动终端还包括:The mobile terminal also includes:

校验模块,用于在所述执行模块基于解析得到的所述指令序列,执行所述至少一个操作指令之前,基于解析得到的校验条件,对所述移动终端的指令执行环境进行校验;a verification module, configured to verify the instruction execution environment of the mobile terminal based on the verification condition obtained by analysis before the execution module executes the at least one operation instruction based on the instruction sequence obtained by analysis;

所述执行模块,具体用于:在所述移动终端的指令执行环境满足所述校验条件的情况下,则基于解析得到的所述指令序列,执行所述至少一个操作指令。The execution module is specifically configured to execute the at least one operation instruction based on the instruction sequence obtained by parsing when the instruction execution environment of the mobile terminal satisfies the verification condition.

一种可实现的方案,所述指令序列中还包含有至少一个预设解决方案;则所述移动终端还包括:An achievable solution, the instruction sequence further includes at least one preset solution; then the mobile terminal further includes:

解决模块,用于在执行所述至少一个操作指令的过程中,如果发生指令冲突,则中断执行操作,并根据所述指令冲突的类型选择相应的预设解决方案。A resolution module, configured to interrupt the execution operation if an instruction conflict occurs during the execution of the at least one operation instruction, and select a corresponding preset solution according to the type of the instruction conflict.

一种可实现的方案,所述移动终端还包括:An achievable solution, the mobile terminal further includes:

生成模块,用于在所述执行模块执行所述至少一个操作指令完成后,接收用户的输入操作触发的反馈指令;a generating module, configured to receive a feedback instruction triggered by an input operation of the user after the execution module completes the execution of the at least one operation instruction;

基于所述反馈指令生成执行结果,并根据所述执行结果更新所述预设解决方案。An execution result is generated based on the feedback instruction, and the preset solution is updated according to the execution result.

在本申请实施例中,只需录制一次操作指令,就可以通过扫描目标二维码循环使用,无需人工参与,节省人工成本,而且,操作指令传递过程使用目标二维码,实现快速准确,提升操作指令的执行效率。In the embodiment of the present application, the operation instruction only needs to be recorded once, and it can be used cyclically by scanning the target two-dimensional code without manual participation, which saves labor costs. Moreover, the operation instruction transmission process uses the target two-dimensional code to achieve fast, accurate, and improved The execution efficiency of operation instructions.

本发明实施例提供的移动终端400能够实现图1所示的方法实施例中各个过程,为避免重复,这里不再赘述。The mobile terminal 400 provided in this embodiment of the present invention can implement each process in the method embodiment shown in FIG. 1 , which is not repeated here to avoid repetition.

图5为实现本发明各个实施例的一种移动终端的硬件结构示意图,5 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention,

该移动终端500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、以及电源511等部件。本领域技术人员可以理解,图5中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The mobile terminal 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power 511 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 5 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than the one shown, or combine some components, or different components layout. In this embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

其中,处理器510,用于:The processor 510 is used for:

扫描并解析目标二维码;其中,所述目标二维码携带有指令序列,所述指令序列中包含待执行的至少一个操作指令;Scanning and parsing the target two-dimensional code; wherein, the target two-dimensional code carries an instruction sequence, and the instruction sequence includes at least one operation instruction to be executed;

基于解析得到的所述指令序列,执行所述至少一个操作指令。Based on the instruction sequence obtained by parsing, the at least one operation instruction is executed.

在本发明实施例中,只需录制一次操作指令,就可以通过扫描目标二维码循环使用,无需人工参与,节省人工成本,而且,操作指令传递过程使用目标二维码,实现快速准确,提升操作指令的执行效率。In the embodiment of the present invention, the operation instruction only needs to be recorded once, and it can be recycled by scanning the target two-dimensional code without manual participation, thereby saving labor costs. Moreover, the operation instruction transmission process uses the target two-dimensional code, which achieves fast, accurate, and improved The execution efficiency of operation instructions.

应理解的是,本发明实施例中,射频单元501可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,射频单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元501还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 501 can be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 510; The uplink data is sent to the base station. Generally, the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.

移动终端通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides the user with wireless broadband Internet access through the network module 502, such as helping the user to send and receive emails, browse web pages, access streaming media, and the like.

音频输出单元503可以将射频单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与移动终端500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into audio signals and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.

输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由射频单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元501发送到移动通信基站的格式输出。The input unit 504 is used to receive audio or video signals. The input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042. The graphics processor 5041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. data is processed. The processed image frames may be displayed on the display unit 506 . The image frames processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502 . The microphone 5042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.

移动终端500还包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感器可在移动终端500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 5061 and the display panel 5061 when the mobile terminal 500 is moved to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 505 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.

显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。The display unit 506 is used to display information input by the user or information provided to the user. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.

用户输入单元507可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 507 may be used to receive input numerical or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072 . The touch panel 5071, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 5071). operate). The touch panel 5071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 510, the command sent by the processor 510 is received and executed. In addition, the touch panel 5071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 5071 , the user input unit 507 may also include other input devices 5072 . Specifically, other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图5中,触控面板5071与显示面板5061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板5071与显示面板5061集成而实现移动终端的输入和输出功能,具体此处不做限定。Further, the touch panel 5071 can be covered on the display panel 5061. When the touch panel 5071 detects a touch operation on or near it, it transmits it to the processor 510 to determine the type of the touch event, and then the processor 510 determines the type of the touch event according to the touch The type of event provides a corresponding visual output on display panel 5061. Although in FIG. 5, the touch panel 5071 and the display panel 5061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated The input and output functions of the mobile terminal are implemented, which is not specifically limited here.

接口单元508为外部装置与移动终端500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端500内的一个或多个元件或者可以用于在移动终端500和外部装置之间传输数据。The interface unit 508 is an interface for connecting an external device to the mobile terminal 500 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 508 may be used to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 500 or may be used between the mobile terminal 500 and the external Transfer data between devices.

存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

处理器510是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块,以及调用存储在存储器509内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器510可包括一个或多个处理单元;优选的,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The processor 510 is the control center of the mobile terminal, uses various interfaces and lines to connect various parts of the entire mobile terminal, runs or executes the software programs and/or modules stored in the memory 509, and calls the data stored in the memory 509. , perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 510.

移动终端500还可以包括给各个部件供电的电源511(比如电池),优选的,电源511可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 500 may also include a power supply 511 (such as a battery) for supplying power to various components. Preferably, the power supply 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. and other functions.

另外,移动终端500包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 500 includes some unshown functional modules, which are not repeated here.

优选的,本发明实施例还提供一种移动终端,包括处理器510,存储器509,存储在存储器509上并可在所述处理器510上运行的计算机程序,该计算机程序被处理器510执行时实现上述图1的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 510 , a memory 509 , a computer program stored in the memory 509 and running on the processor 510 , when the computer program is executed by the processor 510 Each process of the method embodiment of FIG. 1 is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not described here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述图1的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the method embodiment of FIG. 1 is implemented, and the same can be achieved. The technical effect, in order to avoid repetition, will not be repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

Claims (10)

1.一种操作指令的处理方法,应用于第一终端,其特征在于,所述方法包括:1. A method for processing an operation instruction, applied to a first terminal, wherein the method comprises: 扫描并解析目标二维码;其中,所述目标二维码携带有指令序列,所述指令序列中包含待执行的至少一个操作指令;Scanning and parsing the target two-dimensional code; wherein, the target two-dimensional code carries an instruction sequence, and the instruction sequence includes at least one operation instruction to be executed; 基于解析得到的所述指令序列,执行所述至少一个操作指令;Execute the at least one operation instruction based on the instruction sequence obtained by parsing; 其中,所述指令序列中还包含至少一个预设解决方案;则所述方法还包括:Wherein, the instruction sequence further includes at least one preset solution; then the method further includes: 在执行所述至少一个操作指令的过程中,选择后台静默执行,释放前台的工作,如果发生指令冲突,则中断执行操作,并根据所述指令冲突的类型选择相应的预设解决方案;In the process of executing the at least one operation instruction, the background is selected for silent execution, the work in the foreground is released, if an instruction conflict occurs, the execution operation is interrupted, and a corresponding preset solution is selected according to the type of the instruction conflict; 通过在执行过程中记录的数据进行自动分析,生成执行结果,并根据所述执行结果更新所述预设解决方案。The data recorded during the execution is automatically analyzed to generate an execution result, and the preset solution is updated according to the execution result. 2.如权利要求1所述的方法,其特征在于,所述目标二维码通过以下方式生成:2. The method of claim 1, wherein the target two-dimensional code is generated in the following manner: 在第一终端上启动指令录制操作;start the command recording operation on the first terminal; 录制所述第一终端上执行的至少一个操作指令;recording at least one operation instruction executed on the first terminal; 基于录制的所述至少一个操作指令及录制顺序,生成目标二维码;其中,所述目标二维码中携带包含有所述至少一个操作指令及录制顺序的指令序列;Based on the recorded at least one operation instruction and the recording sequence, a target two-dimensional code is generated; wherein, the target two-dimensional code carries an instruction sequence that includes the at least one operation instruction and the recording sequence; 或者,or, 在第二终端上启动指令录制操作;start the command recording operation on the second terminal; 录制所述第二终端上执行的至少一个操作指令;recording at least one operation instruction executed on the second terminal; 基于录制的所述至少一个操作指令及录制顺序,生成目标二维码;其中,所述目标二维码中携带包含有所述至少一个操作指令及录制顺序的指令序列。Based on the recorded at least one operation instruction and the recording sequence, a target two-dimensional code is generated; wherein, the target two-dimensional code carries an instruction sequence including the at least one operation instruction and the recording sequence. 3.如权利要求1所述的方法,其特征在于,所述指令序列中还包含有校验条件;3. The method of claim 1, wherein the instruction sequence also includes a check condition; 在基于解析得到的所述指令序列,执行所述至少一个操作指令之前,所述方法还包括:Before executing the at least one operation instruction based on the instruction sequence obtained by parsing, the method further includes: 基于解析得到的校验条件,对所述第一终端的指令执行环境进行校验;Verifying the instruction execution environment of the first terminal based on the verification conditions obtained by parsing; 基于解析得到的所述指令序列,执行所述至少一个操作指令,包括:在所述第一终端的指令执行环境满足所述校验条件的情况下,基于解析得到的所述指令序列,执行所述至少一个操作指令。Executing the at least one operation instruction based on the instruction sequence obtained by parsing includes: in the case that the instruction execution environment of the first terminal satisfies the verification condition, executing the instruction sequence obtained by parsing based on the instruction sequence obtained by parsing describe at least one operation command. 4.如权利要求1-3任一项所述的方法,其特征在于,在执行所述至少一个操作指令完成后,所述方法还包括:4. The method according to any one of claims 1-3, wherein after the execution of the at least one operation instruction is completed, the method further comprises: 接收用户的输入操作触发的反馈指令;Receive feedback instructions triggered by user input operations; 基于所述反馈指令生成执行结果,并根据所述执行结果更新所述预设解决方案。An execution result is generated based on the feedback instruction, and the preset solution is updated according to the execution result. 5.一种移动终端,其特征在于,所述移动终端包括:5. A mobile terminal, wherein the mobile terminal comprises: 解析模块,用于扫描并解析目标二维码;其中,所述目标二维码携带有指令序列,所述指令序列中包含待执行的至少一个操作指令;a parsing module for scanning and parsing a target two-dimensional code; wherein, the target two-dimensional code carries an instruction sequence, and the instruction sequence includes at least one operation instruction to be executed; 执行模块,用于基于解析得到的所述指令序列,执行所述至少一个操作指令;an execution module, configured to execute the at least one operation instruction based on the instruction sequence obtained by parsing; 其中,所述指令序列中还包含至少一个预设解决方案;则所述移动终端还包括:Wherein, the instruction sequence further includes at least one preset solution; then the mobile terminal further includes: 解决模块,用于在执行所述至少一个操作指令的过程中,选择后台静默执行,释放前台的工作,如果发生指令冲突,则中断执行操作,并根据所述指令冲突的类型选择相应的预设解决方案;通过在执行过程中记录的数据进行自动分析,生成执行结果,并根据所述执行结果更新所述预设解决方案。The resolving module is used to select silent execution in the background during the process of executing the at least one operation instruction, release the work in the foreground, if an instruction conflict occurs, interrupt the execution operation, and select a corresponding preset according to the type of the instruction conflict A solution; automatically analyzes the data recorded during the execution process, generates an execution result, and updates the preset solution according to the execution result. 6.如权利要求5所述的移动终端,其特征在于,所述目标二维码通过以下方式生成:6. The mobile terminal of claim 5, wherein the target two-dimensional code is generated in the following manner: 在本终端上启动指令录制操作;Start the command recording operation on this terminal; 录制本终端上执行的至少一个操作指令;Record at least one operation command executed on the terminal; 基于录制的所述至少一个操作指令及录制顺序,生成目标二维码;其中,所述目标二维码中携带包含有所述至少一个操作指令及录制顺序的指令序列;Based on the recorded at least one operation instruction and the recording sequence, a target two-dimensional code is generated; wherein, the target two-dimensional code carries an instruction sequence that includes the at least one operation instruction and the recording sequence; 或者,or, 在其它终端上启动指令录制操作;Start the command recording operation on other terminals; 录制所述其它终端上执行的至少一个操作指令;recording at least one operation instruction executed on the other terminal; 基于录制的所述至少一个操作指令及录制顺序,生成目标二维码;其中,所述目标二维码中携带包含有所述至少一个操作指令及录制顺序的指令序列。Based on the recorded at least one operation instruction and the recording sequence, a target two-dimensional code is generated; wherein, the target two-dimensional code carries an instruction sequence including the at least one operation instruction and the recording sequence. 7.如权利要求5所述的移动终端,其特征在于,所述指令序列中还包含有校验条件;7. The mobile terminal of claim 5, wherein the instruction sequence also includes a check condition; 所述移动终端还包括:The mobile terminal also includes: 校验模块,用于在所述执行模块基于解析得到的所述指令序列,执行所述至少一个操作指令之前,基于解析得到的校验条件,对所述移动终端的指令执行环境进行校验;a verification module, configured to verify the instruction execution environment of the mobile terminal based on the verification condition obtained by the analysis before the execution module executes the at least one operation instruction based on the instruction sequence obtained by analysis; 所述执行模块,具体用于:在所述移动终端的指令执行环境满足所述校验条件的情况下,基于解析得到的所述指令序列,执行所述至少一个操作指令。The execution module is specifically configured to execute the at least one operation instruction based on the instruction sequence obtained by parsing when the instruction execution environment of the mobile terminal satisfies the verification condition. 8.如权利要求5-7任一项所述的移动终端,其特征在于,所述移动终端还包括:8. The mobile terminal according to any one of claims 5-7, wherein the mobile terminal further comprises: 生成模块,用于在所述执行模块执行所述至少一个操作指令完成后,接收用户的输入操作触发的反馈指令;a generating module, configured to receive a feedback instruction triggered by an input operation of a user after the execution module completes executing the at least one operation instruction; 基于所述反馈指令生成执行结果,并根据所述执行结果更新所述预设解决方案。An execution result is generated based on the feedback instruction, and the preset solution is updated according to the execution result. 9.一种移动终端,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至4中任一项所述方法的步骤。9. A mobile terminal, characterized in that, comprising a processor, a memory and a computer program stored on the memory and running on the processor, the computer program being executed by the processor to achieve the right Steps of the method of any one of claims 1 to 4. 10.一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如权利要求1至4中任一项所述方法的步骤。10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
CN201811610185.2A 2018-12-27 2018-12-27 Processing method of operation instruction and mobile terminal Active CN109819105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811610185.2A CN109819105B (en) 2018-12-27 2018-12-27 Processing method of operation instruction and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811610185.2A CN109819105B (en) 2018-12-27 2018-12-27 Processing method of operation instruction and mobile terminal

Publications (2)

Publication Number Publication Date
CN109819105A CN109819105A (en) 2019-05-28
CN109819105B true CN109819105B (en) 2021-03-23

Family

ID=66602787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811610185.2A Active CN109819105B (en) 2018-12-27 2018-12-27 Processing method of operation instruction and mobile terminal

Country Status (1)

Country Link
CN (1) CN109819105B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104036349A (en) * 2014-05-30 2014-09-10 段君寨 System and method for preventing misoperation in electric power system by using two-dimension codes
CN104123519A (en) * 2013-04-25 2014-10-29 达丰(上海)电脑有限公司 System for automatically detecting electronic products through two-dimension codes and method thereof
US9237465B1 (en) * 2014-07-08 2016-01-12 Mastercard International Incorporated Systems, apparatus and methods for consumer testing of an NFC-enabled mobile device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9329966B2 (en) * 2010-11-23 2016-05-03 Echostar Technologies L.L.C. Facilitating user support of electronic devices using matrix codes
CN102289726B (en) * 2011-06-23 2014-03-05 李元熙 System and method for controlling equipment based on two-dimension code and communication technology
KR20140020644A (en) * 2012-08-10 2014-02-19 양용철 Device and method for the destination information service by qr code including destination location information
CN102929595A (en) * 2012-09-20 2013-02-13 腾讯科技(深圳)有限公司 Method and device for realizing action command
CN105451217A (en) * 2014-09-24 2016-03-30 中兴通讯股份有限公司 Terminal device control method, terminal device and terminal device control system
CN104486481B (en) * 2014-11-18 2017-07-25 广东欧珀移动通信有限公司 A method for sharing operation settings, user equipment, and a sharing system
CN107870997B (en) * 2017-11-03 2021-03-23 广州视源电子科技股份有限公司 Management method, device, display device and storage medium for conference blackboard writing files

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123519A (en) * 2013-04-25 2014-10-29 达丰(上海)电脑有限公司 System for automatically detecting electronic products through two-dimension codes and method thereof
CN104036349A (en) * 2014-05-30 2014-09-10 段君寨 System and method for preventing misoperation in electric power system by using two-dimension codes
US9237465B1 (en) * 2014-07-08 2016-01-12 Mastercard International Incorporated Systems, apparatus and methods for consumer testing of an NFC-enabled mobile device

Also Published As

Publication number Publication date
CN109819105A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN106534941B (en) Method and device for realizing video interaction
CN111142930B (en) Installation package file packaging method and device, terminal device and storage medium
CN109947650B (en) Script step processing method, device and system
CN108287739A (en) A kind of guiding method of operating and mobile terminal
CN110035181B (en) A kind of quick application card theme setting method and terminal
CN108304105A (en) A kind of application interface starts method, mobile terminal
CN109521978B (en) A content display method and terminal device
CN113407169B (en) Software development method and device
CN110069407B (en) Function test method and device for application program
CN107682359B (en) Application registration method and mobile terminal
CN111723002A (en) A code debugging method, device, electronic device and storage medium
CN110096203B (en) A screenshot method and mobile terminal
CN111209031A (en) Data acquisition method and device, terminal equipment and storage medium
CN110189123A (en) Payment privilege method and mobile terminal
CN109491670A (en) A kind of page display method and terminal device
WO2021143669A1 (en) Method for acquiring configuration information and electronic device
CN110266885B (en) Terminal binding method and terminal
WO2017005080A1 (en) Webpage display method, terminal device and storage medium
CN110022551A (en) A kind of information interacting method and terminal device
CN111310165B (en) Account switching or registration method and electronic device
CN107943688A (en) A kind of SDK inspection methods, device, terminal device and storage medium
CN109819105B (en) Processing method of operation instruction and mobile terminal
CN111562957A (en) Operation method and electronic device of an application icon
CN108710789B (en) Unlocking method and terminal equipment
CN111475141A (en) List generation 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