master
ELF 4 years ago
parent 8f4b86ee2e
commit 2c9092273f

@ -281,12 +281,17 @@ class PromoteCompanyService
private function savePromotes($records, $company, $creator) private function savePromotes($records, $company, $creator)
{ {
$status = 0;
if (C('PROMOTE_AUTO_AUDIT') == 1) {
$status = 1;
}
$promoteService = new PromoteService(); $promoteService = new PromoteService();
foreach ($records as $record) { foreach ($records as $record) {
$promoteService->addPromote([ $promoteService->addPromote([
'account' => $record['account'], 'account' => $record['account'],
'password' => $record['password'], 'password' => $record['password'],
'real_name' => $record['real_name'], 'real_name' => $record['real_name'],
'status' => $status,
'email' => $record['email'], 'email' => $record['email'],
'mobile_phone' => $record['mobile_phone'], 'mobile_phone' => $record['mobile_phone'],
'can_view_recharge' => $record['can_view_recharge'], 'can_view_recharge' => $record['can_view_recharge'],

Loading…
Cancel
Save