-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
935 changed files
with
2,400 additions
and
2,163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/.git | ||
/.idea | ||
/crmeb/.constant | ||
/crmeb/runtime | ||
/crmeb/public/uploads | ||
*.log | ||
/crmeb/public/install/install.lock | ||
/crmeb/.env | ||
/crmeb/timer.pid | ||
/crmeb/workerman.pid | ||
/docker-compose/mysql/data/ | ||
/docker-compose/mysql/log/ | ||
/docker-compose/nginx/log/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,17 +17,17 @@ | |
5、如果您未能遵守本协议的条款,您的授权将被终止,所被许可的权利将被收回,并承担相应法律责任。 | ||
|
||
三、有限担保和免责声明 | ||
1、本软件及所附带的文件是作为不提供任何明确的或隐含的赔偿或担保的形式提供的。 | ||
1、本软件及所附带的文件是作为不提供任何明确的或隐含的赔偿或担保的形式提供的。 | ||
2、用户出于自愿而使用本软件,您必须了解使用本软件的风险,在尚未购买产品技术服务之前,我们不承诺对免费用户提供任何形式的技术支持、使用担保,也不承担任何因使用本软件而产生问题的相关责任。 | ||
3、电子文本形式的授权协议如同双方书面签署的协议一样,具有完全的和等同的法律效力。您一旦开始确认本协议并安装 CRMEB,即被视为完全理解并接受本协议的各项条款,在享有上述条款授予的权力的同时,受到相关的约束和限制。协议许可范围以外的行为,将直接违反本授权协议并构成侵权,我们有权随时终止授权,责令停止损害,并保留追究相关责任的权力。 | ||
|
||
协议发布时间: 2017年8月01日 | ||
版本最新更新: 2022年3月15日 By CRMEB | ||
版本最新更新: 2022年3月28日 By CRMEB | ||
|
||
CRMEB官方网站:http://www.crmeb.com | ||
CRMEB演示站:http://demo.crmeb.com | ||
----------------------------------------------------- | ||
运营团队: 众邦科技 | ||
电 话: 400-8888-794 | ||
邮 箱: [email protected] | ||
网 址: http://www.xazbkj.com | ||
网 址: http://www.xazbkj.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
// +---------------------------------------------------------------------- | ||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] | ||
// +---------------------------------------------------------------------- | ||
// | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved. | ||
// +---------------------------------------------------------------------- | ||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 | ||
// +---------------------------------------------------------------------- | ||
// | Author: CRMEB Team <[email protected]> | ||
// +---------------------------------------------------------------------- | ||
|
||
namespace app\http\middleware; | ||
|
||
|
||
use app\Request; | ||
use crmeb\interfaces\MiddlewareInterface; | ||
|
||
/** | ||
* Class BaseMiddleware | ||
* @package app\api\middleware | ||
*/ | ||
class BaseMiddleware implements MiddlewareInterface | ||
{ | ||
public function handle(Request $request, \Closure $next, bool $force = true) | ||
{ | ||
if (!Request::hasMacro('uid')) { | ||
Request::macro('uid', function(){ return 0; }); | ||
} | ||
if (!Request::hasMacro('adminId')) { | ||
Request::macro('adminId', function(){ return 0; }); | ||
} | ||
if (!Request::hasMacro('kefuId')) { | ||
Request::macro('kefuId', function(){ return 0; }); | ||
} | ||
|
||
return $next($request); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.