CN109408116B - Service identifier acquisition method, device, equipment and storage medium - Google Patents

Service identifier acquisition method, device, equipment and storage medium Download PDF

Info

Publication number
CN109408116B
CN109408116B CN201811278222.4A CN201811278222A CN109408116B CN 109408116 B CN109408116 B CN 109408116B CN 201811278222 A CN201811278222 A CN 201811278222A CN 109408116 B CN109408116 B CN 109408116B
Authority
CN
China
Prior art keywords
service
module
identification value
service identification
client
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
CN201811278222.4A
Other languages
Chinese (zh)
Other versions
CN109408116A (en
Inventor
闫琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201811278222.4A priority Critical patent/CN109408116B/en
Publication of CN109408116A publication Critical patent/CN109408116A/en
Application granted granted Critical
Publication of CN109408116B publication Critical patent/CN109408116B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the disclosure discloses a method, a device, equipment and a storage medium for acquiring a service identifier, wherein the method comprises the following steps: receiving a service identification value acquisition request sent by a platform interface; the service identification value acquisition request is triggered and generated by a service module of the client; acquiring a service identification value matched with a service module initiating the service identification value acquisition request; and feeding back the service identification value to the client, wherein the service identification value is used for transmitting the service identification value to a public function module when the service module calls the public function module in the client for use. The technical scheme of the embodiment of the disclosure can optimize the acquisition mode of the service identification value in the application software platform, thereby improving the development performance and the user experience of the application software platform.

Description

Service identifier acquisition method, device, equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computer software application, and in particular, to a method, an apparatus, a device and a storage medium for acquiring a service identifier.
Background
Existing application software will typically aggregate the types of services for a number of different platforms based on one platform. For example, two functions of a video viewing column and news information under an APP (Application) belong to services of other software platforms, the services of the two other platforms can be published based on the platform of the APP, but belong to different service logics, and are supported by different service servers, and service program modules configured in a client are different.
When the application software platform supports different services, the application software platform can provide some common function modules, such as functions of sharing forwarding or collection, and the like, and information links of a certain service are forwarded to a microblog or a WeChat friend circle, and the like for sharing. Since the services have different contents, information to be expressed when each service uses the common function module is also different. For example, when the sharing and forwarding module provides the information to be forwarded to the matched service server, the service server needs to identify which service the information to be forwarded specifically belongs to, so as to determine the forwarding parameter corresponding to the service, regenerate the display information of the corresponding forwarding link, and push the display information to the target server for sharing. In the prior art, in order to enable a service server to identify a service type, an identification value corresponding to a service needs to be written in a common function program module, so that when a certain service calls the common function module, the service can be identified according to the service identification value, and corresponding information is acquired and provided to a platform server for service differentiation processing.
In the prior art, service identification values are written into a common function program module in advance for calling various services, and when a service is newly added to an application software platform or each service identification value is changed, the common function program module of the application software platform needs to be updated, so that a new software version of a client needs to be released.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device, equipment and a storage medium for acquiring a service identifier, which are used for optimizing the acquisition mode of the service identifier value in an application software platform, so that the development performance and the user experience of the application software platform are improved.
In a first aspect, an embodiment of the present disclosure provides a method for acquiring a service identifier, which is applied to a platform server, and includes:
receiving a service identification value acquisition request sent by a platform interface; the service identification value acquisition request is triggered and generated by a service module of the client;
acquiring a service identification value matched with a service module initiating the service identification value acquisition request;
and feeding back the service identification value to the client, wherein the service identification value is used for transmitting the service identification value to a public function module when the service module calls the public function module in the client for use.
Optionally, the acquiring a service identifier value matched with the service module initiating the service identifier value acquisition request includes:
determining the identifier of the service module as an initiator or determining the service type matched with the service module according to the service identifier value acquisition request;
and determining the service identification value according to the identification of the service module or the service type.
Optionally, after the feeding back the service identifier value to the client, the method further includes:
receiving a public function processing request sent by a public function module in the client; wherein the common function processing request includes the service identification value;
and processing the public function processing request according to the configuration information of the service module corresponding to the service identification value.
Optionally, if the common function module is a forwarding sharing module and the common function processing request is a forwarding sharing request, processing the forwarding sharing request according to the configuration information of the service module corresponding to the service identifier value includes:
requesting a service server matched with the service module to acquire information to be forwarded according to the configuration information of the service module corresponding to the service identification value;
generating target forwarding information according to the information to be forwarded and the configuration information; and the target forwarding information is used for pushing to a target forwarding server for sharing.
In a second aspect, an embodiment of the present disclosure further provides a method for acquiring a service identifier, which is applied to a client, and includes:
detecting a trigger action executed by a user on a service list interface provided by a client, and determining a service module triggered by the user according to the trigger action;
sending a service identification value acquisition request sent by the service module through a platform interface to a platform server;
receiving a service identification value requested to be fed back by the platform server aiming at the service identification value;
storing the service identification value locally;
when detecting the triggering action executed by the user on the public function module in the service module, providing the service identification value to the public function module through a public function module interface;
and executing the public function matched with the service module according to the service identification value through the public function module.
Optionally, executing, by the common function module according to the service identifier value, a common function matched with the service module, includes:
acquiring a public function processing request generated by the public function module according to the service identification value;
and sending the public function processing request to the platform server to request the platform server to process the public function processing request according to the configuration information of the service module corresponding to the service identification value.
Optionally, the common function module is a forwarding sharing module, and the common function processing request is a forwarding sharing request.
In a third aspect, an embodiment of the present disclosure further provides a service identifier obtaining apparatus, configured in a platform server, including:
an identification value obtaining request receiving module, configured to receive a service identification value obtaining request sent by a platform interface; the service identification value acquisition request is triggered and generated by a service module of the client;
a service identification value obtaining module, configured to obtain a service identification value matched with a service module that initiates the service identification value obtaining request;
and the service identification value feedback module is used for feeding back the service identification value to the client, wherein the service identification value is used for transmitting the service identification value to a public function module in the client for use when the service module calls the public function module.
Optionally, the service identifier value obtaining module includes: a service module information determining unit, configured to determine, according to the service identifier value acquisition request, an identifier of a service module serving as an initiator or a service type matched with the service module; and the service identification value determining unit is used for determining the service identification value according to the identification of the service module or the service type.
Optionally, the apparatus further comprises: a public function processing request receiving module, configured to receive a public function processing request sent by a public function module in the client; wherein the common function processing request includes the service identification value; and the public function processing request processing module is used for processing the public function processing request according to the configuration information of the service module corresponding to the service identification value.
Optionally, if the common function module is a forwarding and sharing module and the common function processing request is a forwarding and sharing request, the common function processing request processing module is specifically configured to request a service server matched with a service module to acquire information to be forwarded according to configuration information of the service module corresponding to the service identifier value; generating target forwarding information according to the information to be forwarded and the configuration information; and the target forwarding information is used for pushing to a target forwarding server for sharing.
In a fourth aspect, an embodiment of the present disclosure further provides a service identifier obtaining apparatus, configured at a client, including:
the service module determining module is used for detecting a triggering action executed by a user on a service list interface provided by a client and determining a service module triggered by the user according to the triggering action;
the identification value acquisition request sending module is used for sending the service identification value acquisition request sent by the service module through a platform interface to a platform server;
a service identification value receiving module, configured to receive a service identification value requested to be fed back by the platform server for the service identification value;
the service identification value storage module is used for locally storing the service identification value;
the service identification value providing module is used for providing the service identification value to the public function module through a public function module interface when detecting the triggering action of the user on the public function module in the service module;
and the public function execution module is used for executing the public function matched with the service module according to the service identification value through the public function module.
Optionally, the common function execution module includes: a public function processing request unit, configured to acquire a public function processing request generated by the public function module according to the service identifier value; and the public function processing request sending unit is used for sending the public function processing request to the platform server so as to request the platform server to process the public function processing request according to the configuration information of the service module corresponding to the service identification value.
Optionally, the common function module is a forwarding sharing module, and the common function processing request is a forwarding sharing request.
In a fifth aspect, an embodiment of the present disclosure further provides a server, where the server includes:
one or more processors;
storage means 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 service identifier obtaining method according to any of the first aspect.
In a sixth aspect, this disclosed embodiment further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the service identifier obtaining method in any of the first aspects.
In a seventh aspect, an embodiment of the present disclosure further provides a client, where the client includes:
one or more processors;
storage means 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 service identity acquisition method according to any of the second aspects.
In an eighth aspect, an embodiment of the present disclosure further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the service identifier obtaining method in any of the second aspects.
The embodiment of the disclosure determines a service module triggered by a user by detecting a triggering action executed by the user on a service list interface provided by the client, and then sends a service identification value acquisition request sent by the service module through a platform interface to a platform server, and the platform server acquires a matched service identification value and feeds the matched service identification value back to the client for storage. When the client detects the triggering action of the user on the common function module in the service module, the service identification value is provided for the common function module through the common function module interface, so that the common function matched with the service module is executed according to the service identification value, the problem that the existing application software needs to frequently update the new software version of the client due to the service identification value is solved, the acquisition mode of the service identification value in the application software platform is optimized, and the development performance and the user experience of the application software platform are improved.
Drawings
Fig. 1 is a flowchart of a service identifier obtaining method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a service identifier obtaining method provided in the second embodiment of the present disclosure;
fig. 3 is a flowchart of a service identifier obtaining method provided in the third embodiment of the present disclosure;
fig. 4 is a schematic diagram of a service identifier obtaining apparatus according to a fourth embodiment of the present disclosure;
fig. 5 is a schematic diagram of a service identifier obtaining apparatus according to a fifth embodiment of the present disclosure;
fig. 6 is a schematic hardware structure diagram of a server according to a sixth embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure.
It is also noted that, for the sake of convenience in description, only some but not all of the matters related to the present disclosure are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a service identifier obtaining method according to an embodiment of the present disclosure, where this embodiment is applicable to a case of flexibly obtaining a service identifier, and the method may be executed by a service identifier obtaining device, where the device may be implemented by software and/or hardware, and may be generally integrated in a platform server and used in cooperation with a client for installing corresponding platform software. Accordingly, as shown in fig. 1, the method comprises the following operations:
s110, receiving a service identification value acquisition request sent by a platform interface; the service identification value acquisition request is triggered and generated by a service module of the client.
The platform interface may be an application program interface of the relevant application software provided to the client. The service identifier value obtaining request may be used to instruct the platform server to obtain a service identifier value corresponding to the service module. The platform server may be a background server corresponding to the application software platform. The service identification value may be a value or field for identifying the service type, for example, the service identification value corresponding to the news information service may be 15.
In the embodiment of the present disclosure, when a user uses a client to enter a content interface of a certain service from a platform list interface, a service module corresponding to the service is triggered. After the service module operates, a service identification value acquisition request can be sent to the platform server through the platform interface so as to request the platform server to provide a service identification value corresponding to the service.
S120, acquiring a service identification value matched with the service module initiating the service identification value acquisition request.
Correspondingly, after receiving the service identification value acquisition request sent by the platform interface, the platform server can determine the service identification value matched with the service module initiating the service identification value acquisition request according to the service identification value acquisition request.
S130, feeding back the service identification value to the client, wherein the service identification value is used for transmitting the service identification value to a public function module in the client for use when the service module calls the public function module.
The common function module may be a program module that is provided by the application software platform for various service types and can be shared for use, such as a forwarding function, a collection function, a approval function, a comment function, and the like.
Further, the platform server may feed back the obtained service identification value to the client, so that the service module transmits the service identification value to the common function module for use when calling the common function module in the client. Therefore, the client does not need to write the identification value corresponding to the service in the common function module, but dynamically and flexibly determines the identification value corresponding to the service through the platform server, so that the problem of updating the new software version of the client caused by newly added services or the change of the identification value of each service is avoided.
According to the method and the device, the platform server receives the service identification value acquisition request sent by the platform interface, acquires the matched service identification value and feeds the matched service identification value back to the client for storage, so that the problem that the existing application software needs to update the new software version of the client frequently due to the service identification value is solved, the acquisition mode of the service identification value in the application software platform is optimized, and the development performance and the user experience of the application software platform are improved.
Example two
Fig. 2 is a flowchart of a service identifier obtaining method provided in the second embodiment of the present disclosure, which is embodied on the basis of the above embodiments, and in this embodiment, a specific implementation manner of obtaining a service identifier value matched with a service module that initiates the service identifier value obtaining request and a specific operation after the service identifier value is fed back to the client are given. Correspondingly, as shown in fig. 2, the method of the present embodiment may include:
s210, receiving a service identification value acquisition request sent by a platform interface; the service identification value acquisition request is triggered and generated by a service module of the client.
S220, according to the service identification value acquisition request, the identification of the service module serving as the initiator is determined or the service type matched with the service module is determined.
In the embodiment of the present disclosure, in consideration of different service types corresponding to each service module, when determining a service identifier value matched with a service module initiating a service identifier value acquisition request, the platform server may determine an identifier of the service module serving as an initiator or determine a service type matched with the service module according to the received service identifier value acquisition request. The service identification value obtaining request includes identification of the service module or service type matched with the service module and other related information.
S230, determining the service identification value according to the identification of the service module or the service type.
Correspondingly, the platform server may further determine a service identifier value corresponding to the service according to the determined identifier or service type of the service module.
And S240, feeding back the service identification value to the client.
S250, receiving a public function processing request sent by a public function module in the client; wherein the common function processing request includes the service identification value.
Wherein, the common function processing request can be a request sent by the client to the platform server for indicating the use of the common function module.
In the embodiment of the present disclosure, after the platform server feeds back the service identifier value to the client, the client may store the service identifier value locally. When the user enters the common function module through input or triggering and other operations in the interface provided by the service module, the client sends a corresponding common function processing request to the platform server. A corresponding service identification value may be included in the common function processing request.
And S260, processing the public function processing request according to the configuration information of the service module corresponding to the service identification value.
Correspondingly, after receiving the public function processing request including the service identification value, the platform server can pull the matched configuration information from the service server corresponding to the service module according to the service identification value, so as to process the public function processing request according to the acquired configuration information. The configuration information of the service module is related to a specific service type corresponding to the service module, for example, the configuration information may be version information of the service type corresponding to the service module.
In an optional embodiment of the present disclosure, if the common function module is a forwarding sharing module, and the common function processing request is a forwarding sharing request, processing the forwarding sharing request according to configuration information of a service module corresponding to the service identifier value may include: requesting a service server matched with the service module to acquire information to be forwarded according to the configuration information of the service module corresponding to the service identification value; generating target forwarding information according to the information to be forwarded and the configuration information; and the target forwarding information is used for pushing to a target forwarding server for sharing.
The target forwarding server may be a server corresponding to relevant social platform software, such as a WeChat or a microblog.
In this disclosure, if the common function module is a forwarding sharing module and the common function processing request is a forwarding sharing request, the platform server may pull information to be forwarded to the service server matched with the service module according to the configuration information of the service module corresponding to the service identifier value. The information to be forwarded may include comprehensive service information. After the platform server pulls the information to be forwarded, the configuration information of the service module and the information to be forwarded can be processed to determine forwarding parameters as target forwarding information, such as titles, copy cases, display pictures, creators and the like. For example, when the service module is news information and the common function module is "forward", the target forwarding information generated by the platform server may include various information such as web page links, subject, date, and matching drawings. Further, the platform server may push the finally generated target forwarding information to the target forwarding server for forwarding and sharing. For example, the target forwarding information is forwarded to a microblog or a WeChat friend circle for sharing.
By adopting the technical scheme, after the platform server acquires the service identification value of the corresponding service, the common function processing request sent by the client common function module is processed according to the configuration information of the service module corresponding to the service identification value, so that the problem that the existing application software needs to frequently update the new software version of the client due to the service identification value is solved, the acquisition mode of the service identification value in the application software platform is optimized, and the development performance and the user experience of the application software platform are improved.
EXAMPLE III
Fig. 3 is a flowchart of a service identifier obtaining method provided in the third embodiment of the present disclosure, where this embodiment is applicable to a case of flexibly obtaining a service identifier, and the method may be executed by a service identifier obtaining device, and the device may be implemented by software and/or hardware, and may be generally integrated in a client and used in cooperation with a platform server corresponding to platform software. Accordingly, as shown in fig. 3, the method includes the following operations:
s310, detecting a trigger action executed by a user on a service list interface provided by the client, and determining a service module triggered by the user according to the trigger action.
In the embodiment of the present disclosure, when a user uses a client to enter a content interface of a certain service from a platform list interface, a service module corresponding to the service is triggered.
S320, sending the service identification value acquisition request sent by the service module through the platform interface to the platform server.
Correspondingly, after the service module of the client operates, a service identification value acquisition request can be sent to the platform server through the platform interface so as to request the platform server to provide the service identification value corresponding to the service.
S330, receiving the service identification value fed back by the platform server aiming at the service identification value acquisition request.
Correspondingly, after determining the service identification value matched with the service module initiating the service identification value acquisition request according to the service identification value acquisition request, the platform server can feed back the service identification value to the client.
S340, storing the service identification value locally.
In the embodiment of the present disclosure, the client may receive the service identifier value fed back by the platform server and store the service identifier value locally.
And S350, when the triggering action executed on the public function module by the user in the service module is detected, providing the service identification value to the public function module through a public function module interface.
In the embodiment of the present disclosure, when a user enters the common function module through an input or trigger operation in the interface provided by the service module, the client provides a corresponding service identifier value to the common function module through the common function module interface.
And S360, executing the public function matched with the service module according to the service identification value through the public function module.
Correspondingly, the common function module can execute the common function matched with the service module according to the service identification value provided by the client. For example, functions such as forwarding, favorites, likes, or dislikes are performed.
In an optional embodiment of the present disclosure, the performing, by the common function module according to the service identification value, a common function matched with the service module may include: acquiring a public function processing request generated by the public function module according to the service identification value; and sending the public function processing request to the platform server to request the platform server to process the public function processing request according to the configuration information of the service module corresponding to the service identification value.
In the embodiment of the present disclosure, after the client provides the service identifier value to the common function module, the common function module may process the request according to the common function generated by the service identifier value and send the request to the platform server. After receiving the public function processing request including the service identification value, the platform server may pull the matched configuration information from the service server corresponding to the service module according to the service identification value, so as to process the public function processing request according to the acquired configuration information.
In an optional embodiment of the present disclosure, the common function module is a forwarding sharing module, and the common function processing request is a forwarding sharing request.
In this disclosure, if the common function module is a forwarding sharing module and the common function processing request is a forwarding sharing request, the platform server may pull information to be forwarded to the service server matched with the service module according to the configuration information of the service module corresponding to the service identifier value. The information to be forwarded may include comprehensive service information. After the platform server pulls the information to be forwarded, the configuration information of the service module and the information to be forwarded can be processed to determine forwarding parameters as target forwarding information, such as titles, copy cases, display pictures, creators and the like. For example, when the service module is news information and the common function module is "forward", the target forwarding information generated by the platform server may include various information such as web page links, subject, date, and matching drawings. Further, the platform server may push the finally generated target forwarding information to the target forwarding server for forwarding and sharing. For example, the target forwarding information is forwarded to a microblog or a WeChat friend circle for sharing.
The embodiment of the disclosure determines a service module triggered by a user by detecting a triggering action executed by the user on a service list interface provided by the client, and then sends a service identification value acquisition request sent by the service module through a platform interface to a platform server, and the platform server acquires a matched service identification value and feeds the matched service identification value back to the client for storage. When the client detects the triggering action of the user on the common function module in the service module, the service identification value is provided for the common function module through the common function module interface, so that the common function matched with the service module is executed according to the service identification value, the problem that the existing application software needs to frequently update the new software version of the client due to the service identification value is solved, the acquisition mode of the service identification value in the application software platform is optimized, and the development performance and the user experience of the application software platform are improved.
Example four
Fig. 4 is a schematic diagram of a service identifier obtaining apparatus according to a fourth embodiment of the present disclosure, as shown in fig. 4, the apparatus is configured on a platform server 40, and is capable of interacting with a client 50, and the apparatus includes: an identification value obtaining request receiving module 410, a service identification value obtaining module 420, and a service identification value feedback module 430, wherein:
an identifier value obtaining request receiving module 410, configured to receive a service identifier value obtaining request sent by a platform interface; the service identification value acquisition request is triggered and generated by a service module of the client;
a service identification value obtaining module 420, configured to obtain a service identification value matched with a service module that initiates the service identification value obtaining request;
and a service identifier value feedback module 430, configured to feed back the service identifier value to the client, where the service identifier value is used for transmitting the service identifier value to a common function module in the client when the service module calls the common function module.
According to the method and the device, the platform server receives the service identification value acquisition request sent by the platform interface, acquires the matched service identification value and feeds the matched service identification value back to the client for storage, so that the problem that the existing application software needs to update the new software version of the client frequently due to the service identification value is solved, the acquisition mode of the service identification value in the application software platform is optimized, and the development performance and the user experience of the application software platform are improved.
Optionally, the service identifier value obtaining module 420 includes: a service module information determining unit, configured to determine, according to the service identifier value acquisition request, an identifier of a service module serving as an initiator or a service type matched with the service module; and the service identification value determining unit is used for determining the service identification value according to the identification of the service module or the service type.
Optionally, the apparatus further comprises: a public function processing request receiving module, configured to receive a public function processing request sent by a public function module in the client; wherein the common function processing request includes the service identification value; and the public function processing request processing module is used for processing the public function processing request according to the configuration information of the service module corresponding to the service identification value.
Optionally, if the common function module is a forwarding and sharing module and the common function processing request is a forwarding and sharing request, the common function processing request processing module is specifically configured to request a service server matched with a service module to acquire information to be forwarded according to configuration information of the service module corresponding to the service identifier value; generating target forwarding information according to the information to be forwarded and the configuration information; and the target forwarding information is used for pushing to a target forwarding server for sharing.
The service identifier acquisition device can execute the service identifier acquisition method provided by the first embodiment and the second embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method. For details of the service identifier, which are not described in detail in this embodiment, reference may be made to a service identifier obtaining method provided in any embodiment of the present disclosure.
EXAMPLE five
Fig. 5 is a schematic diagram of a service identifier obtaining apparatus according to a fifth embodiment of the present disclosure, as shown in fig. 5, the apparatus is configured on a client 50 and is capable of interacting with a platform server 40, and the apparatus includes: a service module determining module 510, an identifier value obtaining request sending module 520, a service identifier value receiving module 530, a service identifier value storing module 540, a service identifier value providing module 550, and a common function executing module 560, wherein:
a service module determining module 510, configured to detect a trigger action executed by a user on a service list interface provided by a client, and determine a service module triggered by the user according to the trigger action;
an identifier value obtaining request sending module 520, configured to send a service identifier value obtaining request sent by the service module through a platform interface to a platform server;
a service identifier value receiving module 530, configured to receive a service identifier value fed back by the platform server according to the service identifier value obtaining request;
a service identifier value storage module 540, configured to store the service identifier value locally;
a service identifier value providing module 550, configured to provide, when detecting a trigger action performed by the user on a common function module in the service module, the service identifier value to the common function module through a common function module interface;
and a common function executing module 560, configured to execute, by the common function module, a common function matched with the service module according to the service identifier value.
The embodiment of the disclosure determines a service module triggered by a user by detecting a triggering action executed by the user on a service list interface provided by the client, and then sends a service identification value acquisition request sent by the service module through a platform interface to a platform server, and the platform server acquires a matched service identification value and feeds the matched service identification value back to the client for storage. When the client detects the triggering action of the user on the common function module in the service module, the service identification value is provided for the common function module through the common function module interface, so that the common function matched with the service module is executed according to the service identification value, the problem that the existing application software needs to frequently update the new software version of the client due to the service identification value is solved, the acquisition mode of the service identification value in the application software platform is optimized, and the development performance and the user experience of the application software platform are improved.
Optionally, the common function executing module 560 includes: a public function processing request unit, configured to acquire a public function processing request generated by the public function module according to the service identifier value; and the public function processing request sending unit is used for sending the public function processing request to the platform server so as to request the platform server to process the public function processing request according to the configuration information of the service module corresponding to the service identification value.
Optionally, the common function module is a forwarding sharing module, and the common function processing request is a forwarding sharing request.
The service identifier acquisition device can execute the service identifier acquisition method provided by the third embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method. For details of the service identifier, which are not described in detail in this embodiment, reference may be made to a service identifier obtaining method provided in any embodiment of the present disclosure.
EXAMPLE six
Fig. 6 is a schematic diagram illustrating a hardware structure of a server according to an embodiment of the present disclosure. The server may be implemented in various forms, and the server in the present disclosure may include, but is not limited to, a stationary server such as a desktop computer.
As shown in fig. 6, the server 0 may include a wireless communication unit 61, an a/V (audio/video) input unit 62, a user input unit 63, a sensing unit 64, an output unit 65, a memory 66, an interface unit 67, a processor 68, a power supply unit 69, and the like. FIG. 6 shows the server 0 having various components, but it is understood that not all of the illustrated components are required to be implemented. More or fewer components may alternatively be implemented.
Among them, the wireless communication unit 61 allows radio communication between the server 0 and a wireless communication system or network. The a/V input unit 62 is for receiving an audio or video signal. The user input unit 63 may generate key input data to control various operations of the server 0 according to a command input by a user. The sensing unit 64 detects the current state of the server 0, the position of the server 0, the presence or absence of a touch input of the user to the server 0, the orientation of the server 0, the acceleration or deceleration movement and direction of the server 0, and the like, and generates a command or signal for controlling the operation of the server 0. The interface unit 67 serves as an interface through which at least one external device can be connected to the server 0. The output unit 65 is configured to provide output signals in a visual, audio, and/or tactile manner. The memory 66 may store software programs or the like for processing and controlling operations performed by the processor 68, or may temporarily store data that has been or will be output. The memory 66 may include at least one type of storage medium. Also, the server 0 may cooperate with a network storage device that performs a storage function of the storage 66 through a network connection. The processor 68 generally controls the overall operation of the server 0. In addition, the processor 68 may include a multimedia module for reproducing or playing back multimedia data. The processor 68 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image. The power supply unit 69 receives external power or internal power and supplies appropriate power required to operate the respective elements and components under the control of the processor 68.
The processor 68 executes programs stored in the memory 66 to execute various functional applications and data processing, for example, to implement a service identification obtaining method provided by the embodiment of the present disclosure, including: receiving a service identification value acquisition request sent by a platform interface; the service identification value acquisition request is triggered and generated by a service module of the client; acquiring a service identification value matched with a service module initiating the service identification value acquisition request; and feeding back the service identification value to the client, wherein the service identification value is used for transmitting the service identification value to a public function module when the service module calls the public function module in the client for use.
EXAMPLE seven
A seventh embodiment of the present invention is a client for executing the service identifier obtaining method provided in the third embodiment of the present disclosure, where the client includes: one or more processors; storage means 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 service identifier obtaining method provided by the third embodiment of the present disclosure: detecting a trigger action executed by a user on a service list interface provided by a client, and determining a service module triggered by the user according to the trigger action; sending a service identification value acquisition request sent by the service module through a platform interface to a platform server; receiving a service identification value requested to be fed back by the platform server aiming at the service identification value; storing the service identification value locally; when detecting the triggering action executed by the user on the public function module in the service module, providing the service identification value to the public function module through a public function module interface; and executing the public function matched with the service module according to the service identification value through the public function module. The specific structure and the details thereof can be referred to fig. 6 and the sixth embodiment.
Example eight
An eighth embodiment of the present disclosure further provides a computer storage medium storing a computer program, where the computer program is used to execute the service identifier obtaining method according to the first embodiment and the second embodiment of the present disclosure when executed by a computer processor: receiving a service identification value acquisition request sent by a platform interface; the service identification value acquisition request is triggered and generated by a service module of the client; acquiring a service identification value matched with a service module initiating the service identification value acquisition request; and feeding back the service identification value to the client, wherein the service identification value is used for transmitting the service identification value to a public function module when the service module calls the public function module in the client for use.
The computer storage media of the disclosed embodiments may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Example nine
The ninth embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the service identifier obtaining method described in the third embodiment: detecting a trigger action executed by a user on a service list interface provided by a client, and determining a service module triggered by the user according to the trigger action; sending a service identification value acquisition request sent by the service module through a platform interface to a platform server; receiving a service identification value requested to be fed back by the platform server aiming at the service identification value; storing the service identification value locally; when detecting the triggering action executed by the user on the public function module in the service module, providing the service identification value to the public function module through a public function module interface; and executing the public function matched with the service module according to the service identification value through the public function module. The specific details thereof are described with reference to example eight.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present disclosure and the technical principles employed. Those skilled in the art will appreciate that the present disclosure is not limited to the particular embodiments described herein, and that various obvious changes, adaptations, and substitutions are possible, without departing from the scope of the present disclosure. Therefore, although the present disclosure has been described in greater detail with reference to the above embodiments, the present disclosure is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present disclosure, the scope of which is determined by the scope of the appended claims.

Claims (11)

1. A service identification acquisition method is applied to a platform server and is characterized by comprising the following steps:
receiving a service identification value acquisition request sent by a platform interface; the service identification value acquisition request is triggered and generated by a service module of the client;
acquiring a service identification value matched with a service module initiating the service identification value acquisition request;
feeding back the service identification value to the client, wherein the service identification value is used for transmitting the service identification value to a public function module when the service module calls the public function module in the client for use;
the common function module is a shareable program module provided by the application software platform for various service types.
2. The method of claim 1, wherein the obtaining the service identification value matching the service module that initiated the service identification value obtaining request comprises:
determining the identifier of the service module as an initiator or determining the service type matched with the service module according to the service identifier value acquisition request;
and determining the service identification value according to the identification of the service module or the service type.
3. The method according to claim 1, further comprising, after said feeding back the service identification value to the client:
receiving a public function processing request sent by a public function module in the client; wherein the common function processing request includes the service identification value;
and processing the public function processing request according to the configuration information of the service module corresponding to the service identification value.
4. The method according to claim 3, wherein if the common function module is a forwarding sharing module and the common function processing request is a forwarding sharing request, processing the forwarding sharing request according to configuration information of a service module corresponding to the service identifier value includes:
requesting a service server matched with the service module to acquire information to be forwarded according to the configuration information of the service module corresponding to the service identification value;
generating target forwarding information according to the information to be forwarded and the configuration information; and the target forwarding information is used for pushing to a target forwarding server for sharing.
5. A service identification obtaining method is applied to a client side and is characterized by comprising the following steps:
detecting a trigger action executed by a user on a service list interface provided by a client, and determining a service module triggered by the user according to the trigger action;
sending a service identification value acquisition request sent by the service module through a platform interface to a platform server;
receiving a service identification value requested to be fed back by the platform server aiming at the service identification value;
storing the service identification value locally;
when detecting the triggering action executed by the user on the public function module in the service module, providing the service identification value to the public function module through a public function module interface;
executing a public function matched with the service module according to the service identification value through the public function module;
the common function module is a shareable program module provided by the application software platform for various service types.
6. The method of claim 5, wherein performing, by the common function module, a common function matched to the service module according to the service identification value comprises:
acquiring a public function processing request generated by the public function module according to the service identification value;
and sending the public function processing request to the platform server to request the platform server to process the public function processing request according to the configuration information of the service module corresponding to the service identification value.
7. The method of claim 6, wherein the common function module is a forwarding sharing module, and wherein the common function processing request is a forwarding sharing request.
8. A service identifier obtaining apparatus configured in a platform server, comprising:
an identification value obtaining request receiving module, configured to receive a service identification value obtaining request sent by a platform interface; the service identification value acquisition request is triggered and generated by a service module of the client;
a service identification value obtaining module, configured to obtain a service identification value matched with a service module that initiates the service identification value obtaining request;
the service identification value feedback module is used for feeding back the service identification value to the client, wherein the service identification value is used for transmitting the service identification value to a public function module when the service module calls the public function module in the client for use;
the common function module is a shareable program module provided by the application software platform for various service types.
9. A service identifier obtaining apparatus configured at a client, comprising:
the service module determining module is used for detecting a triggering action executed by a user on a service list interface provided by a client and determining a service module triggered by the user according to the triggering action;
the identification value acquisition request sending module is used for sending the service identification value acquisition request sent by the service module through a platform interface to a platform server;
a service identification value receiving module, configured to receive a service identification value requested to be fed back by the platform server for the service identification value;
the service identification value storage module is used for locally storing the service identification value;
the service identification value providing module is used for providing the service identification value to the public function module through a public function module interface when detecting the triggering action of the user on the public function module in the service module;
the public function execution module is used for executing a public function matched with the service module according to the service identification value through the public function module;
the common function module is a shareable program module provided by the application software platform for various service types.
10. A service identifier obtaining device, the device comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the service identity acquisition method according to any one of claims 1-4, or to implement the service identity acquisition method according to any one of claims 5-7.
11. A computer storage medium having stored thereon a computer program, characterized in that the program, when being executed by a processor, implements a service identity acquisition method according to any one of claims 1-4, or implements a service identity acquisition method according to any one of claims 5-7.
CN201811278222.4A 2018-10-30 2018-10-30 Service identifier acquisition method, device, equipment and storage medium Active CN109408116B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811278222.4A CN109408116B (en) 2018-10-30 2018-10-30 Service identifier acquisition method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811278222.4A CN109408116B (en) 2018-10-30 2018-10-30 Service identifier acquisition method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109408116A CN109408116A (en) 2019-03-01
CN109408116B true CN109408116B (en) 2022-02-18

Family

ID=65470090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811278222.4A Active CN109408116B (en) 2018-10-30 2018-10-30 Service identifier acquisition method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109408116B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176715B (en) * 2019-12-16 2023-05-12 青岛聚看云科技有限公司 Information calling method and server
CN112395024B (en) * 2020-12-09 2021-12-24 上海益世界信息技术集团有限公司 Interface calling method and related device
CN114281578B (en) * 2021-11-13 2024-01-16 苏州浪潮智能科技有限公司 Interaction method, device, computer equipment and medium of distributed file storage system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095479A (en) * 2011-11-04 2013-05-08 华为技术有限公司 Method and device of business configuration
KR101398785B1 (en) * 2013-03-22 2014-05-27 주식회사 엘지유플러스 Apparatus , control method and recording medium thereof for push service
WO2016115978A1 (en) * 2015-01-19 2016-07-28 阿里巴巴集团控股有限公司 Business object information sharing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095479A (en) * 2011-11-04 2013-05-08 华为技术有限公司 Method and device of business configuration
KR101398785B1 (en) * 2013-03-22 2014-05-27 주식회사 엘지유플러스 Apparatus , control method and recording medium thereof for push service
WO2016115978A1 (en) * 2015-01-19 2016-07-28 阿里巴巴集团控股有限公司 Business object information sharing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SFC-Checker: Checking the correct forwarding behavior of Service Function chaining;B. Tschaen等;《2016 IEEE Conference on Network Function Virtualization and Software Defined Networks 》;20170508;134-140 *
微信流量分类模型及其业务识别算法研究;范颖 邹香玲;《现代电子技术》;20160801;28-31 *

Also Published As

Publication number Publication date
CN109408116A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN106572173B (en) Configuration information updating method, device and system
US9785664B2 (en) Gathering transaction data associated with locally stored data files
US10169026B2 (en) Transferring operating environment of registered network to unregistered network
CN109408116B (en) Service identifier acquisition method, device, equipment and storage medium
US10637953B2 (en) Apparatus, system and method for cache management
CN109558199B (en) Information pushing method, device, equipment and storage medium
US10652315B2 (en) Method, apparatus, and system for distributing information in graphic code
US9723480B2 (en) Information processing device, server device, data communication system, data communication method, and computer-readable storage medium storing data communication program
CA3102425C (en) Video processing method, device, terminal and storage medium
US11301227B2 (en) Server apparatus, information processing apparatus, and control method for installing application
US8902462B1 (en) System and control method
CN111147585B (en) Equipment upgrading method, device, storage medium and system
CN109218338B (en) Information processing system, method and device
JP7006294B2 (en) Information processing methods, information processing devices, and programs
CN106933449B (en) Icon processing method and device
CN112052377B (en) Resource recommendation method, device, server and storage medium
CN113971122A (en) System blockage detection method, intelligent terminal and storage medium
CN114726849B (en) File transmission method, device, server and computer readable storage medium
CN111695986B (en) Method and device for controlling accumulated gold image
CN110691256B (en) Video associated information processing method and device, server and storage medium
JP6710998B2 (en) Server device, program, operation screen data providing method, information processing system, and web content server device
CN114117102A (en) Picture loading method and device, electronic terminal and storage medium
US20180131822A1 (en) System and method for digital scanning and importing of documents
CN115665126A (en) Batch execution file generation method, device, medium and equipment
CN116257260A (en) Software updating method, device, computer equipment, storage medium and product

Legal Events

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