• 周六. 10 月 12th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

Laravel uses alipaysdk to encrypt and decrypt function name conflict error cannot redeclare encrypt(

King Wang

1 月 3, 2022

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 .

发表回复