CN112308501A - Service processing method and related device - Google Patents

Service processing method and related device Download PDF

Info

Publication number
CN112308501A
CN112308501A CN201910714830.3A CN201910714830A CN112308501A CN 112308501 A CN112308501 A CN 112308501A CN 201910714830 A CN201910714830 A CN 201910714830A CN 112308501 A CN112308501 A CN 112308501A
Authority
CN
China
Prior art keywords
information
service
information reporting
reporting object
reported
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.)
Pending
Application number
CN201910714830.3A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910714830.3A priority Critical patent/CN112308501A/en
Publication of CN112308501A publication Critical patent/CN112308501A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a business processing method and a related device, which are used for sending information which is gathered by taking a complete business process as a dimension to a server, so that the classification processing of the information by the server side is facilitated, an application developer can conveniently position error information, and the time and the energy of the application developer are saved. The method provided by the embodiment of the application comprises the following steps: acquiring a service starting instruction; according to the service starting instruction, an information reporting object is created; in the process of service, if an information reporting instruction is acquired, adding information to be reported corresponding to the information reporting instruction to an information reporting object; and if the service ending instruction is acquired, sending an information reporting object to the server so that the server can classify the information reporting object, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service.

Description

Service processing method and related device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for processing a service.
Background
In recent years, with the rapid development of mobile internet technology, functions of mobile terminals such as mobile phones and tablet computers are becoming more and more abundant, and the types and the number of third-party application programs installed on the mobile terminals by users are also increasing. Generally, an application developer performs embedded point acquisition information in an application program, and records and reports corresponding information to a server when the application program runs, so that the application developer can analyze the reported information at the server side.
When an application program has a problem, an application developer often needs to collect all information uploaded by a user, and then check and analyze all the collected information one by one to locate error information.
Disclosure of Invention
The embodiment of the application provides a method and a related device for service processing, wherein an information reporting object is created when a service process of an application program starts, information to be reported in the service process is added to the information reporting object, and the information reporting object containing the information to be reported in the whole service process is sent to a server after the service process is finished, so that the server side can obtain information which is summarized by taking the complete service process as a dimension, the classification processing of the information by the server side is facilitated, an application developer can conveniently locate wrong information, and the time and the energy of the application developer are saved.
A first aspect of the embodiments of the present application provides a method for service processing, including:
acquiring a service starting instruction;
according to the service starting instruction, an information reporting object is created;
in the process of service, if an information reporting instruction is acquired, adding information to be reported corresponding to the information reporting instruction to an information reporting object;
and if the service ending instruction is acquired, sending an information reporting object to the server so that the server can classify the information reporting object, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service.
A second aspect of the present application provides a method for service processing, including:
receiving an information reporting object sent by a mobile terminal, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service;
and classifying the information reporting object according to the type of the service to which the information reporting object belongs.
A third aspect of the present embodiment provides a device for service processing, including:
the acquisition unit is used for acquiring a service starting instruction;
the creating unit is used for creating an information reporting object according to the service starting instruction;
an adding unit, configured to add, in a service process, to-be-reported information corresponding to an information reporting instruction to an information reporting object if the information reporting instruction is acquired;
and the sending unit is used for sending the information reporting object to the server if the service ending instruction is obtained, so that the server can classify and process the information reporting object, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to the information in the same service.
In one possible design, in an implementation manner of the third aspect of the embodiment of the present application, the apparatus further includes a determining unit;
the acquiring unit is further used for acquiring a first timestamp of the first sub-information to be reported in the information to be reported;
the acquiring unit is further configured to acquire a second timestamp of a second to-be-reported sub-message in the to-be-reported message, where the second to-be-reported sub-message is next information adjacent to the first to-be-reported sub-message;
the determining unit is used for determining the service interval duration according to the first time stamp and the second time stamp;
and the sending unit is further used for sending the information reporting object and the service interval duration to the server if the service ending instruction is obtained.
In one possible design, in an implementation manner of the third aspect of the embodiment of the present application, the apparatus further includes a marking unit;
the marking unit is used for marking the information reporting object as a state to be reported if the service ending instruction is acquired;
and the sending unit is also used for sending the information reporting object to the server if the state of the information reporting object is detected to be a state to be reported.
In one possible design, in one implementation of the third aspect of the embodiments of the present application,
the acquisition unit is used for acquiring the creation time length of the information reporting object;
and the sending unit is also used for sending the information reporting object to the server if the creating time length is greater than the preset time threshold.
In one possible design, in one implementation of the third aspect of the embodiments of the present application,
the adding unit is also used for adding the abnormal service information to the information reporting object if the abnormal service corresponding to the information reporting object is detected;
and the sending unit is also used for sending the information reporting object added with the service abnormal information to the server.
A fourth aspect of the present application provides a device for processing a service, including:
the mobile terminal comprises a receiving unit and a processing unit, wherein the receiving unit is used for receiving an information reporting object sent by the mobile terminal, the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service;
and the processing unit is used for classifying the information reporting object according to the type of the service to which the information reporting object belongs.
A fifth aspect of an embodiment of the present application provides a terminal device, including: a memory, a transceiver, a processor, and a bus system;
wherein, the memory is used for storing programs;
the processor is used for executing the program in the memory and comprises the following steps:
acquiring a service starting instruction;
according to the service starting instruction, an information reporting object is created;
in the process of service, if an information reporting instruction is acquired, adding information to be reported corresponding to the information reporting instruction to an information reporting object;
if a service end instruction is acquired, sending an information reporting object to a server so that the server can classify the information reporting object, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service;
the bus system is used for connecting the memory and the processor so as to enable the memory and the processor to communicate.
A sixth aspect of embodiments of the present application provides a server, including: a memory, a transceiver, a processor, and a bus system;
wherein, the memory is used for storing programs;
the processor is used for executing the program in the memory and comprises the following steps:
receiving an information reporting object sent by a mobile terminal, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service;
classifying the information reporting object according to the type of the service to which the information reporting object belongs;
the bus system is used for connecting the memory and the processor so as to enable the memory and the processor to communicate.
A seventh aspect of embodiments of the present application provides a computer-readable storage medium having stored therein instructions, which, when executed on a computer, cause the computer to perform the method of any of the above aspects.
An eighth aspect of embodiments of the present application provides a computer program product containing instructions which, when run on a computer or processor, cause the computer or processor to perform the method of any of the above aspects.
According to the technical scheme, the embodiment of the application has the following advantages:
the embodiment of the application provides a method and a related device for service processing, wherein an information reporting object is created when a service process of an application program starts, information to be reported in the service process is added to the information reporting object, and the information reporting object containing the information to be reported in the whole service process is sent to a server after the service process is finished, so that the server side can obtain information which is summarized by taking the complete service process as a dimension, the classification processing of the information by the server side is facilitated, an application developer can conveniently locate wrong information, and the time and the energy of the application developer are saved.
Drawings
FIG. 1 is a schematic diagram of an architecture of a business processing system according to an embodiment of the present application;
fig. 2 is an exemplary diagram of a method for service processing according to an embodiment of the present application;
fig. 3 is a diagram illustrating a service processing method according to an embodiment of the present application;
fig. 4 is a diagram illustrating a business process flow according to an embodiment of the present application;
fig. 5 is a diagram illustrating a structure of an information reporting object according to an embodiment of the present application;
fig. 6 is an exemplary diagram of an information reporting object uploaded to a server according to an embodiment of the present application;
fig. 7 is an exemplary diagram of a method for service processing according to an embodiment of the present application;
FIG. 8 is a schematic diagram of an embodiment of a business processing apparatus provided in an embodiment of the present application;
fig. 9 is a schematic diagram of an embodiment of a service processing apparatus provided in an embodiment of the present application;
FIG. 10 is a schematic diagram of an embodiment of a business processing apparatus provided in an embodiment of the present application;
fig. 11 is a schematic diagram of an embodiment of a service processing apparatus provided in an embodiment of the present application;
fig. 12 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal provided in an embodiment of the present application;
fig. 13 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a business processing method and a related device, which are used for sending information which is gathered by taking a complete business process as a dimension to a server, so that the classification processing of the information on the server side is facilitated, an application developer can conveniently position error information, and the time and the energy of the application developer are saved.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "corresponding" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Generally, in the development process of an application program, in order to obtain some operation information of the application program in the process of using the application program by a user, a developer of the application program often buries points in the application program to collect corresponding operation information of the application program, and then the application program reports the operation information to a server, so that the developer can know the operation condition of the application program by viewing or analyzing the operation information of the application program on the server.
At present, reporting information from an application to a server is generally performed according to an operation behavior of a user (e.g., button click, page display, page close, etc.), that is, after the user operates the application, the application reports current corresponding running information to the server. Therefore, in the running process of the application program, the server can continuously receive the information reported by the application program. After a certain period of time, a large amount of information reported by the application program is stored in the server, and there is no correlation between the information, so that after the application program has a problem, developers of the application program often need to perform investigation and analysis one by one in a large amount of reported information stored in the server to locate error information. Because the information obtained by aggregation is more and more complicated, application developers often need to spend a great deal of time and energy to perform troubleshooting analysis of reported information.
In view of this, an embodiment of the present application provides a method for processing a service, where an information reporting object is created when a service flow of an application program starts, information to be reported in the service flow process is added to the information reporting object, and the information reporting object including the information to be reported in the entire service flow is sent to a server after the service flow ends, so that a server side can obtain information that is summarized by using the complete service flow as a dimension, which is beneficial to classifying the information at the server side, so that an application developer can conveniently locate wrong information, and time and energy of the application developer are saved.
It can be understood that, the embodiment of the present application provides a method for service processing, the method is applied to the service processing system shown in fig. 1, please refer to fig. 1, fig. 1 is an architecture schematic diagram of the service processing system in the embodiment of the present application, as shown in the figure, a user interacts with a terminal, the terminal is connected with a server through a network, and an application program (e.g., a WeChat, a QQ, etc.) is deployed on the terminal.
Specifically, in the process of running an application program by a terminal, when the application program starts a service (for example, a red packet robbing service, a red packet sending service, etc. in WeChat), the application program creates an information reporting object corresponding to the service, and then records information corresponding to some steps in the service in the process of running the service, and adds the information to the information reporting object; and after the service is finished, sending the information reporting object corresponding to the service to the server. Because the information reporting object stored in the server contains the information corresponding to the whole service process, when a developer of the application program needs to position the problem of the application program, the information reporting object related to the error of the application program can be quickly acquired according to the service type corresponding to the information reporting object, and then the specific error information is positioned in the information reporting object, so that the application developer can conveniently position the error information, and the time and the energy of the application developer are saved.
The terminal shown in fig. 1 is only a simple illustration, and in practical applications, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a desktop computer, a notebook computer, a palm computer, and other terminal devices.
In order to describe the service processing system provided in the embodiment of the present application, the following introduces a method for processing a service provided in the embodiment of the present application from the perspective of a terminal. Referring to fig. 2, fig. 2 is a diagram illustrating a method for processing a service according to an embodiment of the present application.
An embodiment of a method for processing a service provided in an embodiment of the present application includes:
201. acquiring a service starting instruction;
it can be understood that, in the running process of the application program, the application program may perform various services, for example, a WeChat application program may perform red packet snatching service, or friend group publishing service, and the like, and a QQ application program may also perform red packet snatching service, facial expression uploading service, and the like. For these services in an application, there is a start and an end procedure, representing the start and end of the service, respectively. For example, for a red packet snatching service, receiving a red packet message on an application program of a terminal represents the start of the red packet snatching service, and after the red packet snatching is completed, displaying a red packet snatching result on an interface of the application program of the terminal represents the end of the red packet snatching service. For another example, for publishing a friend circle service, when the terminal acquires a friend circle publishing instruction triggered by the user clicking a "publish friend circle" button on the application program interface, the terminal represents the start of publishing the friend circle service, and when the user edits the content of the friend circle and sends the content of the friend circle to the server through the terminal, the terminal represents the end of publishing the friend circle service.
Obviously, in the running process of the application program, for any service that can be developed by the application program, the terminal can obtain the start instruction of the service. The manner for the terminal to obtain the service start instruction may include, but is not limited to, receiving a certain message sent by the server, obtaining a certain instruction triggered by the user, obtaining a certain instruction triggered by the application program, and the like, and is not limited specifically here.
202. According to the service starting instruction, an information reporting object is created;
in this embodiment, after the terminal acquires the service start instruction, an information reporting object corresponding to the service start instruction may be created according to the service start instruction, that is, the information reporting object and the service corresponding to the service start instruction have an association relationship. For example, after acquiring a red packet snatching service start instruction, the terminal creates an information reporting object having an association relationship with the red packet snatching service, where the information reporting object is used to indicate information to be reported in the red packet snatching service during the red packet snatching service. The association relationship between the information reporting object and the corresponding service can be defined when the information reporting object is created.
Specifically, the information reporting object may be a data structure, and each information reporting object includes information to be reported in a complete service flow (for example, all information to be reported in the whole payment flow from payment initiation to payment completion). When the information reporting object is created according to the service start instruction, the information reporting object may be defined in advance, for example, a service, a client, user information, and the like corresponding to the information reporting object are defined, and then information to be reported generated in the service proceeding process is encapsulated.
203. In the process of service, if an information reporting instruction is acquired, adding information to be reported corresponding to the information reporting instruction to an information reporting object;
it can be understood that, after the terminal acquires the service start instruction, that is, in the process of service proceeding, if the terminal acquires an information reporting instruction triggered by the application program (when the application program runs to some key step, the information reporting instruction is triggered), at this time, the information to be reported corresponding to the information reporting instruction may be added to the information reporting object. For example, in the red packet snatching service, after the user clicks the red packet snatching button, the application program may trigger an information reporting instruction corresponding to the "click the red packet snatching button", so that the terminal may add the information to be reported corresponding to the information reporting instruction to the information reporting object.
The information reporting instruction triggered by the application program can be specifically used for indicating the content of the information to be reported, that is, the terminal can acquire the corresponding information to be reported according to the indication of the information reporting instruction; the information to be reported may specifically include names of specific steps in the service (that is, when the application triggers the information reporting instruction, the specific steps in the service flow are in progress), information related to the service, error codes, error reasons, timestamps, and the like.
It should be noted that, in the service performing process, the terminal may obtain one or more information reporting instructions, that is, the terminal may add one or more pieces of information to be reported in the information reporting object, where the information to be reported finally included in the information reporting object is determined according to the information reporting instruction triggered in the service performing process, and the number of pieces of information to be reported included in the information reporting objects corresponding to different services is different, and this embodiment does not specifically limit the number of pieces of information to be reported in the information reporting object.
For example, for a red packet robbing service, the red packet robbing service may specifically include the following six steps: the terminal receives the red packet message, displays the red packet on an interface, clicks a red packet robbing button by a user, initiates a red packet robbing request to the server, acquires a red packet robbing result returned by the server and displays the red packet robbing result on the interface; thus, for each step, corresponding information to be reported can be added to the information reporting object, that is, the information reporting object has six pieces of information to be reported in total.
For publishing the friend circle service, the publishing the friend circle service specifically may include the following seven steps: the method comprises the following steps that a user clicks a friend circle publishing button, a terminal displays a friend circle publishing interface, the user edits characters to be published, the user selects pictures to be published, the terminal sends a friend circle to be published to a server, the terminal receives a publishing result returned by the server, and the terminal displays the effect of friend circle publishing on the friend circle interface; thus, for each step, corresponding information to be reported can be added to the information reporting object, that is, the information reporting object has seven pieces of information to be reported in total.
204. And if the service ending instruction is acquired, sending an information reporting object to the server so that the server can classify the information reporting object, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service.
In this embodiment, if the terminal acquires the service end instruction, it means that it is not necessary to add new information to be reported to the information reporting object, and at this time, the information reporting object may be sent to the server, so that the server can classify the information reporting object according to the service type and the time information (for example, the time when the information reporting object is created or the time when the information reporting object is sent to the server) corresponding to the information reporting object. For example, for an application on the same terminal, an information reporting object sent by the application to the server through the terminal may include an information reporting object representing a red packet snatching service, an information reporting object that sends a red packet, or an information reporting object that issues a friend group, and the like, and for the same service type, there may also be multiple corresponding information reporting objects, for example, an information reporting object corresponding to a red packet snatching service initiated at 8 am, an information reporting object corresponding to a red packet snatching service initiated at 10 pm, and the like.
Because each information reporting object has a corresponding service type, the server can classify different information reporting objects according to the service type, namely, the information reporting objects belonging to the same service type are classified together. In addition, the server can classify the information reporting objects according to the time information, for example, the information reporting objects sent to the server on the same day are classified together. Therefore, when an application program developer wants to position error information in the information to be reported, the developer can quickly position the specific error information only by reporting the object according to the information classified by the server. For example, on a certain day, an error occurs in the process of performing the payment service by the application program, and then, a developer of the application program can quickly acquire a corresponding information reporting object in the server according to the date of the day when the error occurs in the application program and the payment service; because the information reporting object contains the information to be reported contained in the whole payment process, a developer can quickly locate error information in the information to be reported contained in the information reporting object, and a great amount of time and energy are saved.
In this embodiment, an information reporting object is created when a business process of an application program starts, information to be reported in the business process is added to the information reporting object, and the information reporting object including the information to be reported in the whole business process is sent to a server after the business process ends, so that the server side can obtain information summarized by taking the complete business process as a dimension, the server side can classify the information, an application developer can locate error information conveniently, and time and energy of the application developer are saved.
For convenience of understanding, the service processing method provided in the embodiment of the present application will be described in detail below with reference to specific examples. Referring to fig. 3, fig. 3 is a diagram illustrating a service processing method according to an embodiment of the present application.
As shown in fig. 3, the application scenario of the rushing to red envelope is taken as an example:
wherein, S1 represents the concrete flow of the red envelope robbing service, and S2 represents the information reporting object; s3 denotes a server;
1. s11 shows that the terminal receives the red packet message sent by the server, and accordingly, the red packet robbing service start instruction is triggered to instruct the terminal to create an information reporting object, and obtain basic information of the information reporting object according to the red packet robbing service, and then add corresponding information to be reported S21 to the information reporting object, where the information to be reported S21 specifically includes: the information reports general information such as the title (first red packet), red packet type, red packet title, red packet ID, error code (for example, a code for analyzing the error of the red packet message, if the error occurs, the code is 1, if the error occurs, the code is 0, the following similar terms), timestamp, version number of the application program, user ID, network type (WIFI or mobile data, etc.), and the like.
2. S12 shows that the terminal displays the red packet on the interface of the application program according to the red packet message, and adds a corresponding message to be reported S22 to the information reporting object when the red packet is successfully displayed or the display is in error, where the message to be reported S22 specifically includes: name of the service step (red packet is displayed), red packet skin ID, error code, error reason, time stamp and other information.
3. S13 shows that the terminal acquires a red packet robbing instruction triggered by the user through clicking a red packet robbing button on the interface, and then adds corresponding information to be reported S23 to the information reporting object, wherein the information to be reported S23 specifically comprises: name of the service step (clicking the red packet grabbing button), error code, error reason, timestamp and other information.
4. S14 shows that the terminal responds to the red packet robbing instruction and initiates a request for red packet robbing to the server, and then adds corresponding information to be reported S24 to the information reporting object, where the information to be reported S24 specifically includes: name of the service step (request to the server for red packet robbery), red packet ID, authentication code, user ID, error code, error reason, timestamp, etc.
5. S15 shows that after the terminal issues a request for red packet robbing to the server, the terminal acquires a red packet robbing notification result returned by the server, and then adds corresponding information to be reported S25 to the information reporting object, where the information to be reported S25 specifically includes: name of service step (receiving result of notification of red packet robbing), success or failure of red packet robbing, amount of money obtained (failure is 0), error code, error reason, timestamp and other information.
6. S16 shows that the terminal displays the result of the red packet robbing on the interface of the application program according to the result of the red packet robbing notification returned by the server, and then adds corresponding information to be reported S26 to the information reporting object, where the information to be reported S26 specifically includes: name of the service step (display result), error code, error reason, time stamp, etc. In addition, at this time, since the whole red packet snatching flow is already completed, the terminal also acquires a red packet snatching service ending instruction.
7. S17 shows that after the terminal acquires the end instruction of the red packet snatching service, the terminal sends an information reporting object S2 to the server, where the information reporting object S2 includes the information to be reported S21, the information to be reported S22, the information to be reported S23, the information to be reported S24, the information to be reported S25, and the information to be reported S26.
Optionally, on the basis of each embodiment corresponding to fig. 2, in an optional embodiment of the method for processing a service provided in this embodiment of the present application, before the obtaining the service end instruction and sending the information reporting object to the server, the method further includes:
acquiring a first timestamp of a first sub-information to be reported in the information to be reported;
acquiring a second timestamp of a second sub-information to be reported in the information to be reported, wherein the second sub-information to be reported is next information adjacent to the first sub-information to be reported;
determining the service interval duration according to the first time stamp and the second time stamp;
if the service end instruction is acquired, an information reporting object is sent to the server, and the method comprises the following steps:
and if the service ending instruction is obtained, sending an information reporting object and service interval duration to the server.
In this embodiment, the information to be reported refers to information in an information reporting object, the first sub information to be reported or the second sub information to be reported refers to one of the information in the information reporting object, and the second sub information to be reported is next information adjacent to the first sub information to be reported, that is, the second service step corresponding to the second sub information to be reported is next to the first service step corresponding to the first sub information to be reported (for example, the first sub information to be reported is the information to be reported S24, and the second sub information to be reported is the information to be reported S25).
That is, under the condition that the information reporting object has a plurality of pieces of information to be reported, the terminal may obtain a timestamp corresponding to each piece of information to be reported in the information reporting object, and then calculate the time consumption (i.e., the service interval duration) of each service step according to two adjacent timestamps. Taking the above fig. 3 as an example, the time interval between the step of displaying the red envelope and the step of clicking the red envelope grabbing button by the user in the red envelope grabbing service can be calculated according to the timestamp corresponding to the information to be reported S22 and the timestamp corresponding to the information to be reported S23. Therefore, when the terminal sends the information reporting object to the server, the terminal can simultaneously send the service interval duration to the server. Specifically, the terminal may send the interval duration between every two service steps to the server, and may also send the total service consumption obtained according to all the interval durations to the server.
Therefore, when the server receives the information reporting object, the server can also obtain corresponding time information such as interval duration, total service time consumption and the like, so that the server can count data in the service to obtain corresponding information such as performance indexes, interface residence time and the like. Taking a red packet robbing service as an example: the server can generally know how long the user needs to grab the red packet from the time when the user clicks the red packet grabbing button through counting time consumption, and if a certain step is long in time consumption, performance optimization can be performed on the step, so that the application program is optimized.
Optionally, on the basis of each embodiment corresponding to fig. 2, in an optional embodiment of the method for processing a service provided in the embodiment of the present application, if the service end instruction is obtained, sending an information reporting object to the server includes:
if a service ending instruction is obtained, marking an information reporting object as a state to be reported;
and if the state of the information reporting object is detected to be the state to be reported, sending the information reporting object to the server.
It will be appreciated that for the same application, multiple services may be in progress simultaneously, for example, for application WeChat, in a chat, the application may receive a Red envelope message, i.e. representing the start of a Red envelope service; when the red packet snatching service is not finished (for example, the red packet snatching service only goes to the step of displaying the red packet message), the user may also initiate the red packet sending service, that is, the red packet sending service starts, that is, the red packet snatching service and the red packet sending service are simultaneously performed within a period of time, so that in the process that the red packet sending service and the red packet sending service are simultaneously performed, correspondingly, the terminal may create information reporting objects corresponding to the red packet sending service and the red packet sending service respectively, that is, within a period of time, the terminal may have two or more information reporting objects. However, before the service is finished, these information reporting objects are all stored on the terminal, and only after the service is finished, the information reporting objects are sent to the server. Therefore, in order to ensure that the terminal can distinguish the information reporting object to be sent from the information reporting object not to be sent, after the terminal obtains the service end instruction, the corresponding information reporting object is marked as the state to be reported, so that when the information reporting component of the terminal detects that the state of the information reporting object is the state to be reported, the information reporting object to be reported can be sent to the server.
In this embodiment, after the service end instruction is obtained, the information reporting object is marked as a to-be-reported state, so that the information reporting component of the terminal can know the to-be-reported information reporting object from a plurality of information reporting objects, and thus the information reporting object is sent to the server after the service is ended.
Optionally, on the basis of the embodiments corresponding to fig. 2, in an optional embodiment of the method for service processing provided in this embodiment of the present application, after the information reporting object is created, the method further includes:
acquiring the creation time length of an information reporting object;
and if the creating time length is greater than a preset time threshold, sending an information reporting object to the server.
It can be understood that, in this embodiment, only when the service end instruction is obtained, the terminal sends the information reporting object to the server, that is, only after the whole service flow is ended, the information reporting object is sent to the server. If an abnormality occurs in a step during the service process, the whole service flow is disconnected, that is, the service cannot be normally ended, and thus, an information reporting object corresponding to the service cannot be normally sent to the server. Obviously, if these information reporting objects cannot be sent to the server, the server cannot acquire the relevant abnormal information, and meanwhile, too many information reporting objects are also accumulated on the terminal, thereby causing performance degradation of the terminal.
In view of this, in order to handle the case that the service is abnormal, the terminal may periodically query and acquire a creation time length of the information reporting object, and if the creation of the information reporting object is greater than a preset time threshold, the information reporting object may be considered as not reporting when time is out, that is, the service corresponding to the information reporting object is not normally ended (for example, the payment service has started for 30 minutes but is still not ended), at this time, the information reporting object may be sent to the server. The preset time threshold may be determined according to a service type corresponding to the information reporting object, for example, ten minutes, thirty minutes, or one hour, and the like, which is not limited herein. Specifically, the terminal may mark the information reporting object as a to-be-reported state after detecting that the creation duration of the information reporting object is greater than a preset time threshold, and then an information reporting component of the terminal sends the information reporting object to the server.
Optionally, on the basis of the embodiments corresponding to fig. 2, in an optional embodiment of the method for service processing provided in this embodiment of the present application, after the information reporting object is created, the method further includes:
if the business corresponding to the information reporting object is detected to be abnormal, adding the abnormal business information to the information reporting object;
and sending the information reporting object added with the service exception information to a server.
As can be seen from the above description, the terminal sends the information reporting object to the server only when the service end instruction is obtained, however, in the running process of the application program, the application program may be abnormal, which may cause interruption of the service process. For example, when the application crashes suddenly, the user forcibly ends the process of the application by himself or the application is ended by the terminal background, and in these cases, the information reporting object corresponding to the service is not normally sent to the server.
Therefore, the terminal can monitor and detect the service in the application program, and when the service is detected to have abnormality (for example, the service is disconnected due to the crash of the application program), specific service abnormality information (for example, the service process is disconnected due to the crash of the application program) is added to the information reporting object, and then the information reporting object added with the service abnormality information is sent to the server. Specifically, after the abnormal service information is added to the information reporting object, the terminal may mark the information reporting object to which the abnormal service information is added as a state to be reported, and then an information reporting component of the terminal sends the information reporting object to the server.
The service processing method provided in the embodiment of the present application is described in detail above, and for convenience of understanding, how to implement the service processing method by a terminal is described below. Referring to fig. 4, fig. 4 is a diagram illustrating a business processing flow according to an embodiment of the present disclosure.
As shown in fig. 4, 401 indicates a service that can be developed in an application program, and specifically may include: pay, scramble a red envelope, post a circle of friends, and so on.
Denoted 402 is an information reporting object, which includes one or more pieces of information to be reported.
Denoted by 403 is an exception handling thread running on the terminal, which can detect an information reporting object and handle the information reporting object with an exception, for example, detect whether the information reporting object is created overtime, detect whether the information reporting object is abnormal, and the like.
404 denotes a local cache space of the terminal, and after the information reporting object is created, the information reporting object is written into the local cache space and temporarily stored in the local cache space until the information reporting object is successfully reported to the server.
And 405 denotes a server, and after the terminal acquires the service end instruction, the terminal sends an information reporting object to the server.
The reference numeral 406 denotes an information statistics background, and the server can transmit the information reporting object to the information statistics background, so that the information statistics background can classify, count, and the like the information reporting object according to the service type or the timestamp and other information corresponding to the information reporting object.
407 denotes a background information base, and after the information reporting object is counted by the information counting background, the information obtained by the statistics can be transmitted to the background information base, so that developers of the application program can query the information in real time and export statistical reports.
Referring to fig. 5 and fig. 6, fig. 5 is a diagram illustrating a structure of an information reporting object according to an embodiment of the present application; fig. 6 is an exemplary diagram of an information reporting object uploaded to a server according to an embodiment of the present application.
Specifically, the information reporting object may be a data structure, where each information reporting object includes a packet header and a packet body, each packet body includes one or more pieces of information to be reported, and each piece of information to be reported corresponds to a step in the service flow (for example, a step of popping up a password box, inputting a password, or performing background verification in the payment service).
The packet header may include some basic information related to the information reporting object, for example: client (application) platform and version, client version number, user ID, serial number, module name, operation name, network type, error code, International Mobile Equipment Identity (IMEI), Global Unique Identifier (GUID), etc.
The packet body may include some basic information of the service corresponding to the information reporting object, for example: keywords (service order number), service start time, total service time, one or more messages to be reported, etc.
Each message to be reported may include a service step name, a step time consumption, a service parameter, an error code, an error reason, and other information.
For ease of understanding, the specific flow of the business process will be described below in conjunction with specific businesses. Taking the payment service as an example, the specific flow of the service processing is as follows:
the first step is as follows: when the payment service is started, the terminal creates an information reporting object.
The second step is that: the terminal calls a 'business process starting' interface and transmits corresponding information to the information reporting object: the method comprises the steps of adding information to be reported in an information reporting object by a service key word (such as an order number), a step name (such as payment initiation), a service parameter (such as payment type, user type, order number, login state and the like), an error code (such as success 0) and an error reason (success null), and then writing the information reporting object into a local cache space.
The third step: the payment component initiates a network request to the payment background, the terminal calls an interface of 'adding reporting node', and transmits corresponding information to be reported to an information reporting object: step name (e.g., begin _ pay _ cgi), service parameters (e.g., cgi's URL and parameters), error code (if successful, fill 0, fail, fill non-zero error code), error description (successful, empty, fail, fill cause).
The fourth step: the payment password popup is pulled up, the terminal calls an interface of 'adding reporting node', and corresponding information to be reported is transmitted to an information reporting object: the step name (such as password window), the service parameter (filling the relevant parameter for calling the payment password interface), the error code (0 if success), and the error description (null if success).
Several steps are omitted in the middle.
And a last step: and if the payment is successful, the terminal calls an interface of 'adding a reporting node', and transmits corresponding information to be reported to an information reporting object: step name (e.g. payment is completed), service parameter (neglect), error code (0 if payment is successful, and error code corresponding to failure reason if payment is failed), error description (success, or specific error reason: user cancel, password error, balance insufficiency, etc.).
At this time, the whole service flow is ended, the terminal obtains a service ending instruction, and the information reporting object is marked as a state to be uploaded. And the uploading service of the client on the terminal polls the local cache space and uploads the information reporting object to be uploaded in the local cache space to the server, and the corresponding information reporting object in the local cache space is cleared after the uploading is successful. If uploading fails, the system is left to upload again when polling is carried out next time.
After the information reporting object is created, the information reporting object is initialized, that is, the content in the packet header of the information reporting object is automatically filled.
In order to describe the service processing method provided by the embodiment of the present application from the perspective of the terminal, the service processing method provided by the embodiment of the present application will be described below from the perspective of the server.
Referring to fig. 7, fig. 7 is a diagram illustrating a method for processing a service according to an embodiment of the present application.
An embodiment of a method for processing a service provided in an embodiment of the present application includes:
701. receiving an information reporting object sent by a mobile terminal, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service;
in this embodiment, the information reporting object received by the server has an association relationship with a service performed by an application program on the mobile terminal, and is created by the mobile terminal based on the service. The process of creating the information reporting object may specifically refer to the steps S201 to S204, which are not described herein again.
702. And classifying the information reporting object according to the type of the service to which the information reporting object belongs.
Because each information reporting object has a corresponding service type, the server can classify different information reporting objects according to the service type, namely, the information reporting objects belonging to the same service type are classified together. In addition, the server can classify the information reporting objects according to the time information, for example, the information reporting objects sent to the server on the same day are classified together. Therefore, when an application program developer wants to position error information in the information to be reported, the developer can quickly position the specific error information only by reporting the object according to the information classified by the server. For example, on a certain day, an error occurs in the process of performing the payment service by the application program, and then, a developer of the application program can quickly acquire a corresponding information reporting object in the server according to the date of the day when the error occurs in the application program and the payment service; because the information reporting object contains the information to be reported contained in the whole payment process, a developer can quickly locate error information in the information to be reported contained in the information reporting object, and a great amount of time and energy are saved.
Referring to fig. 8, fig. 8 is a schematic view of an embodiment of a service processing apparatus provided in an embodiment of the present application, where the service processing apparatus 80 includes:
an obtaining unit 801, configured to obtain a service start instruction;
a creating unit 802, configured to create an information reporting object according to the service start instruction;
an adding unit 803, configured to, in a service process, if an information reporting instruction is obtained, add information to be reported corresponding to the information reporting instruction to an information reporting object;
a sending unit 804, configured to send an information reporting object to a server if a service end instruction is obtained, so that the server performs classification processing on the information reporting object, where the information reporting object includes one or more pieces of information to be reported, and the pieces of information to be reported belong to information in the same service.
Optionally, on the basis of the embodiment corresponding to fig. 8, please refer to fig. 9, where fig. 9 is a schematic view of an embodiment of a service processing apparatus provided in the embodiment of the present application, and in another embodiment of a service processing apparatus 80 provided in the embodiment of the present application, a determining unit 805 is further included;
the obtaining unit 801 is further configured to obtain a first timestamp of a first sub information to be reported in the information to be reported;
the obtaining unit 801 is further configured to obtain a second timestamp of a second to-be-reported sub-information in the to-be-reported information, where the second to-be-reported sub-information is next information adjacent to the first to-be-reported sub-information;
a determining unit 805, configured to determine a service interval duration according to the first timestamp and the second timestamp;
the sending unit 804 is further configured to send the information reporting object and the service interval duration to the server if the service end instruction is obtained.
Optionally, on the basis of the embodiment corresponding to fig. 8, please refer to fig. 10, where fig. 10 is a schematic view of an embodiment of a service processing apparatus provided in the embodiment of the present application, and in another embodiment of the service processing apparatus 80 provided in the embodiment of the present application, a marking unit 806 is further included;
a marking unit 806, configured to mark the information reporting object as a to-be-reported state if the service end instruction is obtained;
the sending unit 804 is further configured to send the information reporting object to the server if it is detected that the state of the information reporting object is the state to be reported.
Optionally, on the basis of the embodiment corresponding to fig. 8, in another embodiment of the device 80 for service processing provided in this embodiment of the present application,
an obtaining unit 801, configured to obtain a creation time length of an information reporting object;
the sending unit 804 is further configured to send an information reporting object to the server if the creation duration is greater than the preset time threshold.
Optionally, on the basis of the embodiment corresponding to fig. 8, in another embodiment of the device 80 for service processing provided in this embodiment of the present application,
the adding unit 803 is further configured to add, if it is detected that the service corresponding to the information reporting object is abnormal, the service abnormal information to the information reporting object;
the sending unit 804 is further configured to send the information reporting object added with the service exception information to the server.
Referring to fig. 11, fig. 11 is a schematic view of an embodiment of a service processing apparatus provided in an embodiment of the present application, where the service processing apparatus 110 includes:
a receiving unit 1101, configured to receive an information reporting object sent by a mobile terminal, where the information reporting object includes one or more pieces of information to be reported, and the pieces of information to be reported belong to information in the same service;
the processing unit 1102 is configured to classify the information reporting object according to the type of the service to which the information reporting object belongs.
Fig. 12 shows only a portion related to the embodiment of the present application for convenience of description, and please refer to the method portion of the embodiment of the present application for reference, though specific technical details are not disclosed. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a point of sale (POS), a vehicle-mounted computer, and the like, taking the mobile terminal as the mobile phone as an example:
fig. 12 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present disclosure. Referring to fig. 12, the cellular phone includes: radio Frequency (RF) circuitry 1210, memory 1220, input unit 1230, display unit 1240, sensors 1250, audio circuitry 1260, wireless fidelity (WiFi) module 1270, processor 1280, and power supply 1290. Those skilled in the art will appreciate that the handset configuration shown in fig. 12 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 12:
the RF circuit 1210 is configured to receive and transmit signals during information transmission and reception or during a call, and in particular, receive downlink information of a base station and then process the received downlink information to the processor 1280; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 1210 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 1210 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), etc.
The memory 1220 may be used to store software programs and modules, and the processor 1280 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1220. The memory 1220 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1220 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.
The input unit 1230 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1230 may include a touch panel 1231 and other input devices 1232. The touch panel 1231, also referred to as a touch screen, can collect touch operations of a user (e.g., operations of the user on or near the touch panel 1231 using any suitable object or accessory such as a finger, a stylus, etc.) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 1231 may include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1280, and can receive and execute commands sent by the processor 1280. In addition, the touch panel 1231 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1230 may include other input devices 1232 in addition to the touch panel 1231. In particular, other input devices 1232 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1240 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The display unit 1240 may include a display panel 1241, and optionally, the display panel 1241 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like. Further, touch panel 1231 can overlay display panel 1241, and when touch panel 1231 detects a touch operation thereon or nearby, the touch panel 1231 can transmit the touch operation to processor 1280 to determine the type of the touch event, and then processor 1280 can provide a corresponding visual output on display panel 1241 according to the type of the touch event. Although in fig. 12, the touch panel 1231 and the display panel 1241 are implemented as two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1231 and the display panel 1241 may be integrated to implement the input and output functions of the mobile phone.
The cell phone may also include at least one sensor 1250, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1241 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1241 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1260, speaker 1261, and microphone 1262 can provide an audio interface between a user and a cell phone. The audio circuit 1260 can transmit the received electrical signal converted from the audio data to the speaker 1261, and the audio signal is converted into a sound signal by the speaker 1261 and output; on the other hand, the microphone 1262 converts the collected sound signals into electrical signals, which are received by the audio circuit 1260 and converted into audio data, which are processed by the audio data output processor 1280, and then passed through the RF circuit 1210 to be transmitted to, for example, another cellular phone, or output to the memory 1220 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 1270, and provides wireless broadband internet access for the user. Although fig. 12 shows the WiFi module 1270, it is understood that it does not belong to the essential constitution of the handset, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1280 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1220 and calling data stored in the memory 1220, thereby performing overall monitoring of the mobile phone. Optionally, processor 1280 may include one or more processing units; optionally, the processor 1280 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into the processor 1280.
The mobile phone further includes a power supply 1290 (e.g., a battery) for supplying power to each component, and optionally, the power supply may be logically connected to the processor 1280 through a power management system, so that the power management system may manage functions such as charging, discharging, and power consumption management.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In this embodiment, the processor 1280 included in the terminal further has the following functions:
acquiring a service starting instruction;
according to the service starting instruction, an information reporting object is created;
in the process of service, if an information reporting instruction is acquired, adding information to be reported corresponding to the information reporting instruction to an information reporting object;
and if the service ending instruction is acquired, sending an information reporting object to the server so that the server can classify the information reporting object, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service.
Fig. 13 is a schematic diagram of a server 1300 according to an embodiment of the present disclosure, where the server 1300 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 1322 (e.g., one or more processors) and a memory 1332, and one or more storage media 1330 (e.g., one or more mass storage devices) storing an application program 1342 or data 1344. Memory 1332 and storage medium 1330 may be, among other things, transitory or persistent storage. The program stored on the storage medium 1330 may include one or more modules (not shown), each of which may include a sequence of instructions operating on a server. Still further, the central processor 1322 may be arranged in communication with the storage medium 1330, executing a sequence of instruction operations in the storage medium 1330 on the server 1300.
The server 1300 may also include one or more power supplies 1326, one or more wired or wireless network interfaces 1350, one or more input-output interfaces 1358, and/or one or more operating systems 1341, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
In the embodiment of the present application, CPU 1322 included in server 1300 further has the following functions:
receiving an information reporting object sent by a mobile terminal, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service;
and classifying the information reporting object according to the type of the service to which the information reporting object belongs.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method for processing services, comprising:
acquiring a service starting instruction;
creating an information reporting object according to the service starting instruction;
in the process of service, if an information reporting instruction is acquired, adding information to be reported corresponding to the information reporting instruction to the information reporting object;
and if a service end instruction is acquired, sending the information reporting object to a server so that the server can classify the information reporting object, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service.
2. The method according to claim 1, wherein before the step of sending the information reporting object to a server if the service end instruction is obtained, the method further comprises:
acquiring a first timestamp of a first sub-information to be reported in the information to be reported;
acquiring a second timestamp of a second sub-information to be reported in the information to be reported, wherein the second sub-information to be reported is next information adjacent to the first sub-information to be reported;
determining the service interval duration according to the first time stamp and the second time stamp;
if the service end instruction is obtained, the information reporting object is sent to a server, and the method comprises the following steps:
and if the service ending instruction is obtained, sending the information reporting object and the service interval duration to a server.
3. The method according to claim 1 or 2, wherein the sending the information reporting object to a server if the service end instruction is obtained comprises:
if a service ending instruction is obtained, marking the information reporting object as a state to be reported;
and if the state of the information reporting object is detected to be a state to be reported, sending the information reporting object to a server.
4. The method of claim 1 or 2, wherein after the creating the information reporting object, the method further comprises:
acquiring the creating time length of the information reporting object;
and if the creating time length is greater than a preset time threshold, sending the information reporting object to the server.
5. The method of claim 1 or 2, wherein after the creating the information reporting object, the method further comprises:
if the abnormal business of the information reporting object is detected, adding the abnormal business information to the information reporting object;
and sending the information reporting object added with the service abnormal information to a server.
6. A method for processing services, comprising:
receiving an information reporting object sent by a mobile terminal, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service;
and classifying the information reporting object according to the type of the service to which the information reporting object belongs.
7. An apparatus for traffic processing, comprising:
the acquisition unit is used for acquiring a service starting instruction;
a creating unit, configured to create an information reporting object according to the service start instruction;
an adding unit, configured to add, in a service process, to-be-reported information corresponding to an information reporting instruction to an information reporting object if the information reporting instruction is acquired;
and the sending unit is used for sending the information reporting object to a server if a service ending instruction is obtained, so that the server can classify and process the information reporting object, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service.
8. An apparatus for traffic processing, comprising:
a receiving unit, configured to receive an information reporting object sent by a mobile terminal, where the information reporting object includes one or more pieces of information to be reported, and the pieces of information to be reported belong to information in the same service;
and the processing unit is used for classifying the information reporting object according to the type of the service to which the information reporting object belongs.
9. A terminal device, comprising: a memory, a transceiver, a processor, and a bus system;
wherein the memory is used for storing programs;
the processor is used for executing the program in the memory and comprises the following steps:
acquiring a service starting instruction;
creating an information reporting object according to the service starting instruction;
in the process of service, if an information reporting instruction is acquired, adding information to be reported corresponding to the information reporting instruction to the information reporting object;
if a service end instruction is acquired, sending the information reporting object to a server so that the server can classify the information reporting object, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service;
the bus system is used for connecting the memory and the processor so as to enable the memory and the processor to communicate.
10. A server, comprising: a memory, a transceiver, a processor, and a bus system;
wherein the memory is used for storing programs;
the processor is used for executing the program in the memory and comprises the following steps:
receiving an information reporting object sent by a mobile terminal, wherein the information reporting object comprises one or more pieces of information to be reported, and the information to be reported belongs to information in the same service;
classifying the information reporting object according to the type of the service to which the information reporting object belongs;
the bus system is used for connecting the memory and the processor so as to enable the memory and the processor to communicate.
CN201910714830.3A 2019-07-31 2019-07-31 Service processing method and related device Pending CN112308501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910714830.3A CN112308501A (en) 2019-07-31 2019-07-31 Service processing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910714830.3A CN112308501A (en) 2019-07-31 2019-07-31 Service processing method and related device

