24 lines
885 B
Python
24 lines
885 B
Python
import requests
|
|
import json
|
|
def aiReviewClient():
|
|
data = {
|
|
"goodsName": "优诺优丝黄桃果粒风味发酵乳",
|
|
"measureProperty": 0,
|
|
"qty": 1,
|
|
"price": 25.9,
|
|
"weight": 560, # 单位克
|
|
"barcode": "6931806801024",
|
|
# "video": "https://resources.cos.yimaogo.com/bl/3203600/54:78:c9:a4:8c:5e/video/411173317367614619680.mp4",
|
|
"video": "https://ieemoo-ai.obs.cn-east-3.myhuaweicloud.com/videos/20231009/04/04_20231009-082149_21f2ca35-f2c2-4386-8497-3e7a3b407f03_4901872831197.mp4",
|
|
"goodsPic": "https://ieemoo-storage.obs.cn-east-3.myhuaweicloud.com/lhpic/6931806801024.jpg",
|
|
"measureUnit": "组",
|
|
"goodsSpec": "405g"
|
|
}
|
|
url = "http://192.168.1.28:8060/ai_review"
|
|
r = requests.post(url=url, data=json.dumps(data))
|
|
print(r.text)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
aiReviewClient()
|