|
@@ -275,7 +275,13 @@ class Api
|
|
|
|
|
|
if ($info['type'] == 7) {
|
|
|
$info['value'] = Dever::load("area/api.string", $info['value']);
|
|
|
- } elseif ($info['type'] >= 10 && $info['value']) {
|
|
|
+ $info['value'] = explode(',', $info['value']);
|
|
|
+ $temp = end($info['value']);
|
|
|
+ $info['value'] = $temp;
|
|
|
+ } elseif ($info['type'] == 9 && $info['value']) {
|
|
|
+ $info['value'] = explode(',', $info['value']);
|
|
|
+ $info['value'] = $info['value'][0];
|
|
|
+ } elseif ($info['type'] >= 9 && $info['value']) {
|
|
|
$temp = explode("\n", $info['type_option']);
|
|
|
if ($temp) {
|
|
|
$info['value'] = $info['value'] - 1;
|
|
@@ -287,7 +293,6 @@ class Api
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
if ($info['unit']) {
|