|
|
@@ -66,7 +66,7 @@ class AccountController extends webApp
|
|
|
*/
|
|
|
public function withdraw()
|
|
|
{
|
|
|
-// try {
|
|
|
+ try {
|
|
|
$params = request()->all();
|
|
|
|
|
|
if (!$result = BalanceLogService::make()->withdraw($this->userId, $params)) {
|
|
|
@@ -74,9 +74,9 @@ class AccountController extends webApp
|
|
|
} else {
|
|
|
return showJson(BalanceLogService::make()->getError(), true, $result);
|
|
|
}
|
|
|
-// } catch (\Exception $exception) {
|
|
|
-// $error = ['data' => $exception->getTrace(), 'err' => $exception->getMessage()];
|
|
|
-// return showJson(1046, false, $error);
|
|
|
-// }
|
|
|
+ } catch (\Exception $exception) {
|
|
|
+ $error = ['data' => $exception->getTrace(), 'err' => $exception->getMessage()];
|
|
|
+ return showJson(1046, false, $error);
|
|
|
+ }
|
|
|
}
|
|
|
}
|