|
@@ -13,6 +13,7 @@ namespace app\controller\admin\v1\finance;
|
|
|
|
|
|
use app\controller\admin\AuthController;
|
|
|
use app\services\user\UserExtractServices;
|
|
|
+use crmeb\services\WithdrawService;
|
|
|
use think\facade\App;
|
|
|
use think\Request;
|
|
|
|
|
@@ -46,7 +47,7 @@ class UserExtract extends AuthController
|
|
|
['nireid', '', '', 'like'],
|
|
|
['data', '', '', 'time'],
|
|
|
]);
|
|
|
- if(isset($where['extract_type']) && $where['extract_type'] == 'wx'){
|
|
|
+ if (isset($where['extract_type']) && $where['extract_type'] == 'wx') {
|
|
|
$where['extract_type'] = 'weixin';
|
|
|
}
|
|
|
return $this->success($this->services->index($where));
|
|
@@ -136,4 +137,41 @@ class UserExtract extends AuthController
|
|
|
if (!$id) $this->fail('缺少参数');
|
|
|
return $this->success($this->services->adopt((int)$id) ? '操作成功' : '操作失败');
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ public function getOrderList()
|
|
|
+ {
|
|
|
+ list($status, $page, $limit) = $this->request->getMore([
|
|
|
+ ['status', 0],
|
|
|
+ ['page', 1],
|
|
|
+ ['limit', 10],
|
|
|
+ ], true);
|
|
|
+ return $this->success(WithdrawService::init()::getOrderList($status, $page, $limit));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public function getOrderExt($id)
|
|
|
+ {
|
|
|
+ list($page, $limit) = $this->request->getMore([
|
|
|
+ ['page', 1],
|
|
|
+ ['limit', 10],
|
|
|
+ ], true);
|
|
|
+ return $this->success(WithdrawService::init()::getOrderList($id, $page, $limit));
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getOrderTemplate($id)
|
|
|
+ {
|
|
|
+ return $this->success(WithdrawService::init()::getOrderTemplate($id));
|
|
|
+ }
|
|
|
+
|
|
|
+ public function changeOrderStatus($id)
|
|
|
+ {
|
|
|
+ list($apply_img, $seal_img, $status, $remarks) = $this->request->postMore([
|
|
|
+ ['apply_img', ''],
|
|
|
+ ['seal_img', ''],
|
|
|
+ ['status', 1],
|
|
|
+ ['remarks', ''],
|
|
|
+ ], true);
|
|
|
+ return $this->success(WithdrawService::init()::changeOrderStatus($id, $apply_img, $seal_img, $status, $remarks));
|
|
|
+ }
|
|
|
}
|