正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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){ |
-
请 注册 或 登录 后发表评论