wugg 1 tahun lalu
induk
melakukan
38d7302c44
2 mengubah file dengan 2 tambahan dan 12 penghapusan
  1. 1 11
      app/admin/controller/Note.php
  2. 1 1
      app/admin/model/NoteLog.php

+ 1 - 11
app/admin/controller/Note.php

@@ -26,21 +26,13 @@ public function create(){
     if($remark==""){
         return error_show(1002,"参数remark不能为空");
     }
-   // $department= isset($this->post['department']) && $this->post['department']!==""? trim($this->post['department']):"";
     $company_type= isset($this->post['company_type']) && $this->post['company_type']!==""? trim($this->post['company_type']):"";
     if($company_type==""){
         return error_show(1002,"参数company_type不能为空");
     }
     $model_id= isset($this->post['model_id']) && $this->post['model_id']!==""? $this->post['model_id']:[];
-//    if(empty($model_id)){
-//        return error_show(1002,"参数model_id不能为空");
-//    }
-    $noteNo= isset($this->post['noteNo']) && $this->post['noteNo'] !==""? $this->post['noteNo']:"";
 
-//    $talk = isset($this->post['talk']) && $this->post['talk'] !==""? trim($this->post['talk']) :"";
-//    if($talk==""){
-//        return error_show(1002,"参数talk不能为空");
-//    }
+    $noteNo= isset($this->post['noteNo']) && $this->post['noteNo'] !==""? $this->post['noteNo']:"";
     $bugNo= makeNo("BG");
     $apply_id =VerifyTokens($token);
     if(empty($apply_id)||$apply_id['code']!=0){
@@ -70,13 +62,11 @@ public function create(){
 
     $data=[
         "model_id"=>!empty($model_id) ? array_pop($model_id):"0",
-        //"talk"=>$talk,
         "bugNo"=>$bugNo,
         "noteNo"=>$noteNo,
         "title"=>$title,
         "remark"=>$remark,
         "company_type"=>$company_type,
-       // "department"=>$department,
         "apply_name"=>$ri,
         "apply_id"=>$rm,
         "level"=>$level,

+ 1 - 1
app/admin/model/NoteLog.php

@@ -18,7 +18,7 @@ class NoteLog extends Model
         $post['model_id'] = isset($post['model_id']) ? array_pop($post['model_id']):"";
         $item = array_diff_assoc($tem,$post);
 
-        $user = GetUserInfo($token);
+        $user = VerifyTokens($token);
         $uid = isset($user['data']['id']) ? $user['data']['id'] :0;
         $name = isset($user['data']['nickname']) ? $user['data']['nickname'] :'';
         if(!empty($item)){