@ -937,7 +937,7 @@ class PromoteService {
'parent_id' => $parent ? $parent['id'] : 0,
'parent_name' => $parent ? $parent['account'] : '官方渠道',
'admin_id' => $params['admin_id'] ?? 0,
'company_id' => $params['company_id'] ?? 0,
'invite_code' => $params['invite_code'] ?? '',
'create_time' => time(),
];
@ -985,6 +985,9 @@ class PromoteController extends BaseController
} else {
$parent = $loginPromote;
}
if ($parent) {
$params['company_id'] = $parent['company_id'];
if (C('PROMOTE_AUTO_AUDIT') == 1) {
$params['status'] = 1;