|
@@ -187,6 +187,7 @@ class UserController extends BaseController
|
|
|
* @api {GET} user/sign_record 用户签到记录
|
|
|
* @apiGroup User
|
|
|
* @apiName signRecord
|
|
|
+ * @apiParam {String} date 查询日期
|
|
|
* @apiSuccess {int} code 状态码
|
|
|
* @apiSuccess {String} msg 信息
|
|
|
* @apiSuccess {object} data 结果集
|
|
@@ -230,7 +231,8 @@ class UserController extends BaseController
|
|
|
*/
|
|
|
public function signRecord(Request $request)
|
|
|
{
|
|
|
- $sign_result = paginationTransform(new SignRecordTransformer(), UserSignService::getUserSignRecord($this->uid));
|
|
|
+ $month = $request->get('date', date('Y-m-01'));
|
|
|
+ $sign_result = paginationTransform(new SignRecordTransformer(), UserSignService::getUserSignRecord($this->uid, $month));
|
|
|
$sign_status = UserSignService::isSign($this->uid);
|
|
|
$sign_today = [];
|
|
|
if ($sign_status) {
|