diff --git a/class/Api.php b/class/Api.php index 2066e95..6a9e755 100644 --- a/class/Api.php +++ b/class/Api.php @@ -1689,6 +1689,11 @@ class Api { $subscribe = unserialize($subscribe); //api请求地址 $api_url = API_URL."/v1/check_subscribe.php?order_id=".$subscribe['order_id']."&email=".$subscribe['email']."&domain=".$domain; + + // 如果邮箱或者订单号为空,则返回提示 + if( empty($subscribe['order_id']) || empty($subscribe['email']) ) { + $this->return_json(-2000,'','此功能需要订阅!'); + } try { #GET HTTPS diff --git a/data/update.log b/data/update.log index 7bd7ba8..d0e0b15 100755 --- a/data/update.log +++ b/data/update.log @@ -272,4 +272,9 @@ CREATE INDEX on_options_key_IDX ON on_options ("key"); 5. 默认主题修改为默认隐藏链接描述 20240115 -1. PC后台新增:分类数量/链接数量/PHP版本显示 \ No newline at end of file +1. PC后台新增:分类数量/链接数量/PHP版本显示 + +20240318 +1. 获取API页面新增一键复制按钮 +2. 优化主题“使用中”的显示状态 +3. 修改后台底部年份展示 \ No newline at end of file diff --git a/templates/admin/footer.php b/templates/admin/footer.php index 83875ff..5b49288 100755 --- a/templates/admin/footer.php +++ b/templates/admin/footer.php @@ -1,6 +1,6 @@