'checkSign', ]; public function checkSign($value, $data, $rule) { $today = UserSign::where(['del' => 0, 'user_id' => $value]) ->whereTime('sign_time', 'today') ->findOrEmpty(); if (!$today->isEmpty()) { return '您今天已签到过了'; } return true; } }