更新包版本

This commit is contained in:
2022-05-26 13:08:44 +08:00
parent 717b91dd5c
commit 4b607370b7
2 changed files with 11 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ use Illuminate\Http\Request;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use XuanChen\Petro; use XuanChen\Petro;
use XuanChen\PetroYsd; use XuanChen\PetroYsd;
use XuanChen\PetroYsd\Kernel\Event\CouponNotice;
class PetroController class PetroController
{ {
@@ -15,7 +16,10 @@ class PetroController
public function index(Request $request) public function index(Request $request)
{ {
try { try {
dd(1);
$coupon = PetroYsd\Kernel\Models\PetroYsdCoupon::find(23);
event(new CouponNotice($coupon));
dd(1);
// dd( // dd(
// base64_decode('6buR6b6Z5rGfNuWFg+ayueWTgea1i+ivleWIuA==') // base64_decode('6buR6b6Z5rGfNuWFg+ayueWTgea1i+ivleWIuA==')
// ); // );

12
composer.lock generated
View File

@@ -7332,16 +7332,16 @@
}, },
{ {
"name": "xuanchen/petro-ysd", "name": "xuanchen/petro-ysd",
"version": "1.0", "version": "1.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/xuanchen120/petroYsd.git", "url": "https://github.com/xuanchen120/petroYsd.git",
"reference": "f1c4186e93aa2d1138499f0842c97cc02a58445a" "reference": "bf0a85041f91289b44fbffe1467d4d71ac5ac97b"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/xuanchen120/petroYsd/zipball/f1c4186e93aa2d1138499f0842c97cc02a58445a", "url": "https://api.github.com/repos/xuanchen120/petroYsd/zipball/bf0a85041f91289b44fbffe1467d4d71ac5ac97b",
"reference": "f1c4186e93aa2d1138499f0842c97cc02a58445a", "reference": "bf0a85041f91289b44fbffe1467d4d71ac5ac97b",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -7380,9 +7380,9 @@
"description": "优惠券", "description": "优惠券",
"support": { "support": {
"issues": "https://github.com/xuanchen120/petroYsd/issues", "issues": "https://github.com/xuanchen120/petroYsd/issues",
"source": "https://github.com/xuanchen120/petroYsd/tree/1.0" "source": "https://github.com/xuanchen120/petroYsd/tree/1.1"
}, },
"time": "2022-05-25T07:57:56+00:00" "time": "2022-05-26T05:01:43+00:00"
}, },
{ {
"name": "xuanchen/unionpay", "name": "xuanchen/unionpay",