CN110009464B - Cross-time zone business processing method, server, computing device and storage medium - Google Patents

Cross-time zone business processing method, server, computing device and storage medium Download PDF

Info

Publication number
CN110009464B
CN110009464B CN201811406655.3A CN201811406655A CN110009464B CN 110009464 B CN110009464 B CN 110009464B CN 201811406655 A CN201811406655 A CN 201811406655A CN 110009464 B CN110009464 B CN 110009464B
Authority
CN
China
Prior art keywords
service
daytime
time zone
time
processing
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
CN201811406655.3A
Other languages
Chinese (zh)
Other versions
CN110009464A (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.)
ANT Financial Hang Zhou Network Technology Co Ltd
Original Assignee
ANT Financial Hang Zhou Network 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 ANT Financial Hang Zhou Network Technology Co Ltd filed Critical ANT Financial Hang Zhou Network Technology Co Ltd
Priority to CN201811406655.3A priority Critical patent/CN110009464B/en
Publication of CN110009464A publication Critical patent/CN110009464A/en
Application granted granted Critical
Publication of CN110009464B publication Critical patent/CN110009464B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes

Abstract

The specification provides a method for processing a cross-time zone service, a server, a computing device and a storage medium, wherein the method for processing the cross-time zone service comprises the following steps: receiving a daytime accounting request, acquiring a first time zone offset and a second time zone offset according to the daytime accounting request, acquiring the daytime starting time of a service initiating terminal, calculating the daytime starting time of a service receiving terminal according to the first time zone offset, the second time zone offset and the daytime starting time of the service initiating terminal, sending a first daytime processing request to a first service server associated with the service initiating terminal, and sending a second daytime processing request to a second service server associated with the service receiving terminal, wherein the second daytime request comprises the daytime starting time of the service receiving terminal, receiving an accounting result of the first daytime processing request sent by the first service server, and receiving an accounting result of the second daytime processing request which is sent by the second service server and is calculated according to the daytime starting time of the service receiving terminal.

Description

