'系统任务', self::url => '接口启动', self::cli => '命令启动', ]; if($type) return $list[$type] ?? ''; return $list; } /** * 获取错误列表 * @param $code * @return void */ public static function getError($code = ''){ $list = array( self::default => [ 'curl_ssl_error' => '', ], self::url => [ ], self::cli => [ ], ); if($code) return $list[$code] ?? ''; return $list; } }