thinkphp5.1框架api输出json格式报错格式修改
为了方便tp5 1框架输出报错信息看起来简单,在这里把输出信息修改(个人想法,不喜勿喷)打开thinkphp->library->think->response->Json php找到output方法try{}里
为了方便tp5 1框架输出报错信息看起来简单,在这里把输出信息修改(个人想法,不喜勿喷)打开thinkphp->library->think->response->Json php找到output方法try{}里
使用框架tp5开发接口时,必定要输出json的格式数据,最好设置一下输出的格式1、找到thinkphp library think response Json php进入找到output在try{}添加if(Config::get(