chore: finalize license compliance cleanup

This commit is contained in:
danaisuiyuan
2026-04-30 17:57:03 +08:00
parent b650f0f167
commit bc1e7a308a
12 changed files with 98 additions and 330 deletions

View File

@@ -951,10 +951,10 @@ INSERT INTO `@table` (`id`, `pid`, `type`, `icon`, `menu_name`, `module`, `contr
(601, 74, 1, '', '砍价商品导出', 'admin', '', '', 'export/storeBargain', 'GET', '[]', 0, 0, 0, 1, '', '', 2, '', 0, 'export-storeBargain', 0),
(602, 29, 1, '', '推广员列表导出', 'admin', '', '', 'export/userAgent', 'GET', '[]', 0, 0, 0, 1, '', '', 2, '', 0, 'export-userAgent', 0),
(603, 40, 1, '', '用户充值导出', 'admin', '', '', 'export/userRecharge', 'GET', '[]', 0, 0, 0, 1, '', '', 2, '', 0, 'export-userRecharge', 0),
(605, 1665, 1, '', '商业授权', 'admin', '', '', '', '', '[]', 4, 1, 0, 1, '/admin/system/maintain/auth', '12/1665', 1, '', 0, 'system-maintain-auth', 0),
(605, 1665, 1, '', '系统许可', 'admin', '', '', '', '', '[]', 4, 1, 0, 1, '/admin/system/maintain/auth', '12/1665', 1, '', 0, 'system-maintain-auth', 0),
(606, 29, 1, '', '分销员数据', 'admin', '', '', 'agent/statistics', 'GET', '[]', 0, 0, 0, 1, '', '', 2, '', 0, '', 0),
(607, 587, 1, '', '修改密码', 'admin', '', '', 'setting/update_admin', 'PUT', '[]', 0, 0, 0, 1, '', '', 2, '', 0, '', 0),
(608, 605, 1, '', '商业授权', 'admin', '', '', 'auth', 'GET', '[]', 0, 1, 0, 1, '', '', 2, '', 0, '', 0),
(608, 605, 1, '', '系统许可', 'admin', '', '', 'auth', 'GET', '[]', 0, 1, 0, 1, '', '', 2, '', 0, '', 0),
(610, 20, 1, '', '管理员列表', 'admin', '', '', 'setting/admin', 'GET', '[]', 0, 0, 0, 1, '', '', 2, '', 0, '', 0),
(611, 19, 1, '', '身份列表', 'admin', '', '', 'setting/role', 'GET', '[]', 0, 0, 0, 1, '', '', 2, '', 0, '', 0),
(612, 2, 1, '', '批量上下架', 'admin', '', '', 'product/product/product_show', 'PUT', '[]', 5, 0, 0, 1, '', '', 2, '', 0, 'product-product-product_show', 0),
@@ -1540,7 +1540,7 @@ INSERT INTO `@table` (`id`, `pid`, `type`, `icon`, `menu_name`, `module`, `contr
(1662, 1661, 1, '', '提现设置', 'admin', '', '', '', '', '[]', 1, 1, 0, 1, '/admin/setting/system_config_advance', '35/1661', 1, '', 0, '', 0),
(1663, 1640, 1, '', '返佣设置', 'admin', '', '', '', '', '[]', 1, 1, 0, 1, '/admin/setting/system_config_rake_back', '26/1640', 1, '', 0, '', 0),
(1664, 1636, 1, '', '开卡有礼', 'admin', '', '', '', '', '[]', 0, 1, 0, 1, '/admin/user/memberGift', '9/1636', 1, '', 0, 'user-member-gift', 0),
(1665, 12, 1, 'ios-ribbon', '商业授权', 'admin', '', '', '', '', '[]', 0, 1, 0, 1, '/', '12', 1, '', 0, '/', 0),
(1665, 12, 1, 'ios-ribbon', '系统许可', 'admin', '', '', '', '', '[]', 0, 1, 0, 1, '/', '12', 1, '', 0, '/', 0),
(1666, 7, 1, 'ios-speedometer', '商城统计', 'admin', '', '', '', '', '[]', 0, 1, 0, 1, '/', '7', 1, '', 0, '/', 0),
(1667, 27, 1, 'logo-codepen', '活动氛围', 'admin', '', '', '', '', '[]', 80, 1, 0, 1, '/admin/marketing/activity_background', '27', 1, '', 0, 'admin-marketing-activity_background', 0),
(1668, 135, 1, 'ios-appstore', 'APP', 'admin', '', '', '', '', '[]', 5, 1, 0, 1, '/', '135', 1, '', 0, '/', 0),

View File

@@ -64,7 +64,7 @@ class Common extends AuthController
}
/**
* 查询购买版权
* 查询自有版权配置
* @return Response
*/
public function crmeb_copyright(): Response
@@ -96,7 +96,7 @@ class Common extends AuthController
}
/**
* 申请授权
* 原厂授权申请入口已禁用
* @return Response
*/
public function auth_apply(): Response

View File

@@ -8,10 +8,9 @@ namespace app\services\system;
use app\services\BaseServices;
use crmeb\exceptions\AdminException;
use crmeb\services\HttpService;
/**
* 商业授权
* 原厂授权申请入口已禁用。
* Class SystemAuthServices
* @package app\services\system
*/
@@ -19,24 +18,13 @@ class SystemAuthServices extends BaseServices
{
/**
* 申请授权
* 原厂授权申请入口已禁用。
* @param array $data
* @param $headerData
* @return bool
*/
public function authApply(array $data, $headerData)
{
$res = HttpService::postRequest('http://authorize.crmeb.net/api/auth_apply', $data, $headerData);
if ($res === false) {
throw new AdminException('申请失败,服务器没有响应!');
}
$res = json_decode($res, true);
if (isset($res['status'])) {
if ($res['status'] == 400) {
throw new AdminException($res['msg'] ?? "申请失败");
} else {
return true;
}
}
throw new AdminException('CRMEB 原厂授权申请入口已禁用,请使用本项目自有版权配置');
}
}