|
|
@@ -119,6 +119,12 @@ class ActivityReward extends BaseController
|
|
|
throw new Exception('请先完成充值,再申请活动', HttpStatus::CUSTOM_ERROR);
|
|
|
}
|
|
|
|
|
|
+ $first_amount = PaymentOrder::where('member_id', $memberId)->where('type',1)->where('status', 2)->value('amount');
|
|
|
+
|
|
|
+ if(empty($first_amount) || $first_amount > 1000){
|
|
|
+ throw new Exception('充值大于1000才能参加活动', HttpStatus::CUSTOM_ERROR);
|
|
|
+ }
|
|
|
+
|
|
|
$time = time();
|
|
|
$activity = ActivityRewardService::findOne([
|
|
|
// 'start_time' => ['<=', $time],
|