|
|
@@ -22,6 +22,8 @@ from utils.common import message_queue
|
|
|
|
|
|
|
|
|
async def updateDataRecord(PhotoFilename, id):
|
|
|
+ if id == None:
|
|
|
+ return
|
|
|
await asyncio.sleep(0.01)
|
|
|
create_time = datetime.datetime.fromtimestamp(os.path.getctime(PhotoFilename))
|
|
|
data = {"id": id, "image_path": PhotoFilename, "photo_create_time": create_time}
|
|
|
@@ -198,6 +200,7 @@ async def MsgCallback(msg):
|
|
|
# 更新拍照记录
|
|
|
print("PhotoFilename", PhotoFilename, PhotoOrigin)
|
|
|
goods_art_no = None
|
|
|
+ id = None
|
|
|
try:
|
|
|
if PhotoOrigin != "" and PhotoOrigin not in ["external", "ui"]:
|
|
|
goods_art_no, id = PhotoOrigin.split(",")
|