|
@@ -7,8 +7,10 @@ from flask import jsonify
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
-@app.route('/', methods=['POST'])
|
|
|
+@app.route('/sup/callback', methods=['POST'])
|
|
|
def hello_world():
|
|
|
+ print(1111)
|
|
|
+ json_data = request.args
|
|
|
data = request.get_data()
|
|
|
data = json.loads(data)
|
|
|
print(data)
|
|
@@ -22,8 +24,7 @@ def hello_world():
|
|
|
status = data['status']
|
|
|
message = data['message']
|
|
|
timestamp = data['timestamp']
|
|
|
- pre_sign = '{}{}{}{}{}{}{}{}{}'.format(partnerId,nonce,cardNo,orderNo,sysOrderNo,status,message,timestamp,partnerKey)
|
|
|
-
|
|
|
+ pre_sign = '{}{}{}{}{}{}{}{}{}{}'.format(partnerId,nonce,cardNo,orderNo,sysOrderNo,realFace,status,message,timestamp,partnerKey)
|
|
|
#print(pre_sign)
|
|
|
sign = hashlib.md5(pre_sign.encode(encoding='UTF-8')).hexdigest()
|
|
|
print(sign)
|
|
@@ -37,5 +38,5 @@ def hello_world():
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
app.config['JSON_AS_ASCII'] = False
|
|
|
- app.run(host="0.0.0.0", port=9888)
|
|
|
+ app.run(host="0.0.0.0", port=9889)
|
|
|
|