wzh 5 years atrás
parent
commit
f0a18fa768
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api/application/controllers/Base_Controller.php

+ 2 - 2
api/application/controllers/Base_Controller.php

@@ -207,7 +207,7 @@ class Base_Controller extends CI_Controller {
     // 系统日志
     protected function add_operation_log($optype, $content, $logtype = 1,$language = 0){
         $role = $this->get_user_info('role');
-        $companyid = $this->get_user_info('companyid');
+        $company = $this->get_user_info('company');
         $this->load->model('Syslog_model');
         $userid = $this->get_user_info('id');
         $data = array(
@@ -219,7 +219,7 @@ class Base_Controller extends CI_Controller {
             'language' => $language
         );
         if ($role != SYSTEM_ADMIN) {
-            $data['companyid'] = $companyid;
+            $data['company'] = $company;
         }
         $this->Syslog_model->insert($data);
     }