|
|
@ -63,8 +63,9 @@ class Partner extends BaseController |
|
|
|
|
|
|
|
|
|
|
|
public function update(PartnerRoleValidate $validate) |
|
|
|
public function update(PartnerRoleValidate $validate) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
$data = $this->request->params(['name', 'ratio', 'is_area', 'area_level', |
|
|
|
$data = $this->request->params(['name', 'ratio', 'is_area', 'area_level', |
|
|
|
'area_id', ['status', 1], ['type', 1], ['max_role_num', 0], 'brand_id', 'trade_id']); |
|
|
|
'area_id', ['status', 1], ['type', 1], ['max_role_num', 0], 'brand_id', 'trade_id','id']); |
|
|
|
$validate->check($data); |
|
|
|
$validate->check($data); |
|
|
|
|
|
|
|
|
|
|
|
if ($data['is_area'] == 1) { |
|
|
|
if ($data['is_area'] == 1) { |
|
|
|