Commit 29883a18 by 汪伟伟

env

parent cb995417
APP_NAME=Laravel APP_NAME=Laravel
APP_ENV=local APP_ENV=prod
APP_KEY=base64:wHGDcJa6sO4Z52I01OWMrNUaWDcDd4iqjs5LrlssMmM= APP_KEY=base64:wHGDcJa6sO4Z52I01OWMrNUaWDcDd4iqjs5LrlssMmM=
APP_DEBUG=false APP_DEBUG=false
APP_URL=http://localhost APP_URL=https://data-collect.raisound.com
LOG_LEVEL=debug LOG_LEVEL=debug
......
...@@ -31,12 +31,12 @@ class TaskReceiveController extends AdminController ...@@ -31,12 +31,12 @@ class TaskReceiveController extends AdminController
// $tab->add('选项卡1', view('...')); // $tab->add('选项卡1', view('...'));
$user = Admin::user(); $user = Admin::user();
if ($user->is_admin) { if ($user->is_admin) {
$tab->add('全部任务', $this->getData(-1), true, '1'); $tab->add('全部任务', $this->getData(-1), false, '1');
} }
$tab->add('待完成任务', $this->getData(0), true, '2'); $tab->add('待完成任务', $this->getData(0), false, '2');
$tab->add('已完成任务', $this->getData(1), true, '3'); $tab->add('已完成任务', $this->getData(1), false, '3');
if ($user->is_admin == 0) {//用户 if ($user->is_admin == 0) {//用户
$tab->add('已经结算任务', $this->getOrderData(), true, '4'); $tab->add('已经结算任务', $this->getOrderData(), false, '4');
} }
return $tab; return $tab;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment