|
@@ -358,4 +358,89 @@ class UserBillController
|
|
|
return app('json')->successful(UserBill::userBillList($request->uid(), $page, $limit, 'integral', ['pm' => $status]));
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 白积分记录
|
|
|
+ * @param Request $request
|
|
|
+ * @return mixed
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
+ * @throws \think\exception\DbException
|
|
|
+ */
|
|
|
+ public function white_integral(Request $request)
|
|
|
+ {
|
|
|
+ list($page, $limit, $status) = UtilService::getMore([
|
|
|
+ ['page', 0], ['limit', 0], ['pm', 0]
|
|
|
+ ], $request, true);
|
|
|
+ return app('json')->successful(UserBill::userBillList($request->uid(), $page, $limit, 'white_integral', ['pm' => $status]));
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 紫积分记录
|
|
|
+ * @param Request $request
|
|
|
+ * @return mixed
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
+ * @throws \think\exception\DbException
|
|
|
+ */
|
|
|
+ public function purple_integral(Request $request)
|
|
|
+ {
|
|
|
+ list($page, $limit, $status) = UtilService::getMore([
|
|
|
+ ['page', 0], ['limit', 0], ['pm', 0]
|
|
|
+ ], $request, true);
|
|
|
+ return app('json')->successful(UserBill::userBillList($request->uid(), $page, $limit, 'purple_integral', ['pm' => $status]));
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 绿积分记录
|
|
|
+ * @param Request $request
|
|
|
+ * @return mixed
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
+ * @throws \think\exception\DbException
|
|
|
+ */
|
|
|
+ public function green_integral(Request $request)
|
|
|
+ {
|
|
|
+ list($page, $limit, $status) = UtilService::getMore([
|
|
|
+ ['page', 0], ['limit', 0], ['pm', 0]
|
|
|
+ ], $request, true);
|
|
|
+ return app('json')->successful(UserBill::userBillList($request->uid(), $page, $limit, 'green_integral', ['pm' => $status]));
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 商家积分记录
|
|
|
+ * @param Request $request
|
|
|
+ * @return mixed
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
+ * @throws \think\exception\DbException
|
|
|
+ */
|
|
|
+ public function business_integral(Request $request)
|
|
|
+ {
|
|
|
+ list($page, $limit, $status) = UtilService::getMore([
|
|
|
+ ['page', 0], ['limit', 0], ['pm', 0]
|
|
|
+ ], $request, true);
|
|
|
+ return app('json')->successful(UserBill::userBillList($request->uid(), $page, $limit, 'business_integral', ['pm' => $status]));
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 文票记录
|
|
|
+ * @param Request $request
|
|
|
+ * @return mixed
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
+ * @throws \think\exception\DbException
|
|
|
+ */
|
|
|
+ public function paper_ticket(Request $request)
|
|
|
+ {
|
|
|
+ list($page, $limit, $status) = UtilService::getMore([
|
|
|
+ ['page', 0], ['limit', 0], ['pm', 0]
|
|
|
+ ], $request, true);
|
|
|
+ return app('json')->successful(UserBill::userBillList($request->uid(), $page, $limit, 'paper_ticket', ['pm' => $status]));
|
|
|
+
|
|
|
+ }
|
|
|
}
|