CN108985831B - Offline transaction distinguishing method and device and computer equipment - Google Patents

Offline transaction distinguishing method and device and computer equipment Download PDF

Info

Publication number
CN108985831B
CN108985831B CN201810731359.4A CN201810731359A CN108985831B CN 108985831 B CN108985831 B CN 108985831B CN 201810731359 A CN201810731359 A CN 201810731359A CN 108985831 B CN108985831 B CN 108985831B
Authority
CN
China
Prior art keywords
red packet
verification
data
red
cancellation
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
CN201810731359.4A
Other languages
Chinese (zh)
Other versions
CN108985831A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN202111106830.9A priority Critical patent/CN113837755A/en
Priority to CN201810731359.4A priority patent/CN108985831B/en
Publication of CN108985831A publication Critical patent/CN108985831A/en
Application granted granted Critical
Publication of CN108985831B publication Critical patent/CN108985831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/387Payment using discounts or coupons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0211Determining the effectiveness of discounts or incentives

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Image Analysis (AREA)

Abstract

Disclosed are a method, a device and a computer device for distinguishing offline transactions, wherein the method comprises the following steps: acquiring red packet verification and cancellation data of a designated merchant and red packet pickup data corresponding to the red packet verification and cancellation data, wherein the red packet verification and cancellation data and the red packet pickup data corresponding to the red packet verification and cancellation data comprise the same red packet identification; determining the red packet verification and cancellation position in the red packet verification and cancellation data and the discrete degree of the red packet pickup position in the corresponding red packet pickup data; if the discrete degree meets a first set condition, determining that the specified merchant lays a red envelope two-dimensional code on line; and aiming at any piece of the red packet verification and cancellation data, determining whether the red packet verification and cancellation data meet a second set condition according to the red packet verification and cancellation position in the red packet verification and cancellation data and the geographic position of the appointed merchant, and if the red packet verification and cancellation data meet the second set condition, determining that the red packet verification and cancellation data are generated in offline transaction.

Description

