|
|
@@ -3,6 +3,7 @@
|
|
|
namespace App\Services;
|
|
|
|
|
|
use App\Constants\HttpStatus;
|
|
|
+use App\Constants\System;
|
|
|
use App\Constants\Util;
|
|
|
use App\Models\ActivityReward;
|
|
|
use App\Models\ActivityUser;
|
|
|
@@ -93,7 +94,10 @@ class ActivityUserService extends BaseService
|
|
|
$activityUser->save();
|
|
|
}
|
|
|
|
|
|
- public static function gift($id, $amount, $bettingAmount)
|
|
|
+ /**
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
+ public static function gift($id, $amount, $bettingAmount): void
|
|
|
{
|
|
|
$activityUser = static::findOne(['id' => $id]);
|
|
|
if (!$activityUser) throw new Exception('活动不存在', HttpStatus::CUSTOM_ERROR);
|