feat(sign): 完善签到功能送优惠卷功能

This commit is contained in:
2025-06-17 15:11:19 +08:00
parent 5227396484
commit 335c6a6c68
5 changed files with 71 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ trait CouponSend
foreach ($coupons as $coupon) {
try {
$userCoupon = $this->send($user, $coupon);
$success[] = $coupon->id;
$success[] = $coupon->name;
} catch (HttpResponseException $e) {
$data = $e->getResponse()->getData();
$message = $data ? ($data['msg'] ?? '') : $e->getMessage();