From 8e6f3ab49cc48a0a971c862eda7aea6f702ed20c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 22 Aug 2019 10:35:35 +0800 Subject: [PATCH] 1 --- webapp/controller/PayController.class.php | 2 +- webapp/controller/ServerSwitchController.class.php | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 webapp/controller/ServerSwitchController.class.php diff --git a/webapp/controller/PayController.class.php b/webapp/controller/PayController.class.php index e77c40c..f221821 100644 --- a/webapp/controller/PayController.class.php +++ b/webapp/controller/PayController.class.php @@ -421,7 +421,7 @@ class PayController{ $timestamp = time(); $params['sign'] = phpcommon\md5Sign($params, '06ba97e28ea905b0b7ed5477746b07f1', $timestamp); $params['timestamp'] = $timestamp; - $iv = 'wx1dd2f605f4f8496b'; + $iv = '1dd2f605f4f8496b'; $key = 'c868a478c81ff3c168b35d703f787d3c'; $str_encoded = '2001_' . base64_encode(phpcommon\aesEncrypt(json_encode($params), $iv, $key)); echo json_encode(array( diff --git a/webapp/controller/ServerSwitchController.class.php b/webapp/controller/ServerSwitchController.class.php new file mode 100644 index 0000000..c0c3dd6 --- /dev/null +++ b/webapp/controller/ServerSwitchController.class.php @@ -0,0 +1,14 @@ + 0, + 'errmsg' => '', + 'payable' => 1 + )); + } + +}