sign in
This commit is contained in:
parent
29fa961c39
commit
175d52c1d9
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user