$mall_id, 'status' => StatusEnum::ENABLED]], [], 1,'level,name,id'); $user_level_ids = implode(',',array_column($user_level_list,'level')); $config['basic'] = [ 'is_audit' => "1",// 是否开启审核 'is_filter' => "1",//是否开启敏感词过滤 'user_level_limit' => $user_level_ids,//会员发布权限 'download_slogans' => '', 'is_show_download' => 0, 'download_type' => 0, 'share_style' => 0, ]; // 保存设置 $res = Yii::$app->services->setting->addons->set($mall_id, $addons_name, $config); if ($res == false) throw new Exception('基础设置保存失败'); } }