yingzi 2 năm trước cách đây
mục cha
commit
0473d61bf9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
      * @return type
      */
      */
     public function getDataInfo($code=""){
     public function getDataInfo($code=""){
-        $sys = (new SysModel)->where("id", 1)->find();
+        $sys = $this->where("id", 1)->find();
         $data = $sys->toArray();
         $data = $sys->toArray();
         //微信配置
         //微信配置
         if(empty($data["wxconfig"])){
         if(empty($data["wxconfig"])){