![图片[1]-独角数卡v2.0.6魔改教程(+模版下载)-坤哥资源](https://guankan.tk/wp-content/uploads/2025/08/Snipaste_2025-08-02_18-24-09.jpg)
![图片[2]-独角数卡v2.0.6魔改教程(+模版下载)-坤哥资源](https://guankan.tk/wp-content/uploads/2025/08/Snipbbn_18-27-21.jpg)
![图片[3]-独角数卡v2.0.6魔改教程(+模版下载)-坤哥资源](https://guankan.tk/wp-content/uploads/2025/08/Snipann32-35.jpg)
![图片[4]-独角数卡v2.0.6魔改教程(+模版下载)-坤哥资源](https://guankan.tk/wp-content/uploads/2025/08/mmm8-29-38.jpg)
![图片[5]-独角数卡v2.0.6魔改教程(+模版下载)-坤哥资源](https://guankan.tk/wp-content/uploads/2025/08/Snipaste_2025-11-05_03-47-49.jpg)
![图片[6]-独角数卡v2.0.6魔改教程(+模版下载)-坤哥资源](https://guankan.tk/wp-content/uploads/2025/08/Snipamm-53-40.jpg)
![图片[7]-独角数卡v2.0.6魔改教程(+模版下载)-坤哥资源](https://guankan.tk/wp-content/uploads/2025/08/Snd-11.jpg)
![图片[8]-独角数卡v2.0.6魔改教程(+模版下载)-坤哥资源](https://guankan.tk/wp-content/uploads/2025/08/Sniphh29.jpg)
删除或注释掉原来的提交订单按钮代码
<!--
<div class="mt-4 text-center">
{{-- 提交订单 --}}
<button style="margin: -20px 0 0px 0" type="submit" class="btn buy-btn" id="submit">
{{ __('hyper.buy_order_now') }}
</button>
</div>
-->
在底部 <script> 标签上再添加以下JS代码:
<script>
$('.pay-type').click(function () {
var email = $("input[name='email']").val().trim();
var byAmount = parseInt($("input[name='by_amount']").val(), 10);
var inStock = {{ $in_stock }}; // 服务器渲染的库存数字
if (email === '') {
$.NotificationApp.send("{{ __('hyper.buy_warning') }}", "{{ __('hyper.buy_empty_mailbox') }}", "top-center", "rgba(0,0,0,0.2)", "info");
return;
}
if (byAmount <= 0) {
$.NotificationApp.send("{{ __('hyper.buy_warning') }}", "{{ __('hyper.buy_zero_quantity') }}", "top-center", "rgba(0,0,0,0.2)", "info");
return;
}
if (byAmount > inStock) {
$.NotificationApp.send("{{ __('hyper.buy_warning') }}", "{{ __('hyper.buy_exceeds_stock') }}", "top-center", "rgba(0,0,0,0.2)", "info");
return;
}
// 校验通过,继续设置 payway 并提交表单
var payId = $(this).data('id');
$('input[name="payway"]').val(payId);
$('.pay-type').removeClass('active');
$(this).addClass('active');
$('#buy-form').submit();
});
</script>
修改文件 /app/Jobs/WorkWeiXinPush.php 替换以下全部代码:
<?php
namespace App\Jobs;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use GuzzleHttp\Client;
class WorkWeiXinPush implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* 任务最大尝试次数
*/
public $tries = 1;
/**
* 任务运行的超时时间
*/
public $timeout = 10;
/**
* Execute the job.
*/
public function handle()
{
try {
$client = new Client();
$url = dujiaoka_config_get('qywxbot_key'); // 完整 URL
$client->get($url, [
'timeout' => 5,
'verify' => false,
]);
} catch (\Exception $e) {
\Log::error("访问 URL 失败:" . $e->getMessage());
}
}
}
功能说明:
将后台原来的企业微信推送订单详情,修改成访问Webhooks链接功能,然后每次订单完成都会访问这个Webhooks链接,触发更多自己想要的高级功能。
例如:当订单完成,会监控某个网站数据变化,修改参数,充值额度,增加设备,滚动公告等。
![图片[9]-独角数卡v2.0.6魔改教程(+模版下载)-坤哥资源](https://guankan.tk/wp-content/uploads/2025/08/ttt4-56-16.jpg)
![图片[10]-独角数卡v2.0.6魔改教程(+模版下载)-坤哥资源](https://guankan.tk/wp-content/uploads/2025/08/bbb39-15.jpg)
![图片[11]-独角数卡v2.0.6魔改教程(+模版下载)-坤哥资源](https://guankan.tk/wp-content/uploads/2025/08/500er26.jpg)
在网站目录 resources/views 下创建新的文件夹/errors/
在里面新建一个空白文件,粘贴以下代码,保存为:500.blade.php
完整路径为:resources/views/errors/500.blade.php
@extends('hyper.layouts.default')
@section('content')
<div class="row justify-content-center" style="padding:50px 0;">
<div class="col-lg-6 text-center">
<div class="code" style="font-size:72px; font-weight:bold; color:#dc3545;">500</div>
<div class="message" style="font-size:24px; margin:20px 0;">
服务器内部错误
</div>
<p>抱歉,服务器出现异常。你可以返回主页或稍后再试。</p>
<a href="{{ url('/') }}" class="btn btn-primary mt-3">
<i class="mdi mdi-home"></i> 返回首页
</a>
<button onclick="location.reload()" class="btn btn-secondary mt-3">
<i class="mdi mdi-refresh"></i> 稍后重试
</button>
</div>
</div>
@stop
多商品共用图片,避免重复上传,浪费资源
修改商品后台文件 /app/Admin/Controllers/GoodsController.php
从第134行开始至结束,替换以下代码
修改首页显示图片的文件 /app/Helpers/functions.php
从第202至215行,替换以下代码
![图片[12]-独角数卡v2.0.6魔改教程(+模版下载)-坤哥资源](https://guankan.tk/wp-content/uploads/2025/08/kami-622x1024.jpg)
修改2个显示订单详情的文件
/resources/views/hyper/static_pages/searchOrder.blade.php
/resources/views/hyper/static_pages/orderinfo.blade.php
找到需要替换的内容
<div class="orderinfo-kami">
<h5 class="card-title">
{{ __('hyper.orderinfo_carmi') }}
</h5>
<textarea class="form-control textarea-kami" rows="5">{{$order['info']}}</textarea>
<button class="btn btn-outline-primary kami-btn" data-clipboard-text="{{$order['info']}}">
{{ __('hyper.orderinfo_copy_carmi') }}
</button>
</div>
替换以下代码
<div class="orderinfo-kami">
@if($order['status'] == \App\Models\Order::STATUS_COMPLETED)
<h5 class="card-title">⬇️ {{ __('hyper.orderinfo_carmi') }}(请保存好)</h5>
<div class="form-control textarea-kami">{!! nl2br($info) !!}</div>
@elseif($order['status'] == \App\Models\Order::STATUS_PENDING)
<h5 class="card-title">卡密内容</h5>
<div class="form-control textarea-kami">此订单需人工处理发货,等待6分钟左右刷新网页或重新查询</div>
@else
<h5 class="card-title">卡密内容</h5>
<div class="form-control textarea-kami">网络超时请切换网络重新下单</div>
@endif
<button class="btn btn-outline-primary kami-btn" data-clipboard-text="{{ $order['info'] }}">
{{ __('hyper.orderinfo_copy_carmi') }}
</button>
</div>
修改文件 /config/admin.php
第25行,是修改后台-左上角的图标和标题
第91行,是修改后台-网页标题
修改文件 /resources/views/admin/dashboard/title.blade.php
里面的html代码就是修改后台仪表盘的图标、文字、链接
直接下载已修改好的模板文件
将文件上传至网站根目录“/www/wwwroot/你的域名/”,并解压文件
登录后台设置,切换模版,重启PHP和守护进程,OK
查看网站实际效果:https://pingguo.id/














暂无评论内容