ss-panel-v3-mod_Uim修改笔记

为了方便后期维护,做个记录吧,自己用着舒服


码云地址:https://gitee.com/bufanyun/ss-panel-v3-mod_Uim


1.简化用户操作,隐藏ss、ssr教程和下载


\resources\views\material\user\index.tpl

\resources\views\material\user\tutorial.tpl

修改内容不再贴出 都是html



2.加入slimphp自带的debug

\config\routes.php


$debug = true;

$configuration = [

    'settings' => [

        'debug' => $debug,

        'whoops.editor' => 'sublime',

        'displayErrorDetails' => $debug

    ]

];

//error_reporting(E_ALL);

//set_error_handler(function ($severity, $message, $file, $line) {

//    if (error_reporting() & $severity) {

//        throw new \ErrorException($message, 0, $severity, $file, $line);

//    }

//});



3.增加易支付模块

\config\.config.php


加入新的支付配置参数

$System_Config['payment_system']='epay';

#epay易支付

#鼎云支付:http://pay.xianweicm.com

$System_Config['epay_partner']= ''; //商户ID

$System_Config['epay_key']= ''; //商户KEY

$System_Config['epay_apiurl']    = ''; //支付API地址



\config\routes.php


//加入新的路由

$app->group('/user', function () {

    //支付跳转 131行

    $this->get('/code/epay', App\Services\Payment::class . ':purchase');

}

$app->group('/payment', function () {

    //异步回调加入get请求支持 161行

    $this->get('/notify', App\Services\Payment::class . ':notify');

});



\app\Services\Payment.php


引用新的类

use App\Services\Gateway\Epay

getClient(){方法 21行,加入新的指针对象

switch ($method) {

            case ('epay'):

                return new Epay();

}



\app\Services\Gateway\Epay.php


\\增加完整的模块操作



\extra\epay\require.php


\\上传易支付sdk包

sdk包下载地址:

https://gitee.com/bufanyun/pay/tree/master/SDK/lib



4.取消360浏览拦截

\public\assets\js\fuck.js


隐藏底部判断方法



5.修改composer中 Illuminate database底层

\vendor\esdeathlove\datatables\src\Datatables.php 


方法generate() 213行,解决一个php7的报错

            if(count((array)$this->edit) > 0)

//            if (count($this->edit) > 0)





鼎云博客
  • 最新评论
  • 总共1条评论
鼎云博客

游客:58.216.2.*:请问一下有图片吗,你这文字讲的有的文件我这没得

2020-08-07 12:21:00 回复