Cross-time zone business processing method, server, computing device and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method for processing a cross-time zone service, a server, a computing device, and a storage medium.
Background
In the process of globalization of business, financial business is widely distributed among a plurality of business terminals worldwide. Each business end may be distributed in different time zones; when the service user triggers the service, the time zone in which the service initiating terminal is located is different from the time zone in which the service receiving terminal is located, and one service relates to the service time of different time zones. After the end of a day of business, the bank needs to check accounts and cash, which is called day end processing. When day end processing is performed at multiple business ends across time zones, no suitable solution exists in the field at present.
Disclosure of Invention
In view of the foregoing, embodiments of the present application provide a method, a server, a computing device, and a storage medium for processing a cross-time zone service, so as to solve the technical defects existing in the prior art.
In one aspect, an embodiment of the present application discloses a method for processing a cross-time zone service, including:
receiving a daytime accounting request, and obtaining a first time zone offset of a time zone in which a service initiating terminal of a service to be accounting is located and a second time zone offset of a time zone in which a service receiving terminal of the service to be accounting is located according to the daytime accounting request;
acquiring the daytime starting time of the service initiation terminal, and calculating the daytime starting time of the service receiving terminal according to the first time zone offset, the second time zone offset and the daytime starting time of the service initiation terminal;
Sending a first daytime processing request to a first service server associated with the service initiation terminal, and sending a second daytime processing request to a second service server associated with the service reception terminal, wherein the second daytime processing request comprises the daytime starting time of the service reception terminal;
and receiving the accounting result of the first daytime processing request sent by the first service server, and receiving the accounting result of the second daytime processing request which is sent by the second service server and is calculated according to the daytime starting time of the service receiving end.
On the other hand, the embodiment of the application also provides a method for processing the cross-time zone service, which comprises the following steps:
transmitting daytime starting time of the service initiation terminal to a main server;
receiving a daytime processing request sent by a main server;
generating a daytime processing result according to the daytime processing request;
and sending the daytime processing result to a main server.
On the other hand, the embodiment of the application also provides a method for processing the cross-time zone service, which comprises the following steps:
receiving a daytime processing request sent by a main server, wherein the second daytime request comprises the daytime starting time of the service receiving end;
generating a daytime processing result according to the daytime processing request;
And sending the daytime processing result to a main server.
On the other hand, the embodiment of the application also provides a method for processing the cross-time zone service, which comprises the following steps:
receiving a daily final batch service processing request from a plurality of time zones;
dividing the service processing requests into first-level time zone groups according to the time zone in which each service processing request is located and a preset time zone grouping rule, wherein the first-level time zone groups form a first-level service processing request task queue to be processed;
determining a to-be-processed secondary service processing request task queue in each time zone group according to the time zone in which each service processing request in each time zone group is located in the primary service processing request task queue and the time zone sequence;
for the service processing request of each time zone in each secondary service processing request task queue, sequentially sending the service processing requests to a service server associated with the service according to time sequence;
and receiving an accounting result sent by the service server according to the service processing request.
In another aspect, an embodiment of the present application further provides a cross-time zone service processing server, including:
the system comprises a receiving accounting request module, a receiving accounting request module and a calculating module, wherein the receiving accounting request module is configured to receive a daytime accounting request, and obtain a first time zone offset of a time zone in which a service initiating terminal of a service to be accounting is located and a second time zone offset of a time zone in which a service receiving terminal of the service to be accounting is located according to the daytime accounting request;
A calculating time module configured to obtain a daytime starting time of the service initiation terminal, and calculate the daytime starting time of the service receiving terminal according to the first time zone offset, the second time zone offset and the daytime starting time of the service initiation terminal;
the first processing module is configured to send a first daytime processing request to a first service server associated with the service initiation terminal and send a second daytime processing request to a second service server associated with the service reception terminal, wherein the second daytime processing request comprises the daytime starting time of the service reception terminal;
and the receiving result module is configured to receive the accounting result of the first daytime processing request sent by the first service server and receive the accounting result of the second daytime processing request which is sent by the second service server and is calculated according to the daytime starting time of the service receiving end.
In another aspect, an embodiment of the present application further provides a cross-time zone service processing server, including:
the first sending module is configured to send the daytime starting time of the service initiation terminal to the main server;
the first receiving module is configured to receive a daytime processing request sent by the main server;
The second processing module is configured to generate a daytime processing result according to the daytime processing request;
and the second sending module is configured to send the daytime processing result to the main server.
In another aspect, an embodiment of the present application further provides a cross-time zone service processing server, including:
the second receiving module is configured to receive a daytime processing request sent by the main server, wherein the second daytime request comprises the daytime starting time of the service receiving end;
a third processing module configured to generate a daytime processing result according to the daytime processing request;
and the third sending module is configured to send the daytime processing result to the main server.
In another aspect, an embodiment of the present application further provides a cross-time zone service processing server, including:
a third receiving module configured to receive a day-end batch service processing request from a plurality of time zones;
the first queue module is configured to divide the service processing requests into first-level time zone groups according to the time zone in which each service processing request is located and a preset time zone grouping rule, wherein the first-level time zone groups form a first-level service processing request task queue to be processed;
The second queue module is configured to determine a to-be-processed second service processing request task queue in each time zone group according to the time zone in which each service processing request in each time zone group is located in the first service processing request task queue and the time zone sequence;
the fourth processing module is configured to send the service processing requests to the service servers associated with the services in sequence according to time sequence for the service processing requests of each time zone in each secondary service processing request task queue;
and the fourth receiving module is configured to receive the accounting result sent by the service server according to the service processing request.
In another aspect, the present application also provides a computer readable storage medium storing computer instructions that when executed by a processor implement the steps of the method for cross-time zone business processing.
The method for processing the time zone-crossing business comprises the steps of obtaining time zone offset of a business initiating terminal and a business receiving terminal by receiving a time zone accounting request, receiving time beginning time of the business initiating terminal, calculating the time beginning time of the business receiving terminal according to the first time zone offset, the second time zone offset and the time beginning time of the business initiating terminal, sending a first time zone processing request to a first business server associated with the business initiating terminal, and sending a second time zone processing request to a second business server associated with the business receiving terminal, wherein the second time zone request comprises the time beginning time of the business receiving terminal, receiving accounting results of the first time processing request sent by the first business server, and receiving accounting results of the second time processing request sent by the second business server according to the time beginning time of the business receiving terminal.
Drawings
FIG. 1 is a schematic diagram of a method for processing a cross-time zone service according to an embodiment of the present disclosure;
FIG. 2 is a flowchart of a method for processing a cross-time zone business according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a method for processing a cross-time zone business according to an embodiment of the present disclosure;
FIG. 4 is a flowchart of a method for processing a cross-time zone business according to an embodiment of the present disclosure;
FIG. 5 is a flowchart of a method for processing a cross-time zone business according to an embodiment of the present disclosure;
FIG. 6 is a flowchart of a method for processing a cross-time zone business according to an embodiment of the present disclosure;
FIG. 7 is a flowchart of a method for processing a cross-time zone business according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of a server according to an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is, however, susceptible of embodiment in many other forms than those described herein, and those of skill in the art will be able to make similar departures from the present disclosure as come within the scope of the invention and as that matter of descriptive matter without limitation to the specific embodiments disclosed herein.
The terminology used in the one or more embodiments of the specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the specification. As used in this specification, one or more embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that, although the terms first, second, etc. may be used in one or more embodiments of this specification to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first may also be referred to as a second, and similarly, a second may also be referred to as a first, without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
In one or more embodiments of the present disclosure, a method, a server, a computing device, and a storage medium for processing a cross-time zone service are provided, and are described in detail in the following embodiments.
Referring to fig. 1, an embodiment of the present disclosure provides a schematic structure of a cross-time zone service processing method. The cross time zone business processing methods include, but are not limited to, client 102, primary server 104, business server 106, business server 108.
The client 102 is communicatively connected to a main server 104, which is communicatively connected to a service server 106 and a service server 108.
The client 102 is configured to send a day accounting request to the host service.
The main server 104 is configured to perform corresponding calculation time zones according to the received daytime accounting request, and send a daytime processing request.
The service servers 106, 108 are configured to perform daytime processing according to the received daytime processing request, obtain a daytime processing result, and send the daytime processing result to the main server 104.
Referring to FIG. 2, one embodiment of the present disclosure provides a flow chart of a method for cross-time zone business processing, comprising steps 202 through 208.
Step 202: receiving a daytime accounting request, and obtaining a first time zone offset of a time zone in which a service initiating terminal of a service to be accounting is located and a second time zone offset of a time zone in which a service receiving terminal of the service to be accounting is located according to the daytime accounting request.
Step 204: acquiring the daytime starting time of the service initiating terminal, and calculating the daytime starting time of the service receiving terminal according to the first time zone offset, the second time zone offset and the daytime starting time of the service initiating terminal.
Step 206: and sending a first daytime processing request to a first service server associated with the service initiating terminal, and sending a second daytime processing request to a second service server associated with the service receiving terminal, wherein the second daytime processing request comprises the daytime starting time of the service receiving terminal.
Step 208: and receiving the accounting result of the first daytime processing request sent by the first service server, and receiving the accounting result of the second daytime processing request which is sent by the second service server and is calculated according to the daytime starting time of the service receiving end.
In a specific application scenario, the service initiation end of the service to be calculated may be a first company in the united states, the service receiving end of the service to be calculated may be a second company in the united states, a day start time of the first company may be 10:00, a first time zone offset of the first company may be 2 hours, a second time zone offset of the second company may be 15 hours, the time-span service processing method shown in fig. 2 may be implemented by the server S, the server S receives a day calculation request, obtains a day start time of the first company according to the day calculation request by 2 hours and a second time zone offset of the second company by 15 hours, obtains a day start time of the first company by 10:00, calculates a day start time of the second company to be 23:00 according to the first time zone offset of the first company, the second time zone offset of the first company and the day start time of the first company of 10:00, sends a day calculation request to the first server S of the second company, and the server S receives a day calculation request of the second service request of the second server to be able to send the second server.
In one or more embodiments of the present disclosure, the method may complete the daytime processing of the service ends in different time zones, fill the gap of the daytime processing in the cross time zone, have good prospective, and facilitate the daytime processing of the service ends in different time zones for service users in different time zones.
In one or more embodiments of the present disclosure, the time zone offset may be an offset between a reference time of a time zone in which the service end is located and a coordinated universal time.
In a specific application scenario, the service initiation end of the accounting service may be a first company in the united states, the service receiving end of the service to be accounting may be a second company in the united states, the day start time of the first company may be UTC time 10:00, the first time zone offset of the first company may be 2 hours, the second time zone offset of the second company may be 15 hours, the time-span service processing method may be implemented by the main server S, the main server S receives a day accounting request, obtains the day start time UTC time 10:00 of the first company according to the day accounting request, obtains the day start time UTC of the first company from the first time zone offset of the first company and the second time zone offset of the second company from the second time zone offset of the second company, calculates the day start time of the second company to be UTC time 23:00 according to the day start time of the first time offset of the first time zone, sends a first day processing request to the second server, and sends a second request to the second server, and the second server receives the first request and the second request is associated with the day start time of the second time UTC of the first company.
In one or more embodiments of the present disclosure, the method uses world reference time to calculate time zone offset, has good adaptability worldwide, completes daytime processing of business ends in different time zones, fills up the gap of daytime processing in cross time zones, has good prospective, performs daytime processing of business ends in different time zones, and is convenient for business users in different time zones to use.
Referring to FIG. 3, one embodiment of the present disclosure provides a flow chart of a method for cross-time zone business processing, comprising steps 302 through 308.
Step 302: and sending the daytime starting time of the service initiating terminal to the main server.
Step 304: and receiving a daytime processing request sent by the main server.
Step 306: and generating a daytime processing result according to the daytime processing request.
Step 308: and sending the daytime processing result to a main server.
In a specific application scenario, the service initiation end may be an a corporation, the main server may be a main server S, and the cross-time zone service processing method shown in fig. 3 may be implemented by a service server B, where the service server B sends a daytime start time 10:00 of the service initiation end a corporation to the main server S, the service server B receives a daytime processing request sent by the main server S, generates a daytime processing result according to the daytime processing request, and the service server B sends the daytime processing result to the main server S.
In one or more embodiments of the present disclosure, the method may send the daytime start time of the initiating terminal to the main server and perform daytime processing, where the sending the daytime start time of the initiating terminal to the main server may prepare the main server for calculating the daytime start time of the service receiving terminal, and the daytime processing method facilitates the main server to complete a further daytime accounting function.
Referring to FIG. 4, one embodiment of the present disclosure provides a flow chart of a method for cross-time zone business processing, comprising steps 402 through 406.
Step 402: and receiving a daytime processing request sent by the main server, wherein the second daytime request comprises the daytime starting time of the service receiving end.
Step 404: and generating a daytime processing result according to the daytime processing request.
Step 406: and sending the daytime processing result to a main server.
In a specific application scenario, the service receiving end may be the B corporation, the main server may be the main server S, and the cross-time zone service processing method shown in fig. 4 may be implemented by the service server B, where the second daytime start time may be 23:00, the service server B receives the daytime processing request sent by the main server S, the second daytime request may be the daytime start time 23:00 of the B corporation, generates the daytime processing result according to the daytime processing request, and the service server B sends the daytime processing result to the main server S.
In one or more embodiments of the present disclosure, the method may receive a daytime processing request with a daytime start time and perform a daytime process, where the daytime processing request with a daytime start time may facilitate a service server to perform a time zone crossing service process according to the daytime start time, and the daytime process may facilitate a main server to perform a further daytime accounting function.
Fig. 5 is a flowchart of a method for processing a cross-time zone service according to an embodiment of the present disclosure in a specific application scenario, where, as shown in the drawing, the main server may be a main server S, the first service server may be a service server B1, the second service server may be a service server B2, the service server B1 may be associated with a company a, the service server B2 may be associated with a company B, a day start time of the company a may be 10:00, a first time zone offset of the company a may be 2 hours, and a second time zone offset of the company B may be 15 hours, including steps 502 to 514.
Step 502: the main server S receives a daytime accounting request, and obtains a first time zone offset of a time zone in which a service initiating terminal A company of the service to be accounting is located and a second time zone offset of a time zone in which a service receiving terminal B company of the service to be accounting is located for 15 hours according to the daytime accounting request.
Step 504: the service server B1 transmits the daytime start time of the a company to the main server S.
Step 506: the service server S obtains the daytime starting time 10:00 of the A company, and calculates the daytime starting time of the service receiving end to be 23:00 according to the first time zone offset of the A company being 2 hours, the second time zone offset of the B company being 15 hours and the daytime starting time 10:00 of the A company.
Step 508: the main server S transmits the first inter-day processing request to the service server B1 associated with the a company.
Step 510: the main server S sends a second daytime processing request to the business server B2 associated with the company B, said second daytime request comprising the daytime start time 23:00 of the company B.
Step 512: the service server B1 transmits the accounting result of the first inter-day processing request to the main server S.
Step 514: the service server B2 transmits the accounting result of the second daytime processing request to the main server S.
In one or more embodiments of the present disclosure, the method may complete the daytime processing of the service ends in different time zones, fill the gap of the daytime processing in the cross time zone, have good prospective, and facilitate the daytime processing of the service ends in different time zones for service users in different time zones.
Referring to FIG. 6, one embodiment of the present disclosure provides a flow chart of a method for cross-time zone business processing, comprising steps 602 through 610.
Step 602: a day end batch business process request is received from a plurality of time zones.
Step 604: dividing the service processing requests into first-level time zone groups according to the time zone in which each service processing request is located and a preset time zone grouping rule, wherein the first-level time zone groups form a to-be-processed first-level service processing request task queue.
Step 606: and determining a to-be-processed secondary service processing request task queue in each time zone group according to the time zone in which each service processing request in each time zone group is located in the primary service processing request task queue and the time zone sequence.
Step 608: and for the service processing request of each time zone in each secondary service processing request task queue, sequentially sending the service processing requests to a service server associated with the service according to the time sequence.
Step 610: and receiving an accounting result sent by the service server according to the service processing request.
In a specific application scenario, the receiving the daily final batch service processing request from multiple time zones may be receiving the daily final batch service processing request from the time zone of A, B, C, D, the preset time zone grouping rule may be A, B in the same group, C, D in the same group, the priority of the group where A, B in the first-level service processing request task queue may be higher, the cross-time zone service processing method shown in fig. 6 may be implemented by the main server S, the main server S receives the daily final batch service processing request from the time zone of A, B, C, D, determines that the priority of the group where A, B is located is higher according to the first-level service processing request task queue, determines that the time zone of the to-be-processed second-level service processing request task queue a is higher than the time zone B according to the time zone sequence, sequentially sends the service processing request to the service servers in the second-level service processing request task queue according to the time sequence, and receives the verification result sent by the service servers according to the service processing request.
In one or more embodiments of the present disclosure, the method may perform daily end processing for a plurality of time zones in batch, and facilitate batch management, macro-control, and complete batch service processing for a plurality of time zones when a daily end processing service is very complex.
In one or more embodiments of the present specification, the time zone grouping rule may be to divide adjacent time zones into the same time zone group.
In a specific application scenario, the receiving the daily final batch service processing request from multiple time zones may be receiving the daily final batch service processing request from the time zone of A, B, C, D, the preset time zone grouping rule may be A, B and C, D in the same group, where A, B time zones are similar, C, D time zones are similar, the priority of the group in the first-level service processing request task queue A, B is higher, the cross-time zone service processing method may be implemented by the main server S, the main server S receives the daily final batch service processing request from the time zone of A, B, C, D, determines that the priority of the group in A, B is higher according to the first-level service processing request task queue, determines that the to-be-processed second-level service processing request task queue a is higher than the B time zone according to the time zone sequence, sequentially sends the service processing request to the service server in the second-level service processing request task queue according to the time sequence, and receives the accounting result sent by the service server according to the service processing request.
In one or more embodiments of the present disclosure, the method may perform daily end processing on a plurality of time zones in batches and divide adjacent time zones into a group, so that a manager may conveniently perform batch management and macro regulation when the daily end processing service is very complex, and complete batch service processing in a plurality of time zones, and the time zones are divided into a group that may allow the service in the adjacent time zones to be processed in the same batch, thereby improving the working efficiency.
In one or more embodiments of the present description, service processing requests in each packet in a primary service processing request task queue are processed in the same processing period.
In a specific application scenario, the receiving the daily final batch service processing request from multiple time zones may be receiving the daily final batch service processing request from the time zone of A, B, C, D, the preset time zone grouping rule may be A, B and C, D are in the same group, the priority of the group of A, B in the task queue of the first-level service processing request is higher, the cross-time zone service processing method is implemented by the main server S, the main server S receives the daily final batch service processing request from the time zone of A, B, C, D, determines that the priority of the group of A, B is higher according to the task queue of the first-level service processing request, sends the service processing request from the time zone of A, B at 10:00-11:00, and sends the service processing request from the time zone of C, D at 11:00-12:00, i.e. preferentially processes the service processing request from the time zone of A, B. Determining that a time zone A of a to-be-processed secondary service processing request task queue is higher than a time zone B, sequentially sending service processing requests of the time zone A in the secondary service processing request task queue to a service server associated with a service according to a time sequence, and receiving an accounting result sent by the service server according to the service processing requests.
In one or more embodiments of the present disclosure, the method may perform daily terminal processing on a plurality of time zones in batch, and facilitate a manager to perform batch management and macro regulation when a daily terminal processing service is very complex, so as to complete batch service processing on a plurality of time zones, and perform service processing on time zones in the same group in the same time period, thereby improving efficiency and fully utilizing server resources.
Fig. 7 is a schematic diagram of a specific application scenario of the cross-time zone service processing method provided in the embodiment of the present disclosure, where, as shown in the drawing, the receiving of the final daily batch service processing request from multiple time zones may be receiving the final daily batch service processing request from the time zone of A, B, C, D, the preset time zone grouping rule may be A, B in the same group, C, D in the same group, the first and second companies may be in the a time zone, the main server may be the main server S, the first server may be the service server B1 associated with the first company, and the second server may be the service server B2 associated with the second company, including steps 702 to 714.
Step 702: the main server S receives the day-end batch service processing request from A, B, C, D.
Step 704: according to the time zone of A, B, C, D, according to the preset time zone grouping rule, the first-level service processing request task queues formed according to the time zone grouping are in the same group, A, B are in the same group, C, D are in the same group, and the grouping where A, B is located is processed preferentially.
Step 706: and determining a secondary service processing request task queue to be processed according to the time zone in which A, B in the primary service processing request task queue is located and the time zone sequence, wherein A is firstly a time zone and B is a time zone sequence.
Step 708: and for the service processing requests of the A time zone in the task queue of the secondary service processing requests, sequentially sending the service processing requests to a service server B1 associated with the A company according to the time sequence.
Step 710: and for the service processing requests of the A time zone in the task queue of the secondary service processing requests, sequentially sending the service processing requests to a service server B2 associated with the company B according to the time sequence.
Step 712: and receiving the accounting result sent by the service server B1 according to the service processing request.
Step 714: and receiving the accounting result sent by the service server B2 according to the service processing request.
In one or more embodiments of the present disclosure, the method may perform daily end processing for a plurality of time zones in batch, and facilitate batch management, macro-control, and complete batch service processing for a plurality of time zones when a daily end processing service is very complex.
Referring to fig. 8, an embodiment of the present disclosure provides a schematic structural diagram of a cross-time zone service processing server, including:
the receiving accounting request module 802 is configured to receive a daytime accounting request, and obtain, according to the daytime accounting request, a first time zone offset of a time zone in which a service initiation end of a service to be accounting is located and a second time zone offset of a time zone in which a service reception end of the service to be accounting is located.
A calculating time module 804, configured to obtain the daytime start time of the service initiation terminal, and calculate the daytime start time of the service receiving terminal according to the first time zone offset, the second time zone offset, and the daytime start time of the service initiation terminal.
A first processing module 806, configured to send a first daytime processing request to a first service server associated with the service initiation end, and send a second daytime processing request to a second service server associated with the service reception end, where the second daytime request includes a daytime start time of the service reception end.
And a receiving result module 808, configured to receive the accounting result of the first daytime processing request sent by the first service server, and receive the accounting result of the second daytime processing request sent by the second service server, where the accounting result is calculated according to the daytime starting time of the service receiving end.
In one or more embodiments of the present disclosure, the server may complete the daytime processing of the service ends in different time zones, so as to fill in the gap of the daytime processing in the cross-time zone, and have good prospective, and perform the daytime processing on the service ends in different time zones, thereby facilitating the use of service users in different time zones.
Referring to fig. 9, an embodiment of the present disclosure provides a schematic structural diagram of a cross-time zone service processing server, including:
a first sending module 902 configured to send a daytime start time of the service initiation to the main server.
The first receiving module 904 is configured to receive a daytime processing request sent by the main server.
A second processing module 906 configured to generate a daytime processing result according to the daytime processing request.
A second sending module 908 is configured to send the daytime processing result to the main server.
In one or more embodiments of the present disclosure, the server may send the daytime start time of the initiating terminal to the main server and perform daytime processing, where the sending of the daytime start time of the initiating terminal to the main server may prepare the main server for calculating the daytime start time of the service receiving terminal, and the daytime processing method facilitates the main server to complete a further daytime accounting function.
Referring to fig. 10, an embodiment of the present disclosure provides a schematic structural diagram of a cross-time zone service processing server, including:
a second receiving module 1002, configured to receive a daytime processing request sent by the main server, where the second daytime request includes a daytime start time of the service receiving end.
And a third processing module 1004 configured to generate a daytime processing result according to the daytime processing request.
And a third sending module 1006 configured to send the daytime processing result to the main server.
In one or more embodiments of the present disclosure, the server may receive a daytime processing request with a daytime start time and perform a daytime process, where the daytime processing request with a daytime start time may facilitate the service server to perform a time zone crossing service process according to the daytime start time, and the daytime process may facilitate the main server to perform a further daytime accounting function.
Referring to fig. 11, an embodiment of the present disclosure provides a schematic structural diagram of a cross-time zone service processing server, including:
a third receiving module 1102 is configured to receive a final batch service processing request from a plurality of time zones.
The first queue module 1104 is configured to divide the service processing requests into first-level time zone groups according to the time zone in which each service processing request is located and a preset time zone grouping rule, where the first-level time zone groups form a first-level service processing request task queue to be processed.
And a second queue module 1106, configured to determine, according to the time zone in which each service processing request in each time zone group is located in the first service processing request task queue, a second service processing request task queue to be processed in each time zone group according to the time zone sequence.
A fourth processing module 1108 is configured to send, for each service processing request in each time zone in each secondary service processing request task queue, the service processing requests to the service servers associated with the service in sequence of time.
And a fourth receiving module 1110 configured to receive an accounting result sent by the service server according to the service processing request.
In one or more embodiments of the present disclosure, the server may perform daily end processing for a plurality of time zones in batch, so that when a daily end processing service is very complex, a manager may perform batch management, macro regulation, and complete batch service processing for a plurality of time zones.
An embodiment of the present disclosure also provides a computing device including a memory, a processor, and computer instructions stored on the memory and executable on the processor, which when executed by the processor, implement the steps of the cross-time zone business processing method.
An embodiment of the present application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the steps of a method of cross-time zone business processing as described above.
The above is a schematic of a computer-readable storage medium of the present embodiment. It should be noted that, the technical solution of the storage medium and the technical solution of the above-mentioned cross-time zone service processing method belong to the same conception, and the details of the technical solution of the storage medium, which are not described in detail, can be referred to the description of the technical solution of the above-mentioned cross-time zone service processing method.
The computer instructions include computer program code that may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
It should be noted that, for the sake of simplicity of description, the foregoing embodiments of the method are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously according to the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all necessary for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are merely helpful in explaining the present application. Alternative embodiments are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and the practical application, to thereby enable others skilled in the art to best understand and utilize the application. This application is to be limited only by the claims and the full scope and equivalents thereof.

