songxingwei 2 years ago
parent
commit
6bea42cbfd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Index.php

+ 1 - 1
application/api/controller/Index.php

@@ -183,7 +183,7 @@ class Index extends Api
         $town_name = input('town_name'); //乡镇名称
         $date = input('date');   //日期
         $list = SiteModel::where('is_del',1)
-            ->with('towns')
+            ->with('towns,kd')
 
             ->field('id,code,name')
             ->select();