CN106534365B - Method and equipment for determining channel information - Google Patents

Method and equipment for determining channel information Download PDF

Info

Publication number
CN106534365B
CN106534365B CN201611170443.0A CN201611170443A CN106534365B CN 106534365 B CN106534365 B CN 106534365B CN 201611170443 A CN201611170443 A CN 201611170443A CN 106534365 B CN106534365 B CN 106534365B
Authority
CN
China
Prior art keywords
party
data
channel information
subdata
acquired
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
CN201611170443.0A
Other languages
Chinese (zh)
Other versions
CN106534365A (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.)
Guangzhou Sisanjiujiu Information Technology Co Ltd
Original Assignee
Guangzhou Sisanjiujiu Information 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 Guangzhou Sisanjiujiu Information Technology Co Ltd filed Critical Guangzhou Sisanjiujiu Information Technology Co Ltd
Priority to CN201611170443.0A priority Critical patent/CN106534365B/en
Publication of CN106534365A publication Critical patent/CN106534365A/en
Application granted granted Critical
Publication of CN106534365B publication Critical patent/CN106534365B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method and equipment for determining channel information, wherein the method comprises the following steps: identifying the acquired third-party data through a preset configuration table, and determining application identifications corresponding to the third-party sub-data in the third-party data; generating channel information of each piece of third-party subdata in the third-party data based on the application identification and the equipment identification of each piece of third-party subdata in the third-party data; and replacing the channel information of each subdata in the acquired data of the my party with the channel information of the third-party subdata which is the same as the subdata. Therefore, the channel information is simply and effectively identified and determined.

Description