Claims (16)

1. The cross-time zone business processing method is applied to a main server side and is characterized by comprising the following steps:
receiving a daytime accounting request, and obtaining a first time zone offset of a time zone in which a service initiating terminal of a service to be accounting is located and a second time zone offset of a time zone in which a service receiving terminal of the service to be accounting is located according to the daytime accounting request;
acquiring the daytime starting time of the service initiation terminal, and determining the daytime starting time of the service receiving terminal according to the first time zone offset, the second time zone offset and the daytime starting time of the service initiation terminal;
sending a first daytime processing request to a first service server associated with the service initiating terminal, and sending a second daytime processing request to a second service server associated with the service receiving terminal, wherein the second daytime processing request comprises the daytime starting time of the service receiving terminal;
and receiving the accounting result of the first daytime processing request sent by the first service server, and receiving the accounting result of the second daytime processing request which is sent by the second service server and is calculated according to the daytime starting time of the service receiving end.
2. The method of claim 1 wherein the time zone offset comprises an offset between a reference time of a time zone in which the business end is located and a coordinated universal time.
3. A method for processing a cross-time zone service, applied to a first service server side, comprising the following steps:
transmitting the daytime starting time of the service initiation terminal to a main server, wherein the daytime starting time of the service initiation terminal is used by the main server for calculating the daytime starting time of a service receiving terminal, and the main server calculates the daytime starting time of the service receiving terminal according to a first time zone offset of a time zone in which the service initiation terminal is positioned, a second time zone offset of the time zone in which the service receiving terminal is positioned and the daytime starting time of the service initiation terminal;
receiving a daytime processing request sent by a main server;
generating a daytime processing result according to the daytime processing request;
and sending the daytime processing result to a main server.
4. A method for processing a cross-time zone service, applied to a second service server side, comprising the steps of:
receiving a second daytime processing request sent by a main server, wherein the second daytime processing request comprises the daytime starting time of a service receiving end, and the daytime starting time of the service receiving end is calculated by the main server according to a first time zone offset of a time zone in which a service initiating end is positioned, a second time zone offset of the time zone in which the service receiving end is positioned and the daytime starting time of the service initiating end;
Generating a daytime processing result according to the daytime processing request;
and sending the daytime processing result to a main server.
5. The cross-time zone business processing method is applied to a main server side and is characterized by comprising the following steps:
receiving a daily final batch service processing request from a plurality of time zones;
acquiring the daytime starting time of a service initiating terminal, and calculating the daytime starting time of a service receiving terminal according to the first time zone offset of the time zone in which the service initiating terminal is positioned, the second time zone offset of the time zone in which the service receiving terminal is positioned and the daytime starting time of the service initiating terminal;
dividing the service processing requests into first-level time zone groups according to the time zone in which each service processing request is located and a preset time zone grouping rule, wherein the first-level time zone groups form a first-level service processing request task queue to be processed;
determining a to-be-processed secondary service processing request task queue in each time zone group according to the time zone in which each service processing request in each time zone group is located in the primary service processing request task queue and the time zone sequence;
for the service processing request of each time zone in each secondary service processing request task queue, sequentially sending the service processing requests to a service server associated with the service according to time sequence;
And receiving an accounting result sent by the service server according to the service processing request.
6. The method of claim 5, wherein the time zone grouping rules include dividing adjacent time zones into the same time zone group.
7. The method of claim 5, wherein service processing requests for the first level time zone packet are processed in the same processing period.
8. A server, comprising:
the system comprises a receiving accounting request module, a receiving accounting request module and a calculating module, wherein the receiving accounting request module is configured to receive a daytime accounting request, and obtain a first time zone offset of a time zone in which a service initiating terminal of a service to be accounting is located and a second time zone offset of a time zone in which a service receiving terminal of the service to be accounting is located according to the daytime accounting request;
a calculating time module configured to obtain a daytime starting time of the service initiation terminal, and calculate the daytime starting time of the service receiving terminal according to the first time zone offset, the second time zone offset and the daytime starting time of the service initiation terminal;
the first processing module is configured to send a first daytime processing request to a first service server associated with the service initiation terminal and send a second daytime processing request to a second service server associated with the service reception terminal, wherein the second daytime processing request comprises the daytime starting time of the service reception terminal;
And the receiving result module is configured to receive the accounting result of the first daytime processing request sent by the first service server and receive the accounting result of the second daytime processing request which is sent by the second service server and is calculated according to the daytime starting time of the service receiving end.
9. The server of claim 8, wherein the time zone offset includes an offset between a reference time of a time zone in which the business end is located and a coordinated universal time.
10. A server, comprising:
the system comprises a first sending module, a second sending module and a first receiving module, wherein the first sending module is configured to send the daytime starting time of a service initiating terminal to a main server, the daytime starting time of the service initiating terminal is used by the main server for calculating the daytime starting time of a service receiving terminal, and the main server calculates the daytime starting time of the service receiving terminal according to a first time zone offset of a time zone in which the service initiating terminal is located, a second time zone offset of the time zone in which the service receiving terminal is located and the daytime starting time of the service initiating terminal;
the first receiving module is configured to receive a daytime processing request sent by the main server;
the second processing module is configured to generate a daytime processing result according to the daytime processing request;
And the second sending module is configured to send the daytime processing result to the main server.
11. A server, comprising:
the second receiving module is configured to receive a second daytime processing request sent by the main server, wherein the second daytime processing request comprises the daytime starting time of the service receiving end, and the daytime starting time of the service receiving end is calculated by the main server according to the first time zone offset of the time zone in which the service initiating end is positioned, the second time zone offset of the time zone in which the service receiving end is positioned and the daytime starting time of the service initiating end;
a third processing module configured to generate a daytime processing result according to the daytime processing request;
and the third sending module is configured to send the daytime processing result to the main server.
12. A server, comprising:
a third receiving module configured to receive a day-end batch service processing request from a plurality of time zones;
the calculating time module is configured to acquire the daytime starting time of the service initiating terminal, and calculate the daytime starting time of the service receiving terminal according to the first time zone offset of the time zone in which the service initiating terminal is positioned, the second time zone offset of the time zone in which the service receiving terminal is positioned and the daytime starting time of the service initiating terminal;
The first queue module is configured to divide the service processing requests into first-level time zone groups according to the time zone in which each service processing request is located and a preset time zone grouping rule, wherein the first-level time zone groups form a first-level service processing request task queue to be processed;
the second queue module is configured to determine a to-be-processed second service processing request task queue in each time zone group according to the time zone in which each service processing request in each time zone group is located in the first service processing request task queue and the time zone sequence;
the fourth processing module is configured to send the service processing requests to the service servers associated with the services in sequence according to time sequence for the service processing requests of each time zone in each secondary service processing request task queue;
and the fourth receiving module is configured to receive the accounting result sent by the service server according to the service processing request.
13. The server of claim 12, wherein the time zone grouping rules include dividing adjacent time zones into the same time zone group.
14. The server of claim 12, wherein the traffic processing requests in each of the first level time zone packets are processed in the same processing period.
15. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, which when executed by the processor implement the steps of the method of any of claims 1-7.
16. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the method of any one of claims 1-7.
CN201811406655.3A 2018-11-23 2018-11-23 Cross-time zone business processing method, server, computing device and storage medium Active CN110009464B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811406655.3A CN110009464B (en) 2018-11-23 2018-11-23 Cross-time zone business processing method, server, computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811406655.3A CN110009464B (en) 2018-11-23 2018-11-23 Cross-time zone business processing method, server, computing device and storage medium

