no commit message

This commit is contained in:
zwytan 2018-03-21 17:23:46 +08:00
parent 89640c7416
commit c15c921e9c
2 changed files with 1 additions and 4 deletions

View File

@ -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'];
} }

View File

@ -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;
}
} }