code = $code; $HandleLogs->data = $data; $HandleLogs->remark = $remark; $HandleLogs->identifying = $identifying; $HandleLogs->save(); } catch (\Exception $e) { \Log::info($e->getMessage()); } } /** 异常收集 */ public static function error($remark='',$identifying='',$data = [],$code = 2){ HandleLogs::add($code,$remark,$data,$identifying); } }