|
|
@@ -62,8 +62,11 @@ class BalanceLogsController extends Backend
|
|
|
{
|
|
|
try {
|
|
|
$id = request()->input('id');
|
|
|
- $service = new BalanceLogsService();
|
|
|
- return $service->payment($this->userId, $id);
|
|
|
+ if($result = BalanceLogsService::make()->payment($this->userId, $id)){
|
|
|
+ return message(BalanceLogsService::make()->getError(),true, $result);
|
|
|
+ }else{
|
|
|
+ return message(BalanceLogsService::make()->getError(),false);
|
|
|
+ }
|
|
|
} catch (\Exception $exception){
|
|
|
return message('服务器错误',false,['error'=>$exception->getMessage(),'trace'=>$exception->getTrace()]);
|
|
|
}
|