|
|
@@ -154,10 +154,12 @@ class NissayaEndingController extends Controller
|
|
|
$cases = $from->case;
|
|
|
$localCase =[];
|
|
|
foreach ($cases as $case) {
|
|
|
- $localCase[] = __("grammar.".$case);
|
|
|
+ $localCase[] = ['label'=>__("grammar.".$case),
|
|
|
+ 'link'=>env('APP_URL').'/term/list/'.$case
|
|
|
+ ];
|
|
|
}
|
|
|
# 格位
|
|
|
- $newLine['case'] = implode(';',$localCase);
|
|
|
+ $newLine['case'] = $localCase;
|
|
|
}
|
|
|
if(isset($from->spell)){
|
|
|
$newLine['spell'] = $from->spell;
|
|
|
@@ -189,7 +191,8 @@ class NissayaEndingController extends Controller
|
|
|
$newLine['local_relation'] = $relationInTerm->meaning;
|
|
|
}
|
|
|
//关系名称
|
|
|
- $newLine['relation'] = strtoupper($relation['name']);
|
|
|
+ $newLine['relation'] = $relation['name'];
|
|
|
+ $newLine['relation_link'] = env('APP_URL').'/term/list/'.$relation['name'];
|
|
|
$cardData['row'][] = $newLine;
|
|
|
}
|
|
|
}
|