Merge branch 'feature/ylw-4-27' of wmtx/platform into release

市场专员新增合作团队可自动匹配到市场总监
master
廖金灵 5 years ago committed by Gogs
commit 5d0b9d65ed

@ -971,8 +971,16 @@ class PromoteService {
$data['chain'] = '/';
$data['level'] = 1;
}
$insert = M('promote', 'tab_')->add($data);
return M('promote', 'tab_')->add($data);
// 如果是外团的,则自动加入市场总监审核列表
if ($data['level'] == 1 && in_array($data['company_belong'], [1, 2])) {
$id = M('promote', 'tab_')->getLastInsID();
$info = M('sys_auth_group')->where(['title'=>'市场总监'])->find();
M('sys_auth_group')->where(['title'=>'市场总监'])->save(['data_president'=>$info['data_president'].",".$id]);
}
return $insert;
}
public function getLandingPageIdentifier($url)

Loading…
Cancel
Save