Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
2 个修改的文件
包含
5 行增加
和
2 行删除
| @@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
| 2 | 2 | ||
| 3 | namespace App\Http\Controllers\Api; | 3 | namespace App\Http\Controllers\Api; |
| 4 | 4 | ||
| 5 | +use App\Exceptions\InquiryFilterException; | ||
| 5 | use App\Models\Visit\SyncSubmitTask; | 6 | use App\Models\Visit\SyncSubmitTask; |
| 6 | use App\Services\CosService; | 7 | use App\Services\CosService; |
| 7 | use Illuminate\Http\Request; | 8 | use Illuminate\Http\Request; |
| @@ -42,7 +43,9 @@ class SelfSiteController extends BaseController | @@ -42,7 +43,9 @@ class SelfSiteController extends BaseController | ||
| 42 | 'original_name' => $fileinfo['name'], | 43 | 'original_name' => $fileinfo['name'], |
| 43 | ]; | 44 | ]; |
| 44 | } | 45 | } |
| 45 | - } catch (\Exception $e) { | 46 | + }catch (InquiryFilterException $e){ |
| 47 | + return $this->error($e->getMessage()); | ||
| 48 | + }catch (\Exception $e){ | ||
| 46 | return $this->error('File upload fail'); | 49 | return $this->error('File upload fail'); |
| 47 | } | 50 | } |
| 48 | } | 51 | } |
| @@ -21,7 +21,7 @@ class Visit extends Base | @@ -21,7 +21,7 @@ class Visit extends Base | ||
| 21 | //连接数据库 | 21 | //连接数据库 |
| 22 | protected $connection = 'custom_mysql'; | 22 | protected $connection = 'custom_mysql'; |
| 23 | protected $appends = ['device_text']; | 23 | protected $appends = ['device_text']; |
| 24 | -// protected $fillable = ['id','ip','device_port','country','city','url','referrer_url','depth','domain','updated_date', 'created_at']; | 24 | + protected $fillable = ['id','ip','device_port','country','city','url','referrer_url','depth','domain','updated_date', 'created_at']; |
| 25 | 25 | ||
| 26 | const DEVICE_PC = 1; | 26 | const DEVICE_PC = 1; |
| 27 | const DEVICE_MOBILE = 2; | 27 | const DEVICE_MOBILE = 2; |
-
请 注册 或 登录 后发表评论