Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -7,6 +7,7 @@ use App\Models\Base; | @@ -7,6 +7,7 @@ use App\Models\Base; | ||
| 7 | use App\Utils\LogUtils; | 7 | use App\Utils\LogUtils; |
| 8 | use Illuminate\Database\Eloquent\SoftDeletes; | 8 | use Illuminate\Database\Eloquent\SoftDeletes; |
| 9 | use Illuminate\Support\Facades\DB; | 9 | use Illuminate\Support\Facades\DB; |
| 10 | +use Illuminate\Support\Facades\Log; | ||
| 10 | 11 | ||
| 11 | /** | 12 | /** |
| 12 | * Class InquiryFormData | 13 | * Class InquiryFormData |
| @@ -67,6 +68,8 @@ class InquiryFormData extends Base | @@ -67,6 +68,8 @@ class InquiryFormData extends Base | ||
| 67 | $model->save(); | 68 | $model->save(); |
| 68 | 69 | ||
| 69 | if(!empty($data['name']) && !empty($data['email']) && !empty($data['message'])){ | 70 | if(!empty($data['name']) && !empty($data['email']) && !empty($data['message'])){ |
| 71 | + Log::channel('inquiry')->info('开始发邮件' . PHP_EOL); | ||
| 72 | + | ||
| 70 | unset($data['globalso-domain_host_url']); | 73 | unset($data['globalso-domain_host_url']); |
| 71 | unset($data['globalso-domain']); | 74 | unset($data['globalso-domain']); |
| 72 | unset($data['globalso-edition']); | 75 | unset($data['globalso-edition']); |
| @@ -86,7 +89,7 @@ class InquiryFormData extends Base | @@ -86,7 +89,7 @@ class InquiryFormData extends Base | ||
| 86 | } | 89 | } |
| 87 | if(!$has_file) { | 90 | if(!$has_file) { |
| 88 | $res = (new FormGlobalsoApi())->submitInquiry($ip, $referer, $submit_at, $data); | 91 | $res = (new FormGlobalsoApi())->submitInquiry($ip, $referer, $submit_at, $data); |
| 89 | - LogUtils::info('询盘提交', $data, $res?: []); | 92 | + Log::channel('inquiry')->info('询盘发送邮件', [$data, $res]); |
| 90 | } | 93 | } |
| 91 | } | 94 | } |
| 92 | return $model->id; | 95 | return $model->id; |
-
请 注册 或 登录 后发表评论