Files
transmit/app/controller/TransmitController.php
T
2025-12-15 02:22:19 +00:00

35 lines
756 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace app\controller;
use support\Request;
use support\Log;
use app\utils\Cf7InquiryClient;
class TransmitController
{
public function form(Request $request)
{
try {
// 表单信息 GET /wp-json/acf7db/v1/forms
$client = new Cf7InquiryClient(
'https://hesupipe.com',
'dev_server',
'eakt wS0o TWVC G9Ys KDAh Djmx'
);
// $result = $client->fetchForms();
$result = $client->fetchEntries(263, 0, 10);
return json($result);
} catch (\Throwable $th) {
Log::info('Data:'.date('Y-m-d H:i:s').':'.$th->getMessage().'|'.$th->getLine().'|'.$th->getFile());
}
}
}