Method and equipment for determining channel information
Technical Field
The present invention relates to the field of information processing, and in particular, to a method and an apparatus for determining channel information.
Background
In the prior art, in many fields, especially in the field of mobile applications or games, it is necessary to count which channel the incoming amount belongs to.
At present, there is a traditional way that each application and game is packaged in a channel, and corresponding channel packages are released in different channels.
However, this approach is cumbersome and requires a lot of repetitive work. Moreover, different channel packages are provided for different channels, which increases the probability of errors and reduces the quality of the overall marketing.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a method and equipment for determining channel information, which are used for rapidly determining channels with different flow rates.
Specifically, the present invention proposes the following specific examples:
the embodiment of the invention provides a method for determining channel information, which comprises the following steps:
identifying the acquired third-party data through a preset configuration table, and determining application identifications corresponding to the third-party sub-data in the third-party data;
generating channel information of each piece of third-party subdata in the third-party data based on the application identification and the equipment identification of each piece of third-party subdata in the third-party data;
and replacing the channel information of each subdata in the acquired data of the my party with the channel information of the third-party subdata which is the same as the subdata.
In a specific embodiment, after "generating channel information of each piece of third-party sub-data in the third-party data based on the application identifier and the device identifier of each piece of third-party sub-data in the third-party data", the method further includes:
caching channel information of each third-party subdata; wherein the buffering is cleared after a preset time.
In a specific embodiment, the "replacing the channel information of each sub-data in the obtained data of my party with the channel information of the third-party sub-data that is the same as the sub-data" includes:
extracting channel information of each third-party subdata from the cache;
determining subdata which is the same as third-party subdata in the data of the party through data comparison;
and replacing the channel information of the determined sub-data with the channel information of the same third-party sub-data.
In a specific embodiment, the method further comprises:
receiving third party data pushed to the server by the third party service;
and receiving the my data pushed to the server by the my SDK program.
In a specific embodiment, the third party data corresponds to the my party data;
when the data of the party is acquired, the corresponding data of the third party is not acquired, and the acquired data of the party is subjected to delayed processing through an independent thread.
The embodiment of the invention also provides equipment for determining channel information, which comprises the following steps:
the identification module is used for identifying the acquired third-party data through a preset configuration table and determining application identifications corresponding to the third-party sub-data in the third-party data;
the generation module is used for generating channel information of each piece of third-party subdata in the third-party data based on the application identification and the equipment identification of each piece of third-party subdata in the third-party data;
and the replacing module is used for replacing the channel information of each subdata in the acquired data of the my party with the channel information of third-party subdata which is the same as the subdata.
In a specific embodiment, the apparatus further comprises:
the cache module is used for caching the channel information of the third-party subdata; wherein the buffering is cleared after a preset time.
In a specific embodiment, the replacement module is configured to:
extracting channel information of each third-party subdata from the cache;
determining subdata which is the same as third-party subdata in the data of the party through data comparison;
and replacing the channel information of the determined sub-data with the channel information of the same third-party sub-data.
In a specific embodiment, the apparatus further comprises:
the receiving module is used for receiving third-party data pushed to the server by the third-party service;
and receiving the my data pushed to the server by the my SDK program.
In a specific embodiment, the third party data corresponds to the my party data; the apparatus further comprises:
and the processing module is used for performing delayed processing on the acquired data of the party through an independent thread when the data of the party is acquired and the corresponding data of the third party is not acquired yet.
Compared with the prior art, the invention provides a method and equipment for determining channel information, wherein the method comprises the following steps: identifying the acquired third-party data through a preset configuration table, and determining application identifications corresponding to the third-party sub-data in the third-party data; generating channel information of each piece of third-party subdata in the third-party data based on the application identification and the equipment identification of each piece of third-party subdata in the third-party data; and replacing the channel information of each subdata in the acquired data of the my party with the channel information of the third-party subdata which is the same as the subdata. Therefore, the channel information is simply and effectively identified and determined.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flowchart illustrating a method for determining channel information according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus for determining channel information according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for determining channel information according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for determining channel information according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for determining channel information according to an embodiment of the present invention.
Detailed Description
Various embodiments of the present disclosure will be described more fully hereinafter. The present disclosure is capable of various embodiments and of modifications and variations therein. However, it should be understood that: there is no intention to limit the various embodiments of the disclosure to the specific embodiments disclosed herein, but rather, the disclosure is to cover all modifications, equivalents, and/or alternatives falling within the spirit and scope of the various embodiments of the disclosure.
Hereinafter, the term "includes" or "may include" used in various embodiments of the present disclosure indicates the presence of the disclosed functions, operations, or elements, and does not limit the addition of one or more functions, operations, or elements. Furthermore, as used in various embodiments of the present disclosure, the terms "comprising," "having," and their derivatives, are intended to be only representative of the particular features, integers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to one or more other features, integers, steps, operations, elements, components, or combinations of the foregoing.
In various embodiments of the disclosure, the expression "or" at least one of a or/and B "includes any or all combinations of the words listed simultaneously. For example, the expression "a or B" or "at least one of a or/and B" may include a, may include B, or may include both a and B.
Expressions (such as "first", "second", and the like) used in various embodiments of the present disclosure may modify various constituent elements in the various embodiments, but may not limit the respective constituent elements. For example, the above description does not limit the order and/or importance of the elements described. The foregoing description is for the purpose of distinguishing one element from another. For example, the first user device and the second user device indicate different user devices, although both are user devices. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of various embodiments of the present disclosure.
It should be noted that: if it is described that one constituent element is "connected" to another constituent element, the first constituent element may be directly connected to the second constituent element, and a third constituent element may be "connected" between the first constituent element and the second constituent element. In contrast, when one constituent element is "directly connected" to another constituent element, it is understood that there is no third constituent element between the first constituent element and the second constituent element.
The term "user" used in various embodiments of the present disclosure may indicate a person using an electronic device or a device using an electronic device (e.g., an artificial intelligence electronic device).
The terminology used in the various embodiments of the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the various embodiments of the present disclosure. As used herein, the singular forms are intended to include the plural forms as well, unless the context clearly indicates otherwise. Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the present disclosure belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined in various embodiments of the present disclosure.
Example 1
The embodiment 1 of the invention discloses a method for determining channel information, which comprises the following steps as shown in figure 1:
step 101, identifying the acquired third-party data through a preset configuration table, and determining application identifications corresponding to each third-party data in the third-party data;
specifically, in a specific application scenario, for example, a game company has 3 games, channel information of each flow needs to be counted, a third-party service can acquire an accessed channel amount, third-party data, that is, data pushed to a server of the game company by the third-party service, is identified after the third-party data is acquired, and the data is different specifically for different games; specifically, the application identifier of each application may be random and non-repetitive, so that the application identifier of each application is unique.
The preset configuration table may represent different games and different data representation manners, and in a specific example, the data corresponding to the game may store an identifier of the game, but may be in any other form as long as the data can be identified, so as to identify which game (one of the applications) is specifically corresponding.
102, generating channel information of each piece of third-party subdata in the third-party data based on the application identification and the equipment identification of each piece of third-party subdata in the third-party data;
specifically, still taking the above example as an illustration, the device identifier is also hardware for running the game, such as a mobile phone, a tablet computer, and the like, and the identifier exists in the third-party data itself, specifically, the identifier exists in the data corresponding to each third-party data.
Therefore, the channel number is identified and identified through the equipment identification and the application identification.
And 103, replacing the channel information of each subdata in the acquired data of the my party with the channel information of third-party subdata which is the same as the subdata.
Specifically, the channel information of each sub-data in the data of my party is ambiguous, and in a specific example, the data of my party includes, for example, the 1 st sub-data and the 2 nd sub-data; however, the channel information is unclear, and in step 102, the channel information of each third-party sub-data is clear, so it is assumed that the third-party sub-data includes data in which the third-party sub-data 1 and the 2 nd sub-data are the same, and in this case, the channel information of the third-party sub-data 1 may be set as the channel information of the 2 nd sub-data, so as to implement channel identification and confirmation for each sub-data in the data of our party.
In a specific embodiment, in step 102, that is, "generating channel information of each piece of third-party sub-data in the third-party data based on the application identifier and the device identifier of each piece of third-party sub-data in the third-party data", the method further includes:
caching channel information of each third-party subdata; wherein the buffering is cleared after a preset time.
Specifically, in one embodiment, for example, 3 days may be cached, and the purpose is for channel non-lifetime, the amount from channel a before 3 days may be updated to the amount from channel B after 3 days. By doing so, the coming amount situation of the corresponding channel can be reflected relatively timely.
Thus, specifically, the step 103, that is, replacing the channel information of each sub-data in the obtained data of my party with the channel information of the third-party sub-data that is the same as the sub-data, includes:
extracting channel information of each third-party subdata from the cache;
determining subdata which is the same as third-party subdata in the data of the party through data comparison;
and replacing the channel information of the determined sub-data with the channel information of the same third-party sub-data.
Specifically, the cache can be read by requesting a domain name interface, and corresponding channel information can be acquired.
In a specific embodiment, the method further comprises:
receiving third party data pushed to the server by the third party service;
the client receives my data pushed to the server by the my SDK (Software Development Kit) program.
Specifically, the SDK program is embedded in the application, and can obtain related data for running the application. Specifically, the receiving of the third party data or the data of the party is not sequential and is controlled by two independent threads respectively, and the third party data corresponds to the data of the party;
therefore, when the data of the party is acquired, the corresponding data of the third party is not acquired, and the acquired data of the party is subjected to delayed processing through an independent thread. Without affecting the processing of subsequent data.
In a specific embodiment, for example, the specific implementation on the Android device is as follows:
1. and configuring push parameters in a third-party service background, and starting a push switch.
2. Adding log sending logic code into SDK program
private static void sendLog(final Context context,JS ONObject json,String url,final String name){}
3. After the third-party service data arrives at the server of the client, the memcached cache code is buried
$mem->set($cacheName,$logStr,$expire)
4. SDK program request channel matching domain name codes
private function_getChannelId($fields){
Matching and replacement of interfaces on corresponding domain names of/curl
}
Compared with the prior art, the invention provides a method and equipment for determining channel information, wherein the method comprises the following steps: identifying the acquired third-party data through a preset configuration table, and determining application identifications corresponding to the third-party sub-data in the third-party data; generating channel information of each piece of third-party subdata in the third-party data based on the application identification and the equipment identification of each piece of third-party subdata in the third-party data; and replacing the channel information of each subdata in the acquired data of the my party with the channel information of the third-party subdata which is the same as the subdata. Therefore, the channel information is simply and effectively identified and determined.
Example 2
An embodiment of the present invention further provides a device for determining channel information, as shown in fig. 2, including:
the identification module 201 is configured to identify the acquired third-party data through a preset configuration table, and determine an application identifier corresponding to each piece of third-party sub-data in the third-party data;
a generating module 202, configured to generate channel information of each piece of third-party sub-data in the third-party data based on the application identifier and the device identifier of each piece of third-party sub-data in the third-party data;
the replacing module 203 is configured to replace the channel information of each sub-data in the obtained data of my party with the channel information of the third-party sub-data that is the same as the sub-data.
In a specific embodiment, as shown in fig. 3, the apparatus further comprises:
the caching module 204 is configured to cache channel information of each third-party subdata; wherein the buffering is cleared after a preset time.
In a specific embodiment, the replacing module 203 is configured to:
extracting channel information of each third-party subdata from the cache;
determining subdata which is the same as third-party subdata in the data of the party through data comparison;
and replacing the channel information of the determined sub-data with the channel information of the same third-party sub-data.
In a specific embodiment, as shown in fig. 4, the apparatus further comprises:
a receiving module 205, configured to receive third-party data pushed to a server by a third-party service;
and receiving the my data pushed to the server by the my SDK program.
In a specific embodiment, the third party data corresponds to the my party data;
as shown in fig. 5, the apparatus further includes: the processing module 206 is configured to, when obtaining the data of the party, not obtain corresponding third party data yet, perform deferred processing on the obtained data of the party through an independent thread.
Compared with the prior art, the invention provides a method and equipment for determining channel information, wherein the method comprises the following steps: identifying the acquired third-party data through a preset configuration table, and determining application identifications corresponding to the third-party sub-data in the third-party data; generating channel information of each piece of third-party subdata in the third-party data based on the application identification and the equipment identification of each piece of third-party subdata in the third-party data; and replacing the channel information of each subdata in the acquired data of the my party with the channel information of the third-party subdata which is the same as the subdata. Therefore, the channel information is simply and effectively identified and determined.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above-mentioned invention numbers are merely for description and do not represent the merits of the implementation scenarios.
The above disclosure is only a few specific implementation scenarios of the present invention, however, the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.

