'items' => $items,
];
}
- $resultLog = $result;
- if (empty($jsonId)) {
- $resultLog['line'][] = __LINE__;
- $jsonId = time();
- }
- LogService::apiDataLogs(1, json_encode($resultLog, JSON_UNESCAPED_UNICODE), $jsonId);
- $result = json_encode($result, JSON_UNESCAPED_UNICODE);
+ $jsonId = time();
+ $resultLog = $result;
+ $resultLog['line'][] = __LINE__;
+ LogService::apiDataLogs(1, json_encode($resultLog, JSON_UNESCAPED_UNICODE), $jsonId);
return [
'success' => true,
- 'result' => $result,
+ 'result' => $result,
];
} catch (\Exception $e) {