CN106339316A - Method and device for diagnosing code segment in e-commerce platform - Google Patents

Method and device for diagnosing code segment in e-commerce platform Download PDF

Info

Publication number
CN106339316A
CN106339316A CN201610717462.4A CN201610717462A CN106339316A CN 106339316 A CN106339316 A CN 106339316A CN 201610717462 A CN201610717462 A CN 201610717462A CN 106339316 A CN106339316 A CN 106339316A
Authority
CN
China
Prior art keywords
solicited message
configuration parameter
default
request information
code segment
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.)
Granted
Application number
CN201610717462.4A
Other languages
Chinese (zh)
Other versions
CN106339316B (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.)
Shanghai Love Network Technology Co Ltd
Original Assignee
Shanghai Love 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 Shanghai Love Network Technology Co Ltd filed Critical Shanghai Love Network Technology Co Ltd
Priority to CN201610717462.4A priority Critical patent/CN106339316B/en
Publication of CN106339316A publication Critical patent/CN106339316A/en
Application granted granted Critical
Publication of CN106339316B publication Critical patent/CN106339316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application of the invention provides a method and a device for diagnosing a code segment in an e-commerce platform. The method comprises the following steps: distributing a unique default marker for a request information source in advance, wherein the request information source comprises an account of a user or terminal equipment of the user; storing request information in a default storage space when receiving the request information carrying the default marker; receiving a diagnosis instruction from the request information source, and inquiring target request information corresponding to the diagnosis instruction in the default storage space; using configuration parameters in the target request information to diagnose the code segment used for processing the configuration parameters. According to the method and the device for diagnosing the code segment in the e-commerce platform provided by the embodiment of the application, the faulted code segment is diagnosed without setting a proxy server.

Description

