Commit b1856cc7 authored by wuxiaoli's avatar wuxiaoli

no message

parent 5ada1d95
...@@ -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();
......
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