This commit is contained in:
Hankin 2026-04-28 17:05:21 +08:00
parent 29fa961c39
commit 175d52c1d9

View File

@ -1012,7 +1012,7 @@ class ActivityController extends Controller
$activity = CommunityActivity::where('id', $id)->first(); $activity = CommunityActivity::where('id', $id)->first();
if (empty($activity)) return $this->failure("活动不存在"); if (empty($activity)) return $this->failure("活动不存在");
$qrCode = Qrcode::where("merchant_id", $activity->merchant_id)->where("type_id", $activity->merchant_id)->first(); $qrCode = Qrcode::where("merchant_id", $activity->merchant_id)->where("type_id", $activity->id)->first();
if (empty($qrCode)) return $this->failure("签到码不存在"); if (empty($qrCode)) return $this->failure("签到码不存在");
$list = SignIn::where("qr_code_id", $qrCode->id); $list = SignIn::where("qr_code_id", $qrCode->id);