Offline transaction distinguishing method and device and computer equipment
Technical Field
The embodiment of the specification relates to the technical field of data processing, in particular to a method and a device for judging offline transactions and computer equipment.
Background
With the development of internet technology and the popularization of intelligent terminals, competition among various payment application programs is becoming more intense, in order to compete for share of 'off-line payment', a marketing strategy of 'scanning code and getting red envelope' is provided by a marketing team of some payment application programs, specifically, propaganda materials printed with red envelope two-dimensional codes, such as a roll screen, a propaganda book and the like, are laid in a cooperative merchant store, after a user arrives at the store, the red envelope two-dimensional codes can be scanned through an application program installed on a mobile phone to obtain red envelopes with a certain amount, and when the next off-line payment is carried out through the application program, the red envelopes can be used for avoiding the certain amount (the process can be called red envelope verification), so that more and more users are attracted to use the application program to complete the off-line payment.
In the related art, in order to reduce the cost of manual patrol, related personnel propose an evaluation method for evaluating marketing effects based on offline scenes such as this based on transaction data, for example, marketing effects can be evaluated by monitoring a transaction amount increase trend through transaction data, monitoring the number of users per day, and the like. However, in practical applications, the cooperative merchants can issue the red envelope two-dimensional code to the network, and a large number of net friends can complete red envelope acquisition and red envelope verification through the network, that is, the online scene, and such operations cannot promote the development of offline transactions, so that the marketing effect based on the offline scene cannot be accurately evaluated based on transaction data.
Disclosure of Invention
In view of the above technical problems, embodiments of the present specification provide a method, an apparatus, and a computer device for determining an offline transaction, where the technical scheme is as follows:
according to a first aspect of embodiments herein, there is provided a method for discriminating an offline transaction, the method comprising:
acquiring red packet verification and cancellation data of a designated merchant and red packet pickup data corresponding to the red packet verification and cancellation data, wherein the red packet verification and cancellation data and the red packet pickup data corresponding to the red packet verification and cancellation data comprise the same red packet identification;
determining the red packet verification and cancellation position in the red packet verification and cancellation data and the discrete degree of the red packet pickup position in the corresponding red packet pickup data;
if the discrete degree meets a first set condition, determining that the specified merchant lays a red envelope two-dimensional code on line;
and aiming at any piece of the red packet verification and cancellation data, determining whether the red packet verification and cancellation data meet a second set condition according to the red packet verification and cancellation position in the red packet verification and cancellation data and the geographic position of the appointed merchant, and if the red packet verification and cancellation data meet the second set condition, determining that the red packet verification and cancellation data are generated in offline transaction.
According to a second aspect of embodiments herein, there is provided an apparatus for discriminating an offline transaction, the apparatus comprising:
the data acquisition module is used for acquiring red packet verification and cancellation data of a specified merchant and red packet pickup data corresponding to the red packet verification and cancellation data, wherein the red packet verification and cancellation data and the red packet pickup data corresponding to the red packet verification and cancellation data comprise the same red packet identification;
the discrete degree determining module is used for determining the discrete degree of the red packet check canceling position in the red packet check canceling data and the red packet receiving position in the corresponding red packet receiving data;
the first determining module is used for determining that the specified merchant lays the red envelope two-dimensional code on line if the discrete degree meets a first set condition;
and the second determining module is used for determining whether the red packet verification and cancellation data meet a second set condition or not according to the red packet verification and cancellation position in the red packet verification and cancellation data and the geographic position of the appointed merchant aiming at any piece of red packet verification and cancellation data, and if the red packet verification and cancellation data meet the second set condition, determining that the red packet verification and cancellation data are generated in offline transaction.
According to a third aspect of the embodiments of the present specification, there is provided a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for determining offline transactions provided by the embodiments of the present specification.
According to the technical scheme provided by the embodiment of the specification, the red packet verification and cancellation position in the red packet verification and cancellation data and the discrete degree of the red packet pickup position in the corresponding red packet pickup data are determined by acquiring the red packet verification and cancellation data of a specified merchant and the red packet pickup data corresponding to the red packet verification and cancellation data; if the discrete degree meets a first set condition, determining that a red envelope two-dimensional code is laid by a designated merchant on line; aiming at any piece of red packet verification and cancellation data, whether the red packet verification and cancellation data meet a second set condition is determined according to the red packet verification and cancellation position in the red packet verification and cancellation data and the geographic position of a designated merchant, if the red packet verification and cancellation data meet the second set condition, the red packet verification and cancellation data are determined to be generated in offline transaction, and the fact that the transaction data generated in the offline transaction can be screened out from a plurality of transaction data can be achieved, so that the accuracy of the subsequent transaction data generated based on the offline transaction to evaluate the marketing effect based on the offline scene is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the invention.
In addition, any one of the embodiments in the present specification is not required to achieve all of the effects described above.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present specification, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a flow chart of an embodiment of a method for determining an offline transaction according to an exemplary embodiment of the present disclosure;
FIG. 2 is a block diagram of an embodiment of an apparatus for determining offline transactions, according to an exemplary embodiment of the present disclosure;
fig. 3 is a more specific hardware structure diagram of a computing device according to an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present specification, the technical solutions in the embodiments of the present specification will be described in detail below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of protection.
In order to solve the above problem, an embodiment of the present specification provides a method for determining offline transactions, so as to identify offline transaction data from a plurality of transaction data, so as to improve accuracy of subsequent evaluation of marketing effects based on offline scenes based on the offline transaction data.
First, in the method for determining an offline transaction provided in the embodiment of the present specification, the offline transaction is mainly determined in two levels: the method comprises the steps that a first layer is used for judging whether a cooperative merchant is on line or not by taking the cooperative merchant as a unit and based on transaction data related to the cooperative merchant, namely, a red packet two-dimensional code is paved in a storefront or in a range near the storefront instead of issuing the red packet two-dimensional code to a network; and in the second aspect, under the condition that the cooperation merchant lays the red envelope two-dimensional code on line, whether the transaction data related to the cooperation merchant is generated in the off-line transaction is further judged.
In the first aspect, it is considered that if the cooperative merchants issue the red packet two-dimensional codes to the network, the propagation range of the network is very wide, and the involved geographical range is also very wide, so that if a large number of net friends complete red packet acquisition and red packet verification through the network, geographical positions (such as red packet acquisition positions and red packet verification positions) involved in the red packet acquisition and red packet verification process are widely distributed, that is, the involved geographical positions are relatively large in discrete degree; on the contrary, if the cooperative merchant lays the red envelope two-dimensional code in the offline scene, and meanwhile, in terms of daily life of the user, the user usually moves in a fixed area, so that for real offline transactions, the distribution of the red envelope getting position and the red envelope verifying and selling position is concentrated, that is, the discrete degree of the related geographic position is small, and therefore, based on the description, in the first layer, whether the cooperative merchant lays the red envelope two-dimensional code online or not is mainly judged based on the discrete degree of the red envelope getting position and the red envelope verifying and selling position.
In the second aspect, the offline transaction may be determined based on the relationship between the position of the red envelope verification and the geographical position of the cooperative merchant.
The following examples are shown to explain the method of determining the offline transaction in detail:
referring to fig. 1, a flow chart of an embodiment of a method for determining an offline transaction according to an exemplary embodiment of the present disclosure may include the following steps:
step 102: and acquiring red packet verification and cancellation data of a specified merchant and red packet pickup data corresponding to the red packet verification and cancellation data, wherein the red packet verification and cancellation data and the red packet pickup data corresponding to the red packet verification and cancellation data comprise the same red packet identification.
In the embodiment of the specification, data generated by the action that a user scans the red packet two-dimensional code to obtain the red packet is called red packet obtaining data, the user scans the two-dimensional code to pay, and data generated by the action that the user scans the red packet is used during payment is called red packet verification and marketing data, so that a piece of red packet obtaining data is generated when the red packet two-dimensional code is scanned once, the two-dimensional code is scanned once to pay, and the action that the user scans the red packet is used during payment, and a piece of red packet verification and marketing data is generated.
In this embodiment, the red envelope getting data at least includes: red envelope identification, red envelope getting position, red envelope getting time, red envelope amount and the like.
The red packet identifier may be used to uniquely identify a red packet, and may be composed of a red packet code value and a red packet number, for example, the red packet identifier is "C0001", wherein "C0" is the red packet code value, "001" is the red packet number, and the red packet code value may also be referred to as the code value of the red packet two-dimensional code, that is, if different users or the same user is in different time, the red packets retrieved by scanning the same red packet two-dimensional code have the same red packet code value, but have different red packet numbers, for example, two different users respectively retrieve the red packet identifiers of the red packets "C0002", "C0003" by scanning the same red packet two-dimensional code; the red envelope obtained by scanning different red envelope two-dimensional codes by the same user or different users has different red envelope code values, for example, the same user scans different red envelope two-dimensional codes twice, and the red envelope identifiers of the obtained red envelope are "C0001" and "D0001", respectively.
In this embodiment, the red packet verification and cancellation data may include at least: the payment information, the position of red packet verification and cancellation, the time of red packet verification and cancellation, the identification of the red packet and the like.
The red packet identification is used for indicating a red packet used by the user in payment.
As can be seen from the above description, if the red envelope is used in payment, there must be a red envelope pick-up action before the payment, that is, the red envelope verification and cancellation data must correspond to a piece of red envelope pick-up data, where the correspondence may be embodied as: the red packet checking and canceling data and the corresponding red packet pickup data comprise the same red packet identification.
In this embodiment of the present specification, taking one of the collaborating merchants as an example of a designated merchant, the information of the collaborating merchants may be acquired within a designated time period, for example, 21 days 0/6 months: and in the period of 00-6 months, 23 days 0:00, the red envelope verification and cancellation data of the specified merchant and the red envelope acquisition data corresponding to the red envelope verification and cancellation data. The red envelope verification and cancellation data of the designated merchant, namely the red envelope verification and cancellation data generated during payment in the designated merchant, are screened out from all the red envelope verification and cancellation data in the designated time period through the collection information in the red envelope verification and cancellation data and the collection information of the designated merchant, and then the red envelope acquisition data corresponding to the red envelope verification and cancellation data are acquired according to the red envelope identification.
Step 104: and determining the red packet checking and canceling position in the red packet checking and canceling data and the discrete degree of the red packet receiving position in the corresponding red packet receiving data.
In this embodiment of the present specification, by executing step 102, a plurality of geographic locations, including a plurality of red envelope verification positions and a plurality of red envelope pickup positions, may be obtained.
In this step, the plurality of geographic locations may be grouped by using a clustering algorithm, for example, a K-center algorithm, to obtain a final grouping result, and as to a specific process for obtaining the final grouping result by using the clustering algorithm, a person skilled in the art may refer to descriptions in the related art, which will not be described in detail in this specification.
Subsequently, based on the grouping result, a difference parameter indicating the difference status between the respective groups, such as a kini coefficient, an information entropy, etc., may be obtained, and a discrete coefficient indicating the degree of dispersion may be determined according to the difference parameter and the number of the groups.
In one embodiment, the discrete coefficients may be calculated by the following formula (one), and are denoted as k for convenience of description.
k is 100 p x formula (one)
In the above formula (one), p represents a difference parameter, and as for a specific process for calculating the difference parameter, such as a kini coefficient and an entropy, according to each obtained group, a person skilled in the art can refer to the description in the related art, and the embodiment of the present specification will not be described in detail.
X in the above formula (one) can be determined by the number of the obtained packets, for example, as shown in the following table 1, which is an example of determining x according to the number of the packets:
TABLE 1
Figure BDA0001720976830000071
As can be seen from the above formula (one), i.e., table 1, the discrete coefficient is positively correlated with the difference parameter and the number of groups, i.e., the larger the difference parameter is, the larger the discrete coefficient is, i.e., the larger the discrete degree is; the larger the number of packets, the larger the dispersion coefficient, i.e., the greater the degree of dispersion.
Step 106: and if the discrete degree meets a first set condition, determining that the specified merchant lays the red envelope two-dimensional code on line.
As can be seen from the above description, if the dispersion degree is smaller, it indicates that the geographic locations are more concentrated, and thus the probability that the designated merchant lays the red packet two-dimensional code on the online is larger, and the dispersion degree is smaller, the corresponding dispersion coefficient is smaller.
Step 108: and aiming at any piece of red envelope verification and cancellation data, determining whether the red envelope verification and cancellation data meets a second set condition according to the red envelope verification and cancellation position in the red envelope verification and cancellation data and the geographic position of a designated merchant, and if the red envelope verification and cancellation data meets the second set condition, determining that the red envelope verification and cancellation data is generated in offline transaction.
In this specification, for any piece of red envelope verification and cancellation data, the distance between the red envelope verification and cancellation position in the red envelope verification and cancellation data and the geographic position of the specified merchant may be calculated.
In one embodiment, a standard deviation between the various distances may be calculated as the acceptable offset distance, i.e., the distance between the acceptable red envelope verification pin location and the geographic location of the designated merchant.
Subsequently, it may be determined whether the distance between the red envelope verification and sale position of any piece of red envelope verification and sale data and the geographic position of the designated merchant meets a second set condition, where the second set condition is: if the second set condition is met, the red envelope verification and cancellation data can be determined to be generated during offline transaction.
It should be noted that, the above-mentioned calculation of the standard deviation between the distances is only an example, and in practical applications, other parameters may also be calculated, for example, an average value between the distances is calculated, and the average value is taken as an acceptable offset distance, which is not limited in this embodiment of the present specification.
According to the technical scheme provided by the embodiment of the specification, the red packet verification and cancellation position in the red packet verification and cancellation data and the discrete degree of the red packet pickup position in the corresponding red packet pickup data are determined by acquiring the red packet verification and cancellation data of a specified merchant and the red packet pickup data corresponding to the red packet verification and cancellation data; if the discrete degree meets a first set condition, determining that a red envelope two-dimensional code is laid by a designated merchant on line; aiming at any piece of red packet verification and cancellation data, whether the red packet verification and cancellation data meet a second set condition is determined according to the red packet verification and cancellation position in the red packet verification and cancellation data and the geographic position of a designated merchant, if the red packet verification and cancellation data meet the second set condition, the red packet verification and cancellation data are determined to be generated in offline transaction, and the fact that the transaction data generated in the offline transaction can be screened out from a plurality of transaction data can be achieved, so that the accuracy of the subsequent transaction data generated based on the offline transaction to evaluate the marketing effect based on the offline scene is improved.
Corresponding to the above method embodiment, an embodiment of the present specification further provides an offline transaction determination apparatus, please refer to fig. 2, which is a block diagram of an embodiment of an offline transaction determination apparatus according to an exemplary embodiment of the present specification, where the apparatus may include: a data acquisition module 210, a discrete degree determination module 220, a first determination module 230, and a second determination module 240.
The data obtaining module 210 may be configured to obtain red envelope verification and cancellation data of a specified merchant and red envelope pickup data corresponding to the red envelope verification and cancellation data, where the red envelope verification and cancellation data and the red envelope pickup data corresponding to the red envelope verification and cancellation data include the same red envelope identifier;
a discrete degree determining module 220, configured to determine a discrete degree of a red packet cancellation position in the red packet cancellation data and a red packet pickup position in the red packet pickup data corresponding to the red packet cancellation position;
the first determining module 230 may be configured to determine that the designated merchant lays a red envelope two-dimensional code online if the dispersion degree meets a first set condition;
the second determining module 240 may be configured to determine, for any piece of the red packet verification and cancellation data, whether the red packet verification and cancellation data meets a second set condition according to a red packet verification and cancellation position in the red packet verification and cancellation data and a geographic position of the designated merchant, and if the second set condition is met, determine that the red packet verification and cancellation data is generated in an offline transaction.
In an embodiment, the discrete degree determining module 220 may include (not shown in fig. 2):
the clustering submodule is used for grouping the red packet verifying and canceling positions in the red packet verifying and canceling data and the red packet getting positions in the corresponding red packet getting data by utilizing a clustering algorithm;
a difference parameter determination submodule for determining a difference parameter indicating a difference condition between the obtained respective packets;
and the discrete coefficient determining submodule is used for determining a discrete coefficient for expressing the discrete degree according to the difference parameter and the number of the obtained groups.
In one embodiment, the first setting condition at least includes:
the discrete coefficient is smaller than a preset coefficient threshold value.
In one embodiment, the difference parameter is at least one of the following:
information entropy, and kini coefficient.
In an embodiment, the apparatus may further comprise (not shown in fig. 2):
the distance calculation module is used for calculating the distance between the position of the red envelope verification and the geographical position of the appointed merchant in the red envelope verification and cancellation data aiming at any piece of red envelope verification and cancellation data;
the standard deviation calculation module is used for calculating the standard deviation among the distances;
the second determining module is specifically configured to determine whether the red envelope verification and cancellation data meets a second set condition according to the standard deviation, the red envelope verification and cancellation position in the red envelope verification and cancellation data, and the geographic position of the specified merchant.
In one embodiment, the second setting condition at least includes:
and the distance between the position of the red envelope verification sale in the red envelope verification sale data and the geographic position of the appointed merchant is smaller than the standard deviation.
It is to be understood that the data obtaining module 210, the discrete degree determining module 220, the first determining module 230, and the second determining module 240 may be configured in the apparatus at the same time as shown in fig. 2 or separately as four independent modules, and therefore the structure shown in fig. 2 should not be construed as a limitation to the embodiments of the present specification.
In addition, the implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
The present specification further provides a computer device, which at least includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for determining offline transactions when executing the program. The method at least comprises the following steps: acquiring red packet verification and cancellation data of a designated merchant and red packet pickup data corresponding to the red packet verification and cancellation data, wherein the red packet verification and cancellation data and the red packet pickup data corresponding to the red packet verification and cancellation data comprise the same red packet identification; determining the red packet verification and cancellation position in the red packet verification and cancellation data and the discrete degree of the red packet pickup position in the corresponding red packet pickup data; if the discrete degree meets a first set condition, determining that the specified merchant lays a red envelope two-dimensional code on line; and aiming at any piece of the red packet verification and cancellation data, determining whether the red packet verification and cancellation data meet a second set condition according to the red packet verification and cancellation position in the red packet verification and cancellation data and the geographic position of the appointed merchant, and if the red packet verification and cancellation data meet the second set condition, determining that the red packet verification and cancellation data are generated in offline transaction.
Fig. 3 is a schematic diagram illustrating a more specific hardware structure of a computing device according to an embodiment of the present disclosure, where the computing device may include: a processor 310, a memory 320, an input/output interface 330, a communication interface 340, and a bus 350. Wherein the processor 310, memory 320, input/output interface 330, and communication interface 340 are communicatively coupled to each other within the device via bus 350.
The processor 310 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present specification.
The Memory 320 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 320 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 320 and called to be executed by the processor 310.
The input/output interface 330 is used for connecting an input/output module to realize information input and output. The input/output/module may be configured as a component within the device (not shown in fig. 3) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 340 is used for connecting a communication module (not shown in fig. 3) to implement communication interaction between the present device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 350 includes a path that transfers information between the various components of the device, such as processor 310, memory 320, input/output interface 330, and communication interface 340.
It should be noted that although the above-mentioned device only shows the processor 310, the memory 320, the input/output interface 330, the communication interface 340 and the bus 350, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
An embodiment of the present specification further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for determining an offline transaction, where the method at least includes: acquiring red packet verification and cancellation data of a designated merchant and red packet pickup data corresponding to the red packet verification and cancellation data, wherein the red packet verification and cancellation data and the red packet pickup data corresponding to the red packet verification and cancellation data comprise the same red packet identification; determining the red packet verification and cancellation position in the red packet verification and cancellation data and the discrete degree of the red packet pickup position in the corresponding red packet pickup data; if the discrete degree meets a first set condition, determining that the specified merchant lays a red envelope two-dimensional code on line; and aiming at any piece of the red packet verification and cancellation data, determining whether the red packet verification and cancellation data meet a second set condition according to the red packet verification and cancellation position in the red packet verification and cancellation data and the geographic position of the appointed merchant, and if the red packet verification and cancellation data meet the second set condition, determining that the red packet verification and cancellation data are generated in offline transaction.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
From the above description of the embodiments, it is clear to those skilled in the art that the embodiments of the present disclosure can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the embodiments of the present specification may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments of the present specification.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, and the modules described as separate components may or may not be physically separate, and the functions of the modules may be implemented in one or more software and/or hardware when implementing the embodiments of the present disclosure. And part or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is only a specific embodiment of the embodiments of the present disclosure, and it should be noted that, for those skilled in the art, a plurality of modifications and decorations can be made without departing from the principle of the embodiments of the present disclosure, and these modifications and decorations should also be regarded as the protection scope of the embodiments of the present disclosure.

