Browse Source

添加朋友圈 数据处理验证

author
wanghongjun 9 months ago
parent
commit
cba285686d
  1. 3
      app/enterprise/controller/Posts.php

3
app/enterprise/controller/Posts.php

@ -273,6 +273,9 @@ class Posts extends BaseController
$user_type = $info['privacy'] == 2 ? 1 : 2;
$privacy_users = [];
foreach ($user_ids as $user_id) {
if (!is_numeric($user_id)) {
throw new \Exception(lang('system.error'));
}
$privacy_users[] = [
'posts_id' => $posts_id,
'user_id' => $user_id,

Loading…
Cancel
Save