A kind of method and device in e-commerce platform, code segment being diagnosed
Technical field
The application is related to Internet technical field, particularly to diagnosed to code segment in a kind of e-commerce platform Method and device.
Background technology
With the continuous development of Internet technology, the various e-commerce platforms relying on Internet technology also meet the tendency and Raw.The architecture of e-commerce platform often can include server and client side, described server and described client it Between data interaction can be carried out by the Internet.
In e-commerce platform, user often can set up applications in advance on the client, may then pass through The operation interface of this application program, sends various requests to server.Server please receive that client sends After asking, the data related to this request can be returned to client, so that user browses in response to this request.For example, user The key word of commodity in the application program using Jingdone district store, can be inputted in the search column in Jingdone district store, then click on Search.So, the search instruction for this key word just can send as request to the server in Jingdone district store, Jingdone district store Server the product data related to described key word can be back to the mobile phone of user in response to this request, and in Beijing Shown in the operation interface in eastern store.
In practical application scene, it is responsible for the code segment that the request of client is processed sometimes due to breaking down And lead to the error in data generating.For example, client is in 2g network environment, after code segment is processed, server Return to client that data volume is very big, the very high picture of definition, lead to client to cannot be carried out loading or loading expending Too many flow.In this case, then need code segment is diagnosed.
In the prior art, visitor can be recorded by way of setting up proxy server between clients and servers Family end sends the data that request and server return to client.However, one proxy server of additional in a network Operation and the maintenance cost of application program undoubtedly will be increased.Additionally, the side in application prior art, code segment being diagnosed In addition it is also necessary to pre-set ip address and the port numbers of proxy server in the client, this can make the operation of client during method Become comparatively laborious, the operating experience of impact user.
Content of the invention
It is an object of the invention to provide a kind of method in e-commerce platform, code segment being diagnosed, do not needing In the case of setting proxy server, the code segment breaking down is diagnosed.
For achieving the above object, the application one side provides the side in a kind of e-commerce platform, code segment being diagnosed Method, methods described includes: uniquely presets mark for the distribution of solicited message source in advance, described solicited message source includes the account of user Number or user terminal unit;When receiving the solicited message carrying described default mark, described solicited message is deposited It is stored in default memory space;Receive the diagnostic instruction that described solicited message source is sent, and look in described default memory space Ask the destination request information corresponding with described diagnostic instruction;Using the configuration parameter in described destination request information, to process The code segment of described configuration parameter is diagnosed.
Further, described for the distribution of solicited message source, uniquely default mark specifically includes in advance: according to pre-arranged code Mode encodes to default mark, generates the graphical information comprising described default mark;When solicited message source is detected to institute When stating graphical information and being identified, by the described default mark comprising in described graphical information and the binding of described solicited message source.
Further, described default memory space is inquired about the destination request information tool corresponding with described diagnostic instruction Body includes: extracts the target identification of object to be diagnosed and the default mark in described solicited message source from described diagnostic instruction;From In described default memory space, inquiry carries described target identification and the solicited message of described default mark, forms solicited message Collection;According to the timing node receiving described diagnostic instruction, concentrate from described solicited message and filtered out before described timing node And with described timing node immediate destination request information.
Further, using the configuration parameter in described destination request information, to the code segment processing described configuration parameter Carry out diagnosis to specifically include: obtain corresponding with the configuration parameter in described destination request information according to default calculating criterion calculation Reference result;To in the code segment of configuration parameter described in described configuration parameter input processing, obtain and described configuration parameter phase Corresponding actual result;When described reference result is different from described actual result, the code of configuration parameter described in determination processing Section breaks down.
Further, described solicited message is stored in default memory space and specifically includes: in response to described request letter Breath, returns the request data corresponding with described solicited message to described solicited message source;By described solicited message and described Request data is stored in described default memory space jointly.
Further, described solicited message and described request data are stored in tool in described default memory space jointly Body includes: described solicited message and described request data is constituted key-value pair, and described key-value pair is stored in described default In memory space.
Further, described default memory space is inquired about the destination request information tool corresponding with described diagnostic instruction Body includes: extracts the target identification of object to be diagnosed and the default mark in described solicited message source from described diagnostic instruction;From In described default memory space, inquiry carries described target identification and the key-value pair of described default mark, forms key-value pair collection;Root According to the timing node receiving described diagnostic instruction, from described key-value pair concentrate filtered out before described timing node and with institute State the immediate target key value pair of timing node, described target key value centering includes destination request information and destination request number According to.
Further, using the configuration parameter in described destination request information, to the code segment processing described configuration parameter Carry out diagnosis to specifically include: obtain corresponding with the configuration parameter in described destination request information according to default calculating criterion calculation Reference result;The actual result corresponding with described configuration parameter is obtained from described destination request data;When described reference When result is different from described actual result, described in determination processing, the code segment of configuration parameter breaks down.
For achieving the above object, on the other hand the application also provides in a kind of e-commerce platform and code segment is diagnosed Device, described device includes: default mark allocation unit, for being that the distribution of solicited message source is uniquely preset and identified in advance, Described solicited message source includes the account of user or the terminal unit of user;Memory element, carries for working as to receive When stating the default solicited message identifying, described solicited message is stored in default memory space;Destination request information inquiry list Unit, for receiving the diagnostic instruction that described solicited message source is sent, and inquiry and described diagnosis in described default memory space Instruct corresponding destination request information;Diagnosis unit, for using the configuration parameter in described destination request information, to process The code segment of described configuration parameter is diagnosed.
Further, described memory element specifically includes: request data returns module, in response to described request letter Breath, returns the request data corresponding with described solicited message to described solicited message source;Key-value pair memory module, for by institute State solicited message and described request data constitutes key-value pair, and described key-value pair is stored in described default memory space.
The technical scheme being provided from above the application embodiment, the application embodiment passes through as sending request letter The solicited message source distribution of breath uniquely presets mark, such that it is able to be stored in the solicited message carrying described default mark In default memory space, the solicited message carrying described default mark is made a distinction with common solicited message.That When receiving the diagnostic instruction that solicited message source is sent, just can inquire from described default memory space and examine with described The fixed corresponding solicited message of severed finger, such that it is able to using the configuration parameter comprising in solicited message, to processed at that time described please The code segment seeking information is diagnosed.As can be seen here, in a kind of e-commerce platform that the application provides, code segment is examined Disconnected method and device, can diagnose to the code segment breaking down in the case of not needing to arrange proxy server.
Brief description
The method flow in a kind of e-commerce platform that Fig. 1 provides for the application embodiment, code segment being diagnosed Figure;
Divide in the method in a kind of e-commerce platform that Fig. 2 provides for the application embodiment, code segment being diagnosed Join the step schematic diagram of default mark;
The apparatus function in a kind of e-commerce platform that Fig. 3 provides for the application embodiment, code segment being diagnosed Module map.
Specific embodiment
In order that those skilled in the art more fully understand the technical scheme in the application, real below in conjunction with the application Apply the accompanying drawing in mode, the technical scheme in the application embodiment is clearly and completely described it is clear that described Embodiment is only a part of embodiment of the application, rather than whole embodiments.Based on the embodiment party in the application Formula, all other embodiment that those of ordinary skill in the art are obtained under the premise of not making creative work, all answer When the scope belonging to the application protection.
Refer to Fig. 1.In a kind of e-commerce platform that Fig. 1 provides for one embodiment of the application, code segment is carried out The method flow diagram of diagnosis.As shown in figure 1, methods described may comprise steps of.
Step s1: uniquely preset mark for the distribution of solicited message source in advance, described solicited message source includes the account of user Number or user terminal unit.
In the present embodiment, described solicited message source can be the terminal unit that user uses or user exists Account registered in advance in application program.When described solicited message source is connected with the server foundation of application program, described clothes Business device can uniquely preset mark for the distribution of described solicited message source, the solicited message that described solicited message source is sent with Other solicited message phases are distinguished.
In the present embodiment, described default mark can be the life of preset number coding, preset characters string or user At least one in thing characteristic.In practical application scene, described default mark can be described preset number coding, institute State one of mark of these three types of biological attribute data of preset characters string or described user or therein Certain two combination or the combination of these three.Described preset number coding can be for example to be generated at random by server Numeral or the numeric string after default numeric string being encoded according to pre-arranged code mode by server, also may be used To be described solicited message source mailing address in a network.Described preset characters string can be described solicited message source in network In mac address or the identification code that prestores in the application of described solicited message source or by server with A string character string that machine generates.Spy's characteristic of described user can be speech data or the fingerprint number of described user Can be mike or the fingerprint identification module that user passes through terminal unit according to, described speech data or described finger print data In advance in application program described in typing, described speech data or described finger print data can be stored in the service of application program In device, and corresponding terminal unit or user account can be distributed to being serviced device.
Step s3: when receiving the solicited message carrying described default mark, described solicited message is stored in pre- If in memory space.
In the present embodiment, be assigned with for described solicited message source uniquely preset mark after, by described request The solicited message that information source sends all can carry described default mark.So, carry described pre- bidding when server receives After the solicited message known, described solicited message can be stored in default memory space.
In the present embodiment, described default memory space can be independently of a memorizer of server, this storage Device can keep communication connection with server, and can be accessed by other equipment (such as diagnostic device).Described default storage Space may be located in a preassigned server that is to say, that can divide in described preassigned server Go out a space, the solicited message carrying described default mark can be stored in the space that this marks off.
Step s5: receive the diagnostic instruction sent of described solicited message source, and in described default memory space inquiry with The corresponding destination request information of described diagnostic instruction.
In the present embodiment, when user is during using application program, find to open up in the operation pages of application program When the information shown is wrong, diagnostic instruction can be triggered by the programmable button on application program, this diagnostic instruction such that it is able to by Solicited message source sends to the server of application program.For example, in mobile phone Taobao, when the displaying that the user discover that certain commodity During the variation in prices of price and the clearing that finally place an order, " complaint " button pre-setting in mobile phone Taobao can be passed through, or " valency Lattice are problematic?" button triggering diagnostic instruction.
In the present embodiment, in user's triggering diagnostic instruction, application program can be to request object mistake Recorded, and be will appear from the request object of mistake and be defined as object to be diagnosed.In the present embodiment, application program is permissible The target identification of object to be diagnosed is added in diagnostic instruction.Described target identification can be for described object to be diagnosed in application journey Numbering in sequence, for example, described target identification can be goods number in mobile phone Taobao for the commodity.In addition, application program is also The default mark in the solicited message source of triggering diagnostic instruction can be added in diagnostic instruction, to show that this diagnostic instruction is by which Individual solicited message source sends.In the present embodiment, when examining that the server of application program receives that solicited message source sends When severed finger makes, can record receive this diagnostic instruction timing node, this timing node can with characterize data make a mistake when Intermediate node.
In the present embodiment, when server receives the diagnostic instruction that solicited message source is sent, can be described pre- If inquiring about the destination request information corresponding with described diagnostic instruction in memory space.Described diagnostic instruction and destination request information Corresponding relation be embodied in: the default mark in the solicited message source comprising in diagnostic instruction and the target identification of object to be diagnosed All corresponding identical with the default mark in the solicited message source comprising in destination request information and the target identification of request object, clothes Business device receive described destination request information timing node receive described diagnostic instruction timing node before and with reception The timing node of described diagnostic instruction is closest.For example bright it is assumed that server 19 points receive within 30 minutes 20 seconds request letter The destination request information that breath source is sent, the target identification asking object in this destination request information is lyq001, solicited message source Default be designated 1.For this destination request information, server returns request data to solicited message source, but the user discover that Have problems in this request data, just trigger the diagnostic instruction for this request object.Server connects at 19 points for 35 minutes 10 seconds Receive the diagnostic instruction that solicited message source is sent, in this diagnostic instruction request object be designated lyq001, this solicited message The default of source is designated 1.So server being designated request object lyq001 and asking from described default memory space The default destination request information being designated 1 asking information source extracts.Due to server receive this destination request information when Intermediate node is before receiving the timing node of diagnostic instruction, and receives timing node and the reception diagnosis of this destination request information The timing node of instruction is closest, and therefore this destination request information can think the corresponding solicited message of request object of error.
Step s7: using the configuration parameter in described destination request information, the code segment processing described configuration parameter is entered Row diagnosis.
In the present embodiment, after getting the destination request information corresponding with described diagnostic instruction, it is possible to use Configuration parameter in described destination request information, diagnoses to the code segment processing described configuration parameter.Wherein, described target Configuration parameter in solicited message can include the title in solicited message source, solicited message source is specified geographical position and request Information source sends residing network state during this destination request information etc..
In the present embodiment, when the code segment processing described configuration parameter breaks down, then the valency calculating can be led to The picture size of lattice or return and practical situation are not inconsistent, and cause situations such as price error or picture loading difficulty.Now, root The diagnostic instruction sent according to solicited message source, needs code segment is debugged, to judge whether code segment breaks down.
In the present embodiment, can will be defeated as code segment for the configuration parameter comprising in the destination request information of acquisition Enter parameter, allow code segment that described configuration parameter is processed again, with judge by code segment process the result that draws whether with Theoretical result is consistent.When consistent, then show that the code segment processing configuration parameter does not break down it may be possible to target at that time The configuration parameter comprising in solicited message is not inconsistent with actual configuration parameter, just leads to the data returning to solicited message source not to be inconsistent Share the expectation at family.For example, user buy a certain commodity when it is desirable to results address be Jiangsu Province, but user is supplied to Server is but the current actual geographic position (for example, Xinjiang) of itself, the code segment in such server according to Xinjiang this The postage that individual geographical position calculates can be substantially high than the postage being calculated according to this geographical position of Jiangsu, such that user produces The judgement of mistake and triggers diagnostic instruction in raw postage.After scheme so according to present embodiment is processed, find by code It is consistent that Duan Chongxin processes the result of configuration parameter and theoretical result, then explanation code segment does not break down, thus Can be determined that and do not correspond between the configuration parameter of user's offer and its desired configuration parameter.When again being processed by code segment Whether the result going out is inconsistent with theoretical result, then may indicate that it is that code segment occurs in that fault, such that it is able to using debugging Instrument is debugged to it.
Refer to Fig. 2.In one embodiment of the application, above-mentioned step s1 can be realized as steps described below.
Step s11: according to pre-arranged code mode, default mark is encoded, generate the figure comprising described default mark Information;
Step s13: when solicited message source is detected described graphical information being identified, will wrap in described graphical information The described default mark containing and the binding of described solicited message source.
In the present embodiment, can default mark be encoded according to pre-arranged code mode by server in advance, raw Become to comprise the graphical information of described default mark.Wherein, described pre-arranged code mode can include but is not limited to pdf417, qr The coded systems such as code, code 49, code 16k, code one.Described default mark can be one group of data, using default After coded system encodes to it, described default mark can be contained in the such figure of such as bar code or Quick Response Code In information.After generating and comprising the graphical information of described default mark, server can set up with solicited message source be connected when, Described graphical information is sent to described solicited message source.So, by pointing out solicited message source, this graphical information is carried out Scanning recognition, such that it is able to be bound the default mark comprising in this graphical information with described solicited message source.In this reality Apply in mode, when solicited message source is detected described graphical information being identified, then can wrap in described graphical information The described default mark containing and the binding of described solicited message source.In practical application scene, such as, in mobile phone Taobao, work as user When mobile phone Taobao is opened on smart mobile phone, can be with the terms of service of the default mark of automatic spring binding and attached in clause On the Quick Response Code comprising described default mark that generated by server.Then can be by the user decide whether to accept this service bar Money, upon acceptance, just can identify the default mark comprising in described Quick Response Code, such that it is able to this is preset mark and user's The phase binding of solicited message source.If user does not accept this condition, this Quick Response Code can not be identified.So, by with The selection at family, to determine whether to bind default mark, can be respected the privacy of user, strengthen the experience that user uses application program.
In one embodiment of the application, in order to accurately extract from numerous solicited messages and diagnostic instruction phase Corresponding destination request information, can be inquired about relative with described diagnostic instruction in described default memory space by following steps The destination request information answered.
The target identification of object to be diagnosed and the default mark in described solicited message source is extracted from described diagnostic instruction;
From described default memory space, inquiry carries described target identification and the solicited message of described default mark, is formed Solicited message collection;
According to the timing node receiving described diagnostic instruction, concentrate from described solicited message and filter out segmentum intercalaris when described Point before and with described timing node immediate destination request information.
In the present embodiment, in user's triggering diagnostic instruction, application program can be to request object mistake Recorded, and be will appear from the request object of mistake and be defined as object to be diagnosed.In the present embodiment, application program is permissible The target identification of object to be diagnosed is added in diagnostic instruction.Described target identification can be for described object to be diagnosed in application journey Numbering in sequence, for example, described target identification can be goods number in mobile phone Taobao for the commodity.In addition, application program is also The default mark in the solicited message source of triggering diagnostic instruction can be added in diagnostic instruction, to show that this diagnostic instruction is by which Individual solicited message source sends.In the present embodiment, when examining that the server of application program receives that solicited message source sends When severed finger makes, can record receive this diagnostic instruction timing node, this timing node can with characterize data make a mistake when Intermediate node.
In the present embodiment, when server receives the diagnostic instruction that solicited message source is sent, can examine from described In severed finger order by described target identification and default marker extraction out, then can inquire about from described default memory space and take With the solicited message of described target identification and described default mark, form solicited message collection.In asking that described solicited message is concentrated Information is asked to be all the solicited message that by same solicited message source, identical is asked with object initiation, only each solicited message The timing node initiated is different.
In the present embodiment, send solicited message in solicited message source and receive the request data sent by server Afterwards, if the user feels that storing mistake in described request data, diagnostic instruction can just be triggered, therefore described diagnostic instruction is often Follow after solicited message.So, in the present embodiment, can be further to when between solicited message and diagnostic instruction Intermediate node is judged, to obtain the destination request information corresponding with described diagnostic instruction.Specifically, in the present embodiment Can concentrate from described solicited message and filtered out before described timing node according to the timing node receiving described diagnostic instruction And with described timing node immediate destination request information.Determining the immediate destination request letter with described timing node During breath, the timing node of the timing node of each solicited message and diagnostic instruction can be subtracted each other, and will be exhausted for the result subtracted each other Minimum to value is defined as destination request information.So, by target identification in solicited message and default mark and time The judgement of node, such that it is able to accurately extract the destination request letter corresponding with diagnostic instruction from numerous solicited messages Breath.
In one embodiment of the application, in order to judge to process the code segment of configuration parameter in described destination request information Whether break down, described configuration parameter can be inputted in corresponding code segment, process everywhere again by described code segment Reason result, by being analyzed to the result obtaining again, to judge whether this code segment breaks down.In consideration of it, In present embodiment, by following steps, the code segment processing described configuration parameter can be diagnosed.
Obtain the reference knot corresponding with the configuration parameter in described destination request information according to the default criterion calculation that calculates Really;
By in the code segment of configuration parameter described in described configuration parameter input processing, obtain corresponding with described configuration parameter Actual result;
When described reference result is different from described actual result, event in the code segment of configuration parameter described in determination processing Barrier.
In the present embodiment, described default calculating standard can be passed through for processing the theoretical algorithm of described configuration parameter The result that this theoretical algorithm obtains can be reference result, and described reference result often can obtain for processing described configuration parameter Correct result.In the present embodiment, according to default calculate criterion calculation obtain with described destination request information in join After putting the corresponding reference result of parameter, can by the code segment of configuration parameter described in described configuration parameter input processing, So that described code segment processes this configuration parameter again, thus obtaining the actual result corresponding with described configuration parameter, should Actual result is often consistent with the result in the data that the server that request target source receives before returns.So, by right Described reference result and described actual result are contrasted, such that it is able to judge whether the code segment processing described configuration parameter goes out Existing fault.Specifically, when described reference result is different from described actual result it is possible to determine that processing the generation of described configuration parameter Code section breaks down;And described reference result identical with described actual result when, then can be determined that and process described configuration parameter Code segment does not break down.So, again configuration parameter is processed using code segment, such that it is able to judge this code segment Whether break down.
In one embodiment of the application, the solicited message sent in response to solicited message source in server, to described After solicited message source returns the request data corresponding with described solicited message, it is also possible that stating request data and described request Information is stored in described default memory space jointly, in order to look into the request data returning at that time during follow-up diagnosis See.In consideration of it, in the present embodiment, step that described solicited message is stored in default memory space can be passed through following Step is realizing.
In response to described solicited message, return the number of request corresponding with described solicited message to described solicited message source According to;
Described solicited message and described request data are stored in described default memory space jointly.
Specifically, in the present embodiment, described solicited message and described request data can be constituted key-value pair (key-value), wherein, described solicited message can be used as key (key), and the request data corresponding with described solicited message can As value (value), and described key-value pair to be stored in described default memory space.So, subsequently referring to for diagnosis During order inquiry destination request information, the destination request data corresponding with described destination request information can be obtained in the lump, with side Just check to be returned which data to solicited message source at that time.
When described solicited message and request data are when being jointly stored in the form of key-value pair in described default memory space, Described default memory space is inquired about the destination request information corresponding with described diagnostic instruction step can also pass through with Lower step is realizing.
The target identification of object to be diagnosed and the default mark in described solicited message source is extracted from described diagnostic instruction;
From described default memory space, inquiry carries described target identification and the key-value pair of described default mark, forms key Value is to collection;
According to receive described diagnostic instruction timing node, from described key-value pair concentrate filter out described timing node it Front and with described timing node immediate target key value pair, described target key value centering includes destination request information and mesh Mark request data.
In the present embodiment, believe in the target identification extracting object to be diagnosed from described diagnostic instruction and described request After the default mark in breath source, can inquire about from described default memory space and carry described target identification and described default mark Key-value pair, to form key-value pair collection.Wherein, described target identification and described default mark may be embodied in the request letter of key-value pair In breath, after inquiring the solicited message comprising described target identification and described default mark, just can be by described solicited message Residing key-value pair extracts, and so just can form the key-value pair collection being made up of multiple key-value pairs.
In the present embodiment, equally can further the timing node of diagnostic instruction be judged, with from described Key-value pair is concentrated and was filtered out before described timing node and the immediate target key value pair with described timing node.Specifically The timing node of the timing node of each key-value pair and diagnostic instruction can be subtracted each other by ground, and by the result subtracted each other absolute value Minimum key-value pair is defined as target key value pair.Described target key value centering includes destination request information and destination request number According to.So, by the judgement to target identification in key-value pair and default mark and timing node, such that it is able to accurately comform The target key value pair corresponding with diagnostic instruction is extracted in many key-value pairs.
In one embodiment of the application, obtaining the target key value corresponding with described diagnostic instruction to afterwards, Using default theoretical algorithm, the configuration parameter in described target key value centering destination request information can be calculated, with To theoretical reference result.Then this reference result can be entered with the actual result in target key value centering destination request data Row contrast, may thereby determine that whether the code segment processing described configuration parameter at that time breaks down.In consideration of it, in this embodiment party In formula, using the configuration parameter in described destination request information, the step that the code segment processing described configuration parameter is diagnosed Suddenly following sub-step can specifically be included.
Obtain the reference knot corresponding with the configuration parameter in described destination request information according to the default criterion calculation that calculates Really;
The actual result corresponding with described configuration parameter is obtained from described destination request data;
When described reference result is different from described actual result, event in the code segment of configuration parameter described in determination processing Barrier.
In the present embodiment, obtain and the configuration parameter in described destination request information according to default calculating criterion calculation After corresponding reference result, code segment can be reused described configuration parameter is processed, but can be straight Connect and check the actual result being back to solicited message source in target key value centering destination request data at that time.By by described reference Result is contrasted with described actual result, and whether the code segment such that it is able to configuration parameter described in determination processing breaks down. Specifically, when described reference result is different from described actual result, event in the code segment of configuration parameter described in determination processing Barrier;When described reference result is identical with described actual result, event in the code segment of configuration parameter described in determination processing Barrier.
Refer to Fig. 3.The application embodiment also provides the dress in a kind of e-commerce platform, code segment being diagnosed Put.As shown in figure 3, described device may include that
Default mark allocation unit 100, for uniquely presetting mark, described request letter for the distribution of solicited message source in advance Breath source includes the account of user or the terminal unit of user;
Memory element 200, for when receiving the solicited message carrying described default mark, by described solicited message It is stored in default memory space;
Destination request information query unit 300, for receiving the diagnostic instruction that described solicited message source is sent, and described The destination request information corresponding with described diagnostic instruction is inquired about in default memory space;
Diagnosis unit 400, for using the configuration parameter in described destination request information, to the described configuration parameter of process Code segment is diagnosed.
In one embodiment of the application, described memory element 200 specifically includes:
Request data returns module, in response to described solicited message, returning to described solicited message source and asking with described Seek the request data that information is corresponding;
Key-value pair memory module, for described solicited message and described request data are constituted key-value pair, and will be described Key-value pair is stored in described default memory space.
It should be noted that the specific implementation of each functional module in said apparatus all with step s1 to s7 in Description is consistent, just repeats no more here.
Therefore, the application embodiment passes through uniquely to be marked with advance for the solicited message source distribution sending solicited message Know, such that it is able to be stored in the solicited message carrying described default mark in default memory space, will carry The solicited message stating default mark is made a distinction with common solicited message.So receiving the diagnosis that solicited message source is sent During instruction, just can inquire from described default memory space and specify corresponding solicited message with described diagnosis, thus can Using the configuration parameter comprising in solicited message, to diagnose to the code segment processing described solicited message at that time.Thus may be used See that the method and device in a kind of e-commerce platform that the application provides, code segment being diagnosed can not need to set In the case of putting proxy server, the code segment breaking down is diagnosed.
Description to the various embodiments of the application is supplied to those skilled in the art with the purpose describing above.It is not Be intended to exhaustion or be not intended to limit the invention to single disclosed embodiment.As described above, the application's is various Substitute and change will be apparent from for above-mentioned technology one of ordinary skill in the art.Therefore although specifically begging for Discuss the embodiment of some alternatives, but other embodiment will be apparent from, or those skilled in the art are relatively Easily draw.The application is intended to be included in this all replacement of the present invention having discussed, modification and change, and falls Other embodiment in the spirit and scope of above-mentioned application.

