first commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>redirect</title>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
</body>
|
||||
<script language="javascript" type="text/javascript">
|
||||
function postRefId(refIdValue, mobile) {
|
||||
console.log(refIdValue)
|
||||
var form = document.createElement("form");
|
||||
form.setAttribute("method", "POST");
|
||||
form.setAttribute("action",
|
||||
"https://asan.shaparak.ir");
|
||||
form.setAttribute("target", "_self");
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.setAttribute("name", "RefId");
|
||||
hiddenField.setAttribute("value", refIdValue);
|
||||
form.appendChild(hiddenField);
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.setAttribute("name", "mobileap");
|
||||
hiddenField.setAttribute("value", mobile);
|
||||
form.appendChild(hiddenField);
|
||||
document.body.appendChild(form);
|
||||
form.submit();
|
||||
document.body.removeChild(form);
|
||||
}
|
||||
postRefId(<?php echo json_encode($token); ?>,<?php echo json_encode($mobile); ?>);
|
||||
</script>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user