Claims (13)

1. A method of discriminating between offline transactions, the method comprising:
acquiring red packet verification and cancellation data of a designated merchant and red packet pickup data corresponding to the red packet verification and cancellation data, wherein the red packet verification and cancellation data and the red packet pickup data corresponding to the red packet verification and cancellation data comprise the same red packet identification;
determining the red packet verification and cancellation position in the red packet verification and cancellation data and the discrete degree of the red packet pickup position in the corresponding red packet pickup data;
if the discrete degree meets a first set condition, determining that the specified merchant lays a red envelope two-dimensional code on line;
and aiming at any piece of the red packet verification and cancellation data, determining whether the red packet verification and cancellation data meet a second set condition according to the red packet verification and cancellation position in the red packet verification and cancellation data and the geographic position of the appointed merchant, and if the red packet verification and cancellation data meet the second set condition, determining that the red packet verification and cancellation data are generated in offline transaction.
2. The method of claim 1, the determining a discrete degree of red packet cancellation positions in the red packet cancellation data and their corresponding red packet pickup positions in red packet pickup data, comprising:
grouping the red packet verification and cancellation positions in the red packet verification and cancellation data and the red packet pickup positions in the corresponding red packet pickup data by using a clustering algorithm;
determining a difference parameter representing a difference condition between the obtained packets;
and determining a discrete coefficient for representing the discrete degree according to the difference parameter and the number of the obtained groups.
3. The method according to claim 2, the first set condition comprising at least:
the discrete coefficient is smaller than a preset coefficient threshold value.
4. The method of claim 2, wherein the difference parameter is at least one of:
information entropy, and kini coefficient.
5. The method according to claim 1, before the determining whether the red packet verification and cancellation data satisfies a second set condition according to the red packet verification and cancellation position in the red packet verification and cancellation data and the geographical position of the designated merchant, the method further comprises:
aiming at any piece of the red envelope verification and cancellation data, calculating the distance between the red envelope verification and cancellation position in the red envelope verification and cancellation data and the geographic position of the appointed merchant;
calculating a standard deviation between each of the distances;
the step of determining whether the red envelope verification and cancellation data meet a second set condition according to the red envelope verification and cancellation position in the red envelope verification and cancellation data and the geographic position of the appointed merchant comprises the following steps:
and determining whether the red envelope verification and cancellation data meet a second set condition according to the standard deviation, the red envelope verification and cancellation position in the red envelope verification and cancellation data and the geographical position of the specified merchant.
6. The method according to claim 5, the second set condition comprising at least:
and the distance between the position of the red envelope verification sale in the red envelope verification sale data and the geographic position of the appointed merchant is smaller than the standard deviation.
7. An apparatus for discriminating an offline transaction, the apparatus comprising:
the data acquisition module is used for acquiring red packet verification and cancellation data of a specified merchant and red packet pickup data corresponding to the red packet verification and cancellation data, wherein the red packet verification and cancellation data and the red packet pickup data corresponding to the red packet verification and cancellation data comprise the same red packet identification;
the discrete degree determining module is used for determining the discrete degree of the red packet check canceling position in the red packet check canceling data and the red packet receiving position in the corresponding red packet receiving data;
the first determining module is used for determining that the specified merchant lays the red envelope two-dimensional code on line if the discrete degree meets a first set condition;
and the second determining module is used for determining whether the red packet verification and cancellation data meet a second set condition or not according to the red packet verification and cancellation position in the red packet verification and cancellation data and the geographic position of the appointed merchant aiming at any piece of red packet verification and cancellation data, and if the red packet verification and cancellation data meet the second set condition, determining that the red packet verification and cancellation data are generated in offline transaction.
8. The apparatus of claim 7, the dispersion level determination module comprising:
the clustering submodule is used for grouping the red packet verifying and canceling positions in the red packet verifying and canceling data and the red packet getting positions in the corresponding red packet getting data by utilizing a clustering algorithm;
a difference parameter determination submodule for determining a difference parameter indicating a difference condition between the obtained respective packets;
and the discrete coefficient determining submodule is used for determining a discrete coefficient for expressing the discrete degree according to the difference parameter and the number of the obtained groups.
9. The apparatus of claim 8, the first set of conditions comprising at least:
the discrete coefficient is smaller than a preset coefficient threshold value.
10. The apparatus of claim 8, wherein the difference parameter is at least one of:
information entropy, and kini coefficient.
11. The apparatus of claim 7, further comprising:
the distance calculation module is used for calculating the distance between the position of the red envelope verification and the geographical position of the appointed merchant in the red envelope verification and cancellation data aiming at any piece of red envelope verification and cancellation data;
the standard deviation calculation module is used for calculating the standard deviation among the distances;
the second determining module is specifically configured to determine whether the red envelope verification and cancellation data meets a second set condition according to the standard deviation, the red envelope verification and cancellation position in the red envelope verification and cancellation data, and the geographic position of the specified merchant.
12. The apparatus of claim 11, the second set of conditions comprising at least:
and the distance between the position of the red envelope verification sale in the red envelope verification sale data and the geographic position of the appointed merchant is smaller than the standard deviation.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1-6 when executing the program.
CN201810731359.4A 2018-07-05 2018-07-05 Offline transaction distinguishing method and device and computer equipment Active CN108985831B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111106830.9A CN113837755A (en) 2018-07-05 2018-07-05 Offline transaction distinguishing method and device and computer equipment
CN201810731359.4A CN108985831B (en) 2018-07-05 2018-07-05 Offline transaction distinguishing method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810731359.4A CN108985831B (en) 2018-07-05 2018-07-05 Offline transaction distinguishing method and device and computer equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202111106830.9A Division CN113837755A (en) 2018-07-05 2018-07-05 Offline transaction distinguishing method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN108985831A CN108985831A (en) 2018-12-11
CN108985831B true CN108985831B (en) 2021-08-06

