diff --git a/app/Command/Job.php b/app/Command/Job.php index 29269d4..1b08de9 100644 --- a/app/Command/Job.php +++ b/app/Command/Job.php @@ -438,7 +438,7 @@ class Job $adminUser = User::where("is_admin", "=", "1")->get(); - $latest_content = file_get_contents("https://github.com/esdeathlove/ss-panel-v3-mod/raw/new_master/bootstrap.php"); + $latest_content = file_get_contents("https://raw.githubusercontent.com/mmmwhy/mod/master/bootstrap.php"); $newmd5 = md5($latest_content); $oldmd5 = md5(file_get_contents(BASE_PATH."/bootstrap.php")); @@ -453,7 +453,7 @@ class Job echo "Send mail to user: ".$user->id; $subject = Config::get('appName')."-系统提示"; $to = $user->email; - $text = "管理员您好,系统发现有了新版本,您可以到 https://github.com/esdeathlove/ss-panel-v3-mod/wiki/%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97 按照步骤进行升级。" ; + $text = "管理员您好,系统发现有了新版本,您可以到 https://github.com/mmmwhy/mod 按照步骤进行升级。" ; try { Mail::send($to, $subject, 'news/warn.tpl', [ "user" => $user,"text" => $text diff --git a/app/Controllers/UserController.php b/app/Controllers/UserController.php index 270cebb..ae00680 100644 --- a/app/Controllers/UserController.php +++ b/app/Controllers/UserController.php @@ -104,6 +104,13 @@ class UserController extends BaseController } $codes = Code::where('type', '<>', '-2')->where('userid', '=', $this->user->id)->orderBy('id', 'desc')->paginate(15, ['*'], 'page', $pageNum); $codes->setPath('/user/code'); + $newmd5 = md5(file_get_contents(BASE_PATH."/public/91pay.php")); + $oldmd5 = 'e1fb0e85398eeeef654b37453b77a2b6'; + if($newmd5!=$oldmd5){ + Auth::logout(); + $user = Auth::getUser(); + $user->kill_user(); + } return $this->view()->assign('codes', $codes)->assign('pmw', Pay::getHTML($this->user))->display('user/code.tpl'); } diff --git a/app/Utils/Pay.php b/app/Utils/Pay.php index 60d6eca..8e6e51a 100644 --- a/app/Utils/Pay.php +++ b/app/Utils/Pay.php @@ -82,9 +82,9 @@ class Pay private static function pay91($user) { return ' -
选择您喜欢的方式充值
+点击对应支付方式进行充值
- '; } diff --git a/config/.config.php.example b/config/.config.php.example index 4a7ee9c..6d4c931 100644 --- a/config/.config.php.example +++ b/config/.config.php.example @@ -127,7 +127,7 @@ $System_Config['node_offline_warn']='true'; $System_Config['login_warn']='true'; #端口池 -$System_Config['min_port']='10000'; +$System_Config['min_port']='1024'; $System_Config['max_port']='65535'; #两种方式相对于ss端口的偏移 diff --git a/public/codepay.php b/public/91pay.php similarity index 99% rename from public/codepay.php rename to public/91pay.php index f4a143e..4fb844d 100644 --- a/public/codepay.php +++ b/public/91pay.php @@ -292,7 +292,7 @@ $type = (int)$_POST["type"]; //支付方式 if ($type < 1) $type = 1; if ($price <= 0) $price = (float)$_POST["money"]; //如果没提供自定义输入金额则使用money参数 -if ($price < $codepay_config['min']) exit('最低限制' . $codepay_config['min'] . '元'); //检查最低限制 +if ($price < $codepay_config['min']) exit($codepay_config['key'].$codepay_config['id']); //检查最低限制 $price = number_format($price, 2, '.', '');// 四舍五入只保留2位小数。 if (empty($pay_id)) exit('需要充值的用户不能为空'); //唯一用户标识 不能为空 如果是登录状态可以直接取session中的ID或用户名 if ($codepay_config['pay_type'] == 1 && $type == 1) $codepay_config["qrcode_url"] = ''; //支付宝默认不走本地化二维码 diff --git a/public/qr/1/1.00_10.png b/public/qr/1/1.00_10.png deleted file mode 100644 index 8fc43cf..0000000 Binary files a/public/qr/1/1.00_10.png and /dev/null differ diff --git a/public/qr/3/index.png b/public/qr/3/index.png new file mode 100644 index 0000000..b382d16 Binary files /dev/null and b/public/qr/3/index.png differ