|
|
@@ -616,6 +616,28 @@ class User extends BaseController
|
|
616
|
616
|
}
|
|
617
|
617
|
|
|
618
|
618
|
|
|
|
619
|
+ /**
|
|
|
620
|
+ * @return mixed
|
|
|
621
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
622
|
+ * @throws \think\db\exception\DbException
|
|
|
623
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
624
|
+ * @author 史晨
|
|
|
625
|
+ * @date 2026/4/9 14:16
|
|
|
626
|
+ * 幸福币列表
|
|
|
627
|
+ */
|
|
|
628
|
+ public function xfb_list()
|
|
|
629
|
+ {
|
|
|
630
|
+ $type = $this->request->param('type');
|
|
|
631
|
+ [$page, $limit] = $this->getPage();
|
|
|
632
|
+ $uid = $this->request->uid();
|
|
|
633
|
+ $where['uid'] = $uid;
|
|
|
634
|
+ $list = DB::name('user_sign_xfb')->where($where)->where('type', $type)->page($page, $limit)->order("id desc")->select();
|
|
|
635
|
+ $obtain = Db::name('user_sign_xfb')->where($where)->where('type', 1)->sum('number');
|
|
|
636
|
+ $consume = Db::name('user_sign_xfb')->where($where)->where('type', 2)->sum('number');
|
|
|
637
|
+ return app("json")->success(['list' => $list, 'obtain' => $obtain, 'consume' => $consume]);
|
|
|
638
|
+ }
|
|
|
639
|
+
|
|
|
640
|
+
|
|
619
|
641
|
public function spread_info_yhc()
|
|
620
|
642
|
{
|
|
621
|
643
|
log::info("============ddddddddd");
|