Publications (2)

Publication Number Publication Date
CN110009464A CN110009464A (en) 2019-07-12
CN110009464B true CN110009464B (en) 2023-05-12

Family

ID=67164993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811406655.3A Active CN110009464B (en) 2018-11-23 2018-11-23 Cross-time zone business processing method, server, computing device and storage medium

Country Status (1)

Country Link
CN (1) CN110009464B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001039000A1 (en) * 1999-11-22 2001-05-31 Speedera Networks, Inc. A user device and system for traffic management and content distribution over a world wide area network
US7069325B1 (en) * 2001-12-21 2006-06-27 Cisco Technology, Inc. Method and apparatus for handling requests in a network
US7716077B1 (en) * 1999-11-22 2010-05-11 Accenture Global Services Gmbh Scheduling and planning maintenance and service in a network-based supply chain environment
WO2015106632A1 (en) * 2014-01-15 2015-07-23 北京奇虎科技有限公司 Service object processing method and system based on third-party platform
CN107395384A (en) * 2016-05-17 2017-11-24 阿里巴巴集团控股有限公司 Versions of data comparison method and device between across time zone website

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040167834A1 (en) * 2003-02-12 2004-08-26 Juha-Pekka Koskinen Method for processing accounting requests in a communications system
US7730193B2 (en) * 2007-04-03 2010-06-01 Computer Associates Think, Inc. Automated time zone based grouping
US9252979B2 (en) * 2011-10-01 2016-02-02 Oracle International Corporation Transparent configuration of virtual hosts supporting multiple time zones in an enterprise platform
US20140149560A1 (en) * 2012-11-26 2014-05-29 Microsoft Corporation Dynamic time zone management of computing devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001039000A1 (en) * 1999-11-22 2001-05-31 Speedera Networks, Inc. A user device and system for traffic management and content distribution over a world wide area network
US7716077B1 (en) * 1999-11-22 2010-05-11 Accenture Global Services Gmbh Scheduling and planning maintenance and service in a network-based supply chain environment
US7069325B1 (en) * 2001-12-21 2006-06-27 Cisco Technology, Inc. Method and apparatus for handling requests in a network
WO2015106632A1 (en) * 2014-01-15 2015-07-23 北京奇虎科技有限公司 Service object processing method and system based on third-party platform
CN107395384A (en) * 2016-05-17 2017-11-24 阿里巴巴集团控股有限公司 Versions of data comparison method and device between across time zone website

