master
ELF 4 years ago
parent 8f4b86ee2e
commit 2c9092273f

@ -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'],

Loading…
Cancel
Save