微调
This commit is contained in:
@@ -16,8 +16,7 @@ class HomeController extends Controller
|
||||
public function index(Content $content)
|
||||
{
|
||||
|
||||
return $content
|
||||
->title('数据看版3')
|
||||
return $content->title('数据看版3')
|
||||
->row(function (Row $row) {
|
||||
$row->column(2, function (Column $column) {
|
||||
$column->append(new InfoBox(
|
||||
@@ -153,10 +152,18 @@ class HomeController extends Controller
|
||||
->row(function (Row $row) {
|
||||
|
||||
$lists = [
|
||||
'ysd10' => Coupon::where('status', 2)->where('thirdPartyGoodsId', 'YSD-full100-10')->count(),
|
||||
'ysd25' => Coupon::where('status', 2)->where('thirdPartyGoodsId', 'YSD-full100-25')->count(),
|
||||
'ysd50' => Coupon::where('status', 2)->where('thirdPartyGoodsId', 'YSD-full100-50')->count(),
|
||||
'ysd100' => Coupon::where('status', 2)->where('thirdPartyGoodsId', 'YSD-full200-100')->count(),
|
||||
'ysd10' => Coupon::where('status', 2)
|
||||
->where('thirdPartyGoodsId', 'YSD-full100-10')
|
||||
->count(),
|
||||
'ysd25' => Coupon::where('status', 2)
|
||||
->where('thirdPartyGoodsId', 'YSD-full100-25')
|
||||
->count(),
|
||||
'ysd50' => Coupon::where('status', 2)
|
||||
->where('thirdPartyGoodsId', 'YSD-full100-50')
|
||||
->count(),
|
||||
'ysd100' => Coupon::where('status', 2)
|
||||
->where('thirdPartyGoodsId', 'YSD-full200-100')
|
||||
->count(),
|
||||
];
|
||||
|
||||
$row->column(2, function (Column $column) use ($lists) {
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 核销包
|
||||
*/
|
||||
return [
|
||||
'coupon_model' => \App\Models\Coupon::class,
|
||||
'rules' => [
|
||||
@@ -9,7 +12,6 @@ return [
|
||||
'model' => \XuanChen\Coupon\Action\YsdAction::class,
|
||||
],
|
||||
'unionpay' => [
|
||||
// 'pattern' => '/^YSD\d{12}/',
|
||||
'pattern' => '/^66406/',
|
||||
'model' => \XuanChen\Coupon\Action\YsdAction::class,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user