Error phenomenon :
stay Laravel in , Directly introducing alipay when , Will report the mistake :
Error reason :
alipaySDK As defined in Encrypt()/Decrypt() Function and Laravel As defined in Encrypt()/Decrypt() The function has the same name .
terms of settlement :
modify alipaySDK The function name defined in 、 Modify the referenced function name .
Solution steps :
It was given by the government SDK in , There are three files that need to be modified :
aop/AopEncrypt.php
aop/AopClient.php
lotusphp_runtime/Cookie/Cookie.php
Find in file encrypt/decrypt Replace with alipayEncrypt/alipayDecrypt that will do .