最新款H5秒合约 合约交易所源码,前后端分离,二开方便 六语言双后台多模版
二开的一套秒合约交易所,感觉功能比较简单,这个后台功能不少,很强大,适合有能力二开的人来研究研究,或者个人想简单测试的小伙伴。
UI看着挺有新意,所以挂上来大家一起研究吧,实测了下基本没啥毛病,小伙伴们放心下载。
这套代码K线和行情是获取的别站的,对服务器要求不高,功能比较简单,秒合约部分需要改一下外链和变量,好像是二开的bbank的老版本的东西,前端是编译后的,便宜出了,不提供任何服务,介意慎下,搞价勿扰!

独家教程:
大大优化了环境配置方面的方法,让不会配置es环境的小伙伴按照步骤有手就能搭起来。
合约交易所从此搭建变得超级简单。
————————————————————-
nginx+php7.3+mysql5.6+redis
需要安装的拓展
fileinfo
opcache
memcache
redis
imagemagick
imap
exif
intl
xsl
禁用函数最好全删,或者根据启动脚本时候报错去删也可以
为了避免意向不到的错误最好是新装系统服务器
只能装一个PHP,不然会受到干扰(大多报错是因为其他php服务导致的)
拓展和函数处理一定要处理好,不然报错就什么都启动不了。
————————————————————-
伪静态
location / {
try_files $uri $uri/ /index.php$is_args$query_string;
}
————————————————————-
开放端口(单独放行一下)
放行端口:[2000-2008]
放行端口:[9200]
放行端口:[3306]
放行端口:[1-65000]
放行端口:[443]
放行端口:[20]
放行端口:[22]
——————————————————————-
ES环境配置方法
1.终端下执行
rpm –import https://artifacts.elastic.co/GPG-KEY-elasticsearch
2.vi /etc/yum.repos.d/elasticsearch.repo
[elasticsearch-7.x]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
3.yum install elasticsearch -y
安装es版本完成后启动
4.service elasticsearch start
显示OK就是启动成功了
5.根目录终端下执行清楚缓存命令
cd /www/wwwroot/网站目录
php artisan config:cache
cd /www/wwwroot/网站目录
php artisan cache:clear

————————————————————————–

上传源码,导入数据库
修改网站根目录env文件里的数据库信息和redis配置信息即可 其他不需要动
——————————————————————
反向代理:
location ~/(wss|socket.io)/ {
# 此处改为 socket.io 后端的 ip 和端⼝即可
proxy_pass http://127.0.0.1:2000;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection “upgrade”;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
}
———————

以下是计划任务脚本

前面都要带(cd /www/wwwroot/网站目录)
————————————————————-
python(这一步有的程序不需要,程序需要python支持的才需要启动,需要先启动reids和es)
拓展:redis websocker-client
拓展安装方法:
yum install python3 -y
pip3 install websocket-client redis
安装redis
yum install python3 -y
yum install redis -y
安装nodejs
curl –silent –location https://rpm.nodesource.com/setup_14.x | bash –
yum install nodejs

—————————–
1python启动
cd /www/wwwroot/网站目录/python
python3 main.py
2.先启动wss
cd /www/wwwroot/网站目录/public/vendor/webmsgsender
php start.php start -d
(重启)
cd /www/wwwroot/网站目录/public/vendor/webmsgsender
php start.php restart -d
每天, 1点30分 执行
3.行情K线波动
cd /www/wwwroot/网站目录
php artisan websocket:client start
———————————–
4
cd /www/wwwroot/网站目录
php artisan cache:clear
php artisan config:cache
php artisan auto_change start
5.更新合约交易
cd /www/wwwroot/网站目录
php artisan queue:work
每天, 1点30分 执行
5.定时任务
cd /www/wwwroot/网站目录
php artisan schedule:run
每天, 1点30分 执行
7.获取交易对
cd /www/wwwroot/网站目录
php artisan get_market
每天, 1点30分 执行
8.获取k线数据
cd /www/wwwroot/网站目录
php artisan get_kline_data
每天, 1点30分 执行
9.历史数据
cd /www/wwwroot/网站目录
php artisan historical_data
——————————–
以下是平台币支持需要
——————————
每周
10.获取月k线
php artisan get_kline_data_monthly
每月
11.获取周k线
php artisan get_kline_data_weekly
每周
12.获取日k线
php artisan get_kline_data_daily
每日
10.获取小时k线
cd /www/wwwroot/网站目录
php artisan get_kline_data_hourly
每小时
13.获取30分k线
cd /www/wwwroot/网站目录
php artisan get_kline_data_thirtymin
30分
14.获取15分k线
cd /www/wwwroot/网站目录
php artisan get_kline_data_fifteenmin
15.获取5分k线
cd /www/wwwroot/网站目录
php artisan get_kline_data_fivemin
————————————-
每分
16.更新用户余额
cd /www/wwwroot/网站目录
php artisan update_balance
每分

机器人自助下单
cd /www/wwwroot/网站目录
php artisan auto_order {ID}

重启机器人
cd /www/wwwroot/网站目录
php artisan robot {id}

奖金算法
cd /www/wwwroot/网站目录
php artisan bonus_algorithm

上币执行脚本
cd /www/wwwroot/网站目录
php artisan execute_currency {id}

搜索引擎
cd /www/wwwroot/网站目录
php artisan market:import

自动取消24小时C2C发布
php artisan auto_cancel_c2c
每24小时
————————————————————————–
执行 laravel对应的php artisan 、 php composer 命令时,均需要进行指定执行的php版本,也就是要指定php的绝对路径。 计划任务脚本如下:

cd /www/wwwroot/网站目录
/www/server/php/73/bin/php artisan get_kline_data

—————————————————————–
初始化脚本代码:start.sh
#! /bin/sh
composer install
php artisan key:generate
php artisan migrate:refresh –seed

cd public/vendor/webmsgsender && php start.php start -d

六语言二开最新UI秒合约交易所完整代码【前端编译版本】【亲测源码】【会员免费】插图
六语言二开最新UI秒合约交易所完整代码【前端编译版本】【亲测源码】【会员免费】插图1
六语言二开最新UI秒合约交易所完整代码【前端编译版本】【亲测源码】【会员免费】插图2
六语言二开最新UI秒合约交易所完整代码【前端编译版本】【亲测源码】【会员免费】插图3
六语言二开最新UI秒合约交易所完整代码【前端编译版本】【亲测源码】【会员免费】插图4
六语言二开最新UI秒合约交易所完整代码【前端编译版本】【亲测源码】【会员免费】插图5

    发表回复

    您的电子邮箱地址不会被公开。 必填项已用*标注

    本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。

    最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。 若排除这种情况,可在对应资源底部留言,或联络我们。

    如果您已经成功付款但是网站没有弹出成功提示,请联系站长提供付款信息为您处理

    源码素材属于虚拟商品,具有可复制性,可传播性,一旦授予,不接受任何形式的退款、换货要求。请您在购买获取之前确认好 是您所需要的资源