This commit is contained in:
toom1996
2025-06-26 14:23:44 +08:00
parent a782ca086d
commit 52bec8c926
3 changed files with 6 additions and 1 deletions

View File

@ -91,7 +91,8 @@ var_dump($requestData);
list($title, $desc) = call_user_func(function () use ($value, $requestData) {
$content = $value['content'];
if ($requestData['platform'] == 3) {
// 头条pc 和 wap
if (in_array($requestData['platform'], [3, 4])) {
$de = PHP_EOL;
} else {
$de = PHP_EOL . PHP_EOL;
@ -150,6 +151,8 @@ var_dump($requestData);
* 刷下拉数据上报
* @url /api/expose/v1/tools/succ
* @return \Psr\Http\Message\ResponseInterface
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
#[RequestMapping(path:'succ', methods:'post')]
public function success(): \Psr\Http\Message\ResponseInterface

View File

@ -22,6 +22,7 @@
<input type="checkbox" name="platform[]" value="1" title="百度PC">
<input type="checkbox" name="platform[]" value="2" title="百度WAP">
<input type="checkbox" name="platform[]" value="3" title="头条PC">
<input type="checkbox" name="platform[]" value="4" title="头条WAP">
</div>
</div>

View File

@ -23,6 +23,7 @@
<input type="checkbox" name="platform[]" value="1" title="百度PC">
<input type="checkbox" name="platform[]" value="2" title="百度WAP">
<input type="checkbox" name="platform[]" value="3" title="头条PC">
<input type="checkbox" name="platform[]" value="4" title="头条WAP">
{{-- <input type="checkbox" name="arr[2]" title="选项3">--}}
</div>
</div>