Claims (10)

1. a kind of method in e-commerce platform, code segment being diagnosed is it is characterised in that methods described includes:
Uniquely preset mark for the distribution of solicited message source in advance, described solicited message source includes the account of user or user Terminal unit;
When receiving the solicited message carrying described default mark, described solicited message is stored in default memory space In;
Receive the diagnostic instruction that described solicited message source is sent, and inquiry and described diagnostic instruction in described default memory space Corresponding destination request information;
Using the configuration parameter in described destination request information, the code segment processing described configuration parameter is diagnosed.
2. method according to claim 1 is it is characterised in that described be uniquely marked with advance for the distribution of solicited message source in advance Knowledge specifically includes:
According to pre-arranged code mode, default mark is encoded, generate the graphical information comprising described default mark;
When solicited message source is detected described graphical information being identified, described default by comprise in described graphical information Mark and the binding of described solicited message source.
3. method according to claim 1 is referred to it is characterised in that inquiring about in described default memory space with described diagnosis Corresponding destination request information is made to specifically include:
The target identification of object to be diagnosed and the default mark in described solicited message source is extracted from described diagnostic instruction;
From described default memory space, inquiry carries described target identification and the solicited message of described default mark, forms request Information collection;
According to the timing node receiving described diagnostic instruction, concentrate from described solicited message and filtered out before described timing node And with described timing node immediate destination request information.
4. method according to claim 1 is it is characterised in that utilizing the configuration parameter in described destination request information, right The code segment processing described configuration parameter carries out diagnosis and specifically includes:
Obtain the reference result corresponding with the configuration parameter in described destination request information according to default calculating criterion calculation;
By in the code segment of configuration parameter described in described configuration parameter input processing, obtain the reality corresponding with described configuration parameter Border result;
When described reference result is different from described actual result, described in determination processing, the code segment of configuration parameter breaks down.
5. method according to claim 1 is it is characterised in that be stored in tool in default memory space by described solicited message Body includes:
In response to described solicited message, return the request data corresponding with described solicited message to described solicited message source;
Described solicited message and described request data are stored in described default memory space jointly.
6. method according to claim 5 is it is characterised in that jointly deposit described solicited message and described request data It is stored in described default memory space and specifically include:
Described solicited message and described request data are constituted key-value pair, and described key-value pair is stored in described default storage In space.
7. method according to claim 6 is referred to it is characterised in that inquiring about in described default memory space with described diagnosis Corresponding destination request information is made to specifically include:
The target identification of object to be diagnosed and the default mark in described solicited message source is extracted from described diagnostic instruction;
From described default memory space, inquiry carries described target identification and the key-value pair of described default mark, forms key-value pair Collection;
According to the timing node receiving described diagnostic instruction, concentrate from described key-value pair and filtered out before described timing node simultaneously And with described timing node immediate target key value pair, described target key value centering includes destination request information and target please Seek data.
8. method according to claim 7 is it is characterised in that utilizing the configuration parameter in described destination request information, right The code segment processing described configuration parameter carries out diagnosis and specifically includes:
Obtain the reference result corresponding with the configuration parameter in described destination request information according to default calculating criterion calculation;
The actual result corresponding with described configuration parameter is obtained from described destination request data;
When described reference result is different from described actual result, described in determination processing, the code segment of configuration parameter breaks down.
9. the device in a kind of e-commerce platform, code segment being diagnosed is it is characterised in that described device includes:
Default mark allocation unit, for uniquely presetting mark, described solicited message source bag for the distribution of solicited message source in advance Include the account of user or the terminal unit of user;
Memory element, for when receiving the solicited message carrying described default mark, described solicited message being stored in In default memory space;
Destination request information query unit, for receiving the diagnostic instruction that described solicited message source is sent, and deposits in described presetting Storage inquires about the destination request information corresponding with described diagnostic instruction in space;
Diagnosis unit, for using the configuration parameter in described destination request information, to the code segment processing described configuration parameter Diagnosed.
10. device according to claim 9 is it is characterised in that described memory element specifically includes:
Request data returns module, in response to described solicited message, returning and described request letter to described solicited message source The corresponding request data of manner of breathing;
Key-value pair memory module, for constituting key-value pair by described solicited message and described request data, and by described key assignments To being stored in described default memory space.
CN201610717462.4A 2016-08-24 2016-08-24 A kind of method and device that code segment is diagnosed in e-commerce platform Active CN106339316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610717462.4A CN106339316B (en) 2016-08-24 2016-08-24 A kind of method and device that code segment is diagnosed in e-commerce platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610717462.4A CN106339316B (en) 2016-08-24 2016-08-24 A kind of method and device that code segment is diagnosed in e-commerce platform

