0,// 启用插件 'compute_type' => 0,//佣金计算方式 'compute_period' => 1,//结算周期 'settlement_method' => 0,//结算方式 'settlement_period' => 1,//佣金结算周期 'is_sediment' => 0,//是否开启股东分红沉淀池 'sediment_type' => 1,//沉淀池资金类型 'sediment_percent' => 0,//沉淀池比例 'detail' => '',//股东分红说明 ]; // 保存设置 $res = Yii::$app->services->setting->addons->set($mall_id, $addons_name, $config); if ($res == false) throw new Exception('基础设置保存失败'); return true; } }