企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
~~~ if (!function_exists('jsonDecode')) { /** * json转义为数组 * @param $json * @return array */ function jsonDecode($json) { return json_decode($json, true); } } ~~~ ~~~ if (!function_exists('jsonEncode')) { /** * 数组转为json * @param $data * @param int $options * @return string */ function jsonEncode($data, int $options = JSON_UNESCAPED_UNICODE) { return json_encode($data, $options); } } ~~~