Claims (6)

1. A method of determining channel information, comprising:
identifying the acquired third-party data through a preset configuration table, and determining application identifications corresponding to the third-party sub-data in the third-party data;
generating channel information of each piece of third-party subdata in the third-party data based on the application identification and the equipment identification of each piece of third-party subdata in the third-party data;
caching channel information of each third-party subdata, wherein the caching is cleared after a preset time;
extracting channel information of each third-party subdata from the cache;
determining subdata which is the same as third-party subdata in the data of the party through data comparison;
and replacing the channel information of the determined sub-data with the channel information of the same third-party sub-data.
2. The method of claim 1, further comprising:
receiving third party data pushed to the server by the third party service;
and receiving the my data pushed to the server by the my SDK program.
3. The method of claim 2, wherein the third party data corresponds to the my party data;
when the data of the party is acquired, the corresponding data of the third party is not acquired, and the acquired data of the party is subjected to delayed processing through an independent thread.
4. An apparatus for determining channel information, comprising:
the identification module is used for identifying the acquired third-party data through a preset configuration table and determining application identifications corresponding to the third-party sub-data in the third-party data;
the generation module is used for generating channel information of each piece of third-party subdata in the third-party data based on the application identification and the equipment identification of each piece of third-party subdata in the third-party data;
the cache module is used for caching the channel information of the third-party subdata, wherein the cache is cleared after the preset time;
a replacement module to:
extracting channel information of each third-party subdata from the cache;
determining subdata which is the same as third-party subdata in the data of the party through data comparison;
and replacing the channel information of the determined sub-data with the channel information of the same third-party sub-data.
5. The apparatus of claim 4, further comprising:
the receiving module is used for receiving third-party data pushed to the server by the third-party service;
and receiving the my data pushed to the server by the my SDK program.
6. The device of claim 5, wherein the third party data corresponds to the my party data; the apparatus further comprises:
and the processing module is used for performing delayed processing on the acquired data of the party through an independent thread when the data of the party is acquired and the corresponding data of the third party is not acquired yet.
CN201611170443.0A 2016-12-16 2016-12-16 Method and equipment for determining channel information Active CN106534365B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611170443.0A CN106534365B (en) 2016-12-16 2016-12-16 Method and equipment for determining channel information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611170443.0A CN106534365B (en) 2016-12-16 2016-12-16 Method and equipment for determining channel information

