Skip to content

修复acg-faka用epusdt收款验签失败的错误 #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

songjian
Copy link

@songjian songjian commented Jul 6, 2023

关于issue #22 的一个解决方法。

还需要修改acg-faka的epusdt插件:

路径:app/Pay/Epusdt/Impl/Signature.php

   public static function generateSignature(array $data, string $key): string
    {
        ksort($data);
        reset($data);
        $sign = '';
        foreach ($data as $k => $v) {
            if ($v == '') continue;
            $sign .= $k . '=' . $v . '&';
        }
        $sign = trim($sign, '&');
        return md5($sign . $key);
    }

@Utakata-C
Copy link

按照您的方法修改了[Order.php][RechargeNotification.php][Signature.php]这三个文件后还是存在回调异常的情况。能跳转回订单查询界面但是显示的是未支付。

@songjian
Copy link
Author

songjian commented Jan 3, 2024

按照您的方法修改了[Order.php][RechargeNotification.php][Signature.php]这三个文件后还是存在回调异常的情况。能跳转回订单查询界面但是显示的是未支付。

可以对照这篇文章看一下 https://songjian.org/2023/07/07/修复acg-faka用epusdt收款验签失败的错误

@80351418
Copy link

20240327041630
20240327041601

看图 修改这两处地方的代码即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants