[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108762944B - Processing method, device, equipment and medium of business system - Google Patents

Processing method, device, equipment and medium of business system Download PDF

Info

Publication number
CN108762944B
CN108762944B CN201810361999.0A CN201810361999A CN108762944B CN 108762944 B CN108762944 B CN 108762944B CN 201810361999 A CN201810361999 A CN 201810361999A CN 108762944 B CN108762944 B CN 108762944B
Authority
CN
China
Prior art keywords
message
processing
mark
recorded
unprocessed
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
CN201810361999.0A
Other languages
Chinese (zh)
Other versions
CN108762944A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810361999.0A priority Critical patent/CN108762944B/en
Publication of CN108762944A publication Critical patent/CN108762944A/en
Application granted granted Critical
Publication of CN108762944B publication Critical patent/CN108762944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a processing method, a device, equipment and a medium of a service system, relating to the technical field of computers, wherein the processing method of the service system comprises the following steps: reading a record file of a service system to obtain a processing mark of a message; determining the unprocessed information in the record file according to the processing mark; processing the message without processing to obtain a message processing result; and storing the message processing result. The embodiment of the invention can complete the recovery processing of the unprocessed message by utilizing the record file, and solves the problem of partial data loss in the memory caused by the sudden shutdown of the system.

Description

Processing method, device, equipment and medium of business system
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a service system, a device, and a storage medium.
Background
With the rapid development of computer technology, the internet has become an important platform in life, study and work of people, and great convenience is provided for life, study and work of people.
At present, a service system can be implemented based on a development platform, so that a user can publish content, such as videos and articles, on the platform by self-help through the service system. The development platform can be a platform combining a plurality of functions and provides a business system for users to distribute contents in the platform by themselves.
In a specific implementation, a business system of a development platform needs to calculate a user credit level according to the user normal behavior operation, so as to manage and control the behavior operation of the user based on the user credit level. In the calculation process, the message is required to be read from the message queue and stored in the memory, then the data can be read from the memory according to a preset algorithm to calculate the credit rating, and the calculated user credit rating is synchronized to the database to realize the updating of the database. However, during synchronization, the service system may be suddenly shut down due to an online system or the like. If some messages are read from the message queue at this time, but the user credit level corresponding to the message is not synchronized to the database, the data corresponding to the message read from the message queue is stored in the memory, and is lost due to the shutdown of the service system, that is, there is a problem of data loss.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed to provide a processing method of a business system that overcomes or at least partially solves the above problems.
Correspondingly, the embodiment of the invention also provides a processing device, equipment and a storage medium of the business system, so as to ensure the realization and the application of the method.
In order to solve the above problem, an embodiment of the present invention discloses a method for processing a service system, including:
reading a record file of a service system to obtain a processing mark of a message;
determining the unprocessed information in the record file according to the processing mark;
processing the message without processing to obtain a message processing result;
and storing the message processing result.
Optionally, the processing flag includes a start flag and an end flag, and determining an unprocessed message in the record file according to the processing flag includes:
determining the information recorded in the recording file according to the starting mark;
judging whether the recorded file has an end mark corresponding to the recorded message;
and if not, determining the recorded message as an unprocessed message.
Optionally, the method further comprises: and if the recorded file has the end mark corresponding to the recorded message, removing the memory data corresponding to the recorded message from the memory.
Optionally, the method further comprises: recording a start mark of a message in the recording file when the message is received; acquiring service information corresponding to the message; performing message processing on the message according to the service information to obtain a message processing result; and recording an end mark of the message in the recording file.
Optionally, the performing message processing on the unprocessed message to obtain a message processing result includes: and performing credit rating calculation on the unprocessed message to obtain the credit rating of the user.
The embodiment of the invention also discloses a processing device of the service system, which comprises:
the record file reading module is used for reading the record file of the service system to obtain a processing mark of the message;
an unprocessed message determining module, configured to determine an unprocessed message in the record file according to the processing flag;
the message processing module is used for processing the message which is not processed to obtain a message processing result;
and the message processing result storage module is used for storing the message processing result.
Optionally, the processing flag includes a start flag and an end flag, and the unprocessed message determining module includes:
the message determining submodule is used for determining the message recorded in the recording file according to the starting mark;
the judging submodule is used for judging whether the recorded file has an end mark corresponding to the recorded message;
and the unprocessed message determining submodule is used for determining the recorded message as an unprocessed message if the unprocessed message does not exist.
Optionally, the method further comprises: and the memory data removing module is used for removing the memory data corresponding to the recorded message from the memory if the recorded file has the end mark corresponding to the recorded message.
Optionally, the method further comprises:
a start mark recording module, configured to record a start mark of a message in the recording file when the message is received;
a service information obtaining module, configured to obtain service information corresponding to the message;
an end mark recording module, configured to record an end mark of the message in the recording file;
the message processing module is further configured to perform message processing on the message according to the service information to obtain a message processing result.
Optionally, the message processing module includes: and the credit rating calculation submodule is used for calculating the credit rating of the unprocessed message to obtain the credit rating of the user.
Also disclosed in an embodiment of the present invention is an apparatus comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors comprise instructions for:
reading a record file of a service system to obtain a processing mark of a message;
determining the unprocessed information in the record file according to the processing mark;
processing the message without processing to obtain a message processing result;
and storing the message processing result.
The embodiment of the invention also discloses a readable storage medium, and when the instruction in the storage medium is executed by the processor of the equipment, the equipment can execute the processing method of the service system provided by the embodiment of the invention.
The embodiment of the invention has the following advantages:
the embodiment of the invention can obtain the processing mark of the message by reading the record file of the service system, thereby determining the unprocessed message according to the processing mark of the message, processing the unprocessed message to obtain the message processing result, and storing the message processing result, namely, completing the recovery processing of the unprocessed message by using the record file, and solving the problem of partial data loss in the memory caused by the sudden shutdown of the system.
Drawings
FIG. 1 is a flow chart of steps of an embodiment of a method of processing a business system of the present invention;
FIG. 2 is a flow chart of steps of another embodiment of a method of processing a business system of the present invention;
FIG. 3 is a flow chart of steps in an alternative embodiment of a method of processing a business system of the present invention;
FIG. 4 is a block diagram of an embodiment of a processing device of a business system of the present invention;
fig. 5 is a block diagram illustrating an architecture of an apparatus for processing of a business system in accordance with an exemplary embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
One of the core concepts of the embodiments of the present invention is to recover and process the unprocessed message in the service system by using the record file of the service system, thereby solving the problem of partial data loss in the memory caused by the sudden shutdown of the system.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a processing method of a service system according to the present invention is shown, which may specifically include the following steps:
step 102, reading the record file of the service system to obtain a processing mark of the message.
In the embodiment of the present invention, when the service system processes a message, the processing flag of the message may be recorded, and the recorded processing flag may be stored in the record file, so that the processed message may be determined by reading the record file in the following. Wherein the processed message may include: processed messages and unprocessed messages. For example, the service system may record a start marker of a message when the message is received and record an end marker of the message when the message is processed, and then may store these recorded start and end markers in a log file so that it may be determined from the log file that the message is not processed later.
Specifically, each time a program of the service system is started, a recording file of the service system may be read, so that a recorded processing flag may be acquired from the read recording file. The processing flag may include a start flag, an end flag, and the like, which is not limited in this embodiment of the present invention.
And 104, determining the unprocessed information in the record file according to the processing mark.
In the embodiment of the present invention, it can be determined whether the message recorded in the recording file is processed by the service system according to the processing flag obtained from the recording file. If the message recorded in the recording file is processed by the service system, the message may be determined as a processed message. If the message recorded in the recording file is not processed by the service system, the message may be determined as an unprocessed message.
For example, after the processing flag recorded in the recording file is acquired, whether the message is processed can be determined by determining whether the start flag and the end flag corresponding to the message appear in pairs. If the obtained processing flag includes the start flag of a certain message but does not include the end flag of the message, that is, the start flag and the end flag corresponding to the message do not appear in pairs, the message may be determined as an unprocessed message, and then step 106 is performed. In addition, when the acquired processing tag includes a start tag and an end tag of a certain message, that is, the start tag and the end tag corresponding to the message appear in pairs, the message may be determined as a processed message, and then the memory data corresponding to the processed message may be removed from the memory, so that memory usage is reduced and memory is saved.
And 106, performing message processing on the unprocessed message to obtain a message processing result.
In the embodiment of the invention, after the unprocessed message is determined, the message processing can be carried out on the unprocessed message again so as to process the unprocessed message and obtain the corresponding message processing result. The message processing may include various processing operations that the service system needs to perform on the received message, such as performing a credit level calculation operation on the received message, which is not limited in this embodiment of the present invention.
As an example of the present invention, after determining an unprocessed message, the service system may access a Database (DB) according to the unprocessed message, so as to obtain service information corresponding to the unprocessed message from the Database; subsequently, the unprocessed message may be subjected to message processing according to the obtained service information to obtain a corresponding message processing result, for example, the unprocessed message may be subjected to message processing according to the obtained service information, so that a user credit level may be calculated, and the user credit level may be determined as the message processing result.
And step 108, storing the message processing result.
After the message processing result is obtained, the message processing result can be written into the database, and if the obtained user credit rating can be written into the database, the database is updated. Alternatively, after the message processing result is stored in the database, such as after the user credit rating is stored in the database, an end flag of the processed message may be recorded, so as to flag the processed message as a processed message.
To sum up, the embodiment of the present invention obtains the processing flag of the message by reading the record file of the service system, so that the unprocessed message can be determined according to the processing flag of the message, the message processing is performed on the unprocessed message to obtain the message processing result, and the message processing result is stored, that is, the recovery processing of the unprocessed message is completed by using the record file, thereby solving the problem of partial data loss in the memory caused by the sudden shutdown of the system.
In an optional embodiment of the present invention, the processing method of the message processing system may further include: recording a start mark of a message in the recording file when the message is received; acquiring service information corresponding to the message; performing message processing on the message according to the service information to obtain a message processing result; and recording an end mark of the message in the recording file.
Specifically, when the service system receives a message, the message and a start marker of the message may be recorded in a log file, for example, the received message may be recorded in a log, and the start information of the message may be marked to use the marked start information as the start marker of the message. Subsequently, the database can be accessed according to the received message to acquire the service information corresponding to the message from the database, so that the message processing can be performed according to the acquired service information and the basic service information carried in the message to obtain a message processing result, and the obtained message processing result can be stored in the database, so that the service processing can be performed subsequently according to the latest message processing result stored in the database.
For example, the credit level calculation logic operation may be executed according to the obtained service information and the basic service information carried in the message, so as to obtain the user credit level, and the database may be updated according to the user credit level, for example, the obtained user credit level may be written into the database, so as to update the database, so that the service processing may be performed according to the latest user credit level stored in the database, and the accuracy of the service processing may be ensured. After writing the user credit rating to the database, a message handling end flag may be recorded, and the recorded message handling flag may be stored in the log file, i.e. the end flag of the message is recorded in the log file, so that the end flag of the message may be subsequently retrieved from the log file.
In a specific implementation, by applying the embodiment of the present invention, a message recording system can be created to record a message processed in a service system, and a recording file of the service system is generated; and the unprocessed information recorded in the recording file can be recovered by creating an information recovery processing system, so that the problem of partial data loss in the memory caused by sudden shutdown of a service system is solved. Of course, the message recording system and/or the message recovery processing system may be coupled in a service system, and serve as a subsystem in the service system, which is not limited in this embodiment of the present invention.
Referring to fig. 2, a flowchart illustrating steps of another embodiment of a processing method of a service system according to the present invention is shown, which may specifically include the following steps:
step 202, upon receipt of a message, records a start marker of the message.
In this embodiment, when the service system receives a message, the service system may record a start flag of the message in a record file through the message recording system. For example, when the business system reads a Message sent by an upstream system from a Message Queue (MQ), the Message recording system may record a start tag of the Message currently read by the business system, and may store the recorded start tag in a record file, such as a log of the business system. The message queue may be formed according to messages received by the service system. The messages in the message queue may include service specific parameters in the service system, such as user Identification (ID), user class, and the like, which is not limited in this embodiment of the present invention.
And step 204, acquiring the service information corresponding to the message from a database.
Specifically, the service system may access the database according to the received message, so as to obtain the service information corresponding to the message from the database. For example, the service system may parse the received message to obtain basic service information included in the message, such as a user ID, a security index, and the like, and then may access the database according to the basic service information included in the message to obtain more service information from the database, such as red card data, yellow card data, and the like corresponding to the message from the database.
And step 206, performing message processing on the message according to the service information to obtain a message processing result.
In an optional embodiment of the present invention, performing message processing on the message according to the service information to obtain a message processing result may include: and calculating the credit level of the message according to the service information to obtain the credit level of the user. Specifically, after the service information corresponding to the message is acquired, the credit level calculation may be performed based on the basic service information included in the message and the acquired service information, so as to obtain the user credit level. For example, the credit rating may be calculated by using information such as the security index included in the message, the number of passes issued by the user, and the acquired red card data and/or yellow card data, so as to obtain the credit rating of the user.
And step 208, writing the message processing result into a database.
Specifically, after the message processing result is obtained, the message processing result may be written into the database, so as to update the database. For example, after the user credit rating is calculated, the user credit rating may be written to the database, thereby updating the database.
Step 210, recording the end mark of the message.
Specifically, after the service system finishes processing a message, an end marker of the message may be recorded in the recording file, so as to end the message marker.
In summary, the embodiment of the present invention may record the memory data currently read by the service system based on the start flag of the message, and may distinguish whether the read memory data has been written into the database based on the end flag. When the service system is started each time, the record file can be read to determine the unprocessed message, and the message processing is carried out on the unprocessed message, namely the memory data which is not completely operated can be read out by scanning the record, recalculated and written into the database, so that the system failure recovery is completed.
In an optional embodiment of the present invention, performing message processing on the unprocessed message to obtain a message processing result may include: and performing credit rating calculation on the unprocessed message to obtain the credit rating of the user. The obtained user credit rating can be written into a database as a message processing result, so that the user credit rating can be extracted from the database for service processing.
Referring to fig. 3, a flowchart illustrating steps of an alternative embodiment of a processing method of a service system according to the present invention is shown, which may specifically include the following steps:
step 302, reading the record file of the service system to obtain a processing mark of the message.
As an example of the invention, the recovery processing system may read the record file of the service system to obtain the recorded message and the processing flag of the message each time the program of the service system is restarted. For example, when the sub-service system comes back on line, the program of the service system may be started. Before the service system performs the functional operation, the recovery processing system may first read the record file of the service system, for example, read the record file generated by the message recording system for the service system, to obtain one or more message processing flags, so as to recover the last unfinished data of the service system according to the message processing flags, and perform the data again.
And step 304, determining the unprocessed information in the record file according to the processing mark.
In the embodiment of the present invention, the processing flag may optionally include a start flag and an end flag. The determining the unprocessed message in the record file according to the processing flag may include: determining the information recorded in the recording file according to the starting mark; judging whether the recorded file has an end mark corresponding to the recorded message; and if not, determining the recorded message as an unprocessed message. Specifically, when a start mark of a message is read, a message that has been processed last time by the service system may be determined based on the read start mark, and then, whether the message has been processed may be determined by determining whether an end mark corresponding to the message exists in the record file. If the end flag corresponding to the message does not exist in the record file, that is, if the end flag corresponding to the recorded message does not exist in the record file, the message may be determined as an unprocessed message, and then step 306 is executed. If the recorded message has an end mark corresponding to the recorded message, it may be determined that the message has been executed, and then step 310 is performed.
For example, the processing flags of the messages recorded in the recording file are: in the case of "001 START", "002 START", "003 END", "001 END", these processing marks are obtained by reading the record file, and the message recorded in the record file can be determined according to the START mark of the message, for example, the first message "001" recorded in the record file can be determined according to the START mark "001 START" of the message recorded in the record file; as another example, the second message "002" recorded in the record file may be determined from the START flag "002 START" of the message recorded in the record file, and the third message "003" recorded in the record file may be determined from the START flag "003 START" of the message recorded in the record file, and so on. Whether the recorded message is successfully executed or not can be determined by judging whether the recorded file has an END mark corresponding to the recorded message or not, such as the first message "001" and the third message "003" both have a complete START mark "START" and an END mark "END", the first message "001" and the third message "003" can be determined as processed messages to prove that the operations corresponding to the first message "001" and the third message "003" have been successfully executed, and then step 310 can be executed for the first message "001" and the third message "003"; the second message "002" has no END mark "END", that is, the service system is already closed when the operation corresponding to the second message is not executed, so that the END mark of the second message is not recorded in the recording file, the second message "002" may be determined as an unprocessed message, and then step 306 is executed to re-execute the operation corresponding to the second message.
And step 306, calculating the credit level of the unprocessed message to obtain the credit level of the user.
Step 308, writing the user credit rating to a database.
The embodiment of the invention can calculate the credit rating of the unprocessed message to obtain a user credit rating, and then can write the calculated user credit rating into the database and record the corresponding end mark. For example, in conjunction with the above example, the recovery processing system may re-perform the credit rating calculation logic operation for the second message "002" to obtain a user credit rating, and then update the database based on the calculated user credit rating. Optionally, after updating the database, an END flag of the second message "002" may be recorded, for example, "002 END" may be recorded in the record file by the message recording system, so as to implement the update of the record file. In addition, after the recovery processing system completes the recovery processing of the unprocessed message, an MQ listener in the business system can be started, so that a new message received in the message queue can be listened to for processing the new message.
Step 310, removing the memory data corresponding to the recorded message from the memory.
Specifically, under the condition that the recorded file has the end mark corresponding to the recorded message, the memory data corresponding to the recorded message can be removed from the memory, for example, when the start mark and the end mark corresponding to the message are recorded in the recorded file, the recovery processing system can remove the memory data corresponding to the processed message from the memory, thereby saving memory resources.
Optionally, after the recovery processing of the unprocessed message is completed, the embodiment of the present invention may empty the previous record in the record file of the service system, thereby reducing the storage space occupied by the record. For example, when the program of the service system is started each time, after the recovery processing system completes the recovery processing of the unprocessed message, the processing flag of the message recorded in the record file before the message recording system can be cleared, the processing flag of the message recorded in real time is ensured, that is, the real-time performance of the processing flag recorded in the record file is ensured, and the storage resource is saved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 4, a block diagram of a processing apparatus of a service system according to an embodiment of the present invention is shown, and specifically includes the following modules:
a record file reading module 402, configured to read a record file of a service system to obtain a processing flag of a message;
an unprocessed message determining module 404, configured to determine an unprocessed message in the record file according to the processing flag;
a message processing module 406, configured to perform message processing on the unprocessed message to obtain a message processing result;
and a message processing result storage module 408, configured to store the message processing result.
In the embodiment of the present invention, the processing flag may optionally include a start flag and an end flag. The unprocessed message determination module 404 may include the following sub-modules:
the message determining submodule is used for determining the message recorded in the recording file according to the starting mark;
the judging submodule is used for judging whether the recorded file has an end mark corresponding to the recorded message;
and the unprocessed message determining submodule is used for determining the recorded message as an unprocessed message if the unprocessed message does not exist.
In an optional embodiment of the present invention, the processing apparatus of the service system may further include: and a memory data eliminating module. The memory data removing module may be configured to remove, if the recorded file has an end mark corresponding to the recorded message, the memory data corresponding to the recorded message from the memory. For example, when the determining sub-module determines that the recorded file has the end mark corresponding to the recorded message, the determining sub-module may trigger the memory data removing module to remove the memory data corresponding to the message from the memory.
Optionally, the processing device of the service system may further include the following modules:
a start mark recording module, configured to record a start mark of a message in the recording file when the message is received;
a service information obtaining module, configured to obtain service information corresponding to the message;
an end mark recording module, configured to record an end mark of the message in the recording file;
the message processing module is further configured to perform message processing on the message according to the service information to obtain a message processing result.
For example, the message processing module may be configured to perform credit level calculation on the message according to the obtained service information, so as to obtain a user credit level. The message processing result storage module may be operable to write the user credit rating to a database.
In an optional embodiment of the present invention, the message processing module may include: and a credit rating calculation submodule. The credit rating calculation sub-module may be configured to perform credit rating calculation on the unprocessed message to obtain a user credit rating, and write the user credit rating into the sub-module.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 5 is a block diagram illustrating an architecture of an apparatus 500 for processing of a business system in accordance with an exemplary embodiment. For example, the device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, a server, and the like.
Referring to fig. 5, device 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operation at the device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the device 500, the relative positioning of the components, such as a display and keypad of the device 500, the sensor assembly 514 may also detect a change in the position of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, orientation or acceleration/deceleration of the device 500, and a change in the temperature of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communications between the device 500 and other devices in a wired or wireless manner. The device 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the device 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of a device, enable the device to perform a method of processing for a business system, the method comprising: reading a record file of a service system to obtain a processing mark of a message; determining the unprocessed information in the record file according to the processing mark; processing the message without processing to obtain a message processing result; and storing the message processing result.
Optionally, the processing flag includes a start flag and an end flag, and determining an unprocessed message in the record file according to the processing flag includes:
determining the information recorded in the recording file according to the starting mark;
judging whether the recorded file has an end mark corresponding to the recorded message;
and if not, determining the recorded message as an unprocessed message.
Optionally, the method further comprises: and if the recorded file has the end mark corresponding to the recorded message, removing the memory data corresponding to the recorded message from the memory.
Optionally, the method further comprises: recording a start mark of a message in the recording file when the message is received; acquiring service information corresponding to the message; performing message processing on the message according to the service information to obtain a message processing result; and recording an end mark of the message in the recording file.
Optionally, the performing message processing on the unprocessed message to obtain a message processing result includes: and performing credit rating calculation on the unprocessed message to obtain the credit rating of the user.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The foregoing describes in detail a processing method of a business system, a processing apparatus of a business system, a device, and a storage medium provided by the present invention, and specific examples are applied herein to explain the principles and embodiments of the present invention, and the descriptions of the foregoing examples are only used to help understand the method and the core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A method for processing a service system, comprising:
reading a record file of a service system to obtain a processing mark of a message;
determining the unprocessed information in the record file according to the processing mark;
processing the message without processing to obtain a message processing result;
storing the message processing result;
the processing mark comprises a start mark and an end mark, and the determining of the unprocessed message in the record file according to the processing mark comprises the following steps:
determining the information recorded in the recording file according to the starting mark;
judging whether the recorded file has an end mark corresponding to the recorded message;
if the message does not exist, determining the recorded message as an unprocessed message;
the method further comprises the following steps:
recording a start mark of a message in the recording file when the message is received;
acquiring service information corresponding to the message from a database;
performing message processing on the message according to the service information to obtain a message processing result;
and recording an end mark of the message in the recording file.
2. The method of claim 1, further comprising:
and if the recorded file has the end mark corresponding to the recorded message, removing the memory data corresponding to the recorded message from the memory.
3. The method according to any one of claims 1 to 2, wherein the performing message processing on the unprocessed message to obtain a message processing result comprises:
and performing credit rating calculation on the unprocessed message to obtain the credit rating of the user.
4. A processing apparatus of a business system, comprising:
the record file reading module is used for reading the record file of the service system to obtain a processing mark of the message;
an unprocessed message determining module, configured to determine an unprocessed message in the record file according to the processing flag;
the message processing module is used for processing the message which is not processed to obtain a message processing result;
the message processing result storage module is used for storing the message processing result;
the processing mark comprises a start mark and an end mark, and the unprocessed message determining module comprises:
the message determining submodule is used for determining the message recorded in the recording file according to the starting mark;
the judging submodule is used for judging whether the recorded file has an end mark corresponding to the recorded message;
an unprocessed message determining submodule, configured to determine the recorded message as an unprocessed message if the unprocessed message does not exist;
the device further comprises:
a start mark recording module, configured to record a start mark of a message in the recording file when the message is received;
the service information acquisition module is used for acquiring the service information corresponding to the message from a database;
an end mark recording module, configured to record an end mark of the message in the recording file;
the message processing module is further configured to perform message processing on the message according to the service information to obtain a message processing result.
5. The apparatus of claim 4, further comprising:
and the memory data removing module is used for removing the memory data corresponding to the recorded message from the memory if the recorded file has the end mark corresponding to the recorded message.
6. The apparatus according to any one of claims 4 to 5, wherein the message processing module comprises:
and the credit rating calculation submodule is used for calculating the credit rating of the unprocessed message to obtain the credit rating of the user.
7. A processing device of a business system comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors comprises instructions for:
reading a record file of a service system to obtain a processing mark of a message;
determining the unprocessed information in the record file according to the processing mark;
processing the message without processing to obtain a message processing result;
storing the message processing result;
the processing mark comprises a start mark and an end mark, and the determining of the unprocessed message in the record file according to the processing mark comprises the following steps:
determining the information recorded in the recording file according to the starting mark;
judging whether the recorded file has an end mark corresponding to the recorded message;
if the message does not exist, determining the recorded message as an unprocessed message;
the operations further include:
recording a start mark of a message in the recording file when the message is received;
acquiring service information corresponding to the message from a database;
performing message processing on the message according to the service information to obtain a message processing result;
and recording an end mark of the message in the recording file.
8. A readable storage medium, characterized in that instructions in said storage medium, when executed by a processor of a device, enable the device to perform the processing method of the business system according to any one of the method claims 1-3.
CN201810361999.0A 2018-04-20 2018-04-20 Processing method, device, equipment and medium of business system Active CN108762944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810361999.0A CN108762944B (en) 2018-04-20 2018-04-20 Processing method, device, equipment and medium of business system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810361999.0A CN108762944B (en) 2018-04-20 2018-04-20 Processing method, device, equipment and medium of business system

Publications (2)

Publication Number Publication Date
CN108762944A CN108762944A (en) 2018-11-06
CN108762944B true CN108762944B (en) 2021-02-12

Family

ID=64011235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810361999.0A Active CN108762944B (en) 2018-04-20 2018-04-20 Processing method, device, equipment and medium of business system

Country Status (1)

Country Link
CN (1) CN108762944B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542643B (en) * 2018-11-16 2021-04-30 北京金山云网络技术有限公司 Method and device for recovering messages in OpenStack system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120150969A1 (en) * 2010-12-10 2012-06-14 Microsoft Corporation Dynamically enabling user logging across distributed systems
CN107133111A (en) * 2017-04-27 2017-09-05 努比亚技术有限公司 A kind of message processing apparatus and method
CN107391269A (en) * 2016-03-28 2017-11-24 阿里巴巴集团控股有限公司 A kind of method and apparatus being used for by persistence queue processing message

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120150969A1 (en) * 2010-12-10 2012-06-14 Microsoft Corporation Dynamically enabling user logging across distributed systems
CN107391269A (en) * 2016-03-28 2017-11-24 阿里巴巴集团控股有限公司 A kind of method and apparatus being used for by persistence queue processing message
CN107133111A (en) * 2017-04-27 2017-09-05 努比亚技术有限公司 A kind of message processing apparatus and method

Also Published As

Publication number Publication date
CN108762944A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN105845124B (en) Audio processing method and device
EP3300407B1 (en) Method and device for processing verification code
CN104951335B (en) The processing method and processing device of application program installation kit
EP3171270A1 (en) Method and device for information push
CN104506649B (en) Notification message method for pushing and device
CN106534562B (en) File deletion method and device
CN106919629B (en) Method and device for realizing information screening in group chat
EP3125164A1 (en) Method and device for presenting ticket information
CN106372204A (en) Push message processing method and device
CN106454392A (en) Live broadcast processing method, device and terminal
EP3168755A1 (en) Method and device for adding font
CN105094904A (en) Application program installation method and device
CN104636453A (en) Illegal user data identification method and device
CN107491681B (en) Fingerprint information processing method and device
EP3089436A1 (en) Methods and devices for calling based on cloud card
CN106331328B (en) Information prompting method and device
CN105511739A (en) Message prompting method and device
CN108153488B (en) Data self-adding method and device
CN108762944B (en) Processing method, device, equipment and medium of business system
CN110213062B (en) Method and device for processing message
CN112632184A (en) Data processing method and device, electronic equipment and storage medium
EP3171326A1 (en) Contact managing method and apparatus, computer program and recording medium
CN106484259A (en) Input method, device and equipment
CN110502714B (en) Information detection method and device, electronic equipment and storage medium
US11600300B2 (en) Method and device for generating dynamic image

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