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