Also Published As

Publication number Publication date
CN110009464A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN108881448B (en) API request processing method and device
CN109558989B (en) Queuing time prediction method, queuing time prediction device, queuing time prediction equipment and computer readable storage medium
CN111954173B (en) Method, device, server and computer readable storage medium for sending short message
CN106603262A (en) Method and system of distribution of customer service modes
CN107360117B (en) Data processing method, device and system
CN108228363A (en) A kind of message method and device
CN109213758B (en) Data access method, device, equipment and computer readable storage medium
CN106470204A (en) User identification method based on request behavior characteristicss, device, equipment and system
CN107786628A (en) Business numbering distribution method, device, computer equipment and storage medium
CN111092814B (en) Service handling request message distribution method and equipment
CN108229133B (en) Service operation method and device and service permission obtaining method and device
CN110009464B (en) Cross-time zone business processing method, server, computing device and storage medium
CN112596985A (en) IT asset detection method, device, equipment and medium
CN109582829B (en) Processing method, device, equipment and readable storage medium
CN105787791B (en) Service request processing method and device
CN106845926B (en) Distributed data stream processing method and system for third-party payment supervision system
CN111311150B (en) Distribution task grouping method, platform, electronic equipment and storage medium
CN110198294A (en) Security attack detection method and device
CN111061697B (en) Log data processing method and device, electronic equipment and storage medium
CN111144091B (en) Customer service member determination method and device and group member identification determination method
CN110008320B (en) Method and device for answering user questions
CN109753599B (en) Method and device for recommending service
CN111311102A (en) Resource ratio adjusting method, device, equipment and computer readable storage medium
CN107992521B (en) Method and device for processing service request of user
CN117196812A (en) Service processing method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201012

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

Effective date of registration: 20201012

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230420

Address after: 801-10, Section B, 8th floor, 556 Xixi Road, Xihu District, Hangzhou City, Zhejiang Province

Applicant after: Ant financial (Hangzhou) Network Technology Co.,Ltd.

Address before: 27 Hospital Road, George Town, Grand Cayman ky1-9008

Applicant before: Innovative advanced technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant