Skip to content

Commit

Permalink
feat: new xboard
Browse files Browse the repository at this point in the history
  • Loading branch information
xboard committed Jan 6, 2025
1 parent de18cfe commit 43d2fdd
Show file tree
Hide file tree
Showing 310 changed files with 10,354 additions and 14,983 deletions.
1 change: 0 additions & 1 deletion .docker/etc/crontabs/www

This file was deleted.

41 changes: 0 additions & 41 deletions .docker/etc/nginx/http.d/default.conf

This file was deleted.

83 changes: 0 additions & 83 deletions .docker/etc/supervisor/supervisord.conf

This file was deleted.

1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ APP_KEY=base64:PZXk5vTuTinfeEVG5FpYv2l6WEhLsyvGpiWK7IgJJ60=
APP_DEBUG=false
APP_URL=http://localhost

ADMIN_SETTING_CACHE=60 #设置缓存时间(单位秒)
LOG_CHANNEL=stack

DB_CONNECTION=mysql
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ storage/laravels.pid
storage/laravels-timer-process.pid
cli-php.ini
frontend
docker-compose.yaml
docker-compose.yaml
bun.lockb
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ FROM phpswoole/swoole:php8.1-alpine
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/

RUN install-php-extensions pcntl bcmath inotify \
&& apk --no-cache add shadow supervisor nginx sqlite nginx-mod-http-brotli mysql-client git patch \
&& addgroup -S -g 1000 www && adduser -S -G www -u 1000 www
&& apk --no-cache add shadow sqlite mysql-client git patch \
&& addgroup -S -g 1000 www && adduser -S -G www -u 1000 www
#复制项目文件以及配置文件
WORKDIR /www
COPY .docker /
COPY . /www
RUN composer install --optimize-autoloader --no-cache --no-dev \
&& php artisan storage:link \
&& chown -R www:www /www \
&& chmod -R 775 /www
&& php artisan storage:link \
&& chown -R www:www /www \
&& chmod -R 775 /www

CMD /usr/bin/supervisord --nodaemon -c /etc/supervisor/supervisord.conf
CMD php artisan octane:start --server="swoole" --port=7010
4 changes: 2 additions & 2 deletions app/Console/Commands/XboardStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public function handle()
{
$startAt = microtime(true);
ini_set('memory_limit', -1);
$this->statUser();
$this->statServer();
// $this->statUser();
// $this->statServer();
$this->stat();
info('统计任务执行完毕。耗时:' . (microtime(true) - $startAt) / 1000);
}
Expand Down
10 changes: 10 additions & 0 deletions app/Contracts/PaymentInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace App\Contracts;

interface PaymentInterface
{
public function form(): array;
public function pay($order): array;
public function notify($params);
}
14 changes: 14 additions & 0 deletions app/Contracts/ProtocolInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

declare(strict_types=1);

namespace App\Contracts;

interface ProtocolInterface
{
public function getFlags(): array;
/**
* 处理并生成配置
*/
public function handle();
}
141 changes: 0 additions & 141 deletions app/Http/Controllers/V1/Admin/CouponController.php

This file was deleted.

Loading

0 comments on commit 43d2fdd

Please sign in to comment.