product id sent
This commit is contained in:
@@ -310,12 +310,15 @@ def account_payments(current_user):
|
|||||||
@app.route("/panel/myproduct/dash")
|
@app.route("/panel/myproduct/dash")
|
||||||
@token_required
|
@token_required
|
||||||
def myproduct(current_user):
|
def myproduct(current_user):
|
||||||
# data = request.json
|
product_id = request.form.get("product_id")
|
||||||
# print(data)
|
if not product_id:
|
||||||
product_id = request.args
|
return {
|
||||||
|
"message": "Please provide product_id",
|
||||||
|
"data": None,
|
||||||
|
"error": "Bad request"
|
||||||
|
}, 400
|
||||||
|
|
||||||
print(product_id)
|
print(product_id)
|
||||||
|
|
||||||
myproduct_data = {
|
myproduct_data = {
|
||||||
"myproduct_uid":"",
|
"myproduct_uid":"",
|
||||||
"banner": "p4.jpg",
|
"banner": "p4.jpg",
|
||||||
|
|||||||
Reference in New Issue
Block a user