diff --git a/FlyCube/Api/Controller/PublicController.class.php b/FlyCube/Api/Controller/PublicController.class.php index c6c73ef..8a45133 100644 --- a/FlyCube/Api/Controller/PublicController.class.php +++ b/FlyCube/Api/Controller/PublicController.class.php @@ -55,15 +55,6 @@ class PublicController extends Controller $jsoninfo = json_decode($output, true); return $jsoninfo; } - /** - * @description: 构建 用户订阅对应主题的前缀 - * @param {*} openid 微信用户唯一凭证 - * @return {*} topicPrefix 主题前缀 - */ - protected function makeTopicPrefix($openid) - { - return substr(md5($openid . date("j")), 0, 8); //用户id+当天日 加密 截取前8位 - } /** * @description: 构建token * @param {*} openid 微信用户唯一凭证 diff --git a/FlyCube/Common/Common/functions.php b/FlyCube/Common/Common/functions.php index 8dcf2c0..cf28b82 100644 --- a/FlyCube/Common/Common/functions.php +++ b/FlyCube/Common/Common/functions.php @@ -1,8 +1,5 @@ display(); } } diff --git a/flyCube.php b/flyCube.php index 2011d52..a231c11 100644 --- a/flyCube.php +++ b/flyCube.php @@ -2,7 +2,7 @@ /* * @Author: 4021673@qq.com * @Date: 2022-05-27 23:52:59 - * @LastEditTime: 2024-05-15 18:45:31 + * @LastEditTime: 2024-06-12 16:29:16 * @Description: Do not edit */ // +---------------------------------------------------------------------- @@ -39,5 +39,8 @@ define('APP_PATH', './FlyCube/'); // 引入Composer生成的自动加载器文件 require __DIR__ . '/vendor/autoload.php'; +// 引入公共函数文件 +require_once APP_PATH . '/FlyCube/Common/Common/functions.php'; + // 引入ThinkPHP入口文件 require './ThinkPHP/ThinkPHP.php';