This commit is contained in:
Shohrat 2023-10-24 20:43:23 +05:00
parent e82ed9fe1b
commit fd1846043d
33 changed files with 52 additions and 52 deletions

View File

@ -5,7 +5,7 @@ APP_DEBUG=true
APP_URL=http://localhost APP_URL=http://localhost
APP_LOCALE=en APP_LOCALE=en
BAGISTO_URL=https://derman.com.tm/dermanhana/webq/api/ BAGISTO_URL=http://216.250.11.229/app/api/
ACTIVE_THEME=demo ACTIVE_THEME=demo
BACKEND_URI=/admin BACKEND_URI=/admin

View File

@ -27,7 +27,7 @@ class Seller extends ComponentBase
$dataInput = post(); $dataInput = post();
$response = Http::post('https://derman.com.tm/dermanhana/webq/api/seller/create/product', function ($http) use($dataInput) { $response = Http::post('http://216.250.11.229/app/api/seller/create/product', function ($http) use($dataInput) {
// $http->header('Content-Type', 'application/json'); // $http->header('Content-Type', 'application/json');
$http->header('Accept', 'application/json'); $http->header('Accept', 'application/json');
@ -62,7 +62,7 @@ class Seller extends ComponentBase
$dataInput = post(); $dataInput = post();
// dd($dataInput["status"]); // dd($dataInput["status"]);
$response = Http::post('https://derman.com.tm/dermanhana/webq/api/seller/update/product', function ($http) use($dataInput) { $response = Http::post('http://216.250.11.229/app/api/seller/update/product', function ($http) use($dataInput) {
// $http->header('Content-Type', 'application/json'); // $http->header('Content-Type', 'application/json');
$http->header('Accept', 'application/json'); $http->header('Accept', 'application/json');

View File

@ -60,7 +60,7 @@ class Session extends ComponentBase
$dataInput = post(); $dataInput = post();
$response = Http::post('https://derman.com.tm/dermanhana/webq/api/customer/cart/add/'.$dataInput["product_id"], function ($http) use($getToken, $dataInput) { $response = Http::post('http://216.250.11.229/app/api/customer/cart/add/'.$dataInput["product_id"], function ($http) use($getToken, $dataInput) {
// $http->header('Content-Type', 'application/json'); // $http->header('Content-Type', 'application/json');
$http->header('Authorization', 'Bearer '.$getToken); $http->header('Authorization', 'Bearer '.$getToken);
$http->header('Accept', 'application/json'); $http->header('Accept', 'application/json');
@ -90,7 +90,7 @@ class Session extends ComponentBase
{ {
$getToken = SessionP::get('nurgulToken'); $getToken = SessionP::get('nurgulToken');
$response = Http::get('https://derman.com.tm/dermanhana/webq/api/customer/cart', function ($http) use($getToken) { $response = Http::get('http://216.250.11.229/app/api/customer/cart', function ($http) use($getToken) {
$http->header('Authorization', 'Bearer '.$getToken); $http->header('Authorization', 'Bearer '.$getToken);
}); });
@ -105,7 +105,7 @@ class Session extends ComponentBase
$getToken = SessionP::get('nurgulToken'); $getToken = SessionP::get('nurgulToken');
$dataInput = post(); $dataInput = post();
$response = Http::delete('https://derman.com.tm/dermanhana/webq/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) { $response = Http::delete('http://216.250.11.229/app/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) {
$http->header('Authorization', 'Bearer '.$getToken); $http->header('Authorization', 'Bearer '.$getToken);
}); });
@ -120,7 +120,7 @@ class Session extends ComponentBase
$getToken = SessionP::get('nurgulToken'); $getToken = SessionP::get('nurgulToken');
$dataInput = post(); $dataInput = post();
$response = Http::delete('https://derman.com.tm/dermanhana/webq/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) { $response = Http::delete('http://216.250.11.229/app/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) {
$http->header('Authorization', 'Bearer '.$getToken); $http->header('Authorization', 'Bearer '.$getToken);
}); });
@ -136,7 +136,7 @@ class Session extends ComponentBase
{ {
$getToken = SessionP::get('nurgulToken'); $getToken = SessionP::get('nurgulToken');
$response = Http::get('https://derman.com.tm/dermanhana/webq/api/customer/addresses', function ($http) use($getToken) { $response = Http::get('http://216.250.11.229/app/api/customer/addresses', function ($http) use($getToken) {
$http->header('Authorization', 'Bearer '.$getToken); $http->header('Authorization', 'Bearer '.$getToken);
}); });
@ -151,7 +151,7 @@ class Session extends ComponentBase
$dataInput = post(); $dataInput = post();
$response = Http::post('https://derman.com.tm/dermanhana/webq/api/customer/addresses', function ($http) use($getToken, $dataInput) { $response = Http::post('http://216.250.11.229/app/api/customer/addresses', function ($http) use($getToken, $dataInput) {
// $http->header('Content-Type', 'application/json'); // $http->header('Content-Type', 'application/json');
$http->header('Authorization', 'Bearer '.$getToken); $http->header('Authorization', 'Bearer '.$getToken);
$http->header('Accept', 'application/json'); $http->header('Accept', 'application/json');
@ -184,7 +184,7 @@ class Session extends ComponentBase
$dataInput = post(); $dataInput = post();
$response = Http::post('https://derman.com.tm/dermanhana/webq/api/customer/checkout/save-shipping', function ($http) use($getToken, $dataInput) { $response = Http::post('http://216.250.11.229/app/api/customer/checkout/save-shipping', function ($http) use($getToken, $dataInput) {
// $http->header('Content-Type', 'application/json'); // $http->header('Content-Type', 'application/json');
$http->header('Authorization', 'Bearer '.$getToken); $http->header('Authorization', 'Bearer '.$getToken);
$http->header('Accept', 'application/json'); $http->header('Accept', 'application/json');
@ -211,7 +211,7 @@ class Session extends ComponentBase
$dataInput = post(); $dataInput = post();
$response = Http::post('https://derman.com.tm/dermanhana/webq/api/customer/checkout/save-payment', function ($http) use($getToken, $dataInput) { $response = Http::post('http://216.250.11.229/app/api/customer/checkout/save-payment', function ($http) use($getToken, $dataInput) {
// $http->header('Content-Type', 'application/json'); // $http->header('Content-Type', 'application/json');
$http->header('Authorization', 'Bearer '.$getToken); $http->header('Authorization', 'Bearer '.$getToken);
$http->header('Accept', 'application/json'); $http->header('Accept', 'application/json');
@ -235,7 +235,7 @@ class Session extends ComponentBase
$getToken = SessionP::get('nurgulToken'); $getToken = SessionP::get('nurgulToken');
$response = Http::post('https://derman.com.tm/dermanhana/webq/api/customer/checkout/save-order', function ($http) use($getToken) { $response = Http::post('http://216.250.11.229/app/api/customer/checkout/save-order', function ($http) use($getToken) {
// $http->header('Content-Type', 'application/json'); // $http->header('Content-Type', 'application/json');
$http->header('Authorization', 'Bearer '.$getToken); $http->header('Authorization', 'Bearer '.$getToken);
$http->header('Accept', 'application/json'); $http->header('Accept', 'application/json');
@ -262,7 +262,7 @@ class Session extends ComponentBase
$dataInput = post(); $dataInput = post();
$response = Http::post('https://derman.com.tm/dermanhana/webq/api/customer/wishlist/'.$dataInput["product_id"], function ($http) use($getToken, $dataInput) { $response = Http::post('http://216.250.11.229/app/api/customer/wishlist/'.$dataInput["product_id"], function ($http) use($getToken, $dataInput) {
// $http->header('Content-Type', 'application/json'); // $http->header('Content-Type', 'application/json');
$http->header('Authorization', 'Bearer '.$getToken); $http->header('Authorization', 'Bearer '.$getToken);
$http->header('Accept', 'application/json'); $http->header('Accept', 'application/json');
@ -285,7 +285,7 @@ class Session extends ComponentBase
{ {
$getToken = SessionP::get('nurgulToken'); $getToken = SessionP::get('nurgulToken');
$response = Http::get('https://derman.com.tm/dermanhana/webq/api/customer/wishlist', function ($http) use($getToken) { $response = Http::get('http://216.250.11.229/app/api/customer/wishlist', function ($http) use($getToken) {
$http->header('Authorization', 'Bearer '.$getToken); $http->header('Authorization', 'Bearer '.$getToken);
}); });

View File

@ -22,7 +22,7 @@ layout = "main"
$('#details_screen').hide(); $('#details_screen').hide();
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/vendors`, url: `http://216.250.11.229/app/api/vendors`,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -18,7 +18,7 @@
$.ajax({ $.ajax({
async: true, async: true,
url: 'https://derman.com.tm/dermanhana/webq/api/customer/cart/add/' + String(prodId), url: 'http://216.250.11.229/app/api/customer/cart/add/' + String(prodId),
type: 'POST', type: 'POST',
headers: { Authorization: 'Bearer {{token}}' }, headers: { Authorization: 'Bearer {{token}}' },
processData: false, processData: false,

View File

@ -14,7 +14,7 @@
fd.append('device_name', deviceName); fd.append('device_name', deviceName);
$.ajax({ $.ajax({
url: 'https://derman.com.tm/dermanhana/webq/api/customer/login', url: 'http://216.250.11.229/app/api/customer/login',
data: fd, data: fd,
processData: false, processData: false,
contentType: false, contentType: false,

View File

@ -9,7 +9,7 @@
function getBrandProducts(brandId) { function getBrandProducts(brandId) {
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/vendor/products/`+ brandId, url: `http://216.250.11.229/app/api/vendor/products/`+ brandId,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {
@ -83,7 +83,7 @@ $('#products_list_{{id}}').append(`{% partial 'product/category-list' url="/prod
function getVendor(vendorId) { function getVendor(vendorId) {
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/vendor/` + vendorId, url: `http://216.250.11.229/app/api/vendor/` + vendorId,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -9,7 +9,7 @@
function getCatProducts(query, limit, catId, page) { function getCatProducts(query, limit, catId, page) {
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/products?` + query + `{{activeLocale}}&category=` + catId + `&limit=` + limit + `&page=` + page, url: `http://216.250.11.229/app/api/products?` + query + `{{activeLocale}}&category=` + catId + `&limit=` + limit + `&page=` + page,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {
@ -83,7 +83,7 @@
function getCat(query, catId) { function getCat(query, catId) {
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/categories/` + catId + `?` + query, url: `http://216.250.11.229/app/api/categories/` + catId + `?` + query,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -7,7 +7,7 @@
console.log(query); console.log(query);
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/products?`+query+`{{activeLocale}}&limit=`+limit, url: `http://216.250.11.229/app/api/products?`+query+`{{activeLocale}}&limit=`+limit,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -7,7 +7,7 @@
console.log(query); console.log(query);
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/products/{{prodId}}/` + query + `{{activeLocale}}`, url: `http://216.250.11.229/app/api/products/{{prodId}}/` + query + `{{activeLocale}}`,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -18,7 +18,7 @@
fd.append('device_name', deviceName); fd.append('device_name', deviceName);
$.ajax({ $.ajax({
url: 'https://derman.com.tm/dermanhana/webq/api/customer/register', url: 'http://216.250.11.229/app/api/customer/register',
data: fd, data: fd,
processData: false, processData: false,
contentType: false, contentType: false,

View File

@ -7,7 +7,7 @@
function getSearchProducts(limit, key, page) { function getSearchProducts(limit, key, page) {
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/products-search?key=`+ key + `&limit=` + limit + `&page=` + page, url: `http://216.250.11.229/app/api/products-search?key=`+ key + `&limit=` + limit + `&page=` + page,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -10,7 +10,7 @@
console.log(query); console.log(query);
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: 'https://derman.com.tm/dermanhana/webq/api/products?' + query, url: 'http://216.250.11.229/app/api/products?' + query,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -28,7 +28,7 @@
function deleteProduct(id){ function deleteProduct(id){
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: 'https://derman.com.tm/dermanhana/webq/api/seller/delete/product/' + id, url: 'http://216.250.11.229/app/api/seller/delete/product/' + id,
cache: false, cache: false,
contentType: false, contentType: false,
processData: false, processData: false,

View File

@ -143,7 +143,7 @@
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/vendor/{{user.seller_id}}?locale=tm`, url: `http://216.250.11.229/app/api/vendor/{{user.seller_id}}?locale=tm`,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
success: async function (data, textStatus, xhr) { success: async function (data, textStatus, xhr) {
@ -173,8 +173,8 @@
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/seller/products/{{user.seller_id}}/{{id}}?locale=tm`, url: `http://216.250.11.229/app/api/seller/products/{{user.seller_id}}/{{id}}?locale=tm`,
// url: `https://derman.com.tm/dermanhana/webq/api/products/{{id}}`, // url: `http://216.250.11.229/app/api/products/{{id}}`,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {
@ -314,7 +314,7 @@
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: "https://derman.com.tm/dermanhana/webq/api/seller/update/product", url: "http://216.250.11.229/app/api/seller/update/product",
data: fd, data: fd,
cache: false, cache: false,
contentType: false, contentType: false,

View File

@ -148,7 +148,7 @@
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/products/{{id}}`, url: `http://216.250.11.229/app/api/products/{{id}}`,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {
@ -234,7 +234,7 @@
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: "https://derman.com.tm/dermanhana/webq/api/seller/update/product", url: "http://216.250.11.229/app/api/seller/update/product",
data: fd, data: fd,
cache: false, cache: false,
contentType: false, contentType: false,

View File

@ -33,7 +33,7 @@
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/seller/order`, url: `http://216.250.11.229/app/api/seller/order`,
type: 'POST', type: 'POST',
data: formData, data: formData,
cache: false, cache: false,

View File

@ -33,7 +33,7 @@
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/seller/orders`, url: `http://216.250.11.229/app/api/seller/orders`,
type: 'POST', type: 'POST',
data: formData, data: formData,
cache: false, cache: false,

View File

@ -6,7 +6,7 @@
function getProducts(limit, page) { function getProducts(limit, page) {
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/seller/products/{{user.seller_id}}?locale=tm&limit=`+limit + `&page=` + page, url: `http://216.250.11.229/app/api/seller/products/{{user.seller_id}}?locale=tm&limit=`+limit + `&page=` + page,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -12,7 +12,7 @@
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/seller/report`, url: `http://216.250.11.229/app/api/seller/report`,
type: 'POST', type: 'POST',
data: formData, data: formData,
cache: false, cache: false,

View File

@ -28,7 +28,7 @@ function onStart(){
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Place favicon.png in the root directory --> <!-- Place favicon.png in the root directory -->
<link rel="shortcut icon" href="https://derman.com.tm/dermanhana/webq/vendor/webkul/ui/assets/images/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="http://216.250.11.229/app/vendor/webkul/ui/assets/images/favicon.ico" type="image/x-icon" />
<!-- Font Icons css --> <!-- Font Icons css -->
<link rel="stylesheet" href="{{'assets/css/font-icons.css'|theme}}"> <link rel="stylesheet" href="{{'assets/css/font-icons.css'|theme}}">
<!-- plugins css --> <!-- plugins css -->

View File

@ -19,7 +19,7 @@ title = "Brands"
{% put scripts %} {% put scripts %}
<script> <script>
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/attribute-options?locale={{activeLocale}}`, url: `http://216.250.11.229/app/api/attribute-options?locale={{activeLocale}}`,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -16,7 +16,7 @@
$.ajax({ $.ajax({
async: true, async: true,
url: 'https://derman.com.tm/dermanhana/webq/api/customer/cart/add/' + String(prodId), url: 'http://216.250.11.229/app/api/customer/cart/add/' + String(prodId),
type: 'POST', type: 'POST',
headers: { Authorization: 'Bearer {{token}}' }, headers: { Authorization: 'Bearer {{token}}' },
processData: false, processData: false,

View File

@ -7,7 +7,7 @@
// console.log(String({{token}})); // console.log(String({{token}}));
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/customer/cart`, url: `http://216.250.11.229/app/api/customer/cart`,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
headers: {Authorization: 'Bearer {{token}}'}, headers: {Authorization: 'Bearer {{token}}'},

View File

@ -18,7 +18,7 @@
$.ajax({ $.ajax({
async: true, async: true,
url: 'https://derman.com.tm/dermanhana/webq/api/customer/cart/add/' + String(prodId), url: 'http://216.250.11.229/app/api/customer/cart/add/' + String(prodId),
type: 'POST', type: 'POST',
headers: { Authorization: 'Bearer {{token}}' }, headers: { Authorization: 'Bearer {{token}}' },
processData: false, processData: false,

View File

@ -14,7 +14,7 @@
fd.append('device_name', deviceName); fd.append('device_name', deviceName);
$.ajax({ $.ajax({
url: 'https://derman.com.tm/dermanhana/webq/api/customer/login', url: 'http://216.250.11.229/app/api/customer/login',
data: fd, data: fd,
processData: false, processData: false,
contentType: false, contentType: false,

View File

@ -8,7 +8,7 @@
function getBrandProducts(query, limit, brandId, page) { function getBrandProducts(query, limit, brandId, page) {
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/products?brands=`+ brandId + `&` + query + `{{activeLocale}}&limit=` + limit + `&page=` + page, url: `http://216.250.11.229/app/api/products?brands=`+ brandId + `&` + query + `{{activeLocale}}&limit=` + limit + `&page=` + page,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {
@ -81,7 +81,7 @@
function getCat(query, catId) { function getCat(query, catId) {
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/categories/` + catId + `?` + query, url: `http://216.250.11.229/app/api/categories/` + catId + `?` + query,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -8,7 +8,7 @@
function getCatProducts(query, limit, catId, page) { function getCatProducts(query, limit, catId, page) {
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/products?` + query + `{{activeLocale}}&category=` + catId + `&limit=` + limit + `&page=` + page, url: `http://216.250.11.229/app/api/products?` + query + `{{activeLocale}}&category=` + catId + `&limit=` + limit + `&page=` + page,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {
@ -81,7 +81,7 @@
function getCat(query, catId) { function getCat(query, catId) {
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/categories/` + catId + `?` + query, url: `http://216.250.11.229/app/api/categories/` + catId + `?` + query,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -7,7 +7,7 @@
console.log(query); console.log(query);
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/products?`+query+`{{activeLocale}}&limit=`+limit, url: `http://216.250.11.229/app/api/products?`+query+`{{activeLocale}}&limit=`+limit,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -7,7 +7,7 @@
console.log(query); console.log(query);
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/products/{{prodId}}/` + query + `{{activeLocale}}`, url: `http://216.250.11.229/app/api/products/{{prodId}}/` + query + `{{activeLocale}}`,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -18,7 +18,7 @@
fd.append('device_name', deviceName); fd.append('device_name', deviceName);
$.ajax({ $.ajax({
url: 'https://derman.com.tm/dermanhana/webq/api/customer/register', url: 'http://216.250.11.229/app/api/customer/register',
data: fd, data: fd,
processData: false, processData: false,
contentType: false, contentType: false,

View File

@ -7,7 +7,7 @@
function getSearchProducts(limit, key, page) { function getSearchProducts(limit, key, page) {
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://derman.com.tm/dermanhana/webq/api/products-search?key=`+ key + `&limit=` + limit + `&page=` + page, url: `http://216.250.11.229/app/api/products-search?key=`+ key + `&limit=` + limit + `&page=` + page,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -10,7 +10,7 @@
console.log(query); console.log(query);
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: 'https://derman.com.tm/dermanhana/webq/api/products?' + query, url: 'http://216.250.11.229/app/api/products?' + query,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {