Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
A friend of mine recently told me to stroll around the collection can not collect information about a store. So I went to try, the results found really not, and then I went into Taobao customers to try the backstage search, the results of the desired shop is able to show. What exactly is the problem? There are 2 possibilities for your own thinking:
1.pinphp Taobao API problem?
2. Is it because stroll is not yet audited by the online?
So I imagine with pinphp with the same framework of the micro-purchase system, this system is the same as pinphp with the thinkphp framework, so try the acquisition system of micro-purchase contrast code, can not find the problem?
Here's a screenshot of pinphp:
Compare the micro-purchase:
The data are obviously different, and the difference is in the Commission ratio. So the commission ratio of pinphp set to 1%-10%, the result collected only a few data, and the Commission ratio is only 10%. Lower the commission rate and find that data cannot be displayed under 10%. Finally to understand the problem, is the official program has a problem, or is the program has a problem, or is not write the commission ratio of the set statement.
Clear the reason, the rest is to solve it. Because I am a front-end engineer, not very understand the PHP code, but the ordinary things can be read, and then find the background collection of pages, Collect_alimama, and then find the corresponding action module: collect_alimamaAction.class.php. Location of specific code 241,242:
$req->setstartcommissionrate (1000);
$req->setendcommissionrate (2000);
Setstartcommissionrate is the starting value for setting the commission rate, Setstartcommissionrate is the end value for setting the commission rate.
The code clearly tells us that the official is set dead commission rate, 10%-20% value, so we want to collect less than 10% of the natural. But at least the authorities should reserve an interface to set the commission rate.
OK, know the problem code, so revise, the problem solved.
Just annotate the code above and add the following code:
$map [' setstartcommissionrate '] && $req->setendtotalnum ($map [' end_totalnum ']); Commission rate Start Value
$map [' setendcommissionrate '] && $req->setstartcredit ($map [' start_credit ']); Commission Rate End Value
To resolve this problem, you can set the commission rate yourself.