From b467230523935b833b77b6da914e2014a37f02a9 Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Tue, 5 Nov 2019 17:31:19 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BC=98=E5=8C=960?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/View/default/UserH/platform_pay_show.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Sdk/View/default/UserH/platform_pay_show.html b/Application/Sdk/View/default/UserH/platform_pay_show.html index 3d0b6cc0..f2eac295 100644 --- a/Application/Sdk/View/default/UserH/platform_pay_show.html +++ b/Application/Sdk/View/default/UserH/platform_pay_show.html @@ -66,7 +66,7 @@ showerror("金额不能为空"); return ; } - if (!$("#money").val() < 0) { + if (!$("#money").val() <= 0) { showerror("金额有误"); return ; } From a4ba883a2a2a4d2c34baac587c6c3070320a759c Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Tue, 5 Nov 2019 17:37:16 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E9=87=91=E9=A2=9D=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/View/default/UserH/platform_pay_show.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Sdk/View/default/UserH/platform_pay_show.html b/Application/Sdk/View/default/UserH/platform_pay_show.html index f2eac295..3b4cb1c9 100644 --- a/Application/Sdk/View/default/UserH/platform_pay_show.html +++ b/Application/Sdk/View/default/UserH/platform_pay_show.html @@ -40,7 +40,7 @@
- +

From 4512521e285711e4c19fa5e510eaeeedd986cdc8 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 5 Nov 2019 17:56:14 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Conf/config.php | 3 ++ .../Controller/FengHuoApiController.class.php | 5 +-- .../GetInfoBaseController.class.php | 39 +++++++++++++++++++ .../Controller/OAController.class.php | 4 +- 4 files changed, 46 insertions(+), 5 deletions(-) rename Application/{Sdk => Admin}/Controller/FengHuoApiController.class.php (99%) create mode 100644 Application/Admin/Controller/GetInfoBaseController.class.php rename Application/{Sdk => Admin}/Controller/OAController.class.php (96%) diff --git a/Application/Admin/Conf/config.php b/Application/Admin/Conf/config.php index f0c3cb65..37e092b0 100644 --- a/Application/Admin/Conf/config.php +++ b/Application/Admin/Conf/config.php @@ -17,6 +17,9 @@ return array( 'DATA_CACHE_TYPE' => 'File', // 数据缓存类型 'URL_MODEL' => 3, //URL模式 + /*获取信息加密KEY*/ + 'GET_INFO_KEY' => 'wmkjtx_kj213', + /* 文件上传相关配置 */ 'DOWNLOAD_UPLOAD' => array( 'mimes' => '', //允许上传的文件MiMe类型 diff --git a/Application/Sdk/Controller/FengHuoApiController.class.php b/Application/Admin/Controller/FengHuoApiController.class.php similarity index 99% rename from Application/Sdk/Controller/FengHuoApiController.class.php rename to Application/Admin/Controller/FengHuoApiController.class.php index 264aa544..01272abb 100644 --- a/Application/Sdk/Controller/FengHuoApiController.class.php +++ b/Application/Admin/Controller/FengHuoApiController.class.php @@ -5,11 +5,11 @@ * Date: 2019/8/5 * Time: 16:04 */ -namespace SDK\Controller; +namespace Admin\Controller; use Think\Controller; use Think\Log; -class FengHuoApiController extends Controller{ +class FengHuoApiController extends GetInfoBaseController{ // protected function _initialize(){ // // 制定允许其他域名访问 // header("Access-Control-Allow-Origin:*"); @@ -57,7 +57,6 @@ class FengHuoApiController extends Controller{ * @param */ public function registerDetail(){ - $time = $_REQUEST['time']; $page = $_REQUEST['page']; $pageSize = $_REQUEST['page_size']; diff --git a/Application/Admin/Controller/GetInfoBaseController.class.php b/Application/Admin/Controller/GetInfoBaseController.class.php new file mode 100644 index 00000000..635a617b --- /dev/null +++ b/Application/Admin/Controller/GetInfoBaseController.class.php @@ -0,0 +1,39 @@ + $data['time_stamp']) { + $result = [ + 'ResultCode' => 2001, + 'ResultMessage' => "链接已过期", + 'Data' => 'null', + ]; + return $this->ajaxReturn($result); + } else { + $sign = $data['sign']; + unset($data['sign']); + ksort($data); + reset($data); + $str = ""; + foreach ($data as $k => $v) { + $str = $str . $k . "=" . $v; + } + $str = $str . 'key=' . C('GET_INFO_KEY'); + if (md5($str) != $sign) { + $result = [ + 'ResultCode' => 2001, + 'ResultMessage' => "参数错误", + 'Data' => 'null', + ]; + return $this->ajaxReturn($result); + } + } + } +} diff --git a/Application/Sdk/Controller/OAController.class.php b/Application/Admin/Controller/OAController.class.php similarity index 96% rename from Application/Sdk/Controller/OAController.class.php rename to Application/Admin/Controller/OAController.class.php index 07961413..cead68d8 100644 --- a/Application/Sdk/Controller/OAController.class.php +++ b/Application/Admin/Controller/OAController.class.php @@ -5,10 +5,10 @@ * Date: 2016/11/4 * Time: 16:04 */ -namespace SDK\Controller; +namespace Admin\Controller; use Think\Controller; -class OAController extends Controller{ +class OAController extends GetInfoBaseController{ /** * 游戏列表接口