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{ /** * 游戏列表接口 diff --git a/Application/Sdk/View/default/UserH/platform_pay_show.html b/Application/Sdk/View/default/UserH/platform_pay_show.html index 3d0b6cc0..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 @@