hope_fly geht; etiketten
This commit is contained in:
BIN
docs/testAnhaenger.odt
Normal file
BIN
docs/testAnhaenger.odt
Normal file
Binary file not shown.
@ -16,12 +16,11 @@ $conn = $db_connection->dbConnection();
|
||||
|
||||
$data = json_decode(file_get_contents("php://input"));
|
||||
//$data = json_decode('{ "qr_id": "m7MdMK" }');
|
||||
var_dump( get_defined_vars() );
|
||||
|
||||
var_dump( get_defined_vars() );
|
||||
echo "xxxxxxx";
|
||||
echo $data;
|
||||
echo "-------";
|
||||
// var_dump( get_defined_vars() );
|
||||
// echo "xxxxxxx";
|
||||
// echo $data;
|
||||
// echo "-------";
|
||||
|
||||
$returnData = new CMsg(0);
|
||||
$fields = ['fields' => ['qr_id']];
|
||||
|
||||
@ -74,8 +74,8 @@ export type UserCtxT =
|
||||
export const UserCtx = createContext<UserCtxT | null>(null);
|
||||
|
||||
export const Axios = axios.create({
|
||||
baseURL: 'http://localhost/dog/php-dog/',
|
||||
// baseURL: 'https://hope-fly.de/dog/php-dog/',
|
||||
// baseURL: 'http://localhost/dog/php-dog/',
|
||||
baseURL: 'https://hope-fly.de/dog/php-dog/',
|
||||
});
|
||||
|
||||
export const UserCtxProvider = ({children}:TUserContextProviderProps) => {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1,117 +0,0 @@
|
||||
{
|
||||
data: {
|
||||
success: 0,
|
||||
status: 422,
|
||||
message: "Invalid Email Address!",
|
||||
fields: "Invalid Email Address!",
|
||||
data: null,
|
||||
},
|
||||
status: 200,
|
||||
statusText: "OK",
|
||||
headers: {
|
||||
"cache-control": "no-store, no-cache, must-revalidate",
|
||||
"content-length": "107",
|
||||
"content-type": "application/json; charset=UTF-8",
|
||||
expires: "Thu, 19 Nov 1981 08:52:00 GMT",
|
||||
pragma: "no-cache",
|
||||
},
|
||||
config: {
|
||||
transitional: {
|
||||
silentJSONParsing: true,
|
||||
forcedJSONParsing: true,
|
||||
clarifyTimeoutError: false,
|
||||
},
|
||||
adapter: [
|
||||
"xhr",
|
||||
"http",
|
||||
],
|
||||
transformRequest: [
|
||||
function transformRequest(data, headers) {
|
||||
const contentType = headers.getContentType() || '';
|
||||
const hasJSONContentType = contentType.indexOf('application/json') > -1;
|
||||
const isObjectPayload = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(data);
|
||||
if (isObjectPayload && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isHTMLForm(data)) {
|
||||
data = new FormData(data);
|
||||
}
|
||||
const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(data);
|
||||
if (isFormData) {
|
||||
if (!hasJSONContentType) {
|
||||
return data;
|
||||
}
|
||||
return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__["default"])(data)) : data;
|
||||
}
|
||||
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(data) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBuffer(data) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isStream(data) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFile(data) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(data)) {
|
||||
return data;
|
||||
}
|
||||
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBufferView(data)) {
|
||||
return data.buffer;
|
||||
}
|
||||
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(data)) {
|
||||
headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
|
||||
return data.toString();
|
||||
}
|
||||
let isFileList;
|
||||
if (isObjectPayload) {
|
||||
if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
|
||||
return (0,_helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__["default"])(data, this.formSerializer).toString();
|
||||
}
|
||||
if ((isFileList = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
|
||||
const _FormData = this.env && this.env.FormData;
|
||||
return (0,_helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__["default"])(isFileList ? {
|
||||
'files[]': data
|
||||
} : data, _FormData && new _FormData(), this.formSerializer);
|
||||
}
|
||||
}
|
||||
if (isObjectPayload || hasJSONContentType) {
|
||||
headers.setContentType('application/json', false);
|
||||
return stringifySafely(data);
|
||||
}
|
||||
return data;
|
||||
},
|
||||
],
|
||||
transformResponse: [
|
||||
function transformResponse(data) {
|
||||
const transitional = this.transitional || defaults.transitional;
|
||||
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
||||
const JSONRequested = this.responseType === 'json';
|
||||
if (data && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
||||
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
||||
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
||||
try {
|
||||
return JSON.parse(data);
|
||||
} catch (e) {
|
||||
if (strictJSONParsing) {
|
||||
if (e.name === 'SyntaxError') {
|
||||
throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__["default"].from(e, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__["default"].ERR_BAD_RESPONSE, this, null, this.response);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
return data;
|
||||
},
|
||||
],
|
||||
timeout: 0,
|
||||
xsrfCookieName: "XSRF-TOKEN",
|
||||
xsrfHeaderName: "X-XSRF-TOKEN",
|
||||
maxContentLength: -1,
|
||||
maxBodyLength: -1,
|
||||
env: {
|
||||
FormData: function FormData() { [native code] },
|
||||
Blob: function Blob() { [native code] },
|
||||
},
|
||||
validateStatus: function validateStatus(status) {
|
||||
return status >= 200 && status < 300;
|
||||
},
|
||||
headers: {
|
||||
Accept: "application/json, text/plain, */*",
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
baseURL: "http://localhost/dog/php-dog/",
|
||||
method: "post",
|
||||
url: "login.php",
|
||||
data: "{\"email\":\"conny.rankl@web.de\",\"password\":\"mellyHund\"}",
|
||||
},
|
||||
request: {
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user