作者 lyh

gx

... ... @@ -28,7 +28,7 @@ class ManageController extends BaseController
* @method :post
* @time :2023/8/28 10:04
*/
public function list(Request $request, ManageLogic $logic)
public function list(ManageLogic $logic)
{
$map = [];
if(!empty($this->param['search'])){
... ...
... ... @@ -48,7 +48,7 @@ class HrLogic extends BaseLogic
* @time :2023/9/6 10:17
*/
public function hrSave(){
try {
// try {
//处理参数
foreach ($this->model::specieField() as $v){
$this->param = $this->setJson($v,$this->param);
... ... @@ -60,9 +60,9 @@ class HrLogic extends BaseLogic
$this->param['manage_id'] = $this->addManager($this->param['mobile'],$this->param['name']);
$this->model->add($this->param);
}
}catch (\Exception $e){
$this->fail('error');
}
// }catch (\Exception $e){
// $this->fail('error');
// }
return $this->success();
}
... ...