|
@@ -152,6 +152,27 @@ class General extends Base
|
|
|
$this->success('ok',['is_sign'=>$ck_sign]);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @title 会员当月日历
|
|
|
+ * @desc 会员当月日历
|
|
|
+ * @author qc
|
|
|
+ * @url /api/General/getUserMonthSign
|
|
|
+ * @method GET
|
|
|
+ * @header name:Authorization require:1 desc:Token
|
|
|
+ */
|
|
|
+ public function getMonthDays()
|
|
|
+ {
|
|
|
+ $month_data = get_month_days();
|
|
|
+ foreach ($month_data as &$v) {
|
|
|
+ $v['is_live'] = Db::table('store_live')
|
|
|
+ ->where('start_at','> time',$v['date_str'].' 00:00:00')
|
|
|
+ ->where('start_at','< time',$v['date_str'].' 23:59:59')
|
|
|
+ ->count();
|
|
|
+ }
|
|
|
+ $this->success('ok',$month_data);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @title 会员当月签到详情
|
|
|
* @desc 会员当月签到详情
|