> For the complete documentation index, see [llms.txt](https://onion-n4.gitbook.io/peadocs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onion-n4.gitbook.io/peadocs/peasdk/sspanel-malio-old.md).

# SSPanel - Malio OLD

注：本教程只针对【官方版本】搭建后进行测试接入成功！如 "改过其他源码文件" 或 "迁移过面板" 大概率会接入失败，暂不提供帮改帮修服务！

## 方法1 <a href="#fang-fa-1" id="fang-fa-1"></a>

{% hint style="success" %}
适用于`app/Services/Gateway/CustomPay.php` 存在的版本
{% endhint %}

{% file src="/files/QEMYeZtTSe39bzI8EnDJ" %}

1. 替换 `app/Services/Gateway/CustomPay.php`
2. 在 `config/routes.php` 内的 `$app->run();` 前添加:

```
// Jshipay
$app->post('/Jshi_notify', 'App\Services\Payment:notify');
$app->get('/Jshi_notify', 'App\Services\Payment:notify');
$app->post('/Jshi_return', 'App\Services\Payment:returnhtml');
$app->get('/Jshi_return', 'App\Services\Payment:returnhtml');
// end of Jshipay
```

3\. 在 `.config.php` 下添加:

```
$_ENV['jshipid']  = 'xxx';//Peapay 商户号    xxx代表需要手动填写
$_ENV['jshikey']  = 'xxx';//Peapay 密钥    xxx代表需要手动填写
$_ENV['jshiapi']  = 'https://peapay.top/';
$_ENV['jshiname'] = '蒜香豌豆';
$_ENV['sitename'] = 'SSPANEL';
```

## 方法2 <a href="#fang-fa-2" id="fang-fa-2"></a>

{% hint style="success" %}
适用于`app/Services/Gateway/CustomPay.php` 不存在的版本
{% endhint %}

{% file src="/files/MvF3vNFMFKjPp3evVrRf" %}

1. 将压缩包内文件解压至 `Services/Gateway/`
2. 在 `config/.config.php` 里面找到相关内容并替换，在 `//其他面板显示设置` 这条注释上面

```
# flyfox
$_ENV['flyfoxpay'] = [
    'config' => [
        'hid'      => 'xxx',    //Peapay商户号    xxx代表需要手动填写
        'key'      => 'xxx',    //Peapay密钥    xxx代表需要手动填写
        'name'     => '蒜香豌豆',
        'sitename' => 'SSPANEL'
        
    ]
];
```
