yingzi 3 년 전
부모
커밋
0473d61bf9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/model/api/Sys.php

+ 1 - 1
app/model/api/Sys.php

@@ -55,7 +55,7 @@ class Sys extends Model
      * @return type
      */
     public function getDataInfo($code=""){
-        $sys = (new SysModel)->where("id", 1)->find();
+        $sys = $this->where("id", 1)->find();
         $data = $sys->toArray();
         //微信配置
         if(empty($data["wxconfig"])){