Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jwhx
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
jwhx
Commits
b1856cc7
Commit
b1856cc7
authored
Nov 16, 2024
by
wuxiaoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
5ada1d95
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/Member/app/Services/SignService.php
modules/Member/app/Services/SignService.php
+3
-2
No files found.
modules/Member/app/Services/SignService.php
View file @
b1856cc7
...
@@ -45,7 +45,6 @@ class SignService
...
@@ -45,7 +45,6 @@ class SignService
* @title 添加签到
* @title 添加签到
*
*
* @param Request $request
* @param Request $request
* @param MemberService $service
* @return void
* @return void
*/
*/
public
function
create
(
$request
){
public
function
create
(
$request
){
...
@@ -57,9 +56,11 @@ class SignService
...
@@ -57,9 +56,11 @@ class SignService
throw
new
\Exception
(
'不能重复签到'
);
throw
new
\Exception
(
'不能重复签到'
);
}
}
$config
=
cache
()
->
get
(
'config'
);
$record
=
new
SignRecord
();
$record
=
new
SignRecord
();
$record
->
member_id
=
$member_id
;
$record
->
member_id
=
$member_id
;
$record
->
score
=
1
;
$record
->
score
=
$config
[
'score'
]
;
$record
->
day
=
date
(
'd'
);
$record
->
day
=
date
(
'd'
);
$record
->
month
=
date
(
'Y-m'
);
$record
->
month
=
date
(
'Y-m'
);
$record
->
save
();
$record
->
save
();
...
...
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