Publications (2)

Publication Number Publication Date
CN106534365A CN106534365A (en) 2017-03-22
CN106534365B true CN106534365B (en) 2020-02-21

Family

ID=58340133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611170443.0A Active CN106534365B (en) 2016-12-16 2016-12-16 Method and equipment for determining channel information

Country Status (1)

Country Link
CN (1) CN106534365B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387585B (en) * 2010-08-30 2015-05-13 富士通株式会社 Communication method and communication nodes for wireless communication network
CN104346167B (en) * 2014-08-25 2018-05-08 腾讯科技(深圳)有限公司 The method and device of channel bag is applied in generation
CN104503745B (en) * 2014-12-09 2018-06-26 北京奇虎科技有限公司 A kind of method and apparatus generated using channel packet
CN104899025A (en) * 2015-05-18 2015-09-09 北京奇虎科技有限公司 Method and device for generating channel package
CN105282254B (en) * 2015-11-05 2018-05-04 厦门游力信息科技有限公司 A kind of method and system identified using distribution channel

Also Published As

Publication number Publication date
CN106534365A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN107872772B (en) Method and device for detecting fraud short messages
KR20180099841A (en) Method and apparatus for handling short-cut links,
CN110471848B (en) Method and device for dynamically returning message
CN105472052A (en) Login method and system of cross-domain server
CN113434910A (en) Business data chaining method and device
CN109388417B (en) Communication protocol updating method, system and terminal equipment
CN110851748A (en) Short link generation method, server, storage medium and computer equipment
CN109582655B (en) Method and device for positioning system log and computer readable storage medium
US11244153B2 (en) Method and apparatus for processing information
CN110532107B (en) Interface calling method, device, computer equipment and storage medium
CN107967723A (en) Realize method, mobile terminal and the system of attendance
CN109614327B (en) Method and apparatus for outputting information
US20210144629A1 (en) Wireless communication core network and method for analyzing user equipment mobility in the same
CN105657677A (en) Short message sending method, short message gateway and service platform
CN111126928A (en) Method and device for auditing release content
CN109088872B (en) Using method and device of cloud platform with service life, electronic equipment and medium
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
CN108062401B (en) Application recommendation method and device and storage medium
CN106534365B (en) Method and equipment for determining channel information
US10528625B2 (en) Client cloud synchronizer
CN107273102A (en) The generation method and device of mobile applications
CN114490402A (en) Method and device for checking validity of message field
CN110119337B (en) Data analysis method and device and server
CN101196910B (en) Method and device for confirming network resource
CN108255533B (en) System configuration changing method and device

Legal Events

Date Code Title Description
C06 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