From 8f6f2a0156f06f6b57d6ca4208d6ab569c06b802 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 22 Aug 2019 12:01:49 +0800 Subject: [PATCH] 1 --- tools/pay_backend.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/pay_backend.py b/tools/pay_backend.py index f4047c9..d4675ca 100644 --- a/tools/pay_backend.py +++ b/tools/pay_backend.py @@ -77,8 +77,9 @@ def sendOneOrder(idx, orderid): cursor.execute('SELECT sp_pay_result, accountid, itemid, price, orderid, gameid, status ' 'FROM orderinfo WHERE orderid="%s";' % conn.escape_string(orderid)) row = cursor.fetchone() - if (not row) or (row[0] != '1'): + if (not row) or (row[0] != 1): return True + print(row[3]) if row[6] == '0': timestamp = time.time() params = { @@ -91,8 +92,8 @@ def sendOneOrder(idx, orderid): md5signstr = md5Sign(params, secret, timestamp) url = conf['notify_url'] + '×tamp=' + str(timestamp) + '&sign=' + md5signstr req = urllib.request.Request(url) - data = urllib.request.urlopen(req).read() - jsonobj = json.loads(data) +# data = urllib.request.urlopen(req).read() +# jsonobj = json.loads(data) info('sendNotify end') return True except Exception as e: