Arthur-Wu committed this file on 2024-11-27

This commit is contained in:
ieemoo
2024-11-27 18:00:09 +08:00
parent 0d74d0787b
commit 9af4fe3ef4
7 changed files with 67 additions and 95 deletions

View File

@ -18,9 +18,13 @@ def demo1120():
Broadcast completed: result=0
'''
# res2 = os.popen("adb shell am broadcast -a com.ieemoo.autoAction -e barcode 6971648922990").read()
res2 = os.popen("adb shell am broadcast -a com.ieemoo.autoAction -e barcode 293849600000").read()
# print(res)
print(res2)
goods_inputcode = '292413500442005544'
goods_weight = '800'
add_goods = f"adb shell am broadcast -a com.ieemoo.autoAction -e barcode {goods_inputcode}"
res2 = os.popen(add_goods).read()
add_goods_weight = f'adb shell am broadcast -a com.ieemoo.autoAction -e weight {goods_weight}'
res3 = os.popen(add_goods_weight).read()
print(f"res3: {res3}")
demo1120()