|
|
@@ -51,28 +51,30 @@ class WithdrawController extends Backend
|
|
|
return $message;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
- * 统计
|
|
|
- * @return array
|
|
|
+ * 审核
|
|
|
+ * @return mixed
|
|
|
*/
|
|
|
- public function count()
|
|
|
- {
|
|
|
- $datas = $this->service->getCount(request()->all());
|
|
|
- $message = array(
|
|
|
- "msg" => '操作成功',
|
|
|
- "code" => 0,
|
|
|
- "data" => $datas,
|
|
|
- );
|
|
|
- return $message;
|
|
|
+ public function confirm(){
|
|
|
+ $params = request()->post();
|
|
|
+ if(BalanceLogService::make()->confirm($this->userId,$params)){
|
|
|
+ return message(BalanceLogService::make()->getError(), true);
|
|
|
+ }else{
|
|
|
+ return message(BalanceLogService::make()->getError(), false);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
- * 审核
|
|
|
+ * 更新打款状态
|
|
|
* @return mixed
|
|
|
*/
|
|
|
- public function confirm(){
|
|
|
- $params =request()->all();
|
|
|
- return $this->service->confirm($this->userId,$params);
|
|
|
+ public function payment(){
|
|
|
+ $params = request()->post();
|
|
|
+ if(BalanceLogService::make()->payment($this->userId,$params)){
|
|
|
+ return message(BalanceLogService::make()->getError(), true);
|
|
|
+ }else{
|
|
|
+ return message(BalanceLogService::make()->getError(), false);
|
|
|
+ }
|
|
|
}
|
|
|
}
|