|
|
@@ -37,7 +37,9 @@ class NewPc extends BaseController
|
|
|
|
|
|
foreach ($data as &$item) {
|
|
|
$item['section'] = $item['issue_no'];
|
|
|
- $item['keno'] = json_decode($item['keno'], true);
|
|
|
+ if (is_string($item['keno'])) {
|
|
|
+ $item['keno'] = json_decode($item['keno'], true);
|
|
|
+ }
|
|
|
sort($item['keno']);
|
|
|
$item['keno'] = array_map('strval', $item['keno']);
|
|
|
$item['openCode1'] = $item['winning_array'][0];
|