|
@@ -608,26 +608,26 @@ class UserController extends BaseController {
|
|
|
|
|
|
|
|
public function actionGuestDecDebugPaid()
|
|
public function actionGuestDecDebugPaid()
|
|
|
{
|
|
{
|
|
|
-// try {
|
|
|
|
|
|
|
+ try {
|
|
|
$input = Yii::$app->request->post();
|
|
$input = Yii::$app->request->post();
|
|
|
$result = (new GuestDeclarationOrderService())->debugCompletePaidDraft(
|
|
$result = (new GuestDeclarationOrderService())->debugCompletePaidDraft(
|
|
|
(string) ($input['draftId'] ?? ''),
|
|
(string) ($input['draftId'] ?? ''),
|
|
|
(string) ($input['accessToken'] ?? '')
|
|
(string) ($input['accessToken'] ?? '')
|
|
|
);
|
|
);
|
|
|
return static::notice($result);
|
|
return static::notice($result);
|
|
|
-// } catch (\Throwable $e) {
|
|
|
|
|
-// LoggerTool::error([
|
|
|
|
|
-// 'event' => 'guestDec_debug_paid_failed',
|
|
|
|
|
-// 'exception' => get_class($e),
|
|
|
|
|
-// 'message' => $e->getMessage(),
|
|
|
|
|
-// 'file' => basename($e->getFile()),
|
|
|
|
|
-// 'line' => $e->getLine(),
|
|
|
|
|
-// ]);
|
|
|
|
|
-// if ($e instanceof \yii\web\HttpException) {
|
|
|
|
|
-// return static::notice($e->getMessage(), $e->statusCode);
|
|
|
|
|
-// }
|
|
|
|
|
-// return static::notice('Unable to debug-complete guest order.', 500);
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ } catch (\Throwable $e) {
|
|
|
|
|
+ LoggerTool::error([
|
|
|
|
|
+ 'event' => 'guestDec_debug_paid_failed',
|
|
|
|
|
+ 'exception' => get_class($e),
|
|
|
|
|
+ 'message' => $e->getMessage(),
|
|
|
|
|
+ 'file' => basename($e->getFile()),
|
|
|
|
|
+ 'line' => $e->getLine(),
|
|
|
|
|
+ ]);
|
|
|
|
|
+ if ($e instanceof \yii\web\HttpException) {
|
|
|
|
|
+ return static::notice($e->getMessage(), $e->statusCode);
|
|
|
|
|
+ }
|
|
|
|
|
+ return static::notice('Unable to debug-complete guest order.', 500);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function actionGuestDecStatus()
|
|
public function actionGuestDecStatus()
|