Publications (2)

Publication Number Publication Date
CN106339316A true CN106339316A (en) 2017-01-18
CN106339316B CN106339316B (en) 2019-01-11

Family

ID=57825787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610717462.4A Active CN106339316B (en) 2016-08-24 2016-08-24 A kind of method and device that code segment is diagnosed in e-commerce platform

Country Status (1)

Country Link
CN (1) CN106339316B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754127A (en) * 2009-12-22 2010-06-23 中兴通讯股份有限公司 Message acquiring and processing method, client, server and communication system
CN103699822A (en) * 2013-12-31 2014-04-02 同济大学 Application system and detection method for users' abnormal behaviors in e-commerce based on mouse behaviors
CN104915846A (en) * 2015-06-18 2015-09-16 北京京东尚科信息技术有限公司 Electronic commerce time sequence data anomaly detection method and system
CN104954326A (en) * 2014-03-27 2015-09-30 腾讯科技(深圳)有限公司 Method and system for compiling network communication data
CN105847355A (en) * 2016-03-23 2016-08-10 重庆秒银科技有限公司 Data merging processing system
CN107463568A (en) * 2016-06-03 2017-12-12 阿里巴巴集团控股有限公司 A kind of history accesses the acquisition methods and device of data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754127A (en) * 2009-12-22 2010-06-23 中兴通讯股份有限公司 Message acquiring and processing method, client, server and communication system
CN103699822A (en) * 2013-12-31 2014-04-02 同济大学 Application system and detection method for users' abnormal behaviors in e-commerce based on mouse behaviors
CN104954326A (en) * 2014-03-27 2015-09-30 腾讯科技(深圳)有限公司 Method and system for compiling network communication data
CN104915846A (en) * 2015-06-18 2015-09-16 北京京东尚科信息技术有限公司 Electronic commerce time sequence data anomaly detection method and system
CN105847355A (en) * 2016-03-23 2016-08-10 重庆秒银科技有限公司 Data merging processing system
CN107463568A (en) * 2016-06-03 2017-12-12 阿里巴巴集团控股有限公司 A kind of history accesses the acquisition methods and device of data

