panlumeng 3 years ago
parent
commit
655cf895a5
2 changed files with 3 additions and 3 deletions
  1. 1 1
      app/admin/controller/Customar.php
  2. 2 2
      app/admin/controller/Suppler.php

+ 1 - 1
app/admin/controller/Customar.php

@@ -78,7 +78,7 @@ class Customar extends BaseController
                 "middle" => "",
                 "country" => "",
                 "is_del" => 0,
-                "creater" => "",
+                "creater" => $creater,
                 "modifier" => "",
                 "addtime" => date("Y-m-d H:i:s"),
                 "updatetime" => date("Y-m-d H:i:s"),

+ 2 - 2
app/admin/controller/Suppler.php

@@ -410,9 +410,9 @@ class Suppler extends BaseController
             }
             $join = Db::name('supplier')->where(['id'=>$id,'is_del'=>0])->save($data);
             if($join){
-                $item = Db::name('supplier_contact')->where(['code'=>$join['code']])->find();
+                $item = Db::name('supplier_contact')->where(['code'=>$info['code']])->find();
                     $temp = [];
-                isset($item['id']) && $item['id'] !== "" ? $temp['id'] = $item['id'] : '';
+                isset($item['id']) && $item['id'] !== "" ? $temp['id'] =$item['id'] : '';
                     $temp['code'] = $info['code'];
                     $temp['contactor'] = $contactor;
                     $temp['mobile'] = $mobile;