|
|
|
@ -19,8 +19,26 @@ def order():
|
|
|
|
|
candy3 = int(request.form['candy3'])
|
|
|
|
|
candy4 = int(request.form['candy4'])
|
|
|
|
|
print ("test {} {} {} {} ".format(candy1, candy2, candy3, candy4))
|
|
|
|
|
params = []
|
|
|
|
|
s = {}
|
|
|
|
|
s['img_idx'] = 0
|
|
|
|
|
s['loaded'] = 0
|
|
|
|
|
s['required'] = candy1
|
|
|
|
|
test_candy_stat.append(s)
|
|
|
|
|
s['img_idx'] = 1
|
|
|
|
|
s['loaded'] = 0
|
|
|
|
|
s['required'] = candy2
|
|
|
|
|
test_candy_stat.append(s)
|
|
|
|
|
s['img_idx'] = 2
|
|
|
|
|
s['loaded'] = 0
|
|
|
|
|
s['required'] = candy3
|
|
|
|
|
test_candy_stat.append(s)
|
|
|
|
|
s['img_idx'] = 3
|
|
|
|
|
s['loaded'] = 0
|
|
|
|
|
s['required'] = candy4
|
|
|
|
|
test_candy_stat.append(s)
|
|
|
|
|
s.new_order(params)
|
|
|
|
|
return '{"status":"ok"}'
|
|
|
|
|
#s.new_order(params)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|