Browse Source

no message

wzh 5 years ago
parent
commit
d10861f2ad

+ 1 - 0
api/application/controllers/Network.php

@@ -16,6 +16,7 @@ class Network extends Base_Controller {
 
     // 获取网络下拉列表
     public function get() {
+        exit(json_result('0000', $this->response['0000'], array('networks'=>array())));
         $userid = $this->get_user_info('id');
         $project_id = $this->input->post('project_id', true);
         if (empty($project_id)) {

+ 1 - 1
api/application/controllers/Project.php

@@ -35,7 +35,7 @@ class Project extends Base_Controller {
         // 总网络数
         if (empty($project_id)) exit(json_result('0007',$this->response['0007']));
 
-        $data['network_total'] = $this->Network_model->get_count(array('projectid'=>$project_id,'type'=>0));
+        // $data['network_total'] = $this->Network_model->get_count(array('projectid'=>$project_id,'type'=>0));
         $proData = $this->Project_model->get_one(['id'=>$project_id],'projectname,projectid as number,address,createtime as create_time,cityid');
         $data['number'] = $proData['number'];
         $data['address'] = $proData['address'];