Skip to content

Commit 68ec965

Browse files
committed
更新版本
1 parent c264c73 commit 68ec965

File tree

4 files changed

+1
-37
lines changed

4 files changed

+1
-37
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "addons package for fastadmin",
44
"homepage": "https://github.com/karsonzhang/fastadmin-addons",
55
"license": "Apache-2.0",
6-
"version": "1.3.0",
6+
"version": "1.3.1",
77
"authors": [
88
{
99
"name": "Karson",

src/addons/Route.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ public function execute($addon = null, $controller = null, $action = null)
4040
if (!$info['state']) {
4141
throw new HttpException(500, __('addon %s is disabled', $addon));
4242
}
43-
if (!Service::checkAddonAuthorization($addon)) {
44-
throw new HttpResponseException(new Response('',sprintf("%d1", 40)));
45-
}
4643
$dispatch = $request->dispatch();
4744
if (isset($dispatch['var']) && $dispatch['var']) {
4845
$request->route(array_diff_key($dispatch['var'], array_flip(['addon', 'controller', 'action'])));

src/addons/Service.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,30 +31,6 @@ public static function addons($params = [])
3131
return self::sendRequest('/addon/index', $params, 'GET');
3232
}
3333

34-
/**
35-
* 登录
36-
*/
37-
public static function login($params = [])
38-
{
39-
return self::sendRequest('/user/login', $params, 'POST');
40-
}
41-
42-
/**
43-
* 会员信息
44-
*/
45-
public static function userinfo($params = [])
46-
{
47-
return self::sendRequest('/user/index', $params, 'POST');
48-
}
49-
50-
/**
51-
* 退出
52-
*/
53-
public static function logout($params = [])
54-
{
55-
return self::sendRequest('/user/logout', $params, 'POST');
56-
}
57-
5834
/**
5935
* 检测插件是否购买授权
6036
*/

src/common.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,6 @@
105105
}
106106
}
107107
Hook::import($hooks, true);
108-
// 闭包插件初始化行为
109-
Hook::add('addon_module_init', function ($request) {
110-
$prop = 'author';
111-
$code = 400;
112-
$prop .= 'ized';
113-
if (!$request->{$prop}) {
114-
throw new HttpResponseException(new Response('', ++$code));
115-
}
116-
});
117108
});
118109

119110
/**

0 commit comments

Comments
 (0)