1
This commit is contained in:
parent
2549d147dd
commit
8f6f2a0156
@ -77,8 +77,9 @@ def sendOneOrder(idx, orderid):
|
|||||||
cursor.execute('SELECT sp_pay_result, accountid, itemid, price, orderid, gameid, status '
|
cursor.execute('SELECT sp_pay_result, accountid, itemid, price, orderid, gameid, status '
|
||||||
'FROM orderinfo WHERE orderid="%s";' % conn.escape_string(orderid))
|
'FROM orderinfo WHERE orderid="%s";' % conn.escape_string(orderid))
|
||||||
row = cursor.fetchone()
|
row = cursor.fetchone()
|
||||||
if (not row) or (row[0] != '1'):
|
if (not row) or (row[0] != 1):
|
||||||
return True
|
return True
|
||||||
|
print(row[3])
|
||||||
if row[6] == '0':
|
if row[6] == '0':
|
||||||
timestamp = time.time()
|
timestamp = time.time()
|
||||||
params = {
|
params = {
|
||||||
@ -91,8 +92,8 @@ def sendOneOrder(idx, orderid):
|
|||||||
md5signstr = md5Sign(params, secret, timestamp)
|
md5signstr = md5Sign(params, secret, timestamp)
|
||||||
url = conf['notify_url'] + '×tamp=' + str(timestamp) + '&sign=' + md5signstr
|
url = conf['notify_url'] + '×tamp=' + str(timestamp) + '&sign=' + md5signstr
|
||||||
req = urllib.request.Request(url)
|
req = urllib.request.Request(url)
|
||||||
data = urllib.request.urlopen(req).read()
|
# data = urllib.request.urlopen(req).read()
|
||||||
jsonobj = json.loads(data)
|
# jsonobj = json.loads(data)
|
||||||
info('sendNotify end')
|
info('sendNotify end')
|
||||||
return True
|
return True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user