|
@@ -182,7 +182,7 @@ class SmmPostController extends AdminDistController
|
|
|
if ($post['account_ids'] == [] || count($post['account_ids']) == 0 || $post['account_ids'] == '' || empty($post['account_ids'][0])) {
|
|
|
return Admin::json()->error(admin_trans_label('choose_account'));
|
|
|
}
|
|
|
- if (SmmUserAccount::findYoutubeAccount($post['account_ids'])->count() > 0) {
|
|
|
+ if (SmmUserAccount::findYoutubeAccount($post['account_ids'],getDistributorId())->count() > 0) {
|
|
|
if (empty($post['yutube_title']) || empty($post['youtube_category'])) {
|
|
|
return Admin::json()->error(admin_trans_label('input_yutube_fields'));
|
|
|
}
|