Home > Backend Development > PHP Tutorial > ThinkPHP integrated Alipay ILLEGAL_SIGN error_PHP tutorial

ThinkPHP integrated Alipay ILLEGAL_SIGN error_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-15 13:21:33
Original
1148 people have browsed it

Today when ThinkPHP integrated Alipay, an error always occurred: error code ILLEGAL_SIGN.

After investigation, it was found that there is an additional parameter after the generated payment URL: &__hash__=fd859fc9a96d36e0c4a75b036bbda88f_688da907d6c415fd12a1f4324a2110f3

This parameter is automatically added after ThinkPHP's token verification is turned on.

You can use C ( 'TOKEN_ON', false ); in Action to turn on or off token verification.

It is worth noting that if token verification is not turned off and the payment interface is integrated, this parameter will appear after the jump URL generated by the payment interface. However, the Alipay interface does not have this parameter, so the above error will occur. .

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477197.htmlTechArticleToday when ThinkPHP integrated Alipay, an error always occurred: error code ILLEGAL_SIGN. After investigation, it was found that there is an additional parameter after the generated payment URL: __hash__=fd859fc9a96d36e0...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
ThinkPHP Why use composer?
From 1970-01-01 08:00:00
0
0
0
thinkphp versions supported by php6
From 1970-01-01 08:00:00
0
0
0
thinkphp upload files
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template