This commit is contained in:
2022-07-21 03:28:35 +00:00
parent d7c883d6df
commit 51b34b0e1d
30103 changed files with 4152204 additions and 23 deletions
+38
View File
@@ -0,0 +1,38 @@
exports.ids = [1];
exports.modules = {
/***/ 86:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(URL) {const ENDPOINT = 'https://api.contree.io/profile';
/* harmony default export */ __webpack_exports__["default"] = ({
async middleware({
req,
res,
error,
$axios,
redirect
}) {
const url = new URL(req.url, `https://${req.headers.host}`);
const uid = url.searchParams.get('LINEUserID') || ''; //const veify_checked = url.searchParams.get('Veify_Checked')
//console.log(veify_checked)
console.log(uid);
const response = await $axios.get(ENDPOINT, {
params: {
LINEUserID: uid
}
});
await res.setHeader('Content-Type', 'application/json; charset=utf-8');
res.end(JSON.stringify(response.data.slice(-1)));
}
});
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)["URL"]))
/***/ })
};;
//# sourceMappingURL=autofill.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"pages/autofill.js","sources":["webpack:///./pages/autofill.ts"],"sourcesContent":["import querystring from 'querystring'\nimport { Vue, Component } from \"nuxt-property-decorator\";\nimport { initLIFF } from \"~/plugins/liff\";\n\nconst ENDPOINT = 'https://api.contree.io/profile'\n\nexport default {\n async middleware({ req, res, error, $axios, redirect }) {\n const url: URL = new URL(req.url, `https://${req.headers.host}`)\n const uid: string = url.searchParams.get('LINEUserID') || ''\n //const veify_checked = url.searchParams.get('Veify_Checked') \n //console.log(veify_checked)\n console.log(uid)\n\n\n\n const response = await $axios.get(ENDPOINT, {\n params: { LINEUserID: uid }\n })\n await res.setHeader('Content-Type', 'application/json; charset=utf-8')\n res.end(JSON.stringify(response.data.slice(-1)))\n }\n}\n"],"mappings":";;;;;;;AAIA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AAAA;AAIA;AACA;AAAA;AAAA;AADA;AAGA;AACA;AACA;AACA;AAhBA;;;;;A","sourceRoot":""}
+4094
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+60
View File
@@ -0,0 +1,60 @@
exports.ids = [3];
exports.modules = {
/***/ 87:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
const ENDPOINT = "https://api.contree.io/profile";
const ENDPOINT2 = "https://nodered.contree.io/contree_push";
/* harmony default export */ __webpack_exports__["default"] = ({
template: '<p>OK</p>',
async middleware({
req,
error,
$axios,
redirect
}) {
const data = await new Promise(resolve => {
let body = '';
req.on('data', data => {
body += data;
});
req.on('end', () => {
resolve(JSON.parse(body));
});
});
const uid = data.LINEUserID = data.LINEUserID || 'test';
let response = await $axios.get(ENDPOINT, {
params: {
LINEUserID: uid
}
});
const vnum = data.VerifyNUM;
const vsys = data.VerifySys; //data.BeaconMode = 'leave'
//data.FLAG = false
if (response.data.length > 0) {
const id = response.data[0].id;
await $axios.patch(`${ENDPOINT}/${id}`, data);
} else {
await $axios.post(ENDPOINT, data);
}
await $axios.get(ENDPOINT2, {
params: {
userid: uid,
Verify: vnum,
VerifySys: vsys
}
});
}
});
/***/ })
};;
//# sourceMappingURL=submit.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"pages/submit.js","sources":["webpack:///./pages/submit.ts"],"sourcesContent":["import querystring from 'querystring'\nimport { IForm } from '~/models/submit'\n\nconst ENDPOINT = \"https://api.contree.io/profile\"\nconst ENDPOINT2 = \"https://nodered.contree.io/contree_push\"\n\nexport default {\n template: '<p>OK</p>',\n async middleware({ req, error, $axios, redirect }) {\n const data : IForm = await new Promise((resolve) => {\n let body = ''\n req.on('data', data => {\n body += data\n })\n req.on('end', () => {\n resolve(JSON.parse(body))\n })\n })\n const uid = data.LINEUserID = data.LINEUserID || 'test'\n let response = await $axios.get(ENDPOINT, {\n params: { LINEUserID: uid }\n })\n const vnum = data.VerifyNUM\n const vsys = data.VerifySys\n\n //data.BeaconMode = 'leave'\n //data.FLAG = false\n if (response.data.length > 0) {\n const id = response.data[0].id\n await $axios.patch(`${ENDPOINT}/${id}`, data)\n } else {\n await $axios.post(ENDPOINT, data)\n }\n await $axios.get(ENDPOINT2, {\n params: { userid: uid ,Verify: vnum,VerifySys: vsys }\n })\n }\n}\n"],"mappings":";;;;;;;AAGA;AAAA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AADA;AAGA;AACA;AAGA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AADA;AAGA;AACA;AA/BA;;;;A","sourceRoot":""}