询单转发
This commit is contained in:
@@ -78,13 +78,14 @@ class InquiryTransmitController extends BaseController
|
||||
'en-3-P-vdx' => $this->formHmtl2($config)
|
||||
};
|
||||
|
||||
return json([
|
||||
'code' => 200,
|
||||
'data' => [
|
||||
'html' => $html
|
||||
],
|
||||
'message' => 'success'
|
||||
]);
|
||||
return $this->success(['html' => $html], 'success');
|
||||
// return json([
|
||||
// 'code' => 200,
|
||||
// 'data' => [
|
||||
// 'html' => $html
|
||||
// ],
|
||||
// 'message' => 'success'
|
||||
// ]);
|
||||
}
|
||||
|
||||
if ($request->method() == 'POST') {
|
||||
@@ -116,11 +117,12 @@ class InquiryTransmitController extends BaseController
|
||||
|
||||
$this->emailHtml($edata);
|
||||
|
||||
return json([
|
||||
'code' => 200,
|
||||
'data' => [],
|
||||
'message' => 'Thank you for your message! We will contact with you soon.'
|
||||
]);
|
||||
return $this->success([], 'Thank you for your message! We will contact with you soon.');
|
||||
// return json([
|
||||
// 'code' => 200,
|
||||
// 'data' => [],
|
||||
// 'message' => 'Thank you for your message! We will contact with you soon.'
|
||||
// ]);
|
||||
}
|
||||
} catch (\Throwable $th) {
|
||||
Log::info('Data:'.date('Y-m-d H:i:s').':'.$th->getMessage().'|'.$th->getLine().'|'.$th->getFile());
|
||||
|
||||
Reference in New Issue
Block a user