Solve the problem that pinphp cannot set the commission rate

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.