E-commerce data processing method and device, electronic equipment and computer readable medium
By receiving e-commerce data processing requests, obtaining business models, business scenarios and merchant identifiers, and calling process processors and merchant resource loaders, it solves the problem of inefficient joint debugging of traditional interfaces and achieves efficient business processing and multi-mode support.
Patent Information
- Application Number
- CN202310337172.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
When the traditional medical and health industry connects to new channel systems, it leads to repeated interface joint debugging and testing, which makes the production and research team inefficient and high development costs.
By receiving e-commerce data processing requests, the business model, business scenario and merchant identification are obtained, the process processor is called to execute the process processing logic, and the merchant resource loader is updated to obtain merchant resource data, thereby avoiding repeated interface joint debugging and improving efficiency.
It achieves zero development cost for access to in-store service agencies, improves business processing efficiency, reduces development costs, and supports high scalability of multiple operating modes, multiple business scenarios, and multiple data sources.
Smart Images

Figure CN118732995A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical and health service technology, and in particular to an e-commerce data processing method, device, electronic device and computer-readable medium. Background Art
[0002] The traditional medical and health industry is actively integrating into the Internet era. The top traffic platforms provide consumers with convenient functions such as online product purchases and service reservations by connecting systems, data, and services with private medical examination institutions, dental clinics, public hospitals, and other service institutions. In order to expand to the store service supply chain, the platform will continue to connect with other platforms, public hospitals, and private institutions. These external system interface connection methods and data formats are different. The access to new external channel systems will bring about system development, and repeated interface joint debugging and testing will make the production and research team inefficient. Summary of the invention
[0003] In view of this, the embodiments of the present application provide an e-commerce data processing method, device, electronic device and computer-readable medium, which can solve the problem of repeated interface debugging and testing caused by the access of the existing new channel system to the traffic platform, which makes the production and research team inefficient.
[0004] To achieve the above objective, according to one aspect of an embodiment of the present application, a method for processing e-commerce data is provided, including:
[0005] Receive e-commerce data processing requests and obtain corresponding business model identifiers, business scenario identifiers, and merchant identifiers;
[0006] According to the business model identifier and the business scenario identifier, the corresponding process processor is called, and then the corresponding delegation class is executed to extract the corresponding process processing logic based on the preset dimension;
[0007] According to the merchant ID, determine the corresponding merchant resource loader, and update the merchant resource loader according to the process processing logic;
[0008] Call the updated merchant resource loader to obtain the corresponding merchant resource data and display it.
[0009] Optionally, extracting corresponding process processing logic based on preset dimensions includes:
[0010] Based on the merchant information reading dimension and the interface input and output parameter assembly dimension, the corresponding process processing logic in the process processor is extracted.
[0011] Optionally, calling the updated merchant resource loader to obtain corresponding merchant resource data includes:
[0012] Get merchant configuration information;
[0013] Call the updated merchant resource loader to obtain the corresponding merchant resource data according to the merchant configuration information.
[0014] Optionally, obtaining corresponding merchant resource data according to merchant configuration information includes:
[0015] Get the basic information and interface information in the merchant configuration information;
[0016] Determine the docking method based on basic information;
[0017] Determine the calling method based on the interface information;
[0018] Call the corresponding interface according to the docking method and calling method to obtain the corresponding merchant resource data.
[0019] Optionally, the corresponding interface is called according to the docking mode and calling mode to obtain the corresponding merchant resource data, including:
[0020] Determine the corresponding parent interface based on the docking method and calling method;
[0021] Determine the storage method and parent interface of merchant resource data, and determine the corresponding child interface;
[0022] Call the sub-interface to obtain the corresponding merchant resource data.
[0023] Optionally, after calling the updated merchant resource loader to obtain and display the corresponding merchant resource data, the method further includes:
[0024] Obtaining user operation data on merchant resource data;
[0025] Generate and submit reservation information based on the operation data.
[0026] Optionally, after the reservation information is generated and submitted, the e-commerce data processing method includes:
[0027] In response to a failure to submit the reservation information, generating a delayed verification reservation status task;
[0028] Send the delayed verification appointment status task to the task pool;
[0029] In response to the current time reaching the execution time corresponding to the delayed verification appointment status task, the delayed verification appointment status task in the task pool is executed, and task execution result data is returned;
[0030] According to the task execution result data, update the appointment status corresponding to the appointment information.
[0031] In addition, the present application also provides an e-commerce data processing device, including:
[0032] A receiving unit is configured to receive an e-commerce data processing request and obtain a corresponding business model identifier, a business scenario identifier, and a merchant identifier;
[0033] The extraction unit is configured to call the corresponding process processor according to the business model identifier and the business scenario identifier, and then execute the corresponding delegation class to extract the corresponding process processing logic based on the preset dimension;
[0034] An updating unit is configured to determine a corresponding merchant resource loader according to the merchant identifier, and update the merchant resource loader according to the process processing logic;
[0035] The display unit is configured to call the updated merchant resource loader to obtain and display the corresponding merchant resource data.
[0036] Optionally, the extraction unit is further configured to:
[0037] Based on the merchant information reading dimension and the interface input and output parameter assembly dimension, the corresponding process processing logic in the process processor is extracted.
[0038] Optionally, the display unit is further configured to:
[0039] Get merchant configuration information;
[0040] Call the updated merchant resource loader to obtain the corresponding merchant resource data according to the merchant configuration information.
[0041] Optionally, the display unit is further configured to:
[0042] Get the basic information and interface information in the merchant configuration information;
[0043] Determine the docking method based on basic information;
[0044] Determine the calling method based on the interface information;
[0045] Call the corresponding interface according to the docking method and calling method to obtain the corresponding merchant resource data.
[0046] Optionally, the display unit is further configured to:
[0047] Determine the corresponding parent interface based on the docking method and calling method;
[0048] Determine the storage method and parent interface of merchant resource data, and determine the corresponding child interface;
[0049] Call the sub-interface to obtain the corresponding merchant resource data.
[0050] Optionally, the e-commerce data processing device further includes a reservation information generating unit configured to:
[0051] Obtaining user operation data on merchant resource data;
[0052] Generate and submit reservation information based on the operation data.
[0053] Optionally, the reservation information generating unit is further configured to:
[0054] In response to a failure to submit the reservation information, generating a delayed verification reservation status task;
[0055] Send the delayed verification appointment status task to the task pool;
[0056] In response to the current time reaching the execution time corresponding to the delayed verification appointment status task, the delayed verification appointment status task in the task pool is executed, and task execution result data is returned;
[0057] According to the task execution result data, update the appointment status corresponding to the appointment information.
[0058] In addition, the present application also provides an e-commerce data processing electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the one or more processors implement the e-commerce data processing method as described above.
[0059] In addition, the present application also provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the e-commerce data processing method as described above is implemented.
[0060] One embodiment of the above invention has the following advantages or beneficial effects: the application receives an e-commerce data processing request to obtain the corresponding business model identifier, business scenario identifier and merchant identifier; according to the business model identifier and business scenario identifier, the corresponding process processor is called, and then the corresponding delegation class is executed to extract the corresponding process processing logic based on the preset dimension; according to the merchant identifier, the corresponding merchant resource loader is determined, and the merchant resource loader is updated according to the process processing logic; the updated merchant resource loader is called to obtain the corresponding merchant resource data and display it. It can avoid repeated interface joint debugging, improve the efficiency of the test production and research team, reduce the development cost during business expansion, and improve business processing efficiency.
[0061] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The accompanying drawings are used to better understand the present application and do not constitute an improper limitation on the present application.
[0063] Figure 1It is a schematic diagram of the main process of the e-commerce data processing method provided according to one embodiment of the present application;
[0064] Figure 2 It is a schematic diagram of the main process of the e-commerce data processing method provided according to one embodiment of the present application;
[0065] Figure 3 This is a schematic diagram of an application scenario of an e-commerce data processing method provided according to an embodiment of the present application;
[0066] Figure 4 is a schematic diagram of main units of an e-commerce data processing device according to an embodiment of the present application;
[0067] Figure 5 is an exemplary system architecture diagram to which the embodiments of the present application can be applied;
[0068] Figure 6 It is a structural diagram of a computer system of a terminal device or server suitable for implementing an embodiment of the present application. DETAILED DESCRIPTION
[0069] The following is an explanation of the exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description. It should be noted that in the technical solution of the present disclosure, the collection, collection, update, analysis, processing, use, transmission, storage and other aspects of user personal information involved are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Take necessary measures for user personal information to prevent illegal access to user personal information data and maintain user personal information security, network security and national security.
[0070] Figure 1 is a schematic diagram of the main process of the e-commerce data processing method provided according to an embodiment of the present application, such as Figure 1 As shown, the e-commerce data processing method includes:
[0071] Step S101, receiving an e-commerce data processing request, and obtaining a corresponding business model identifier, business scenario identifier, and merchant identifier.
[0072] In this embodiment, the execution subject of the e-commerce data processing method (for example, it can be a server) can receive the e-commerce data processing request through a wired connection or a wireless connection. Obtain the business model identifier carried in the e-commerce data processing request (used to characterize the business model corresponding to the business to be processed, and the business model can include, for example, self-operated, POP, and co-built), obtain the business scenario identifier (used to characterize the business scenario corresponding to the business to be processed, and the business scenario can include, for example, physical examination, dentistry, and medical beauty), and obtain the merchant identifier (used to characterize the merchant corresponding to the business to be processed, such as a physical examination merchant, a dentistry merchant, a medical beauty merchant, etc.). Specifically, the e-commerce data can include physical examination merchant resource data, oral treatment merchant resource data, or medical beauty merchant resource data, etc.
[0073] Step S102, according to the business model identifier and the business scenario identifier, the corresponding process processor is called, and then the corresponding delegation class is executed to extract the corresponding process processing logic based on the preset dimension.
[0074] The corresponding process processor can be determined by the business model identifier and the business scenario identifier. Specifically, different process processors can be defined according to different functional interfaces. For example, the query package process processor interface can be connected to the process processor parent interface, and the corresponding ones can be the query package process HTTP processor, the query package process JSF processor, and the query package process local method processor. The query scheduling process processor interface can also be connected to the process processor parent interface, and the corresponding ones can be the query scheduling process HTTP processor, the query scheduling process JSF processor, and the query scheduling process local method processor. The process processor parent interface can also be connected to the submission appointment process processor interface, and the corresponding ones can be the submission appointment process HTTP processor, the submission appointment process JSF processor, and the submission appointment process local method processor. Extract the process steps of different business scenarios, and define these extracted steps as process processor methods. For example, the query package process processor method may include calling the pre-processing method, including but not limited to interface current limiting and obtaining cache return; the query package process processor method may also include calling the processing method, including input parameter assembly, token assembly, and return value assembly; the query package process processor method may also include calling the post-processing method, including but not limited to cache deletion and refresh. The query scheduling process processor method may include calling a pre-processing method, including but not limited to interface current limiting and obtaining cache returns; the query scheduling process processor method may also include calling a processing method, including input parameter assembly, token assembly, and return value assembly; the query scheduling process processor method may also include calling a post-processing method, including but not limited to cache deletion and refresh; the query scheduling process processor method may also include a cache refresh method, which is provided to other processors for use. The submission appointment process processor method may include calling a pre-processing method, including but not limited to interface current limiting and obtaining cache returns; and the reservation process processor method may also include calling a processing method, including input parameter assembly, token assembly, and return value assembly; the submission appointment process processor method may also include calling a post-processing method, including but not limited to cache deletion and refresh.
[0075] Specifically, the corresponding process processing logic is extracted based on the preset dimensions, including:
[0076] Based on the merchant information reading dimension and the interface input and output parameter assembly dimension, the corresponding process processing logic in the process processor is extracted.
[0077] For example, define the interface and interface data format involved in online reservation for in-store service. Refer to design patterns such as building block thinking, strategy pattern, and proxy pattern, and abstract the process processor based on the same functional interface under different business models (self-operated, POP, co-construction) and business scenarios (physical examination, dentistry, medical beauty). And extract the process processing logic corresponding to the external merchant information reading part and the interface input and output parameter assembly part involved in the process corresponding to the process processor into the merchant resource loader.
[0078] Step S103, determining the corresponding merchant resource loader according to the merchant identifier, and updating the merchant resource loader according to the process processing logic.
[0079] Determine a target location in the merchant resource loader corresponding to the process processing logic, and insert the process processing logic into the target location to update the merchant resource loader.
[0080] Wherein, determining the target position in the merchant loader corresponding to the process processing logic includes: obtaining a prefix and a suffix in the process processing logic, respectively calculating the similarity between the prefix and the suffix and the logic in the merchant resource loader, and determining the target position in the merchant resource loader according to the calculated similarity. Specifically, the logical position in the merchant resource loader that has the highest similarity to the prefix or suffix is determined as the target position.
[0081] Step S104, calling the updated merchant resource loader to obtain corresponding merchant resource data and display it.
[0082] In the embodiment of the present application, the merchant resource loader can be obtained by definition. Define the loader parent interface according to the merchant data obtained as needed, then define the subclass loader interface according to the merchant data storage method, and define the loader implementation class for different operation modes. For example, the subclass loader corresponding to the merchant parent class loader may include a database merchant loader, a distributed configuration center merchant loader, a cache merchant loader, etc. The corresponding loader implementation class can be an abstract implementation class of the merchant loader public method, which can correspond to the default self-operated mode database merchant loader, the default POP mode database merchant loader, the merchant XX custom loader, and the default self-operated mode distributed distribution center merchant loader. The database merchant loader method may include a method for obtaining merchant basic information, including but not limited to merchant code, name, and docking method; the database merchant loader method may also include obtaining configured merchant attributes according to enumeration values, including interface URLs and parameters such as querying packages and submitting appointments; the database merchant loader method may also include assembling request headers; the database merchant loader method may also include assembling request input parameters; the database merchant loader method may also include encapsulating return values. The merchant loader method of the distributed configuration center may include a method for obtaining basic merchant information, including but not limited to merchant code, name, and docking method; the merchant loader method of the distributed configuration center may also include obtaining configured merchant attributes according to enumeration values, including but not limited to interface URLs and parameters such as query data and submitting appointments; the merchant loader method of the distributed configuration center may also include assembling request headers; the merchant loader method of the distributed configuration center may also include assembling request input parameters; the merchant loader method of the distributed configuration center may also include encapsulating return values. The process processor and the merchant resource loader are assembled in a building block manner. For different process processors, each step method that requires merchant configuration data is implemented by calling the merchant resource loader.
[0083] The system configures basic information and interface information of external merchants. The docking method in the basic information (for example, it may include API docking, co-construction docking, background docking, etc.) will affect the interface calling method (for example, it may include HTTP calling method, JSF calling method, local method calling method, etc.). The interface information will be configured differently according to the different calling methods (for example, interface URL: https: / / xxx; interface URL: JSF interface + method name; interface URL: no configuration required).
[0084] The corresponding docking mode and interface calling mode are determined according to the updated merchant resource loader, and the corresponding interface is called according to the docking mode and interface calling mode to obtain the corresponding merchant data.
[0085] Specifically, after calling the updated merchant resource loader to obtain the corresponding merchant resource data and display it, the method also includes: obtaining the user's operation data on the merchant resource data (for example, the operation data can be, for example, the user's selection data for the merchant resource data, such as which merchant resource data the user has selected); generating and submitting the reservation information based on the operation data. The merchant information selected by the user can be determined based on the operation data, and the reservation information is generated and submitted based on the merchant information selected by the user. Specifically, it can be submitted to the merchant terminal corresponding to the merchant information, and the embodiment of the present application does not specifically limit the type of terminal submitted.
[0086] Specifically, after the appointment information is generated and submitted, the method includes: in response to a failure to submit the appointment information, generating a delayed verification appointment status task; sending the delayed verification appointment status task to the task pool; in response to the current time reaching the execution time corresponding to the delayed verification appointment status task, executing the delayed verification appointment status task in the task pool, and returning the task execution result data; and updating the appointment status corresponding to the appointment information according to the task execution result data.
[0087] Due to the uncertainty and instability of interface calls, it is far from enough to only implement synchronous interface calls. When the interface call timeouts, network fluctuations, etc. occur, the platform is not sure whether the system of the external docking organization can process the request normally, so it is necessary to do a data reverse check. The premise of the backup plan is that the problem data reverse check time needs to be configured in the merchant information. For example, when the user submits an appointment in the appointment center, the execution subject calls the appointment center to verify the appointment parameters, updates the appointment order information, updates the appointment status to appointment in progress, sends a delayed verification appointment order status task, and queries the merchant side appointment status after N hours, and returns the queried merchant side appointment status. If the merchant side appointment status is failed, the appointment order status is modified to appointment failure, and an alarm message is generated and an alarm is issued. If the merchant side appointment status is successful, the appointment order status is modified to appointment success, a verification code (appointment code) is generated, and a text message is sent to the user. When the reservation center calls the merchant interface to submit a reservation, the external supplier receives the submitted reservation order, calls the corresponding merchant to process the reservation business, and then the merchant modifies the reservation order status. When it is detected that the reservation order status is successful or failed, the external supplier synchronizes the reservation order status to the trading platform.
[0088] This embodiment receives an e-commerce data processing request to obtain the corresponding business model identifier, business scenario identifier and merchant identifier; calls the corresponding process processor according to the business model identifier and business scenario identifier, and then executes the corresponding delegation class to extract the corresponding process processing logic based on the preset dimension; determines the corresponding merchant resource loader according to the merchant identifier, and updates the merchant resource loader according to the process processing logic; calls the updated merchant resource loader to obtain and display the corresponding merchant resource data. This can avoid repeated interface joint debugging, improve the efficiency of the test production and research team, reduce the development cost during business expansion, and improve business processing efficiency.
[0089] Figure 2 FIG. 1 is a schematic diagram of the main flow of an e-commerce data processing method provided according to an embodiment of the present application. Figure 2 As shown, the e-commerce data processing method includes:
[0090] Step S201, receiving an e-commerce data processing request, and obtaining the corresponding business model identifier, business scenario identifier, and merchant identifier.
[0091] Step S202, according to the business model identifier and the business scenario identifier, the corresponding process processor is called, and then the corresponding delegation class is executed to extract the corresponding process processing logic based on the preset dimension.
[0092] According to different operation modes and business scenarios, a delegation class is created to realize the process orchestration and reuse of the step methods of the process processor. Among them, the delegation class may include a self-operated mode delegation class, and the corresponding logic may include data legal verification, calling the process processor-pre-processing method, calling the process processor-calling processing method, and calling the process processor-post-processing method. The delegation class may also include: a POP mode delegation class, and the corresponding logic may include data legal verification, querying store data, calling the process processor-pre-processing method, and calling the process processor-calling processing method. The delegation class may also include a co-construction mode delegation class, and the corresponding logic may include data legal verification, querying other interfaces, calling the process processor-pre-processing method, and calling the process processor-calling processing method. Among them, the logic in the process processor may include request pre-processing (input parameter verification-input parameter assembly-current limiting processing), call processing (request call-output parameter encapsulation), and call post-processing (cache refresh-asynchronous message). The logic in the merchant resource loader may include request URL-request current limiting value-data encryption-asynchronous verification time-input parameter encapsulation-output parameter encapsulation, and then stored in the data source configuration center and the data source database.
[0093] Step S203, determining the corresponding merchant resource loader according to the merchant identifier, and updating the merchant resource loader according to the process processing logic.
[0094] Step S204, obtaining merchant configuration information.
[0095] The merchant configuration information may include the merchant's basic information and interface information. The docking method in the basic information will affect the interface calling method, and the interface information will have different URL configurations depending on the calling method.
[0096] Step S205, calling the updated merchant resource loader to obtain corresponding merchant resource data according to the merchant configuration information.
[0097] Specifically, obtaining corresponding merchant resource data according to merchant configuration information includes: obtaining basic information and interface information in the merchant configuration information; determining a docking method according to the basic information; determining a calling method according to the interface information; and calling a corresponding interface according to the docking method and the calling method to obtain corresponding merchant resource data.
[0098] For example, the docking method may include API docking, co-construction docking, background docking, etc., and the embodiment of the present application does not specifically limit the docking method. The calling method may include HTTP calling method, JSF calling method, local method calling method, etc., and the embodiment of the present application does not specifically limit the calling method.
[0099] Specifically, the corresponding interface is called according to the docking method and the calling method to obtain the corresponding merchant resource data, including: determining the corresponding parent interface according to the docking method and the calling method; determining the storage method and parent interface of the merchant resource data, and determining the corresponding child interface; calling the child interface to obtain the corresponding merchant resource data.
[0100] Specifically, the corresponding sub-interface list can be determined according to the parent interface, and then the sub-interface corresponding to the merchant resource data to be obtained can be obtained according to the storage method. Then the execution subject can call the corresponding sub-interface to obtain the corresponding merchant resource data.
[0101] In the embodiment of the present application, the merchant resource loader can be obtained by definition. The loader parent interface is defined according to the merchant data obtained as needed, and then the subclass loader interface (that is, it can be a sub-interface) is defined according to the merchant data storage method, and the loader implementation class is defined for different operation modes. For example, the subclass loader (that is, it can be a sub-interface) corresponding to the merchant parent class loader (that is, it can be a parent interface) can include a database merchant loader, a distributed configuration center merchant loader, a cache merchant loader, etc. The corresponding loader implementation class can be a merchant loader public method abstract implementation class, which can correspond to the default self-operated mode database merchant loader, the default POP mode database merchant loader, the merchant XX custom loader, and the default self-operated mode distributed distribution center merchant loader. The database merchant loader method can include a method for obtaining merchant basic information, including but not limited to merchant code, name, and docking method; the database merchant loader method can also include obtaining configured merchant attributes according to enumeration values, including interface URLs and parameters such as querying packages and submitting appointments; the database merchant loader method can also include assembling request headers; the database merchant loader method can also include assembling request input parameters; the database merchant loader method can also include encapsulating return values. The merchant loader method of the distributed configuration center may include a method for obtaining merchant basic information, including but not limited to merchant code, name, and docking method; the merchant loader method of the distributed configuration center may also include obtaining configured merchant attributes according to enumeration values, including but not limited to interface URLs and parameters such as query data and submitting appointments; the merchant loader method of the distributed configuration center may also include assembling request headers; the merchant loader method of the distributed configuration center may also include assembling request input parameters; the merchant loader method of the distributed configuration center may also include encapsulating return values. The process processor and the merchant resource loader are assembled in a building block manner. For different process processors, each step method that requires merchant configuration data is implemented by calling the merchant resource loader. The embodiment of the present application can achieve zero development cost access to the store service agency and realize the online appointment function. Supports high scalability of multiple operating modes, multiple business scenarios, multiple calling methods, and multiple data sources. The system docks with external agencies without going online, supports visual configuration, and supports merchant self-testing to support high scalability of multiple operating modes, multiple business scenarios, multiple calling methods, and multiple data sources. Supports zero development and visual configuration access to store service agencies. Supports merchant self-testing and going online.
[0102] Figure 3It is a schematic diagram of the application scenario of the e-commerce data processing method provided according to an embodiment of the present application. In the embodiment of the present application, it is possible to componentize the viewing of packages, componentize the viewing of schedules, componentize the submission of appointments, and componentize the cancellation of appointments. If there is a personalized implementation, execute the personalized implementation, otherwise execute the default implementation. Physical examination services may include viewing packages-viewing schedules-submitting appointments-modifying appointments-cancelling appointments. Dental services may include viewing packages-viewing schedules-submitting appointments-modifying appointments-cancelling appointments. The default implementation of services may include viewing packages-viewing schedules-submitting appointments-modifying appointments-cancelling appointments. The e-commerce data processing method of the embodiment of the present application is applied to the configurable, modular, extensible, and multi-mode in-store service product online appointment interface docking scenario under the platform model. Such as Figure 3 As shown, when the execution subject receives an e-commerce data processing request, it can call an external system to call the corresponding process processor according to the business model identifier, business scenario identifier (for example, used to characterize business scenarios such as physical examination business, oral business, default implementation business, etc.) and merchant identifier corresponding to the e-commerce data processing request, so as to extract the corresponding process processing logic (such as request URL, request flow limit value, data encryption key, asynchronous verification time, input parameter encapsulation, output parameter encapsulation and other logic) based on the external merchant information dimension and the interface input and output parameter assembly dimension to update the merchant resource loader. Then, according to the updated merchant resource loader, the corresponding merchant resource data is obtained and displayed to provide it to the user for business. In addition, the obtained merchant resource data can also be stored in the data source DUCC and the data source DB. It can achieve zero development cost access to store service merchant organizations and realize online appointment functions.
[0103] Figure 4 Schematic diagram of the main units of the e-commerce data processing device according to an embodiment of the present application. Figure 4 As shown, the e-commerce data processing device 400 includes a receiving unit 401, an extracting unit 402, an updating unit 403 and a displaying unit 404.
[0104] The receiving unit 401 is configured to receive an e-commerce data processing request and obtain a corresponding business model identifier, a business scenario identifier and a merchant identifier.
[0105] The extraction unit 402 is configured to call the corresponding process processor according to the business model identifier and the business scenario identifier, and then execute the corresponding delegation class to extract the corresponding process processing logic based on the preset dimension.
[0106] The updating unit 403 is configured to determine the corresponding merchant resource loader according to the merchant identifier, and update the merchant resource loader according to the process processing logic.
[0107] The display unit 404 is configured to call the updated merchant resource loader to obtain and display the corresponding merchant resource data.
[0108] In some embodiments, the extraction unit 402 is further configured to extract the corresponding process processing logic in the process processor based on the merchant information reading dimension and the interface input and output parameter assembly dimension.
[0109] In some embodiments, the display unit 404 is further configured to: obtain merchant configuration information; and call the updated merchant resource loader to obtain corresponding merchant resource data according to the merchant configuration information.
[0110] In some embodiments, the display unit 404 is further configured to: obtain basic information and interface information in the merchant configuration information; determine the docking method based on the basic information; determine the calling method based on the interface information; call the corresponding interface according to the docking method and the calling method to obtain the corresponding merchant resource data.
[0111] In some embodiments, the display unit 404 is further configured to: determine the corresponding parent interface according to the docking method and the calling method; determine the storage method and parent interface of the merchant resource data, and determine the corresponding child interface; call the child interface to obtain the corresponding merchant resource data.
[0112] In some embodiments, the e-commerce data processing device further includes Figure 4 The reservation information generating unit not shown in the figure is configured to: obtain the user's operation data on the merchant resource data; generate and submit the reservation information according to the operation data.
[0113] In some embodiments, the reservation information generation unit is further configured to: in response to a failure to submit the reservation information, generate a delayed verification reservation status task; send the delayed verification reservation status task to the task pool; in response to the current time reaching the execution time corresponding to the delayed verification reservation status task, execute the delayed verification reservation status task in the task pool and return the task execution result data; and update the reservation status corresponding to the reservation information according to the task execution result data.
[0114] It should be noted that the e-commerce data processing method and the e-commerce data processing device of the present application have a corresponding relationship in terms of specific implementation content, so the repeated content will not be described again.
[0115] Figure 5 An exemplary system architecture 500 is shown to which the e-commerce data processing method or e-commerce data processing device according to the embodiment of the present application can be applied.
[0116] like Figure 5As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0117] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0118] The terminal devices 501, 502, 503 may be various electronic devices having a service processing screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0119] Server 505 can be a server that provides various services, such as a background management server that provides support for e-commerce data processing requests submitted by users using terminal devices 501, 502, and 503 (only as an example). The background management server can receive e-commerce data processing requests, obtain the corresponding business model identifier, business scenario identifier, and merchant identifier; call the corresponding process processor according to the business model identifier and business scenario identifier, and then execute the corresponding delegation class to extract the corresponding process processing logic based on the preset dimension; determine the corresponding merchant resource loader according to the merchant identifier, and update the merchant resource loader according to the process processing logic; call the updated merchant resource loader to obtain the corresponding merchant resource data and display it. It can avoid repeated interface joint debugging, improve the efficiency of the test and research team, reduce the development cost during business expansion, and improve business processing efficiency.
[0120] It should be noted that the e-commerce data processing method provided in the embodiment of the present application is generally executed by the server 505 , and accordingly, the e-commerce data processing device is generally set in the server 505 .
[0121] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0122] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present application. Figure 6The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0123] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0124] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0125] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present application are executed.
[0126] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. Computer-readable storage media may include, for example, but are not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0127] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0128] The units involved in the embodiments described in the present application may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a receiving unit, an extracting unit, an updating unit, and a displaying unit. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0129] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device receives an e-commerce data processing request, obtains the corresponding business model identifier, business scenario identifier and merchant identifier; calls the corresponding process processor according to the business model identifier and business scenario identifier, and then executes the corresponding delegation class to extract the corresponding process processing logic based on the preset dimension; determines the corresponding merchant resource loader according to the merchant identifier, and updates the merchant resource loader according to the process processing logic; calls the updated merchant resource loader to obtain the corresponding merchant resource data and display it.
[0130] According to the technical solution of the embodiment of the present application, repeated interface debugging can be avoided, the efficiency of the testing and research team can be improved, the development cost during business expansion can be reduced, and the business processing efficiency can be improved.
[0131] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. An e-commerce data processing method, characterized in that: include: Receive e-commerce data processing requests and obtain corresponding business model identifiers, business scenario identifiers, and merchant identifiers; According to the business model identifier and the business scenario identifier, a corresponding process processor is called, and then a corresponding delegation class is executed to extract a corresponding process processing logic based on a preset dimension; Determine a corresponding merchant resource loader according to the merchant identifier, and update the merchant resource loader according to the process processing logic; The updated merchant resource loader is called to obtain and display the corresponding merchant resource data.
2. The method according to claim 1, characterized in that The extracting corresponding process processing logic based on the preset dimension includes: Based on the merchant information reading dimension and the interface input and output parameter assembly dimension, the corresponding process processing logic in the process processor is extracted.
3. The method according to claim 1, characterized in that The calling of the updated merchant resource loader to obtain corresponding merchant resource data includes: Get merchant configuration information; The updated merchant resource loader is called to obtain corresponding merchant resource data according to the merchant configuration information.
4. The method according to claim 3, characterized in that The acquiring corresponding merchant resource data according to the merchant configuration information includes: Obtain basic information and interface information from the merchant configuration information; Determine the docking method according to the basic information; Determine the calling method according to the interface information; The corresponding interface is called according to the docking method and the calling method to obtain the corresponding merchant resource data.
5. The method according to claim 4, characterized in that The calling of the corresponding interface according to the docking mode and the calling mode to obtain the corresponding merchant resource data includes: Determine a corresponding parent interface according to the docking method and the calling method; Determine the storage method of the merchant resource data and the parent interface, and determine the corresponding child interface; The sub-interface is called to obtain corresponding merchant resource data.
6. The method according to claim 1, characterized in that After calling the updated merchant resource loader to obtain and display corresponding merchant resource data, the method further includes: Acquire the user's operation data on the merchant resource data; According to the operation data, reservation information is generated and submitted.
7. The method according to claim 4, characterized in that After the reservation information is generated and submitted, the method includes: In response to failure to submit the reservation information, generating a delayed verification reservation status task; Sending the delayed verification appointment status task to the task pool; In response to the current time reaching the execution time corresponding to the delay verification appointment status task, executing the delay verification appointment status task in the task pool, and returning task execution result data; The reservation status corresponding to the reservation information is updated according to the task execution result data.
8. An e-commerce data processing device, characterized in that: include: A receiving unit is configured to receive an e-commerce data processing request and obtain a corresponding business model identifier, a business scenario identifier, and a merchant identifier; An extraction unit is configured to call a corresponding process processor according to the business model identifier and the business scenario identifier, and then execute a corresponding delegation class to extract a corresponding process processing logic based on a preset dimension; An updating unit, configured to determine a corresponding merchant resource loader according to the merchant identifier, and update the merchant resource loader according to the process processing logic; The display unit is configured to call the updated merchant resource loader to obtain and display corresponding merchant resource data.
9. The device according to claim 8, characterized in that The extraction unit is further configured to: Based on the merchant information reading dimension and the interface input and output parameter assembly dimension, the corresponding process processing logic in the process processor is extracted.
10. The device according to claim 8, characterized in that The display unit is further configured to: Get merchant configuration information; The updated merchant resource loader is called to obtain corresponding merchant resource data according to the merchant configuration information.
11. An electronic device for processing e-commerce data, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
12. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
