This commit is contained in:
parent
8866f0cd03
commit
0c11b028f3
|
|
@ -42,8 +42,6 @@ module.exports =
|
|||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(52);
|
||||
/******/ };
|
||||
/******/ // initialize runtime
|
||||
/******/ runtime(__webpack_require__);
|
||||
/******/
|
||||
/******/ // run startup
|
||||
/******/ return startup();
|
||||
|
|
@ -52,16 +50,9 @@ module.exports =
|
|||
/******/ ({
|
||||
|
||||
/***/ 52:
|
||||
/***/ (function(__unusedmodule, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(605);
|
||||
/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(http__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(211);
|
||||
/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_1__);
|
||||
|
||||
/***/ (function(__unusedmodule, __unusedexports, __webpack_require__) {
|
||||
|
||||
const request = __webpack_require__(145)
|
||||
|
||||
console.log(process.env)
|
||||
|
||||
|
|
@ -70,20 +61,11 @@ const content_type = process.env.INPUT_CONTENT_TYPE.trim()
|
|||
const template = process.env.INPUT_TEMPLATE.trim()
|
||||
|
||||
urls.forEach(item => {
|
||||
console.log(item)
|
||||
let request = undefined
|
||||
if (item.startsWith('http://')) {
|
||||
console.log('使用http', item)
|
||||
request = http__WEBPACK_IMPORTED_MODULE_0__.http_request
|
||||
} else if (item.startsWith('https://')) {
|
||||
console.log('使用https', item)
|
||||
request = https__WEBPACK_IMPORTED_MODULE_1__.https_request
|
||||
}
|
||||
|
||||
if (request) {
|
||||
// 设置请求选项
|
||||
const options = {
|
||||
method: 'POST', // HTTP请求方法
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': content_type, // 指定请求体类型为JSON格式
|
||||
'Content-Length': Buffer.byteLength(template) // 计算请求体长度
|
||||
|
|
@ -111,57 +93,12 @@ urls.forEach(item => {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 211:
|
||||
/***/ 145:
|
||||
/***/ (function(module) {
|
||||
|
||||
module.exports = require("https");
|
||||
module.exports = eval("require")("request");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 605:
|
||||
/***/ (function(module) {
|
||||
|
||||
module.exports = require("http");
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ },
|
||||
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
||||
/******/ "use strict";
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ !function() {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ !function() {
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getter */
|
||||
/******/ !function() {
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ var hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!hasOwnProperty.call(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/ }
|
||||
);
|
||||
/******/ });
|
||||
Loading…
Reference in New Issue