|
@@ -16,7 +16,7 @@ use App\Models\CompanyConsultant;
|
|
|
use App\Models\CompanyImg;
|
|
|
use App\Models\Consultant;
|
|
|
use App\Models\Jobs;
|
|
|
-use App\Models\MembersChargeLog;
|
|
|
+use App\Services\Content\FeedbackService;
|
|
|
use App\Models\MembersPoint;
|
|
|
use App\Models\MembersSetmeal;
|
|
|
use App\Models\Setmeal;
|
|
@@ -49,7 +49,6 @@ use Encore\Admin\Grid;
|
|
|
use Encore\Admin\Layout\Content;
|
|
|
use Encore\Admin\Show;
|
|
|
use Encore\Admin\Widgets\Table;
|
|
|
-use function foo\func;
|
|
|
use Illuminate\Http\Request;
|
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
use Illuminate\Support\Facades\DB;
|
|
@@ -76,6 +75,7 @@ class CompanyController extends Controller
|
|
|
public $jobfairJobRepository;
|
|
|
public $jobfairJobsContactRepository;
|
|
|
public $jobfairPutJobRepository;
|
|
|
+ public $feedbackService;
|
|
|
/**
|
|
|
* CompanyController constructor.
|
|
|
* @param $companyRepository
|
|
@@ -113,7 +113,8 @@ class CompanyController extends Controller
|
|
|
JobfairCompanyRepository $jobfairCompanyRepository,
|
|
|
JobfairJobRepository $jobfairJobRepository,
|
|
|
JobfairJobsContactRepository $jobfairJobsContactRepository,
|
|
|
- JobfairPutJobRepository $jobfairPutJobRepository
|
|
|
+ JobfairPutJobRepository $jobfairPutJobRepository,
|
|
|
+ FeedbackService $feedbackService
|
|
|
)
|
|
|
{
|
|
|
$this->taskService = $taskService;
|
|
@@ -133,6 +134,7 @@ class CompanyController extends Controller
|
|
|
$this->jobfairJobRepository = $jobfairJobRepository;
|
|
|
$this->jobfairJobsContactRepository = $jobfairJobsContactRepository;
|
|
|
$this->jobfairPutJobRepository = $jobfairPutJobRepository;
|
|
|
+ $this->feedbackService = $feedbackService;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -1247,6 +1249,14 @@ EOT;
|
|
|
}
|
|
|
$result = Company::whereIn('id', $arr)->update(['password'=>\Hash::make('Aa12345678')]);
|
|
|
if ($result) {
|
|
|
+ $member_log = array(
|
|
|
+ 'uid' =>0,
|
|
|
+ 'utype' =>0,
|
|
|
+ 'username' => '后台管理员',
|
|
|
+ 'ip' => ip2long($request->getClientIp()),
|
|
|
+ 'log_address'=>'本机地址'
|
|
|
+ );
|
|
|
+ $this->feedbackService->addMembersLog($member_log, '1000', '后台重置密码');
|
|
|
admin_toastr('重置成功', 'success');
|
|
|
foreach ($arr as $key => $val) {
|
|
|
$company = Company::findOrFail($val);
|