作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

interface

@@ -74,7 +74,7 @@ class AdminEquipmentController extends AdminBaseController{ @@ -74,7 +74,7 @@ class AdminEquipmentController extends AdminBaseController{
74 public function addPost(){ 74 public function addPost(){
75 $data=$this->request->post(); 75 $data=$this->request->post();
76 $data['create_time']=strtotime($data['create_time']); 76 $data['create_time']=strtotime($data['create_time']);
77 - $data['qr_code'] = $this->createQrCode($data['mac_address']); 77 + $data['qr_code'] = $this->createQrCode($data['name']);
78 $Equipment=new EquipmentModel(); 78 $Equipment=new EquipmentModel();
79 $res=$Equipment->save($data); 79 $res=$Equipment->save($data);
80 if ($res){ 80 if ($res){