no message

master
mmmwhy 9 years ago
parent 4707e9b1af
commit a4bfa14b9e

@ -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 = "管理员您好,系统发现有了新版本,您可以到 <a href=\"https://github.com/esdeathlove/ss-panel-v3-mod/wiki/%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97\">https://github.com/esdeathlove/ss-panel-v3-mod/wiki/%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97</a> 按照步骤进行升级。" ;
$text = "管理员您好,系统发现有了新版本,您可以到 <a href=\"https://github.com/mmmwhy/mod\">https://github.com/mmmwhy/mod</a> 按照步骤进行升级。" ;
try {
Mail::send($to, $subject, 'news/warn.tpl', [
"user" => $user,"text" => $text

@ -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');
}

@ -82,9 +82,9 @@ class Pay
private static function pay91($user)
{
return '
<p class="card-heading">选择您喜欢的方式充值</p>
<p class="card-heading">点击对应支付方式进行充值</p>
<label for="number">请选择充值金额:</label>
<form name="alipayment" action="/codepay.php" method="post">
<form name="alipayment" action="/91pay.php" method="post">
<select class="form-control" id="price" name="price">
<option value="1">1元</option>
<option value="10">10元</option>
@ -95,8 +95,9 @@ class Pay
</select>
<br>
<input type="hidden" name="user" value="'.$user->id.'">
<button class="btn btn-flat waves-attach" id="btnSubmit" type="submit" name="type" value="1"><span class="icon">money</span>&nbsp;支付宝充值</button>
<button class="btn btn-flat waves-attach" id="btnSubmit" type="submit" name="type" value="3"><span class="icon">chat</span>&nbsp;微信充值(正在开发中)</button>
<button class="btn btn-flat waves-attach" id="btnSubmit" type="submit" name="type" value="1"><img src="/img/alipay.jpg"/></button>
<button class="btn btn-flat waves-attach" id="btnSubmit" type="submit" name="type" value="2"><img src="/img/qqpay.jpg"/></button>
<button class="btn btn-flat waves-attach" id="btnSubmit" type="submit" name="type" value="3"><img src="/img/weixin.jpg"/></button>
</form>
';
}

@ -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端口的偏移

@ -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"] = ''; //支付宝默认不走本地化二维码

Binary file not shown.

Before

Width:  |  Height:  |  Size: 482 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

Loading…
Cancel
Save