master
parent
230aad7abc
commit
45bfebf2ca
|
@ -6,4 +6,4 @@ NEXT_PUBLIC_PUBLIC_URL=https://api.vesmeh.com
|
||||||
NEXT_PUBLIC_API_URL=https://api.vesmeh.com/api
|
NEXT_PUBLIC_API_URL=https://api.vesmeh.com/api
|
||||||
NEXT_PUBLIC_STORAGE_URL=http://storage.vesmeh.com
|
NEXT_PUBLIC_STORAGE_URL=http://storage.vesmeh.com
|
||||||
STORAGE_URL=http://storage.vesmeh.com
|
STORAGE_URL=http://storage.vesmeh.com
|
||||||
NEXT_PUBLIC_PACKAGE_VERSION=1.0.3.5
|
NEXT_PUBLIC_PACKAGE_VERSION=1.0.5.7
|
|
@ -66,7 +66,7 @@ const ProductData = ({ params, data }) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const createProductReview = async () => {
|
const createProductReview = async () => {
|
||||||
const body = { title: "", comment, rate: "", productId: params.id[0] };
|
const body = { title: "", comment, rate: 1, productId: params.id[0] };
|
||||||
try {
|
try {
|
||||||
const data = await Chapar.post(
|
const data = await Chapar.post(
|
||||||
`${process.env.NEXT_PUBLIC_API_URL}/product/review`,
|
`${process.env.NEXT_PUBLIC_API_URL}/product/review`,
|
||||||
|
@ -375,7 +375,7 @@ const ProductData = ({ params, data }) => {
|
||||||
|
|
||||||
<div id="section3">
|
<div id="section3">
|
||||||
<div className="flex">
|
<div className="flex">
|
||||||
<h3 className="mb-2 text-sm text-gray-400 mt-7">
|
<h3 className="mb-2 text-sm text-gray-400 mt-7">
|
||||||
دیدگاه مخاطبان{" "}
|
دیدگاه مخاطبان{" "}
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue