From a90a9113217a5ff6ec7cc6e2316242df81f237fc Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 21 Aug 2019 19:53:14 +0800 Subject: [PATCH] 1 --- webapp/controller/PayController.class.php | 25 +++++++++-------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/webapp/controller/PayController.class.php b/webapp/controller/PayController.class.php index 93e06bd..3d4668c 100644 --- a/webapp/controller/PayController.class.php +++ b/webapp/controller/PayController.class.php @@ -49,22 +49,17 @@ class PayController { public function aggregatePay() { - if (SERVER_ENV == _ONLINE) { - if (!phpcommon\isValidSessionId( - $_REQUET['account_id'], - $_REQUET['session_id'] - )) { - echo json_encode(array( - 'errcode' => 100, - 'errmsg' => 'session无效', - )); - die(); - } - } - $openid = 'ouPbc4gvHQ_eRRtPKb6BhHGpheB8'; - if (isset($_REQUEST['account_id'])) { - $openid = phpcommon\extractOpenId($_REQUEST['account_id']); + if (!phpcommon\isValidSessionId( + $_REQUET['account_id'], + $_REQUET['session_id'] + )) { + echo json_encode(array( + 'errcode' => 100, + 'errmsg' => 'session无效', + )); + die(); } + $openid = phpcommon\extractOpenId($_REQUEST['account_id']); $orderid = $this->getOrderId(); if (empty($orderid)) { die();