Family

ID=64537141

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202111106830.9A Pending CN113837755A (en) 2018-07-05 2018-07-05 Offline transaction distinguishing method and device and computer equipment
CN201810731359.4A Active CN108985831B (en) 2018-07-05 2018-07-05 Offline transaction distinguishing method and device and computer equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202111106830.9A Pending CN113837755A (en) 2018-07-05 2018-07-05 Offline transaction distinguishing method and device and computer equipment

Country Status (1)

Country Link
CN (2) CN113837755A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110503412B (en) * 2019-08-30 2023-04-18 创新先进技术有限公司 Method and system for detecting offline red envelope code material conflict
CN111008864B (en) * 2019-11-29 2023-12-26 支付宝实验室(新加坡)有限公司 Method and device for determining paving relationship between marketing codes and merchants, and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106296329A (en) * 2015-06-09 2017-01-04 阿里巴巴集团控股有限公司 Business object information processing, credential information processing method and processing device
CN106487872A (en) * 2015-08-24 2017-03-08 阿里巴巴集团控股有限公司 The offer method and device of reward voucher, the distribution of virtual resource and get method
CN106920089A (en) * 2017-02-12 2017-07-04 广州芝绿电子商务有限公司 Red packet presentation method and system based on Quick Response Code
WO2017206937A1 (en) * 2016-06-02 2017-12-07 腾讯科技(深圳)有限公司 Method and device for information processing

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140012704A1 (en) * 2012-07-05 2014-01-09 Google Inc. Selecting a preferred payment instrument based on a merchant category
US20140337089A1 (en) * 2013-05-08 2014-11-13 Visa International Service Association Systems and methods to connect information
CN104573304A (en) * 2014-07-30 2015-04-29 南京坦道信息科技有限公司 User property state assessment method based on information entropy and cluster grouping
CN105049470B (en) * 2015-05-22 2019-03-01 腾讯科技(北京)有限公司 Event confirmation method, apparatus and system
CN108174350B (en) * 2017-11-30 2020-12-11 北京三快在线科技有限公司 Positioning method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106296329A (en) * 2015-06-09 2017-01-04 阿里巴巴集团控股有限公司 Business object information processing, credential information processing method and processing device
CN106487872A (en) * 2015-08-24 2017-03-08 阿里巴巴集团控股有限公司 The offer method and device of reward voucher, the distribution of virtual resource and get method
WO2017206937A1 (en) * 2016-06-02 2017-12-07 腾讯科技(深圳)有限公司 Method and device for information processing
CN106920089A (en) * 2017-02-12 2017-07-04 广州芝绿电子商务有限公司 Red packet presentation method and system based on Quick Response Code