Also Published As

Publication number Publication date
CN106339316B (en) 2019-01-11

Similar Documents

Publication Publication Date Title
EP3822790B1 (en) Data processing method and device
CN108470298B (en) Method, device and system for transferring resource numerical value
CN103648089B (en) Anti-theft processing method and anti-theft processing device for mobile equipment
CN107909330B (en) Workflow data processing method and device, storage medium and computer equipment
WO2000022495A2 (en) Territorial determination of remote computer location in a wide area network for conditional delivery of digitized products
EP3217262B1 (en) Method for invoking local keyboard on html page in user terminal device and apparatus thereof
CN105099983B (en) authorization method, authority setting method and device
CN107203470B (en) Page adjustment method and device
CN108234549A (en) Policy information checking method and device
CN108897800A (en) A kind of method, apparatus and system of managing log information
CN105657677A (en) Short message sending method, short message gateway and service platform
CN108712428A (en) A kind of method and device carrying out device type identification to terminal
CN108256811A (en) Job information processing method, device, computer equipment and storage medium
CN114549068A (en) Short link generation method, equipment, device and computer readable storage medium
CN110969387A (en) Order distribution method, server, terminal and system
CN110765430A (en) Bank data processing system
EP3734484A1 (en) System for providing query processing service on basis of personal information protection
CN106875184B (en) Abnormal scene simulation method, device and equipment
CN106339316A (en) Method and device for diagnosing code segment in e-commerce platform
CN110213067A (en) Tracking information processing method, the device and system of service request
CN116776912A (en) Store detection processing method, device, system and computing equipment
CN102480383A (en) Log information message processing method and device
CN111611465A (en) Product detection system, method, device, computer equipment and storage medium
CN115760390A (en) Service data processing method and device and network point terminal equipment
CN108259441A (en) It is a kind of to prevent URL from accessing the method and device to detour

Legal Events

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