Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-collect
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
汪伟伟
data-collect
Commits
29883a18
Commit
29883a18
authored
Jan 18, 2024
by
汪伟伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
env
parent
cb995417
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
.env.example
+2
-2
app/Admin/Controllers/TaskReceiveController.php
+4
-4
No files found.
.env.example
View file @
29883a18
APP_NAME=Laravel
APP_ENV=
local
APP_ENV=
prod
APP_KEY=base64:wHGDcJa6sO4Z52I01OWMrNUaWDcDd4iqjs5LrlssMmM=
APP_DEBUG=false
APP_URL=http
://localhost
APP_URL=http
s://data-collect.raisound.com
LOG_LEVEL=debug
...
...
app/Admin/Controllers/TaskReceiveController.php
View file @
29883a18
...
...
@@ -31,12 +31,12 @@ class TaskReceiveController extends AdminController
// $tab->add('选项卡1', view('...'));
$user
=
Admin
::
user
();
if
(
$user
->
is_admin
)
{
$tab
->
add
(
'全部任务'
,
$this
->
getData
(
-
1
),
tru
e
,
'1'
);
$tab
->
add
(
'全部任务'
,
$this
->
getData
(
-
1
),
fals
e
,
'1'
);
}
$tab
->
add
(
'待完成任务'
,
$this
->
getData
(
0
),
tru
e
,
'2'
);
$tab
->
add
(
'已完成任务'
,
$this
->
getData
(
1
),
tru
e
,
'3'
);
$tab
->
add
(
'待完成任务'
,
$this
->
getData
(
0
),
fals
e
,
'2'
);
$tab
->
add
(
'已完成任务'
,
$this
->
getData
(
1
),
fals
e
,
'3'
);
if
(
$user
->
is_admin
==
0
)
{
//用户
$tab
->
add
(
'已经结算任务'
,
$this
->
getOrderData
(),
tru
e
,
'4'
);
$tab
->
add
(
'已经结算任务'
,
$this
->
getOrderData
(),
fals
e
,
'4'
);
}
return
$tab
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment