瀏覽代碼

Merge branch 'dev' into pre

LuluFJ.Ho 2 年之前
父節點
當前提交
e3cb811a13
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 0
    1
      app/Exceptions/Handler.php
  2. 6
    1
      app/Http/Controllers/Api/SeminarSignUpController.php

+ 0
- 1
app/Exceptions/Handler.php 查看文件

@@ -57,7 +57,6 @@ class Handler extends ExceptionHandler
57 57
 
58 58
     public function handleApiException(Throwable $exception)
59 59
     { 
60
-        dd($exception);
61 60
         // Route Not Found 404
62 61
         if ($exception instanceof RouteNotFoundException) {
63 62
             return $this->apiExceptionResponse($exception, Response::HTTP_NOT_FOUND, config('response-message.router_failed'));

+ 6
- 1
app/Http/Controllers/Api/SeminarSignUpController.php 查看文件

@@ -22,12 +22,16 @@ class SeminarSignUpController extends ApiController
22 22
     // save data to db
23 23
     public function insertData(StoreRequest $request)
24 24
     {
25
+        \Log::info(print_r($request,true));
26
+        
25 27
         $name = $this->safeEncrypt($request->input('name', 'name'), 'arm');
26 28
         $email = $this->safeEncrypt($request->input('email', 'email'), 'arm');
27 29
         $mobile = $this->safeEncrypt($request->input('mobile', 'mobile'), 'arm');
28 30
         $trackNo = $request->input('trackNo', '');
29 31
         
30 32
         $overOrNot = $this->seminarSignUpSv->overLimitOrNot($trackNo);
33
+        \Log::info($overOrNot);
34
+
31 35
         if ($overOrNot) {
32 36
 
33 37
             $this->seminarSignUpSv->insertData($name, $email, $mobile, $trackNo);
@@ -39,7 +43,8 @@ class SeminarSignUpController extends ApiController
39 43
         $data = [
40 44
             'res' => $res,
41 45
         ];
42
-        dd(123);
46
+        \Log::info(print_r($res,true));
47
+        
43 48
         return $this->apiResponse($data);
44 49
     }
45 50