正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
@@ -44,6 +44,7 @@ class AdminEquipmentController extends AdminBaseController{ | @@ -44,6 +44,7 @@ class AdminEquipmentController extends AdminBaseController{ | ||
44 | public function addPost(){ | 44 | public function addPost(){ |
45 | $data=$this->request->post(); | 45 | $data=$this->request->post(); |
46 | $data['create_time']=strtotime($data['create_time']); | 46 | $data['create_time']=strtotime($data['create_time']); |
47 | + $data['qr_code'] = $this->createQrCode($data['mac_address']); | ||
47 | $Equipment=new EquipmentModel(); | 48 | $Equipment=new EquipmentModel(); |
48 | $res=$Equipment->save($data); | 49 | $res=$Equipment->save($data); |
49 | if ($res){ | 50 | if ($res){ |
-
请 注册 或 登录 后发表评论