Also Published As

Publication number Publication date
CN108985831A (en) 2018-12-11
CN113837755A (en) 2021-12-24

Similar Documents

Publication Publication Date Title
CN109101989B (en) Merchant classification model construction and merchant classification method, device and equipment
CN110163612B (en) Payment wind control method and device
CN108876560B (en) Method and device for performing credit evaluation on work publisher based on block chain
CN109102151B (en) Suspicious group identification method and device
CN107563757B (en) Data risk identification method and device
CN111126623B (en) Model updating method, device and equipment
CN109102324B (en) Model training method, and red packet material laying prediction method and device based on model
CN107451854B (en) Method and device for determining user type and electronic equipment
CN108829769B (en) Suspicious group discovery method and device
TWI706332B (en) Graphic coding display method and device and computer equipment
CN110750530B (en) Service system and data checking method thereof
EP3779816A1 (en) Method and device for recognizing validity of evidence based on blockchain evidence deposition
WO2020063114A1 (en) Method and apparatus for detecting security awareness of user
CN108985831B (en) Offline transaction distinguishing method and device and computer equipment
CN112533209A (en) Black product identification method and black product identification device
CN111475853A (en) Model training method and system based on distributed data
CN108053214B (en) False transaction identification method and device
CN110852754A (en) Risk identification method, device and equipment
CN109583910B (en) Commodity authorization identification method, device and equipment
CN109325015B (en) Method and device for extracting characteristic field of domain model
CN109345249B (en) Payment failure processing method and device
CN110929285B (en) Method and device for processing private data
CN109345252A (en) A kind of online trading control method, device and computer equipment
CN110278241B (en) Registration request processing method and device
CN110147999B (en) Transaction risk identification method and device

Legal Events

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

Effective date of registration: 20200922

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

Applicant after: Innovative advanced technology Co.,Ltd.

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

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200922

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

Applicant after: Advanced innovation technology Co.,Ltd.

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

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant