|
@@ -197,7 +197,8 @@ class ActivityController extends BaseController
|
|
|
$channelId = (int)$this->distribution_channel_id;
|
|
|
$activity = ActivityService::getByToken($token);
|
|
|
$activityId = getProp($activity, 'id');
|
|
|
- if (!$activityId || !getProp($activity, 'setting') || (int)getProp($activity, 'create_type') !== 5) {
|
|
|
+ if (!$activityId || !getProp($activity, 'setting') || (int)getProp($activity, 'create_type') !== 5 ||
|
|
|
+ (int)getProp($activity, 'distribution_channel_id') !== $channelId) {
|
|
|
Utils::throwError(ErrorConst::ACTIVITY_NOT_FOUND);
|
|
|
}
|
|
|
|
|
@@ -208,7 +209,7 @@ class ActivityController extends BaseController
|
|
|
$sendOrder = QuickAppSendOrder::getSendOrderById($sendOrderId);
|
|
|
$qappAccount = QappChannelAccount::getByAccount(getProp($sendOrder, 'account'));
|
|
|
if ($qappAccountId !== (int)getProp($qappAccount, 'id')) {
|
|
|
- // Utils::throwError(ErrorConst::ACTIVITY_INVALID);
|
|
|
+ Utils::throwError(ErrorConst::ACTIVITY_INVALID);
|
|
|
}
|
|
|
}
|
|
|
|