diff --git a/app/Admin/Controllers/PetroController.php b/app/Admin/Controllers/PetroController.php index b8eb8f2..651b03e 100644 --- a/app/Admin/Controllers/PetroController.php +++ b/app/Admin/Controllers/PetroController.php @@ -8,6 +8,7 @@ use Illuminate\Http\Request; use Illuminate\Support\Str; use XuanChen\Petro; use XuanChen\PetroYsd; +use XuanChen\PetroYsd\Kernel\Event\CouponNotice; class PetroController { @@ -15,7 +16,10 @@ class PetroController public function index(Request $request) { try { - + dd(1); + $coupon = PetroYsd\Kernel\Models\PetroYsdCoupon::find(23); + event(new CouponNotice($coupon)); + dd(1); // dd( // base64_decode('6buR6b6Z5rGfNuWFg+ayueWTgea1i+ivleWIuA==') // ); diff --git a/composer.lock b/composer.lock index ac7ec86..3688079 100644 --- a/composer.lock +++ b/composer.lock @@ -7332,16 +7332,16 @@ }, { "name": "xuanchen/petro-ysd", - "version": "1.0", + "version": "1.1", "source": { "type": "git", "url": "https://github.com/xuanchen120/petroYsd.git", - "reference": "f1c4186e93aa2d1138499f0842c97cc02a58445a" + "reference": "bf0a85041f91289b44fbffe1467d4d71ac5ac97b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/xuanchen120/petroYsd/zipball/f1c4186e93aa2d1138499f0842c97cc02a58445a", - "reference": "f1c4186e93aa2d1138499f0842c97cc02a58445a", + "url": "https://api.github.com/repos/xuanchen120/petroYsd/zipball/bf0a85041f91289b44fbffe1467d4d71ac5ac97b", + "reference": "bf0a85041f91289b44fbffe1467d4d71ac5ac97b", "shasum": "" }, "require": { @@ -7380,9 +7380,9 @@ "description": "优惠券", "support": { "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",