Skip to content

Commit 69731bb

Browse files
committed
start
0 parents  commit 69731bb

File tree

2,893 files changed

+400373
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,893 files changed

+400373
-0
lines changed

.gitmodules

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
[submodule "vendor/cloudxns/cloud-xns-api-sdk-php"]
2+
path = vendor/cloudxns/cloud-xns-api-sdk-php
3+
url = https://github.com/CloudXNS/CloudXNS-API-SDK-PHP.git
4+
[submodule "vendor/doctrine/inflector"]
5+
path = vendor/doctrine/inflector
6+
url = https://github.com/doctrine/inflector.git
7+
[submodule "vendor/guzzle/guzzle"]
8+
path = vendor/guzzle/guzzle
9+
url = https://github.com/guzzle/guzzle3.git
10+
[submodule "vendor/guzzlehttp/guzzle"]
11+
path = vendor/guzzlehttp/guzzle
12+
url = https://github.com/guzzle/guzzle.git
13+
[submodule "vendor/guzzlehttp/ringphp"]
14+
path = vendor/guzzlehttp/ringphp
15+
url = https://github.com/guzzle/RingPHP.git
16+
[submodule "vendor/guzzlehttp/streams"]
17+
path = vendor/guzzlehttp/streams
18+
url = https://github.com/guzzle/streams.git
19+
[submodule "vendor/illuminate/container"]
20+
path = vendor/illuminate/container
21+
url = https://github.com/illuminate/container.git
22+
[submodule "vendor/illuminate/contracts"]
23+
path = vendor/illuminate/contracts
24+
url = https://github.com/illuminate/contracts.git
25+
[submodule "vendor/illuminate/database"]
26+
path = vendor/illuminate/database
27+
url = https://github.com/illuminate/database.git
28+
[submodule "vendor/illuminate/pagination"]
29+
path = vendor/illuminate/pagination
30+
url = https://github.com/illuminate/pagination.git
31+
[submodule "vendor/ircmaxell/password-compat"]
32+
path = vendor/ircmaxell/password-compat
33+
url = https://github.com/ircmaxell/password_compat.git
34+
[submodule "vendor/khanamiryan/qrcode-detector-decoder"]
35+
path = vendor/khanamiryan/qrcode-detector-decoder
36+
url = https://github.com/khanamiryan/php-qrcode-detector-decoder.git
37+
[submodule "vendor/nesbot/carbon"]
38+
path = vendor/nesbot/carbon
39+
url = https://github.com/briannesbitt/Carbon.git
40+
[submodule "vendor/pimple/pimple"]
41+
path = vendor/pimple/pimple
42+
url = https://github.com/silexphp/Pimple.git
43+
[submodule "vendor/predis/predis"]
44+
path = vendor/predis/predis
45+
url = https://github.com/nrk/predis.git
46+
[submodule "vendor/psr/container"]
47+
path = vendor/psr/container
48+
url = https://github.com/php-fig/container.git
49+
[submodule "vendor/psr/http-message"]
50+
path = vendor/psr/http-message
51+
url = https://github.com/php-fig/http-message.git
52+
[submodule "vendor/react/promise"]
53+
path = vendor/react/promise
54+
url = https://github.com/reactphp/promise.git
55+
[submodule "vendor/slim/csrf"]
56+
path = vendor/slim/csrf
57+
url = https://github.com/slimphp/Slim-Csrf.git
58+
[submodule "vendor/slim/slim"]
59+
path = vendor/slim/slim
60+
url = https://github.com/slimphp/Slim.git
61+
[submodule "vendor/smarty/smarty"]
62+
path = vendor/smarty/smarty
63+
url = https://github.com/smarty-php/smarty.git
64+
[submodule "vendor/symfony/event-dispatcher"]
65+
path = vendor/symfony/event-dispatcher
66+
url = https://github.com/symfony/event-dispatcher.git
67+
[submodule "vendor/symfony/intl"]
68+
path = vendor/symfony/intl
69+
url = https://github.com/symfony/intl.git
70+
[submodule "vendor/symfony/translation"]
71+
path = vendor/symfony/translation
72+
url = https://github.com/symfony/translation.git
73+
[submodule "vendor/twig/twig"]
74+
path = vendor/twig/twig
75+
url = https://github.com/twigphp/Twig.git
76+
[submodule "vendor/vlucas/phpdotenv"]
77+
path = vendor/vlucas/phpdotenv
78+
url = https://github.com/vlucas/phpdotenv.git
79+
[submodule "vendor/guzzlehttp/promises"]
80+
path = vendor/guzzlehttp/promises
81+
url = https://github.com/guzzle/promises.git

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 orvice
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# 介绍
2+
3+
一个加入 **支付宝面对面付** 的 ss panel 版本。[源项目地址](https://github.com/esdeathlove/ss-panel-v3-mod/)
4+
# 准备
5+
6+
1.一台 VPS
7+
8+
# 环境
9+
10+
1.PHP 5.6 + (推荐 PHP 7.1.1)
11+
2.MYSQL 5.5 +
12+
3.以及安装和配置过程中涉及到的种种东西。
13+
14+
# 安装
15+
16+
[https://github.com/esdeathlove/ss-panel-v3-mod/wiki/%E5%AE%89%E8%A3%85%E8%AF%B4%E6%98%8E](https://github.com/esdeathlove/ss-panel-v3-mod/wiki/%E5%AE%89%E8%A3%85%E8%AF%B4%E6%98%8E)
17+
18+
# FAQ
19+
20+
[https://github.com/esdeathlove/ss-panel-v3-mod/wiki/FAQ](https://github.com/esdeathlove/ss-panel-v3-mod/wiki/FAQ)
21+
22+
# 遇到问题?
23+
24+
不好意思,使用上的,比如说你不会使用,请自行看现在已有的[说明](https://github.com/esdeathlove/ss-panel-v3-mod/wiki/)以及自行琢磨。
25+
26+
如果你发现了你认为你实在无法解决的问题,请在 [https://github.com/esdeathlove/ss-panel-v3-mod/issues](https://github.com/esdeathlove/ss-panel-v3-mod/issues) 按照所提示的 issue 模板,进行反馈以及获得解决方案。发送 issue 之前请三思,不恰当的内容可能会造成你之后都无法获得回应。
27+
28+
# 最新消息获取
29+
30+
[Telegram频道 glzjinmodnews](https://t.me/glzjinmodnews)
31+

app/.DS_Store

10 KB
Binary file not shown.

app/Command/DailyMail.php

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?php
2+
3+
4+
namespace App\Command;
5+
6+
use App\Models\User;
7+
use App\Models\Ann;
8+
use App\Services\Config;
9+
use App\Services\Mail;
10+
use App\Utils\Telegram;
11+
use App\Utils\Tools;
12+
use App\Services\Analytics;
13+
14+
class DailyMail
15+
{
16+
public static function sendDailyMail()
17+
{
18+
$users = User::all();
19+
$logs = Ann::orderBy('id', 'desc')->get();
20+
$text1="";
21+
22+
foreach ($logs as $log) {
23+
if (strpos($log->content, "Links")===false) {
24+
$text1=$text1.$log->content."<br><br>";
25+
}
26+
}
27+
28+
$lastday_total = 0;
29+
30+
foreach ($users as $user) {
31+
$lastday = (($user->u+$user->d)-$user->last_day_t)/1024/1024;
32+
$lastday_total += (($user->u+$user->d)-$user->last_day_t);
33+
34+
if ($user->sendDailyMail==1) {
35+
echo "Send daily mail to user: ".$user->id;
36+
$subject = Config::get('appName')."-每日流量报告以及公告";
37+
$to = $user->email;
38+
$text = "下面是系统中目前的公告:<br><br>".$text1."<br><br>晚安!";
39+
40+
41+
try {
42+
Mail::send($to, $subject, 'news/daily-traffic-report.tpl', [
43+
"user" => $user,"text" => $text,"lastday"=>$lastday
44+
], [
45+
]);
46+
} catch (Exception $e) {
47+
echo $e->getMessage();
48+
}
49+
$text="";
50+
}
51+
}
52+
53+
$sts = new Analytics();
54+
55+
Telegram::Send("各位老爷少奶奶,我来为大家报告一下系统今天的运行状况哈~".
56+
PHP_EOL.
57+
"今日签到人数:".$sts->getTodayCheckinUser().PHP_EOL.
58+
"今日使用总流量:".Tools::flowAutoShow($lastday_total).PHP_EOL.
59+
"晚安~"
60+
);
61+
}
62+
63+
64+
public static function reall()
65+
{
66+
$users = User::all();
67+
foreach ($users as $user) {
68+
$user->last_day_t=($user->u+$user->d);
69+
$user->save();
70+
}
71+
}
72+
}

app/Command/ExtMail.php

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
3+
4+
namespace App\Command;
5+
6+
use App\Models\User;
7+
use App\Services\Config;
8+
use App\Services\Mail;
9+
10+
class ExtMail
11+
{
12+
public static function sendNoMail()
13+
{
14+
$users = User::all();
15+
foreach ($users as $user) {
16+
if ($user->t==0) {
17+
echo "Send daily mail to user: ".$user->id;
18+
$subject = Config::get('appName')."-期待您的回归";
19+
$to = $user->email;
20+
$text = "似乎您在".Config::get('appName')."上的流量一直是 0 呢(P.S:也可能是您没有使用 ss 而使用了其他还不能计入流量的方式....),如果您在使用上遇到了任何困难,请不要犹豫,登录到".Config::get('appName').",您就会知道如何使用了,特别是对于 iOS 用户,最近在使用的优化上大家都付出了很多的努力。期待您的回归~" ;
21+
try {
22+
Mail::send($to, $subject, 'ext/back.tpl', [
23+
"user" => $user,"text" => $text
24+
], [
25+
]);
26+
} catch (Exception $e) {
27+
echo $e->getMessage();
28+
}
29+
}
30+
}
31+
}
32+
33+
public static function sendOldMail()
34+
{
35+
$users = User::all();
36+
foreach ($users as $user) {
37+
if ($user->t!=0&&$user->t<1451577599) {
38+
echo "Send daily mail to user: ".$user->id;
39+
$subject = Config::get('appName')."-期待您的回归";
40+
$to = $user->email;
41+
$text = "似乎您在 2016 年以来就没有使用过".Config::get('appName')."了呢,如果您在使用上遇到了任何困难,请不要犹豫,登录到".Config::get('appName').",您就会知道如何使用了,特别是对于 iOS 用户,最近在使用的优化上大家都付出了很多的努力。期待您的回归~" ;
42+
try {
43+
Mail::send($to, $subject, 'ext/back.tpl', [
44+
"user" => $user,"text" => $text
45+
], [
46+
]);
47+
} catch (Exception $e) {
48+
echo $e->getMessage();
49+
}
50+
}
51+
}
52+
}
53+
}

0 commit comments

Comments
 (0)