Publications (1)

Publication Number Publication Date
CN112308501A true CN112308501A (en) 2021-02-02

Family

ID=74485555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910714830.3A Pending CN112308501A (en) 2019-07-31 2019-07-31 Service processing method and related device

Country Status (1)

Country Link
CN (1) CN112308501A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116817A (en) * 2021-11-22 2022-03-01 北京达佳互联信息技术有限公司 Processing information storage method, processing information query device and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144378A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Service management method and system and plug-in
CN105471932A (en) * 2014-08-06 2016-04-06 腾讯科技(深圳)有限公司 Front-end application monitoring method, front-end application and front-end application monitoring system
CN107423097A (en) * 2017-07-28 2017-12-01 北京明朝万达科技股份有限公司 The management method and device of a kind of application program
CN108235308A (en) * 2017-12-27 2018-06-29 广东欧珀移动通信有限公司 data reporting method, device, mobile terminal and computer-readable medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144378A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Service management method and system and plug-in
CN105471932A (en) * 2014-08-06 2016-04-06 腾讯科技(深圳)有限公司 Front-end application monitoring method, front-end application and front-end application monitoring system
CN107423097A (en) * 2017-07-28 2017-12-01 北京明朝万达科技股份有限公司 The management method and device of a kind of application program
CN108235308A (en) * 2017-12-27 2018-06-29 广东欧珀移动通信有限公司 data reporting method, device, mobile terminal and computer-readable medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116817A (en) * 2021-11-22 2022-03-01 北京达佳互联信息技术有限公司 Processing information storage method, processing information query device and server

