|
@@ -11,8 +11,8 @@ partnerKey = 'tdz5xjtmuymkrhbx460iwv8kyw9hasqa'
|
|
|
nonce = ''.join(random.sample(string.ascii_letters+string.digits,32))
|
|
|
#nonce = 'WUKRmNYGcFaqgy7Hl8dbLOMzrSQuPfZ1'
|
|
|
#print(nonce)
|
|
|
-#cardSecret = ''.join(random.sample(string.ascii_letters+string.digits,32))
|
|
|
-cardSecret = '2434353536564645448'
|
|
|
+cardSecret = ''.join(random.sample(string.ascii_letters+string.digits,32))
|
|
|
+#cardSecret = '2434353536564645448'
|
|
|
#key = ''.join(random.sample(string.ascii_letters+string.digits,16))
|
|
|
|
|
|
#print(key)
|
|
@@ -49,7 +49,7 @@ http_header = {
|
|
|
|
|
|
s = requests.session()
|
|
|
s.keep_alive = False
|
|
|
-#r_json = requests.post("http://47.108.14.99:8086/unicom/card/secret/push.json", data=data_json, headers=http_header)
|
|
|
-r_json = requests.post("http://localhost:8086/unicom/card/secret/push.json", data=data_json, headers=http_header)
|
|
|
+r_json = requests.post("http://47.108.14.99:8086/unicom/card/secret/push.json", data=data_json, headers=http_header)
|
|
|
+#r_json = requests.post("http://localhost:8086/unicom/card/secret/push.json", data=data_json, headers=http_header)
|
|
|
#r_json = requests.post("http://47.108.14.99:8085/sup/order/add", data=data_json, headers=http_header)
|
|
|
print( r_json.text )
|