|
@@ -177,14 +177,14 @@ class multilingual{
|
|
|
|
|
|
|
|
// 第二步:循环处理数据
|
|
// 第二步:循环处理数据
|
|
|
foreach ($dataList as $item) {
|
|
foreach ($dataList as $item) {
|
|
|
- $transKey = $item['key'];
|
|
|
|
|
- $originValue = isset($item['originEnglish']) ? $item['originEnglish'] : '';
|
|
|
|
|
|
|
+ $transKey = common::check_input($item['key']);
|
|
|
|
|
+ $originValue = isset($item['originEnglish']) ? common::check_input($item['originEnglish']) : '';
|
|
|
|
|
|
|
|
foreach ($langMap as $jsonKey => $langInfo) {
|
|
foreach ($langMap as $jsonKey => $langInfo) {
|
|
|
// 只处理 JSON 中存在的数据
|
|
// 只处理 JSON 中存在的数据
|
|
|
if (isset($item[$jsonKey])) {
|
|
if (isset($item[$jsonKey])) {
|
|
|
$transValue = common::check_input($item[$jsonKey]);
|
|
$transValue = common::check_input($item[$jsonKey]);
|
|
|
- $statusKey = $jsonKey . 'Status';
|
|
|
|
|
|
|
+ $statusKey = common::check_input($jsonKey . 'Status');
|
|
|
$status = isset($item[$statusKey]) ? intval($item[$statusKey]) : 0;
|
|
$status = isset($item[$statusKey]) ? intval($item[$statusKey]) : 0;
|
|
|
|
|
|
|
|
// --- 1. 处理语言表 (kln_i18n_languages) ---
|
|
// --- 1. 处理语言表 (kln_i18n_languages) ---
|