|
|
@@ -12,6 +12,7 @@
|
|
|
|
|
|
namespace app\controller\api\user;
|
|
|
|
|
|
+use app\common\repositories\user\UserRepository;
|
|
|
use crmeb\basic\BaseController;
|
|
|
use app\common\repositories\system\groupData\GroupDataRepository;
|
|
|
use think\App;
|
|
|
@@ -127,6 +128,16 @@ class UserExtract extends BaseController
|
|
|
$data = $this->repository->getHistoryBank($this->request->userInfo()->uid);
|
|
|
return app('json')->success($data ?? []);
|
|
|
}
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 用户分红积分提现
|
|
|
+ * @return \think\response\Json
|
|
|
+ */
|
|
|
+ public function awardCreate()
|
|
|
+ {
|
|
|
+ $user = $this->request->userInfo();
|
|
|
+ $where= $this->request->params(['num']);
|
|
|
+ app()->make(UserRepository::class)->extractIntegral($user['uid'],$where['num']);
|
|
|
+ return app('json')->success('已提现至佣金');
|
|
|
+ }
|
|
|
|
|
|
}
|