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