Similar Documents

Publication Publication Date Title
CN108959000B (en) Server pressure testing method, system and terminal
CN106293445B (en) Method and device for acquiring application program use data and terminal equipment
CN107273263B (en) Abnormal operation analysis method, application terminal and monitoring server
CN111666222B (en) Test method and related device
WO2015081801A1 (en) Method, server, and system for information push
CN107465841B (en) Fault information reporting method and terminal
CN112148579B (en) User interface testing method and device
CN105260082B (en) A kind of test data methods of exhibiting and exploitation terminal
CN105207880B (en) Group recommending method and device
CN107634952B (en) Method and device for determining brushing amount resource, service equipment, mobile terminal and storage medium
CN108334345B (en) Application processing method and device, readable storage medium and mobile terminal
CN108600516B (en) Data acquisition method, mobile terminal and computer readable storage medium
CN112131093A (en) Chaos test-based test case automatic generation method and device
CN110213313B (en) File uploading method, related device and system
CN112540996A (en) Service data verification method and device, electronic equipment and storage medium
JP6915074B2 (en) Message notification method and terminal
CN115904950A (en) Test case generation method, device, equipment and storage medium
CN106020945B (en) Shortcut item adding method and device
CN113453066A (en) Playing time determining method and related equipment
CN112308501A (en) Service processing method and related device
CN106339402B (en) Method, device and system for pushing recommended content
CN116303085A (en) Test reason analysis method, device, equipment and storage medium
CN113810249B (en) Callback detection method and device, computer equipment and storage medium
CN116468382A (en) RPA robot flow management method, device, equipment and storage medium
CN115794654A (en) Test case distribution processing method, system, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination