|
|
@@ -66,18 +66,17 @@ class AccountController extends webApp
|
|
|
*/
|
|
|
public function withdraw()
|
|
|
{
|
|
|
- try {
|
|
|
+// try {
|
|
|
$params = request()->all();
|
|
|
- var_dump($params);
|
|
|
- return false;
|
|
|
+
|
|
|
if (!$result = BalanceLogService::make()->withdraw($this->userId, $params)) {
|
|
|
return showJson(BalanceLogService::make()->getError(), false);
|
|
|
} 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);
|
|
|
+// }
|
|
|
}
|
|
|
}
|