diff --git a/Application/Base/Service/PromoteCompanyService.class.php b/Application/Base/Service/PromoteCompanyService.class.php index 6ba0b735a..a2acdd9a5 100644 --- a/Application/Base/Service/PromoteCompanyService.class.php +++ b/Application/Base/Service/PromoteCompanyService.class.php @@ -281,12 +281,17 @@ class PromoteCompanyService private function savePromotes($records, $company, $creator) { + $status = 0; + if (C('PROMOTE_AUTO_AUDIT') == 1) { + $status = 1; + } $promoteService = new PromoteService(); foreach ($records as $record) { $promoteService->addPromote([ 'account' => $record['account'], 'password' => $record['password'], 'real_name' => $record['real_name'], + 'status' => $status, 'email' => $record['email'], 'mobile_phone' => $record['mobile_phone'], 'can_view_recharge' => $record['can_view_recharge'],