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

cost

@@ -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){