1、在chrome中安装json插件

下载地址:http://jsonhandle.sinaapp.com/ 

2、修改返回数据的ret,有些项目需要返回的是code。

phalapi\vendor\phalapi\kernal\src\Response.php

    public function getResult() {
        $rs = array(
            //'ret'   => $this->ret,
            'code'   => $this->ret,
            'data'  => is_array($this->data) && empty($this->data) ? (object)$this->data : $this->data, // # 67 优化
            'msg'   => $this->msg,
        );

 3、在VSCode中安装插件自动跳转

安装PHP IntelliSense插件

编辑配置,加入

"php.validate.executablePath":"D:/phpStudy/php/php-7.0.12-nts/php.exe"

相关文章:

  • 2021-05-31
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
  • 2021-06-21
  • 2021-11-07
  • 2022-01-21
猜你喜欢
  • 2021-08-19
  • 2022-03-09
  • 2022-02-25
  • 2021-12-20
  • 2021-06-01
  • 2022-03-08
  • 2021-08-18
相关资源
相似解决方案