Commit b1856cc7 authored by wuxiaoli's avatar wuxiaoli

no message

parent 5ada1d95
......@@ -45,7 +45,6 @@ class SignService
* @title 添加签到
*
* @param Request $request
* @param MemberService $service
* @return void
*/
public function create($request){
......@@ -57,9 +56,11 @@ class SignService
throw new \Exception('不能重复签到');
}
$config = cache()->get('config');
$record = new SignRecord();
$record->member_id = $member_id;
$record->score = 1;
$record->score = $config['score'];
$record->day = date('d');
$record->month = date('Y-m');
$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