Skip to content

Commit

Permalink
重构Request类
Browse files Browse the repository at this point in the history
  • Loading branch information
dashingunique committed May 16, 2020
1 parent 7fdca03 commit 0a7808d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/service/ErpService.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace erp\service;

use erp\facade\Erp;
use erp\Request;
use think\Service;
use erp\command\logic;
use erp\command\Validate;
Expand All @@ -25,6 +26,7 @@ class ErpService extends Service
*/
public function register()
{
$this->app->bind('think\Request', Request::class);
$langPath = Erp::getErpLangPath();
// 加载中文语言包
$this->app->lang->load($langPath.'zh-cn.php', 'zh-cn');
Expand Down

0 comments on commit 0a7808d

Please sign in to comment.