mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-10-14 03:22:12 +08:00
no commit message
This commit is contained in:
parent
89640c7416
commit
c15c921e9c
@ -68,7 +68,7 @@ class RequestFilter {
|
|||||||
|
|
||||||
$newData = [];
|
$newData = [];
|
||||||
foreach ($rule as $item) {
|
foreach ($rule as $item) {
|
||||||
$newData[$item['fieldName']] = $data[$item['fieldName']];
|
$newData[$item['fieldName']] = isset($data[$item['fieldName']])? $data[$item['fieldName']] : '';
|
||||||
if (!$item['isMust'] && $item['default'] !== '' && !isset($data[$item['fieldName']])) {
|
if (!$item['isMust'] && $item['default'] !== '' && !isset($data[$item['fieldName']])) {
|
||||||
$newData[$item['fieldName']] = $item['default'];
|
$newData[$item['fieldName']] = $item['default'];
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,4 @@ class Index extends Base {
|
|||||||
'ToYou' => "I'm glad to meet you(终于等到你!)"
|
'ToYou' => "I'm glad to meet you(终于等到你!)"
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
public function test(){
|
|
||||||
echo 123;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user